[svn] r4867 - in trunk/rpms: . perl-BerkeleyDB perl-IO-Multiplex postgrey

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Mon Nov 6 14:26:34 CET 2006


Author: thias
Date: 2006-11-06 14:26:33 +0100 (Mon, 06 Nov 2006)
New Revision: 4867

Added:
   trunk/rpms/postgrey/
   trunk/rpms/postgrey/README-rpm
   trunk/rpms/postgrey/postgrey-1.27-group.patch
   trunk/rpms/postgrey/postgrey.init
   trunk/rpms/postgrey/postgrey.spec
Modified:
   trunk/rpms/perl-BerkeleyDB/perl-BerkeleyDB.spec
   trunk/rpms/perl-IO-Multiplex/perl-IO-Multiplex.spec
Log:
Initial postgrey import and update perl-BerkeleyDB to 0.31.


Modified: trunk/rpms/perl-BerkeleyDB/perl-BerkeleyDB.spec
===================================================================
--- trunk/rpms/perl-BerkeleyDB/perl-BerkeleyDB.spec	2006-11-06 10:46:56 UTC (rev 4866)
+++ trunk/rpms/perl-BerkeleyDB/perl-BerkeleyDB.spec	2006-11-06 13:26:33 UTC (rev 4867)
@@ -10,7 +10,7 @@
 
 Summary: Perl extension for Berkeley DB version 2, 3 or 4
 Name: perl-BerkeleyDB
-Version: 0.30
+Version: 0.31
 Release: 1
 License: Artistic
 Group: Applications/CPAN
@@ -60,6 +60,9 @@
 %{perl_vendorarch}/auto/BerkeleyDB/
 
 %changelog
+* Mon Nov  6 2006 Matthias Saou <http://freshrpms.net/> 0.31-1
+- Update to 0.31.
+
 * Mon Sep 18 2006 Dries Verachtert <dries at ulyssis.org> - 0.30-1
 - Updated to release 0.30.
 

Modified: trunk/rpms/perl-IO-Multiplex/perl-IO-Multiplex.spec
===================================================================
--- trunk/rpms/perl-IO-Multiplex/perl-IO-Multiplex.spec	2006-11-06 10:46:56 UTC (rev 4866)
+++ trunk/rpms/perl-IO-Multiplex/perl-IO-Multiplex.spec	2006-11-06 13:26:33 UTC (rev 4867)
@@ -9,7 +9,7 @@
 Summary: IO-Multiplex module for perl
 Name: perl-IO-Multiplex
 Version: 1.08
-Release: 2.2
+Release: 3
 License: GPL or Artistic
 Group: Applications/CPAN
 URL: http://search.cpan.org/dist/IO-Multiplex/

Added: trunk/rpms/postgrey/README-rpm
===================================================================
--- trunk/rpms/postgrey/README-rpm	                        (rev 0)
+++ trunk/rpms/postgrey/README-rpm	2006-11-06 13:26:33 UTC (rev 4867)
@@ -0,0 +1,19 @@
+Edit your configuration files:
+
+/etc/postfix/main.cf:
+
+  smtpd_recipient_restrictions = ...
+    check_policy_service unix:postgrey/socket, ...
+
+
+Or if you like to use inet sockets (modify the IP if needed):
+
+/etc/sysconfig/postgrey:
+
+  OPTIONS="--inet=127.0.0.1:10023"
+
+/etc/postfix/main.cf:
+
+  smtpd_recipient_restrictions = ...
+    check_policy_service inet:127.0.0.1:10023, ...
+

