summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorhamajima <hamajima@pkgsrc.org>2004-06-23 04:58:21 +0000
committerhamajima <hamajima@pkgsrc.org>2004-06-23 04:58:21 +0000
commit74b65bdf4f82516cb1edcdd01b194b5bce7077d1 (patch)
tree05c3bf3873df643d66ef5b50566f67000797cb42 /net
parent0f5391fa61c8dd5a80a7eda0ec91cbcc5c46d296 (diff)
downloadpkgsrc-74b65bdf4f82516cb1edcdd01b194b5bce7077d1.tar.gz
used SUBST_*.
Diffstat (limited to 'net')
-rw-r--r--net/dtcp/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/net/dtcp/Makefile b/net/dtcp/Makefile
index 3a810dfc9ce..bcae50482c7 100644
--- a/net/dtcp/Makefile
+++ b/net/dtcp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/06/22 16:08:27 hamajima Exp $
+# $NetBSD: Makefile,v 1.3 2004/06/23 04:58:21 hamajima Exp $
#
DISTNAME= dtcp-20030228
@@ -17,11 +17,10 @@ DEPENDS+= qpopper-*:../../mail/qpopper
RCD_SCRIPTS= dtcpc dtcps
CONF_DEPENDS= YES
-post-configure:
- @cd ${WRKSRC} && \
- for f in dtcpauth.8 dtcpc.8 dtcps.8 ; do \
- ${MV} $$f $$f.orig; \
- ${SED} 's|/usr/local|${PREFIX}|g' $$f.orig > $$f; \
- done
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= "Fixing hardcoded paths."
+SUBST_STAGE.paths= post-patch
+SUBST_FILES.paths= dtcpauth.8 dtcpc.8 dtcps.8
+SUBST_SED.paths= 's|/usr/local|${PREFIX}|g'
.include "../../mk/bsd.pkg.mk"