pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/ipa Use SUBST framework instead of FILES_SUBST_SED.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0cecdf6f6a4b
branches:  trunk
changeset: 506566:0cecdf6f6a4b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 19 01:51:48 2006 +0000

description:
Use SUBST framework instead of FILES_SUBST_SED.

diffstat:

 net/ipa/Makefile |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r 4d9fd752592a -r 0cecdf6f6a4b net/ipa/Makefile
--- a/net/ipa/Makefile  Thu Jan 19 01:46:56 2006 +0000
+++ b/net/ipa/Makefile  Thu Jan 19 01:51:48 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2005/12/29 06:21:59 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2006/01/19 01:51:48 joerg Exp $
 #
 
 DISTNAME=      ipa-1.3.6
@@ -39,12 +39,11 @@
 RCD_SCRIPT_SRC.ipa=    ${FILESDIR}/ipa.generic
 .endif
 
-post-patch:
-       @cd ${WRKSRC}/man &&                                    \
-       for f in ipa.5 ipa.8 ipa.conf.5 ipastat.8; do           \
-               ${MV} $${f} $${f}.orig;                         \
-               ${SED} ${FILES_SUBST_SED} $${f}.orig > $${f};   \
-       done
+SUBST_CLASSES+=                paths
+SUBST_FILES.paths=     man/ipa.5 man/ipa.8 man/ipa.conf.5 man/ipastat.8
+SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+=      -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_STAGE.paths=     post-patch
 
 pre-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ipa



Home | Main Index | Thread Index | Old Index