Use SUBST framework.

This commit is contained in:
joerg 2006-01-05 21:34:39 +00:00
parent 8f60a38025
commit cf73562ffd

View file

@ -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 && \