pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/milter-greylist Fix user destination directory bu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e24a4f1b8c9
branches:  trunk
changeset: 565414:5e24a4f1b8c9
user:      tron <tron%pkgsrc.org@localhost>
date:      Tue Sep 22 14:02:56 2009 +0000

description:
Fix user destination directory build if the database directory
doesn't exist yet.

Based on a patch supplied by Petar Bogdanovi in private e-mail.

diffstat:

 mail/milter-greylist/Makefile                 |  6 +++++-
 mail/milter-greylist/distinfo                 |  4 ++--
 mail/milter-greylist/files/milter-greylist.sh |  4 ++--
 mail/milter-greylist/options.mk               |  4 +++-
 mail/milter-greylist/patches/patch-aa         |  4 ++--
 5 files changed, 14 insertions(+), 8 deletions(-)

diffs (100 lines):

diff -r 09a1b95d7ced -r 5e24a4f1b8c9 mail/milter-greylist/Makefile
--- a/mail/milter-greylist/Makefile     Tue Sep 22 13:50:42 2009 +0000
+++ b/mail/milter-greylist/Makefile     Tue Sep 22 14:02:56 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2009/09/01 22:03:30 tron Exp $
+# $NetBSD: Makefile,v 1.46 2009/09/22 14:02:56 tron Exp $
 
 DISTNAME=      milter-greylist-4.2.3
 CATEGORIES=    mail
@@ -24,11 +24,15 @@
 
 CONFIGURE_ARGS+=       --with-user=${MILTER_USER}
 BUILD_DEFS+=           MILTER_USER
+BUILD_DEFS+=           MILTER_GROUP
 FILES_SUBST+=          MILTER_USER=${MILTER_USER:Q}
+FILES_SUBST+=          MILTER_GROUP=${MILTER_GROUP:Q}
 
 INSTALLATION_DIRS+=    share/doc/milter-greylist
 INSTALLATION_DIRS+=    share/examples/milter-greylist
 
+OWN_DIRS_PERMS+=       ${VARBASE}/milter-greylist ${MILTER_USER} ${MILTER_GROUP} 0755
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/README \
          ${DESTDIR}${PREFIX}/share/doc/milter-greylist
diff -r 09a1b95d7ced -r 5e24a4f1b8c9 mail/milter-greylist/distinfo
--- a/mail/milter-greylist/distinfo     Tue Sep 22 13:50:42 2009 +0000
+++ b/mail/milter-greylist/distinfo     Tue Sep 22 14:02:56 2009 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.25 2009/09/01 22:03:30 tron Exp $
+$NetBSD: distinfo,v 1.26 2009/09/22 14:02:56 tron Exp $
 
 SHA1 (milter-greylist-4.2.3.tgz) = 195270c4ea01331d3ffb18af7466828d2d52eba3
 RMD160 (milter-greylist-4.2.3.tgz) = 2cbf0022ade79ab89475e798e010ecb64c370af9
 Size (milter-greylist-4.2.3.tgz) = 210106 bytes
-SHA1 (patch-aa) = b90849d16aa541ee70df67bb25dd53ce3df63e70
+SHA1 (patch-aa) = f884ba7efce512f51b6e5593255c4f7fdd468333
diff -r 09a1b95d7ced -r 5e24a4f1b8c9 mail/milter-greylist/files/milter-greylist.sh
--- a/mail/milter-greylist/files/milter-greylist.sh     Tue Sep 22 13:50:42 2009 +0000
+++ b/mail/milter-greylist/files/milter-greylist.sh     Tue Sep 22 14:02:56 2009 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: milter-greylist.sh,v 1.4 2009/03/08 15:54:26 tron Exp $
+# $NetBSD: milter-greylist.sh,v 1.5 2009/09/22 14:02:56 tron Exp $
 #
 
 # PROVIDE: milter-greylist
@@ -10,7 +10,7 @@
 name="miltergreylist"
 rcvar="miltergreylist"
 command="@PREFIX@/bin/milter-greylist"
-command_args="-p /var/milter-greylist/milter-greylist.sock -u @MILTER_USER@"
+command_args="-p /var/milter-greylist/milter-greylist.sock -u @MTG_USER@"
 
 if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
        . /etc/rc.subr
diff -r 09a1b95d7ced -r 5e24a4f1b8c9 mail/milter-greylist/options.mk
--- a/mail/milter-greylist/options.mk   Tue Sep 22 13:50:42 2009 +0000
+++ b/mail/milter-greylist/options.mk   Tue Sep 22 14:02:56 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.7 2009/03/16 10:15:23 tron Exp $
+# $NetBSD: options.mk,v 1.8 2009/09/22 14:02:56 tron Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.milter-greylist
 PKG_OPTIONS_REQUIRED_GROUPS=   mta
@@ -66,6 +66,7 @@
 PKG_HOME.postfix=      ${POSTFIX_QUEUE_DIR}
 
 MILTER_USER=           postfix
+MILTER_GROUP=          postfix
 .endif
 
 ###
@@ -77,6 +78,7 @@
 PKG_GECOS.smmsp=       Sendmail Message Submission Program
 
 MILTER_USER=           smmsp
+MILTER_GROUP=          smmsp
 .endif
 
 ###
diff -r 09a1b95d7ced -r 5e24a4f1b8c9 mail/milter-greylist/patches/patch-aa
--- a/mail/milter-greylist/patches/patch-aa     Tue Sep 22 13:50:42 2009 +0000
+++ b/mail/milter-greylist/patches/patch-aa     Tue Sep 22 14:02:56 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2009/03/16 10:15:23 tron Exp $
+$NetBSD: patch-aa,v 1.3 2009/09/22 14:02:56 tron Exp $
 
 --- Makefile.in.orig   2008-09-27 00:35:44.000000000 +0100
 +++ Makefile.in        2009-03-15 20:41:49.000000000 +0000
@@ -7,7 +7,7 @@
        ) || ${TRUE}
  
 -install: install-daemon-to-bin install-man install-conf install-db
-+install: install-daemon-to-bin install-man install-db
++install: install-daemon-to-bin install-man
  
  depend:
        ${MKDEP} ${CPPFLAGS} ${CFLAGS} ${SRC}



Home | Main Index | Thread Index | Old Index