summaryrefslogtreecommitdiff
path: root/mail/demime
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2002-07-06 19:37:01 +0000
committertv <tv@pkgsrc.org>2002-07-06 19:37:01 +0000
commitea6fdba1f25d87d37378138a06bb546e4837d637 (patch)
tree37854c110b2a4ccbb441a39011af11c0f936d157 /mail/demime
parentc2d5f923aba5d0d8a8b7a89d1364877df25c90aa (diff)
downloadpkgsrc-ea6fdba1f25d87d37378138a06bb546e4837d637.tar.gz
Make the file in "etc" mutable (use CONF_FILES and bsd.pkg.install.mk).
Diffstat (limited to 'mail/demime')
-rw-r--r--mail/demime/Makefile11
-rw-r--r--mail/demime/PLIST4
2 files changed, 9 insertions, 6 deletions
diff --git a/mail/demime/Makefile b/mail/demime/Makefile
index 306904de232..2f30d1bd2ff 100644
--- a/mail/demime/Makefile
+++ b/mail/demime/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2002/06/07 12:21:08 tron Exp $
+# $NetBSD: Makefile,v 1.2 2002/07/06 19:37:01 tv Exp $
# FreeBSD Id: ports/mail/demime/Makefile,v 1.4 2002/03/26 08:18:20 petef Exp
DISTNAME= demime-0.99c.7
@@ -23,21 +23,24 @@ USE_PERL5= YES
POD2MAN?= ${PREFIX}/bin/pod2man
+EGDIR= ${PREFIX}/share/examples
+CONF_FILES= ${EGDIR}/demime_junkmail.cf ${PKG_SYSCONFDIR}/demime_junkmail.cf
+
do-extract:
@${MKDIR} ${WRKSRC}
@${CP} ${DISTDIR}/${DIST_SUBDIR}/demime.stable ${WRKSRC}/demime.stable
post-patch:
- ${SED} -e 's|/usr/lib/majordomo/demime_junkmail.cf|${PREFIX}/etc/demime_junkmail.cf|g' \
+ ${SED} -e 's|/usr/lib/majordomo/demime_junkmail.cf|${PKG_SYSCONFDIR}/demime_junkmail.cf|g' \
-e 's|/usr/bin/perl|${PREFIX}/bin/perl|g' \
${WRKSRC}/demime.stable >${WRKSRC}/demime
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/demime ${PREFIX}/bin/demime
- ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/demime_junkmail.cf \
- ${PREFIX}/etc
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/demime_junkmail.cf ${EGDIR}
${POD2MAN} ${WRKSRC}/demime > ${WRKSRC}/demime.1
${INSTALL_MAN} ${WRKSRC}/demime.1 ${PREFIX}/man/man1/demime.1
.include "../../lang/perl5/buildlink.mk"
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mail/demime/PLIST b/mail/demime/PLIST
index 3414232675e..73d957bfa12 100644
--- a/mail/demime/PLIST
+++ b/mail/demime/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/07 12:21:09 tron Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/07/06 19:37:01 tv Exp $
bin/demime
-etc/demime_junkmail.cf
man/man1/demime.1
+share/examples/demime_junkmail.cf