aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-03 10:40:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-03 10:40:12 +0000
commit97f8ecee5b90f72ea183a41a76e2d72ed4a41db6 (patch)
treee69a7f3c5749a78a0ce974c6a208f8f4663fe4c5 /main
parent651a02df9321f2b131eacdee76feb6ca89456746 (diff)
downloadaports-97f8ecee5b90f72ea183a41a76e2d72ed4a41db6.tar.bz2
aports-97f8ecee5b90f72ea183a41a76e2d72ed4a41db6.tar.xz
main/postgrey: moved from testing, incl dependencies
Trying to clean up the mess.
Diffstat (limited to 'main')
-rw-r--r--main/perl-net-rblclient/APKBUILD26
-rw-r--r--main/perl-parse-syslog/APKBUILD26
-rw-r--r--main/postgrey/APKBUILD48
-rw-r--r--main/postgrey/postgrey.confd (renamed from main/postgrey/postgrey.conf)2
-rw-r--r--main/postgrey/postgrey.initd (renamed from main/postgrey/postgrey.init)1
-rw-r--r--[-rwxr-xr-x]main/postgrey/postgrey.pre-install6
6 files changed, 86 insertions, 23 deletions
diff --git a/main/perl-net-rblclient/APKBUILD b/main/perl-net-rblclient/APKBUILD
new file mode 100644
index 0000000000..e68eaae298
--- /dev/null
+++ b/main/perl-net-rblclient/APKBUILD
@@ -0,0 +1,26 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Michael Mason <ms13sp@gmail.com>
+pkgname=perl-net-rblclient
+_realname=Net-RBLClient
+pkgver=0.5
+pkgrel=0
+pkgdesc="Queries multiple Realtime Blackhole Lists in parallel"
+url="http://search.cpan.org/dist/Net-RBLClient/"
+license="unknown"
+depends="perl"
+makedepends="perl-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/A/AB/ABLUM/$_realname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir/RBLCLient-$pkgver"
+
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install
+ # creates file collision among perl modules
+ find "$pkgdir" -name perllocal.pod -delete
+}
+
+md5sums="1fb9961106cbb5a6eb2257762847e502 Net-RBLClient-0.5.tar.gz"
diff --git a/main/perl-parse-syslog/APKBUILD b/main/perl-parse-syslog/APKBUILD
new file mode 100644
index 0000000000..af6da0feda
--- /dev/null
+++ b/main/perl-parse-syslog/APKBUILD
@@ -0,0 +1,26 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Michael Mason <ms13sp@gmail.com>
+pkgname=perl-parse-syslog
+_realname=Parse-Syslog
+pkgver=1.10
+pkgrel=0
+pkgdesc="Parse Unix syslog files"
+url="http://search.cpan.org/~dschwei/Parse-Syslog-1.10/"
+license="unknown"
+depends="perl"
+makedepends="perl-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DS/DSCHWEI/$_realname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir/$_realname-$pkgver"
+
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install
+ # creates file collision among perl modules
+ find "$pkgdir" -name perllocal.pod -delete
+}
+
+md5sums="e1c4c03aaa7cb8d2baa52f294dd9accc Parse-Syslog-1.10.tar.gz"
diff --git a/main/postgrey/APKBUILD b/main/postgrey/APKBUILD
index b7ce04f1c3..83afce3c6f 100644
--- a/main/postgrey/APKBUILD
+++ b/main/postgrey/APKBUILD
@@ -1,30 +1,36 @@
-# Maintainer: Leonardo Arena <rnalrg@gmail.com>
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=postgrey
pkgver=1.32
-pkgrel=0
-pkgdesc="Postfix Greylisting Policy Server"
+pkgrel=2
+pkgdesc="Postfix policy server implementing greylisting"
url="http://postgrey.schweikert.ch/"
-license="GPL-2"
-depends="perl-net-server perl-io-multiplex perl-db postfix"
+license="GPL"
+depends="perl perl-db perl-net-dns perl-net-server perl-io-multiplex
+ perl-net-rblclient perl-parse-syslog"
+pkgusers="postgrey"
+pkggroups="postgrey"
makedepends=""
-install="$pkgname.pre-install"
-subpackages="$pkgname-doc"
-source="http://postgrey.schweikert.ch/pub/$pkgname-$pkgver.tar.gz"
+install=postgrey.pre-install
+subpackages=""
+source="http://postgrey.schweikert.ch/pub/$pkgname-$pkgver.tar.gz
+ postgrey.confd
+ postgrey.initd"
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
+
+ install -m755 -D $pkgname "$pkgdir"/usr/sbin/$pkgname
+ mkdir -p "$pkgdir"/var/spool/postfix/$pkgname
+ chown postgrey:postgrey "$pkgdir"/var/spool/postfix/$pkgname
+ chmod 770 "$pkgdir"/var/spool/postfix/$pkgname
+ install -m755 -D contrib/postgreyreport "$pkgdir"/usr/bin/postgreyreport
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m644 -D postgrey_whitelist_clients "$pkgdir"/etc/postfix/postgrey_whitelist_clients
+ install -m644 -D postgrey_whitelist_recipients "$pkgdir"/etc/postfix/postgrey_whitelist_recipients
+ install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
-md5sums="524a4e165bf997996f3bccade394712f postgrey-1.32.tar.gz"
+md5sums="524a4e165bf997996f3bccade394712f postgrey-1.32.tar.gz
+caaad5770ab07fb5af3bbd522a05b84f postgrey.confd
+d0611b244202c77ad7ad79862721a738 postgrey.initd"
diff --git a/main/postgrey/postgrey.conf b/main/postgrey/postgrey.confd
index 0baa871a8b..7a6deb587f 100644
--- a/main/postgrey/postgrey.conf
+++ b/main/postgrey/postgrey.confd
@@ -29,7 +29,7 @@ POSTGREY_PID="/var/run/postgrey.pid"
# DELAY
# How long to delay mail that is greylisted in seconds.
-POSTGREY_DELAY=60
+POSTGREY_DELAY=300
# TEXT
# The response we'll send back with delayed mail.
diff --git a/main/postgrey/postgrey.init b/main/postgrey/postgrey.initd
index d38538de17..c9e51ceba9 100644
--- a/main/postgrey/postgrey.init
+++ b/main/postgrey/postgrey.initd
@@ -9,6 +9,7 @@ opts="${opts} reload"
depend() {
need net
+ after firewall
before postfix
provide postfix_greylist
}
diff --git a/main/postgrey/postgrey.pre-install b/main/postgrey/postgrey.pre-install
index e37a27f7d5..3c34c3fd5f 100755..100644
--- a/main/postgrey/postgrey.pre-install
+++ b/main/postgrey/postgrey.pre-install
@@ -1,2 +1,6 @@
#!/bin/sh
-adduser -h /var/spool/postfix/postgrey -g postgrey -s /bin/false -D postgrey &>/dev/null
+
+addgroup postgrey 2>/dev/null
+adduser -H -h /dev/null -s /bin/false -D postgrey 2>/dev/null
+
+exit 0