Added: trunk/rpms/postgrey/postgrey-1.27-group.patch
===================================================================
--- trunk/rpms/postgrey/postgrey-1.27-group.patch	                        (rev 0)
+++ trunk/rpms/postgrey/postgrey-1.27-group.patch	2006-11-06 13:26:33 UTC (rev 4867)
@@ -0,0 +1,21 @@
+diff -Naupr postgrey-1.27.orig/postgrey postgrey-1.27/postgrey
+--- postgrey-1.27.orig/postgrey	2006-07-17 14:53:30.000000000 +0200
++++ postgrey-1.27/postgrey	2006-11-06 13:34:04.000000000 +0100
+@@ -441,7 +441,7 @@ sub main()
+             port             => [ $opt{inet} ? $opt{inet} : $opt{unix}."|unix" ],
+             proto            => $opt{inet} ? 'tcp' : 'unix',
+             user             => $opt{user} || 'postgrey',
+-            group            => $opt{group} || 'nogroup',
++            group            => $opt{group} || 'postgrey',
+             dbdir            => $opt{dbdir} || '/var/spool/postfix/postgrey',
+             setsid           => $opt{daemonize} ? 1 : undef,
+             pid_file         => $opt{daemonize} ? $opt{pidfile} : undef,
+@@ -623,7 +623,7 @@ B<postgrey> [I<options>...]
+  -d, --daemonize         run in the background
+      --pidfile=PATH      put daemon pid into this file
+      --user=USER         run as USER (default: postgrey)
+-     --group=GROUP       run as group GROUP (default: nogroup)
++     --group=GROUP       run as group GROUP (default: postgrey)
+      --dbdir=PATH        put db files in PATH (default: /var/spool/postfix/postgrey)
+      --delay=N           greylist for N seconds (default: 300)
+      --max-age=N         delete entries older than N days since the last time

Added: trunk/rpms/postgrey/postgrey.init
===================================================================
--- trunk/rpms/postgrey/postgrey.init	                        (rev 0)
+++ trunk/rpms/postgrey/postgrey.init	2006-11-06 13:26:33 UTC (rev 4867)
@@ -0,0 +1,87 @@
+#!/bin/sh
+#
+# chkconfig: - 79 31
+# description: Postfix Greylisting Policy Server
+#
+# processname: postgrey
+#
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration.
+. /etc/sysconfig/network
+
+# Check that networking is up.
+[ ${NETWORKING} = "no" ] && exit 0
+
+prog=postgrey
+postgrey=/usr/sbin/$prog
+DBPATH=/var/spool/postfix/postgrey
+SOCKET=$DBPATH/socket
+OPTIONS="--unix=$SOCKET"
+
+# Source an auxiliary options file if we have one, and pick up OPTIONS,
+if [ -r /etc/sysconfig/$prog ]; then
+    . /etc/sysconfig/$prog
+fi
+
+[ -x $postgrey -a -d $DBPATH ] || exit 0
+
+RETVAL=0
+
+start() {
+    echo -n $"Starting $prog: "
+    daemon $postgrey -d $OPTIONS
+    RETVAL=$?
+    echo
+    [ $RETVAL = 0 ] && touch /var/lock/subsys/$prog
+    return $RETVAL
+}
+stop() {
+    echo -n $"Stopping $prog: "
+    killproc $postgrey
+    RETVAL=$?
+    echo
+    [ $RETVAL = 0 ] && rm -f /var/lock/subsys/$prog
+}
+
+restart() {
+    stop
+    start
+}
+
+reload() {
+    echo -n $"Reloading $prog: "
+    killproc $postgrey -HUP
+    RETVAL=$?
+    echo
+    return $RETVAL
+}
+ 
+# See how we were called.
+case "$1" in
+    start)
+        start
+    ;;
+    stop)
+        stop
+    ;;
+    restart)
+        restart
+    ;;
+    reload)
+        reload
+    ;;
+    condrestart)
+        [ -f /var/lock/subsys/$prog ] && restart
+    ;;
+    status)
+        status $postgrey
+    ;;
+    *)
+        echo $"Usage: $0 {start|stop|restart|condrestart|reload|status}"
+        exit 1
+esac
+
+exit $?


