Kaynağa Gözat

upgrade to 1.3 (includes my patch because was taken over by upstream author)

Ralf S. Engelschall 21 yıl önce
ebeveyn
işleme
ade4f126b8
2 değiştirilmiş dosya ile 2 ekleme ve 38 silme
  1. 0 34
      postgrey/postgrey.patch
  2. 2 4
      postgrey/postgrey.spec

+ 0 - 34
postgrey/postgrey.patch

@@ -1,34 +0,0 @@
-Index: postgrey
---- postgrey.orig	2004-05-21 18:14:04.000000000 +0200
-+++ postgrey	2004-05-21 21:16:29.000000000 +0200
-@@ -105,7 +105,7 @@
-     # parse options
-     my %opt = ();
-     GetOptions(\%opt, 'help|h', 'man', 'version', 'noaction|no-action|n',
--        'verbose|v', 'daemonize|d', 'unix|u=s', 'inet|i=s', 'user=s', 'dbdir=s',
-+        'verbose|v', 'daemonize|d', 'unix|u=s', 'inet|i=s', 'user=s', 'dbdir=s', 'pidfile=s',
-         'delay=i', 'max-age=i') or exit(1);
-     if($opt{help})     { pod2usage(1) }
-     if($opt{man})      { pod2usage(-exitstatus => 0, -verbose => 2) }
-@@ -125,11 +125,12 @@
-         server => {
-             commandline     => [ $0, @ARGV_saved ],
-             delay           => $opt{delay} || 600,
--            port            => [ $opt{inet} ? $opt{inet} : $opt{unix} ],
-+            port            => [ $opt{inet} ? $opt{inet} : $opt{unix}."|unix" ],
-             proto           => $opt{inet} ? 'tcp' : 'unix',
-             user            => $opt{user} || 'postgrey',
-             dbdir           => $opt{dbdir} || '/var/spool/postfix/postgrey',
-             setsid          => $opt{daemonize} ? 1 : undef,
-+            pid_file        => $opt{daemonize} ? $opt{pidfile} : undef,
-             log_level       => $opt{verbose} ? 4 : 2,
-             log_file        => $opt{daemonize} ? 'Sys::Syslog' : undef,
-             syslog_facility => 'mail',
-@@ -245,6 +246,7 @@
-  -u, --unix=PATH        listen on unix socket PATH
-  -i, --inet=[HOST:]PORT listen on PORT, localhost if HOST is not specified
-  -d, --daemonize        run in the background
-+     --pidfile=PATH     put daemon pid into this file
-      --user=USER        run as USER (default: postgrey)
-      --dbdir=PATH       put db files in PATH (default: /var/spool/postfix/postgrey)
-      --delay=N          greylist for N seconds (default: 600)

+ 2 - 4
postgrey/postgrey.spec

@@ -33,13 +33,12 @@ Distribution: OpenPKG
 Class:        EVAL
 Group:        Mail
 License:      GPL
-Version:      1.2
-Release:      20040521
+Version:      1.3
+Release:      20040522
 
 #   list of sources
 Source0:      http://isg.ee.ethz.ch/tools/postgrey/pub/postgrey-%{version}.tar.gz
 Source1:      rc.postgrey
-Patch0:       postgrey.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -70,7 +69,6 @@ AutoReqProv:  no
 
 %prep
     %setup -q
-    %patch -p0
 
 %build
     #   build manual page