diff options
author | jmmv <jmmv> | 2003-05-01 12:10:11 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2003-05-01 12:10:11 +0000 |
commit | 96a766508017d3a1be94816966c30d0a8bdba871 (patch) | |
tree | 114ae743073194177d1675b9d07b91c948a4bb94 /mail | |
parent | 07717006a9278d9e04a9584bf216fdb278a29182 (diff) | |
download | pkgsrc-96a766508017d3a1be94816966c30d0a8bdba871.tar.gz |
Honour PKG_SYSCONFDIR. Bump PKGREVISION to 1.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mailwrapper/Makefile | 21 | ||||
-rw-r--r-- | mail/mailwrapper/PLIST | 6 |
2 files changed, 19 insertions, 8 deletions
diff --git a/mail/mailwrapper/Makefile b/mail/mailwrapper/Makefile index 8734a6eaac7..dbcc8701f1b 100644 --- a/mail/mailwrapper/Makefile +++ b/mail/mailwrapper/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.12 2003/03/29 12:41:35 jmmv Exp $ +# $NetBSD: Makefile,v 1.13 2003/05/01 12:10:11 jmmv Exp $ DISTNAME= mailwrapper-19990412 +PKGREVISION= 1 WRKSRC= ${WRKDIR}/mailwrapper CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_LOCAL} @@ -10,6 +11,7 @@ COMMENT= NetBSD 1.4's wrapper to support arbitrary Mail Transport Agents NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL +USE_PKGINSTALL= yes NO_CONFIGURE= yes MANCOMPRESSED_IF_MANZ= yes @@ -17,14 +19,23 @@ MANCOMPRESSED_IF_MANZ= yes PKG_SKIP_REASON= "${PKGNAME} is part of your ${OPSYS} distribution" .endif -MAILER_CONF= /etc/mailer.conf +EGDIR= ${PREFIX}/share/examples/mailwrapper +CONF_FILES= ${EGDIR}/mailer.conf ${PKG_SYSCONFDIR}/mailer.conf + LIBEXECDIR= /usr/libexec/sendmail SENDMAIL= /usr/sbin/sendmail +post-patch: +.for f in mailer.conf.5 mailwrapper.8 mailwrapper.c + ${SED} -e 's|/etc/mailer.conf|${PKG_SYSCONFDIR}/mailer.conf|g' \ + < ${WRKSRC}/$f > ${WRKSRC}/$f.new + ${MV} ${WRKSRC}/$f.new ${WRKSRC}/$f +.endfor +.undef f + post-install: - ${INSTALL_DATA} ${WRKSRC}/mailer.conf ${PREFIX}/etc/mailer.conf.default - ${TEST} -e ${MAILER_CONF} || \ - ${LN} -s ${PREFIX}/etc/mailer.conf.default /etc/mailer.conf + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/mailer.conf ${EGDIR}/mailer.conf ${INSTALL_DATA_DIR} ${LIBEXECDIR} ${MV} -i ${SENDMAIL} ${LIBEXECDIR} </dev/null 2>/dev/null || ${TRUE} ${LN} -fs ${PREFIX}/sbin/mailwrapper /usr/bin/mailq diff --git a/mail/mailwrapper/PLIST b/mail/mailwrapper/PLIST index c198ac39c57..02156efce57 100644 --- a/mail/mailwrapper/PLIST +++ b/mail/mailwrapper/PLIST @@ -1,11 +1,11 @@ -@comment $NetBSD: PLIST,v 1.4 2002/12/09 16:01:31 tron Exp $ -etc/mailer.conf.default -@exec test -e /etc/mailer.conf || ln -sf %F /etc/mailer.conf +@comment $NetBSD: PLIST,v 1.5 2003/05/01 12:10:12 jmmv Exp $ man/cat5/mailer.conf.0.gz man/cat8/mailwrapper.0.gz man/man5/mailer.conf.5.gz man/man8/mailwrapper.8.gz sbin/mailwrapper +share/examples/mailwrapper/mailer.conf +@dirrm share/examples/mailwrapper @exec ${MKDIR} /usr/libexec/sendmail @exec mv -i /usr/sbin/sendmail /usr/libexec/sendmail </dev/null 2>/dev/null || ${TRUE} @exec ln -fs %D/sbin/mailwrapper /usr/bin/mailq |