summaryrefslogtreecommitdiff
path: root/comms/fidogate
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-05 21:34:39 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-05 21:34:39 +0000
commitcf73562ffda1023e60136aa0596e869c30e19684 (patch)
treef05197b70688678075c801abd6e2bf0d827bbe44 /comms/fidogate
parent8f60a38025c534e69985d394dd8c50d501fbe51d (diff)
downloadpkgsrc-cf73562ffda1023e60136aa0596e869c30e19684.tar.gz
Use SUBST framework.
Diffstat (limited to 'comms/fidogate')
-rw-r--r--comms/fidogate/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/comms/fidogate/Makefile b/comms/fidogate/Makefile
index 5ad01f03f33..cf5ddd42ff7 100644
--- a/comms/fidogate/Makefile
+++ b/comms/fidogate/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2005/12/29 23:31:35 joerg Exp $
+# $NetBSD: Makefile,v 1.49 2006/01/05 21:34:39 joerg Exp $
#
DISTNAME= fidogate-4.4.10
@@ -24,17 +24,18 @@ RCD_SCRIPTS= fidogate
PKG_USERS= news:news::Network\ News:/var/spool/news:${NOLOGIN}
PKG_GROUPS= news
+NO_CONFIGURE= yes
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= config.make
+SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_STAGE.paths= post-patch
+
post-extract:
@${CP} ${WRKSRC}/examples/orodruin/fidogate.conf \
${WRKSRC}/fidogate.conf.dist
-# This ugliness is because config.make is parsed by both make(1) and
-# subst.pl, which does only simplistic substitution.
-do-configure:
- @${MV} -f ${WRKSRC}/config.make ${WRKSRC}/config.make.orig
- @${SED} ${FILES_SUBST_SED} \
- ${WRKSRC}/config.make.orig > ${WRKSRC}/config.make
-
pre-build:
${RM} -f ${WRKSRC}/doc/fidogate.info*
cd ${WRKSRC}/doc && ${MAKEINFO} --no-split fidogate.texi && \