Date: Monday, October 27, 2014 @ 12:36:12 Author: spupykin Revision: 121486
archrelease: copy trunk to community-any Added: postgrey/repos/community-any/PKGBUILD (from rev 121485, postgrey/trunk/PKGBUILD) postgrey/repos/community-any/postgrey.install (from rev 121485, postgrey/trunk/postgrey.install) postgrey/repos/community-any/postgrey.service (from rev 121485, postgrey/trunk/postgrey.service) postgrey/repos/community-any/postgrey.tmpfiles (from rev 121485, postgrey/trunk/postgrey.tmpfiles) postgrey/repos/community-any/untaint.patch (from rev 121485, postgrey/trunk/untaint.patch) Deleted: postgrey/repos/community-any/PKGBUILD postgrey/repos/community-any/postgrey.install postgrey/repos/community-any/postgrey.service postgrey/repos/community-any/postgrey.tmpfiles postgrey/repos/community-any/untaint.patch -------------------+ PKGBUILD | 90 ++++++++++++++++++++++++++-------------------------- postgrey.install | 50 ++++++++++++++-------------- postgrey.service | 36 ++++++++++---------- postgrey.tmpfiles | 2 - untaint.patch | 26 +++++++-------- 5 files changed, 102 insertions(+), 102 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2014-10-27 11:36:01 UTC (rev 121485) +++ PKGBUILD 2014-10-27 11:36:12 UTC (rev 121486) @@ -1,45 +0,0 @@ -# $Id$ -# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> -# Contributor: Sean Timothy Noonan <stnoo...@obsolescence.net> - -pkgname=postgrey -pkgver=1.34 -pkgrel=18 -pkgdesc="a Postfix policy server implementing greylisting" -arch=('any') -url="http://postgrey.schweikert.ch/" -options=(emptydirs) -license=("GPL") -depends=('perl-net-server' 'perl>=5.6.0' 'perl-berkeleydb' 'perl-io-multiplex' 'db>=4.1') -optdepends=('postfix: the recommended MTA for use with postgrey' - 'exim: an alternative MTA' - 'perl-net-dns: for postgreyreport tool') -backup=(etc/postfix/postgrey_whitelist_recipients - etc/postfix/postgrey_whitelist_clients) -install=$pkgname.install -source=($url/pub/$pkgname-$pkgver.tar.gz - postgrey.service - postgrey.tmpfiles - untaint.patch) -md5sums=('f736a7be1094593f1a66cd13f32b39ef' - '8ad00f3c57eaa92e1f8a0ee71e620413' - '3236959f435c95db3a13f4c7dd235609' - '3f6a2b415187a8a092b2a7b57f362233') - -prepare() { - cd $srcdir/$pkgname-$pkgver - patch -p0 <$srcdir/untaint.patch -} - -package() { - cd $srcdir/$pkgname-$pkgver - chown -R root:root . - mkdir -p $pkgdir/var/spool/postfix/postgrey - install -D -m 0755 postgrey $pkgdir/usr/bin/postgrey - install -D -m 0755 contrib/postgreyreport $pkgdir/usr/bin/postgreyreport - install -D -m 0644 postgrey_whitelist_recipients $pkgdir/etc/postfix/postgrey_whitelist_recipients - install -D -m 0644 postgrey_whitelist_clients $pkgdir/etc/postfix/postgrey_whitelist_clients - - install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service - install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf -} Copied: postgrey/repos/community-any/PKGBUILD (from rev 121485, postgrey/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2014-10-27 11:36:12 UTC (rev 121486) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Sean Timothy Noonan <stnoo...@obsolescence.net> + +pkgname=postgrey +pkgver=1.35 +pkgrel=1 +pkgdesc="a Postfix policy server implementing greylisting" +arch=('any') +url="http://postgrey.schweikert.ch/" +options=(emptydirs) +license=("GPL") +depends=('perl-net-server' 'perl>=5.6.0' 'perl-berkeleydb' 'perl-io-multiplex' 'db>=4.1') +optdepends=('postfix: the recommended MTA for use with postgrey' + 'exim: an alternative MTA' + 'perl-net-dns: for postgreyreport tool') +backup=(etc/postfix/postgrey_whitelist_recipients + etc/postfix/postgrey_whitelist_clients) +install=$pkgname.install +source=($url/pub/$pkgname-$pkgver.tar.gz + postgrey.service + postgrey.tmpfiles + untaint.patch) +md5sums=('995f265679c9bcc11c6c1db881003e36' + '8ad00f3c57eaa92e1f8a0ee71e620413' + '3236959f435c95db3a13f4c7dd235609' + '3f6a2b415187a8a092b2a7b57f362233') + +prepare() { + cd $srcdir/$pkgname-$pkgver + patch -p0 <$srcdir/untaint.patch +} + +package() { + cd $srcdir/$pkgname-$pkgver + chown -R root:root . + mkdir -p $pkgdir/var/spool/postfix/postgrey + install -D -m 0755 postgrey $pkgdir/usr/bin/postgrey + install -D -m 0755 contrib/postgreyreport $pkgdir/usr/bin/postgreyreport + install -D -m 0644 postgrey_whitelist_recipients $pkgdir/etc/postfix/postgrey_whitelist_recipients + install -D -m 0644 postgrey_whitelist_clients $pkgdir/etc/postfix/postgrey_whitelist_clients + + install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service + install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf +} Deleted: postgrey.install =================================================================== --- postgrey.install 2014-10-27 11:36:01 UTC (rev 121485) +++ postgrey.install 2014-10-27 11:36:12 UTC (rev 121486) @@ -1,25 +0,0 @@ -post_install() { - if [ -z "`grep '^postgrey::' /etc/group`" ]; then - groupadd -g 314 postgrey >& /dev/null - fi - if [ -z "`grep '^postgrey:' /etc/passwd`" ]; then - useradd -u 314 -d /var/spool/postfix/postgrey -g postgrey -s /bin/false postgrey - else - # (postgrey should have no shell, but may have been added by others in the past) - usermod -s /bin/false postgrey - fi - - chown postgrey:postgrey /var/spool/postfix/postgrey - - mkdir -p var/run/postgrey - chown postgrey:postgrey var/run/postgrey -} - -post_upgrade() { - post_install $1 -} - -pre_remove() { - userdel postgrey &> /dev/null - groupdel postgrey &> /dev/null -} Copied: postgrey/repos/community-any/postgrey.install (from rev 121485, postgrey/trunk/postgrey.install) =================================================================== --- postgrey.install (rev 0) +++ postgrey.install 2014-10-27 11:36:12 UTC (rev 121486) @@ -0,0 +1,25 @@ +post_install() { + if [ -z "`grep '^postgrey::' /etc/group`" ]; then + groupadd -g 314 postgrey >& /dev/null + fi + if [ -z "`grep '^postgrey:' /etc/passwd`" ]; then + useradd -u 314 -d /var/spool/postfix/postgrey -g postgrey -s /bin/false postgrey + else + # (postgrey should have no shell, but may have been added by others in the past) + usermod -s /bin/false postgrey + fi + + chown postgrey:postgrey /var/spool/postfix/postgrey + + mkdir -p var/run/postgrey + chown postgrey:postgrey var/run/postgrey +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + userdel postgrey &> /dev/null + groupdel postgrey &> /dev/null +} Deleted: postgrey.service =================================================================== --- postgrey.service 2014-10-27 11:36:01 UTC (rev 121485) +++ postgrey.service 2014-10-27 11:36:12 UTC (rev 121486) @@ -1,18 +0,0 @@ -[Unit] -Description=Postfix Greylisting Service -Before=postfix.service - -[Service] -Type=forking -PIDFile=/run/postgrey/postgrey.pid -ExecStart=/usr/bin/postgrey --inet=127.0.0.1:10030 \ - --pidfile=/run/postgrey/postgrey.pid \ - --group=postgrey --user=postgrey \ - --daemonize \ - --greylist-text="Greylisted for %%s seconds" -Restart=always -RestartSec=5 -TimeoutSec=10 - -[Install] -WantedBy=multi-user.target Copied: postgrey/repos/community-any/postgrey.service (from rev 121485, postgrey/trunk/postgrey.service) =================================================================== --- postgrey.service (rev 0) +++ postgrey.service 2014-10-27 11:36:12 UTC (rev 121486) @@ -0,0 +1,18 @@ +[Unit] +Description=Postfix Greylisting Service +Before=postfix.service + +[Service] +Type=forking +PIDFile=/run/postgrey/postgrey.pid +ExecStart=/usr/bin/postgrey --inet=127.0.0.1:10030 \ + --pidfile=/run/postgrey/postgrey.pid \ + --group=postgrey --user=postgrey \ + --daemonize \ + --greylist-text="Greylisted for %%s seconds" +Restart=always +RestartSec=5 +TimeoutSec=10 + +[Install] +WantedBy=multi-user.target Deleted: postgrey.tmpfiles =================================================================== --- postgrey.tmpfiles 2014-10-27 11:36:01 UTC (rev 121485) +++ postgrey.tmpfiles 2014-10-27 11:36:12 UTC (rev 121486) @@ -1 +0,0 @@ -d /var/run/postgrey 0755 postgrey postgrey - Copied: postgrey/repos/community-any/postgrey.tmpfiles (from rev 121485, postgrey/trunk/postgrey.tmpfiles) =================================================================== --- postgrey.tmpfiles (rev 0) +++ postgrey.tmpfiles 2014-10-27 11:36:12 UTC (rev 121486) @@ -0,0 +1 @@ +d /var/run/postgrey 0755 postgrey postgrey - Deleted: untaint.patch =================================================================== --- untaint.patch 2014-10-27 11:36:01 UTC (rev 121485) +++ untaint.patch 2014-10-27 11:36:12 UTC (rev 121486) @@ -1,13 +0,0 @@ ---- postgrey.orig 2010-05-04 20:51:52.000000000 +0000 -+++ postgrey -@@ -552,6 +552,10 @@ sub main() - if($opt{dbdir}) { - $opt{dbdir} =~ /^(.*)$/; $opt{dbdir} = $1; - } -+ # untaint pidfile -+ if($opt{pidfile}) { -+ $opt{pidfile} =~ /^(.*)$/; $opt{pidfile} = $1; -+ } - - # determine proper "logsock" for Sys::Syslog - my $syslog_logsock; Copied: postgrey/repos/community-any/untaint.patch (from rev 121485, postgrey/trunk/untaint.patch) =================================================================== --- untaint.patch (rev 0) +++ untaint.patch 2014-10-27 11:36:12 UTC (rev 121486) @@ -0,0 +1,13 @@ +--- postgrey.orig 2010-05-04 20:51:52.000000000 +0000 ++++ postgrey +@@ -552,6 +552,10 @@ sub main() + if($opt{dbdir}) { + $opt{dbdir} =~ /^(.*)$/; $opt{dbdir} = $1; + } ++ # untaint pidfile ++ if($opt{pidfile}) { ++ $opt{pidfile} =~ /^(.*)$/; $opt{pidfile} = $1; ++ } + + # determine proper "logsock" for Sys::Syslog + my $syslog_logsock;