Property changes on: trunk/rpms/postgrey/postgrey.init
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/rpms/postgrey/postgrey.spec
===================================================================
--- trunk/rpms/postgrey/postgrey.spec	                        (rev 0)
+++ trunk/rpms/postgrey/postgrey.spec	2006-11-06 13:26:33 UTC (rev 4867)
@@ -0,0 +1,130 @@
+# $Id$
+# Authority: matthias
+
+%define confdir %{_sysconfdir}/postfix
+
+Summary: Postfix Greylisting Policy Server
+Name: postgrey
+Version: 1.27
+Release: 1
+License: GPL
+Group: System Environment/Daemons
+Source0: http://isg.ee.ethz.ch/tools/postgrey/pub/postgrey-%{version}.tar.gz
+Source1: postgrey.init
+Source2: README-rpm
+Patch0: postgrey-1.27-group.patch
+URL: http://isg.ee.ethz.ch/tools/postgrey/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+# We require postfix for its directories and gid
+Requires: postfix
+# This module seems to be a weak dependency from Net::Server, so we need to
+# explicitly require it or it won't get installed.
+Requires: perl(IO::Multiplex)
+Requires(pre): /usr/sbin/useradd
+Requires(post): /sbin/chkconfig
+Requires(preun): /sbin/service, /sbin/chkconfig
+Requires(postun): /sbin/service
+BuildArch: noarch
+
+%description
+Postgrey is a Postfix policy server implementing greylisting.  When a request
+for delivery of a mail is received by Postfix via SMTP, the triplet CLIENT_IP /
+SENDER / RECIPIENT is built.  If it is the first time that this triplet is
+seen, or if the triplet was first seen less than 5 minutes, then the mail gets
+rejected with a temporary error. Hopefully spammers or viruses will not try
+again later, as it is however required per RFC.
+
+
+%prep
+%setup
+%patch0 -p1 -b .group
+%{__install} -p -m 0644 %{SOURCE2} README-rpm
+
+
+%build
+
+
+%install
+%{__rm} -rf %{buildroot}
+
+# Configuration files
+%{__mkdir_p} %{buildroot}%{confdir}
+%{__install} -p -m 0644 postgrey_whitelist_{clients,recipients} \
+    %{buildroot}%{confdir}/
+touch %{buildroot}%{confdir}/postgrey_whitelist_clients.local
+
+# Main script
+%{__install} -D -p -m 0755 postgrey %{buildroot}%{_sbindir}/postgrey
+
+# Spool directory
+%{__mkdir_p} %{buildroot}%{_var}/spool/postfix/postgrey
+
+# Init script
+%{__install} -D -p -m 0755 %{SOURCE1} \
+    %{buildroot}%{_sysconfdir}/rc.d/init.d/postgrey
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%pre
+/usr/sbin/useradd -d %{_var}/spool/postfix/postgrey -s /sbin/nologin \
+    -M -r postgrey &>/dev/null || :
+
+%post
+/sbin/chkconfig --add postgrey
+
+%preun
+if [ $1 -eq 0 ]; then
+    /sbin/service postgrey stop &>/dev/null || :
+    /sbin/chkconfig --del postgrey
+fi
+
+%postun
+if [ $1 -ge 1 ]; then
+    /sbin/service postgrey condrestart &>/dev/null || :
+fi
+
+
+%files
+%defattr(-, root, root)
+%doc Changes COPYING README README-rpm
+%{_sysconfdir}/rc.d/init.d/postgrey
+%config(noreplace) %{confdir}/postgrey_whitelist_clients
+%config(noreplace) %{confdir}/postgrey_whitelist_recipients
+%config(noreplace) %{confdir}/postgrey_whitelist_clients.local
+%{_sbindir}/postgrey
+%dir %attr(0751, postgrey, postfix) %{_var}/spool/postfix/postgrey/
+
+
+%changelog
+* Mon Nov  6 2006 Matthias Saou <http://freshrpms.net/> 1.27-1
+- Spec file cleanup.
+
+* Wed Jan 18 2006 Levente Farkas <lfarkas at lfarkas.org> 1.24
+- some minor changes thanks to Peter Bieringer <pb at bieringer.de>
+
+* Mon Jan 16 2006 Levente Farkas <lfarkas at lfarkas.org> 1.24
+- upgrade to 1.24
+
+* Sun Nov 13 2005 Levente Farkas <lfarkas at lfarkas.org> 1.22
+- upgrade to 1.22
+
+* Mon Aug 22 2005 Levente Farkas <lfarkas at lfarkas.org> 1.21
+- spec file update from Luigi Iotti <luigi at iotti.biz>
+
+* Thu Apr 28 2005 Levente Farkas <lfarkas at lfarkas.org> 1.21
+- update to 1.21
+
+* Tue Mar  8 2005 Levente Farkas <lfarkas at lfarkas.org> 1.18
+- update to 1.18
+
+* Tue Dec 14 2004 Levente Farkas <lfarkas at lfarkas.org> 1.17
+- update to 1.17
+
+* Wed Jul 14 2004 Levente Farkas <lfarkas at lfarkas.org> 1.14
+- guard the pre and post scripts
+
+* Wed Jul  7 2004 Levente Farkas <lfarkas at lfarkas.org> 1.13
+- initial release 1.13


Property changes on: trunk/rpms/postgrey/postgrey.spec
___________________________________________________________________
Name: svn:keywords
   + Id




More information about the commits mailing list