summaryrefslogtreecommitdiffstats
path: root/main/postgrey/APKBUILD
blob: b7ce04f1c326c6eca8a496e8579a87bbae9729e5 (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
# Maintainer: Leonardo Arena <rnalrg@gmail.com>
pkgname=postgrey
pkgver=1.32
pkgrel=0
pkgdesc="Postfix Greylisting Policy Server"
url="http://postgrey.schweikert.ch/"
license="GPL-2"
depends="perl-net-server perl-io-multiplex perl-db postfix"
makedepends=""
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="http://postgrey.schweikert.ch/pub/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	mkdir -p -m0770 $pkgdir/var/spool/postfix/postgrey
	chown postgrey.postgrey $pkgdir/var/spool/postfix/postgrey
	install -m755 -D postgrey $pkgdir/usr/sbin/postgrey
	install -m755 -D policy-test $pkgdir/usr/bin/policy-test
	install -m755 -D contrib/postgreyreport $pkgdir/usr/bin/postgreyreport
	install -m644 -D postgrey_whitelist_recipients $pkgdir/etc/postfix/postgrey_whitelist_recipients
	install -m644 -D postgrey_whitelist_clients $pkgdir/etc/postfix/postgrey_whitelist_clients
	install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
	install -m644 -D Changes $pkgdir/usr/share/doc/$pkgname/Changes
	install -m644 -D COPYING $pkgdir/usr/share/doc/$pkgname/COPYING
	install -m755 -D ../../postgrey.init $pkgdir/etc/init.d/postgrey
	install -m644 -D ../../postgrey.conf $pkgdir/etc/conf.d/postgrey
}

md5sums="524a4e165bf997996f3bccade394712f  postgrey-1.32.tar.gz"