pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/nullmailer set permissions on the fifo when we ma...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aef15d67b445
branches:  trunk
changeset: 535701:aef15d67b445
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Mon Nov 26 08:27:24 2007 +0000

description:
set permissions on the fifo when we make the fifo rather than using
SPECIAL_PERMS because ordering seems to be an issue

diffstat:

 mail/nullmailer/INSTALL  |  9 +++++++--
 mail/nullmailer/Makefile |  4 +---
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 0d95ba16deca -r aef15d67b445 mail/nullmailer/INSTALL
--- a/mail/nullmailer/INSTALL   Mon Nov 26 07:16:52 2007 +0000
+++ b/mail/nullmailer/INSTALL   Mon Nov 26 08:27:24 2007 +0000
@@ -1,10 +1,15 @@
-# $NetBSD: INSTALL,v 1.1 2005/08/20 02:20:45 schmonz Exp $
+# $NetBSD: INSTALL,v 1.2 2007/11/26 08:27:24 plunky Exp $
 
 VARBASE=@VARBASE@
+NULLMAILER_USER=@NULLMAILER_USER@
+NULLMAILER_GROUP=@NULLMAILER_GROUP@
+
+TRIGGER=${VARBASE}/spool/nullmailer/trigger
 
 case "${STAGE}" in
 
 POST-INSTALL)
-       mkfifo ${VARBASE}/spool/nullmailer/trigger
+       mkfifo -m 0600 ${TRIGGER} &&                                    \
+       chown ${NULLMAILER_USER}:${NULLMAILER_GROUP} ${TRIGGER}
        ;;
 esac
diff -r 0d95ba16deca -r aef15d67b445 mail/nullmailer/Makefile
--- a/mail/nullmailer/Makefile  Mon Nov 26 07:16:52 2007 +0000
+++ b/mail/nullmailer/Makefile  Mon Nov 26 08:27:24 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2007/07/04 20:54:45 jlam Exp $
+# $NetBSD: Makefile,v 1.29 2007/11/26 08:27:24 plunky Exp $
 
 DISTNAME=              nullmailer-1.03
 CATEGORIES=            mail
@@ -44,8 +44,6 @@
                        ${NULLMAILER_USER} ${NULLMAILER_GROUP} 4555
 SPECIAL_PERMS+=                libexec/nullmailer/nullmailer-queue             \
                        ${NULLMAILER_USER} ${NULLMAILER_GROUP} 4555
-SPECIAL_PERMS+=                ${VARBASE}/spool/nullmailer/trigger             \
-                       ${NULLMAILER_USER} ${NULLMAILER_GROUP} 0600
 
 SUBST_CLASSES+=                paths
 SUBST_FILES.paths=     ${WRKDIR}/mailer.conf



Home | Main Index | Thread Index | Old Index