aboutsummaryrefslogtreecommitdiffstats
path: root/testing/spampd/APKBUILD
blob: c9c99368d7620105c5ccc502300c8c76164dabca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=spampd
pkgver=2.53
pkgrel=0
pkgdesc="An L/SMTP proxy that marks spam using spamassassin"
url="http://www.worlddesign.com/index.cfm/page/software/open-source/spampd.htm"
arch="noarch"
license="GPL-2.0-or-later"
depends="perl-net-server perl-mail-spamassassin"
makedepends=""
install="spampd.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="
	spampd.confd
	spampd.initd
	$pkgname-$pkgver.tar.gz::https://github.com/mpaperno/$pkgname/archive/$pkgver.tar.gz
	"
builddir="$srcdir/$pkgname-$pkgver"
pkgusers="spampd"
pkggroups="spampd"

build() {
	return 0
}

check() {
	cd "$builddir"
	./spampd.pl --version
}

package() {
	install -m755 -D "$builddir/$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
	install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
	install -m644 -D "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"
	install -m644 -D "$builddir/$pkgname.html" \
		"$pkgdir/usr/share/html/$pkgname.html"
}

openrc() {
	mkdir -p "$subpkgdir"
	mv "$pkgdir/etc" "$subpkgdir/"
}
sha512sums="216ab774ac2cc8b54fb8f2155738fd41264b261efd5a7ab95d9910aad5b9699065f42211dbe8021383f0172bfb50cfc9087ea8dc1e53a2223dabd7faf490769c  spampd.confd
4adad6b44509abedcfb5726d09a63b66048468e5ee7942d0e586630a84fb93931f315ed9410894af2cc4e5bff04cd38600ea91cc0b18c3cedd67efe2af6e0e14  spampd.initd
538d905359bd455916aa8dcad9f3d77ce0fbf6cb722608bb723d186679e04abab784c9ae2c372954028dc1454642d74f4cfd0f63f52dcf439f35406220979ef5  spampd-2.53.tar.gz"