summaryrefslogtreecommitdiff
path: root/www/tinyproxy
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-05 21:57:36 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-05 21:57:36 +0000
commit905df754320aad40e79dae94b1b67185483496ab (patch)
tree543f232d317c9679d7905a2e44d4f6ee59b0856e /www/tinyproxy
parentcf73562ffda1023e60136aa0596e869c30e19684 (diff)
downloadpkgsrc-905df754320aad40e79dae94b1b67185483496ab.tar.gz
Use SUBST framework.
Diffstat (limited to 'www/tinyproxy')
-rw-r--r--www/tinyproxy/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/www/tinyproxy/Makefile b/www/tinyproxy/Makefile
index 5989fa32574..c8bf107478f 100644
--- a/www/tinyproxy/Makefile
+++ b/www/tinyproxy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/12/29 06:22:24 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2006/01/05 21:57:36 joerg Exp $
#
DISTNAME= tinyproxy-1.6.2
@@ -34,12 +34,12 @@ EGDIR= ${PREFIX}/share/examples/tinyproxy
CONF_FILES= ${EGDIR}/tinyproxy.conf.default ${PKG_SYSCONFDIR}/tinyproxy.conf
-post-patch:
- @cd ${WRKSRC}/doc && \
- for f in tinyproxy.8 tinyproxy.conf; do \
- ${MV} $${f} $${f}.orig; \
- ${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \
- done
+SUBST_CLASSES+= docs
+SUBST_FILES.docs= doc/tinyproxy.8 doc/tinyproxy.conf
+SUBST_SED.docs+= -e 's,@TINYPROXY_USER@,${TINYPROXY_USER},g'
+SUBST_SED.docs+= -e 's,@TINYPROXY_GROUP@,${TINYPROXY_GROUP},g'
+SUBST_SED.docs+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_STAGE.docs= post-patch
post-install:
${INSTALL_DATA_DIR} ${EGDIR}