pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/fidogate Use SUBST framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/82bf9bf1579d
branches:  trunk
changeset: 505648:82bf9bf1579d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 05 21:34:39 2006 +0000

description:
Use SUBST framework.

diffstat:

 comms/fidogate/Makefile |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (35 lines):

diff -r 35d3a0885150 -r 82bf9bf1579d comms/fidogate/Makefile
--- a/comms/fidogate/Makefile   Thu Jan 05 21:21:54 2006 +0000
+++ b/comms/fidogate/Makefile   Thu Jan 05 21:34:39 2006 +0000
@@ -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 @@
 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 && \



Home | Main Index | Thread Index | Old Index