update to v4; from okan

This commit is contained in:
jakob 2007-11-19 09:18:18 +00:00
parent e12677fadc
commit ca3b258b0b
4 changed files with 44 additions and 23 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.4 2007/09/16 00:17:05 merdely Exp $
# $OpenBSD: Makefile,v 1.5 2007/11/19 09:18:18 jakob Exp $
COMMENT= greylist milter
DISTNAME= milter-greylist-3.0
DISTNAME= milter-greylist-4.0
PKGNAME= ${DISTNAME}
CATEGORIES= mail
HOMEPAGE= http://hcpnet.free.fr/milter-greylist/
@ -22,11 +22,21 @@ WANTLIB= c pthread milter
BUILD_DEPENDS= ::devel/bison
USERNAME= _milter-greylist
USERNAME= _milter-greylist:_milter-greylist
GREYLISTDIR= /var/db/milter-greylist
EXAMPLESDIR= share/examples/milter-greylist
SUBST_VARS= GREYLISTDIR
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-user=${USERNAME}
CONFIGURE_ARGS+= --with-user=${USERNAME} \
--with-dumpfile=${GREYLISTDIR}/greylist.db
pre-configure:
@perl -pi -e 's,!!USERNAME!!,${USERNAME},; \
s,!!GREYLISTDIR!!,${GREYLISTDIR},' ${WRKSRC}/greylist.conf
@perl -pi -e 's,!!GREYLISTDIR!!,${GREYLISTDIR},' \
${WRKSRC}/greylist.conf.5 ${WRKSRC}/milter-greylist.8
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/libexec

View File

@ -1,5 +1,5 @@
MD5 (milter-greylist-3.0.tgz) = /91ViMeKQFwQfUyKQMfgGg==
RMD160 (milter-greylist-3.0.tgz) = Y5GIO+kHax95CrWCBwsVK4DiBQw=
SHA1 (milter-greylist-3.0.tgz) = OLM0MA/hFBqDKf4Zh1TmMoaYESk=
SHA256 (milter-greylist-3.0.tgz) = iWLCm3MOsCToPRQvjC/zb/xBtl9hEcpnB3Uhc7JcjNA=
SIZE (milter-greylist-3.0.tgz) = 141461
MD5 (milter-greylist-4.0.tgz) = KDSTOycpjTBjDupiHL/c9Q==
RMD160 (milter-greylist-4.0.tgz) = 6EMpSR6gYERUmq+/Zb+K30wBlWs=
SHA1 (milter-greylist-4.0.tgz) = 6UyMin7VzydVDrafZgx9dcYPasE=
SHA256 (milter-greylist-4.0.tgz) = izSAYq+PRoeaIaGQBw1yYWU2Nl9uHjGO/xjD/LAkyHU=
SIZE (milter-greylist-4.0.tgz) = 185107

View File

@ -1,12 +1,20 @@
$OpenBSD: patch-greylist_conf,v 1.2 2006/11/22 22:26:31 jakob Exp $
--- greylist.conf.orig Wed Sep 27 22:03:49 2006
+++ greylist.conf Wed Nov 22 15:54:29 2006
@@ -8,7 +8,7 @@
pidfile "/var/run/milter-greylist.pid"
socket "/var/milter-greylist/milter-greylist.sock"
dumpfile "/var/milter-greylist/greylist.db"
-user "smmsp"
+user "_milter-greylist"
$OpenBSD: patch-greylist_conf,v 1.3 2007/11/19 09:18:18 jakob Exp $
--- greylist.conf.orig Wed Oct 24 23:20:11 2007
+++ greylist.conf Wed Nov 7 11:35:35 2007
@@ -6,12 +6,12 @@
#
# Be verbose (or use -v flag)
#verbose
pidfile "/var/run/milter-greylist.pid"
-socket "/var/milter-greylist/milter-greylist.sock"
-dumpfile "/var/milter-greylist/greylist.db"
-user "smmsp"
+socket "!!GREYLISTDIR!!/milter-greylist.sock"
+dumpfile "!!GREYLISTDIR!!/greylist.db"
+user "!!USERNAME!!"
# Log milter-greylist activity to a file
-#stat "/var/milter-greylist/greylist.log" \
+#stat "!!GREYLISTDIR!!/greylist.log" \
# "%T{%Y/%m/%d %T} %d [%i] %r -> %f %S (ACL %A) %Xc %Xe %Xm %Xh"
# Same, sent to syslog
#stat "|logger -p local7.info" \

View File

@ -1,11 +1,14 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/07/31 12:36:43 jakob Exp $
@newuser _milter-greylist:568::daemon:milter-greylist Account:/nonexistent:/sbin/nologin
@comment $OpenBSD: PLIST,v 1.2 2007/11/19 09:18:18 jakob Exp $
@newgroup _milter-greylist:568
@newuser _milter-greylist:568:_milter-greylist:daemon:milter-greylist Account:/nonexistent:/sbin/nologin
libexec/milter-greylist
@man man/man5/greylist.conf.5
@man man/man8/milter-greylist.8
share/examples/milter-greylist/
@sample ${SYSCONFDIR}/mail/
share/examples/milter-greylist/greylist.conf
@sample ${SYSCONFDIR}/mail/greylist.conf
@mode 0755
@group _milter-greylist
@owner _milter-greylist
@sample /var/db/milter-greylist/
@sample ${GREYLISTDIR}/