[arch-commits] Commit in postgrey/trunk (PKGBUILD untaint.patch)

Sergej Pupykin spupykin at nymeria.archlinux.org
Wed Aug 14 08:26:44 UTC 2013


    Date: Wednesday, August 14, 2013 @ 10:26:44
  Author: spupykin
Revision: 95553

upgpkg: postgrey 1.34-17

upd

Added:
  postgrey/trunk/untaint.patch
Modified:
  postgrey/trunk/PKGBUILD

---------------+
 PKGBUILD      |   10 ++++++----
 untaint.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-08-14 08:24:30 UTC (rev 95552)
+++ PKGBUILD	2013-08-14 08:26:44 UTC (rev 95553)
@@ -4,7 +4,7 @@
 
 pkgname=postgrey
 pkgver=1.34
-pkgrel=16
+pkgrel=17
 pkgdesc="a Postfix policy server implementing greylisting"
 arch=('any')
 url="http://postgrey.schweikert.ch/"
@@ -19,14 +19,16 @@
 install=$pkgname.install
 source=($url/pub/$pkgname-$pkgver.tar.gz
 	postgrey.service
-	postgrey.tmpfiles)
+	postgrey.tmpfiles
+	untaint.patch)
 md5sums=('f736a7be1094593f1a66cd13f32b39ef'
          '67f2dbc9a180dc60594ec64c10e24bf6'
-         '3236959f435c95db3a13f4c7dd235609')
+         '3236959f435c95db3a13f4c7dd235609'
+         '3f6a2b415187a8a092b2a7b57f362233')
 
 prepare() {
   cd $srcdir/$pkgname-$pkgver
-  sed -i 's|perl -T|perl|' postgrey
+  patch -p0 <$srcdir/untaint.patch
 }
 
 package() {

Added: untaint.patch
===================================================================
--- untaint.patch	                        (rev 0)
+++ untaint.patch	2013-08-14 08:26:44 UTC (rev 95553)
@@ -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;




More information about the arch-commits mailing list