summaryrefslogtreecommitdiff
path: root/mail/nullmailer/Makefile
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2005-08-20 02:20:45 +0000
committerschmonz <schmonz@pkgsrc.org>2005-08-20 02:20:45 +0000
commit7fa8d136b7f5d6f6abd0c97edc692ccc749964f9 (patch)
tree264c553c819a27047b9e97b68075ca7a138601a6 /mail/nullmailer/Makefile
parentfff581f8803b79d7eabca6680616dac3e47288ad (diff)
downloadpkgsrc-7fa8d136b7f5d6f6abd0c97edc692ccc749964f9.tar.gz
Update to 1.00. From the changelog:
- Fixed problem with multiple arguments to protocol modules. Thanks Sascha Silbe. - Fixed extraneous spaces in SMTP sender. - Made permissions on queued files more strict. - Handle the "-bs" flag in the sendmail wrapper by dieing when we see it. - Fixed the address parser handling domain names with trailing periods. - Fixed bug in header parsing that would cause the last header line to be repeated if there was no body. - Fixed bug in handling headers containing CR+LF line endings. pkgsrc changes: * Replace @exec and @unexec in PLIST with bsd.pkginstall.mk incantations * sort PLIST * Honor VARBASE in manpages and rc.d script * Enable logging in rc.d script * Allow rc.d script to start nullmailer without rc.subr * Take MAINTAINER.
Diffstat (limited to 'mail/nullmailer/Makefile')
-rw-r--r--mail/nullmailer/Makefile38
1 files changed, 28 insertions, 10 deletions
diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile
index a6726681c0a..26c293d38d7 100644
--- a/mail/nullmailer/Makefile
+++ b/mail/nullmailer/Makefile
@@ -1,12 +1,10 @@
-# $NetBSD: Makefile,v 1.14 2005/04/11 21:46:21 tv Exp $
+# $NetBSD: Makefile,v 1.15 2005/08/20 02:20:45 schmonz Exp $
-DISTNAME= nullmailer-1.00RC7
-PKGNAME= ${DISTNAME:S/0RC7/.0rc7/}
-PKGREVISION= 1
+DISTNAME= nullmailer-1.00
CATEGORIES= mail
-MASTER_SITES= http://untroubled.org/nullmailer/
+MASTER_SITES= ${HOMEPAGE}
-MAINTAINER= tech-pkg@NetBSD.org
+MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://untroubled.org/nullmailer/
COMMENT= Simple relay-only mail transport agent
@@ -30,17 +28,37 @@ PKG_USERS?= ${NULLMAILER_USER}:${NULLMAILER_GROUP}
MAKE_ENV+= NULLMAILER_GROUP=${NULLMAILER_GROUP}
MAKE_ENV+= NULLMAILER_USER=${NULLMAILER_USER}
-PLIST_SUBST+= NULLMAILER_GROUP=${NULLMAILER_GROUP} \
+PLIST_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} \
+ NULLMAILER_GROUP=${NULLMAILER_GROUP} \
+ NULLMAILER_USER=${NULLMAILER_USER}
+
+FILES_SUBST+= VARBASE=${VARBASE} \
+ NULLMAILER_GROUP=${NULLMAILER_GROUP} \
NULLMAILER_USER=${NULLMAILER_USER}
RCD_SCRIPTS= nullmailer
+MAKE_DIRS+= ${PKG_SYSCONFDIR}/nullmailer
+.for i in nullmailer nullmailer/queue nullmailer/tmp
+OWN_DIRS_PERMS+= ${VARBASE}/spool/${i} ${NULLMAILER_USER} \
+ ${NULLMAILER_GROUP} 700
+.endfor
+SPECIAL_PERMS+= libexec/nullmailer/mailq \
+ ${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
+INSTALL_EXTRA_TMPL+= ${PKGDIR}/INSTALL
+DEINSTALL_EXTRA_TMPL+= ${PKGDIR}/DEINSTALL
+
post-configure:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf > \
${WRKDIR}/mailer.conf
- @${MV} ${WRKSRC}/doc/nullmailer-send.8 ${WRKDIR}/nullmailer-send.8
- @${SED} ${FILES_SUBST_SED} ${WRKDIR}/nullmailer-send.8 > \
- ${WRKSRC}/doc/nullmailer-send.8
+ @cd ${WRKSRC}/doc; for i in nullmailer-send nullmailer-queue; do\
+ ${SED} ${FILES_SUBST_SED} $${i}.8 > $${i}.8.new; \
+ ${MV} -f $${i}.8.new $${i}.8; \
+ done
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nullmailer