update to postgrey version 1.24

- install manpage
- use _postgrey user be default
- move database directory to /var/db/postgrey
This commit is contained in:
jakob 2006-06-18 08:28:56 +00:00
parent 4b78108efb
commit 383e87ecb6
4 changed files with 53 additions and 7 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.6 2005/12/04 20:10:02 jakob Exp $
# $OpenBSD: Makefile,v 1.7 2006/06/18 08:28:56 jakob Exp $
COMMENT= "postfix greylist daemon"
VERSION= 1.23
VERSION= 1.24
DISTNAME= postgrey-${VERSION}
CATEGORIES= mail
@ -29,5 +29,6 @@ RUN_DEPENDS= ::devel/p5-Net-Server \
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/libexec
pod2man ${WRKSRC}/postgrey ${PREFIX}/man/man1/postgrey.1
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
MD5 (postgrey-1.23.tar.gz) = d5214a0dbca6872c5be426d0ffde534d
RMD160 (postgrey-1.23.tar.gz) = dd24186716b429db044ebdf221f4309f3596bb53
SHA1 (postgrey-1.23.tar.gz) = f36139e545e2bba7a150f5603e1f10a8960dd17d
SIZE (postgrey-1.23.tar.gz) = 26622
MD5 (postgrey-1.24.tar.gz) = db11f4da47ee28252cf2ddd160308d7e
RMD160 (postgrey-1.24.tar.gz) = 232c8fb70370f85ccd4542a11ae2880386a47e1c
SHA1 (postgrey-1.24.tar.gz) = 3bc93536a4f49462f77ed69dd32ecd9884912c25
SIZE (postgrey-1.24.tar.gz) = 27444

View File

@ -0,0 +1,38 @@
$OpenBSD: patch-postgrey,v 1.1 2006/06/18 08:28:56 jakob Exp $
--- postgrey.orig Mon Jan 16 08:32:15 2006
+++ postgrey Sun Jun 18 10:26:14 2006
@@ -431,9 +431,9 @@ sub main()
commandline => [ $0, @ARGV_saved ],
port => [ $opt{inet} ? $opt{inet} : $opt{unix}."|unix" ],
proto => $opt{inet} ? 'tcp' : 'unix',
- user => $opt{user} || 'postgrey',
- group => $opt{group} || 'nogroup',
- dbdir => $opt{dbdir} || '/var/spool/postfix/postgrey',
+ user => $opt{user} || '_postgrey',
+ group => $opt{group} || '_postgrey',
+ dbdir => $opt{dbdir} || '/var/db/postgrey',
setsid => $opt{daemonize} ? 1 : undef,
pid_file => $opt{daemonize} ? $opt{pidfile} : undef,
log_level => $opt{verbose} ? 4 : 2,
@@ -444,7 +444,7 @@ sub main()
},
postgrey => {
delay => $opt{delay} || 300,
- dbdir => $opt{dbdir} || '/var/spool/postfix/postgrey',
+ dbdir => $opt{dbdir} || '/var/db/postgrey',
max_age => $opt{'max-age'} || 35,
last_maint => time,
last_maint_keys => 0, # do it on the first night
@@ -608,9 +608,9 @@ B<postgrey> [I<options>...]
-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)
- --group=GROUP run as group GROUP (default: nogroup)
- --dbdir=PATH put db files in PATH (default: /var/spool/postfix/postgrey)
+ --user=USER run as USER (default: _postgrey)
+ --group=GROUP run as group GROUP (default: _postgrey)
+ --dbdir=PATH put db files in PATH (default: /var/db/postgrey)
--delay=N greylist for N seconds (default: 300)
--max-age=N delete entries older than N days since the last time
that they have been seen (default: 35)

View File

@ -1,2 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/12/10 09:37:31 jakob Exp $
@comment $OpenBSD: PLIST,v 1.2 2006/06/18 08:28:56 jakob Exp $
@newgroup _postgrey:563
@newuser _postgrey:563:563:daemon:Postgrey Daemon:/var/empty:/sbin/nologin
libexec/postgrey
man/man1/postgrey.1
@mode 0755
@owner _postgrey
@group _postgrey
@sample /var/db/postgrey/