summaryrefslogtreecommitdiff
path: root/mail/demime
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-07-26 20:04:24 +0000
committerjlam <jlam@pkgsrc.org>2005-07-26 20:04:24 +0000
commit2d97f116a7ddfe0954b7c4a7d4654df0b3b17422 (patch)
tree0ebb4dd51a0603c61aaa7ea03fa47b15219ebb55 /mail/demime
parent7aa57dd443f1539198f8974127fb8272f441b877 (diff)
downloadpkgsrc-2d97f116a7ddfe0954b7c4a7d4654df0b3b17422.tar.gz
Move the steps to create the demime script and man page into a
"do-build" step for clarity.
Diffstat (limited to 'mail/demime')
-rw-r--r--mail/demime/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/mail/demime/Makefile b/mail/demime/Makefile
index 042f82bc4f1..43c046bfa6c 100644
--- a/mail/demime/Makefile
+++ b/mail/demime/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/07/26 20:02:23 jlam Exp $
+# $NetBSD: Makefile,v 1.18 2005/07/26 20:04:24 jlam Exp $
#
DISTNAME= demime-1.1d
@@ -19,7 +19,6 @@ DEPENDS+= p5-HTML-Format-[0-9]*:../../www/p5-HTML-Format
DEPENDS+= p5-HTML-Tree-[0-9]*:../../www/p5-HTML-Tree
DIST_SUBDIR= ${PKGNAME_NOREV}
-NO_BUILD= YES
USE_TOOLS+= perl:run pod2man
USE_PKGINSTALL= YES
@@ -32,15 +31,15 @@ do-extract:
@${MKDIR} ${WRKSRC}
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME:S/-/./} ${WRKSRC}/demime.stable
-post-patch:
+do-build:
${SED} -e 's|/usr/lib/majordomo/demime_junkmail.cf|${PKG_SYSCONFDIR}/demime_junkmail.cf|g' \
-e 's|/usr/bin/perl|${PERL5}|g' \
${WRKSRC}/demime.stable >${WRKSRC}/demime
+ ${POD2MAN} ${WRKSRC}/demime > ${WRKSRC}/demime.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/demime ${PREFIX}/bin/demime
${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 "../../mk/bsd.pkg.mk"