pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/dfdisk Use SUBST framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/a5857de72e75
branches: trunk
changeset: 505727:a5857de72e75
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Jan 06 17:28:20 2006 +0000
description:
Use SUBST framework.
diffstat:
pkgtools/dfdisk/Makefile | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 483c8ab1c34a -r a5857de72e75 pkgtools/dfdisk/Makefile
--- a/pkgtools/dfdisk/Makefile Fri Jan 06 17:24:38 2006 +0000
+++ b/pkgtools/dfdisk/Makefile Fri Jan 06 17:28:20 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2005/12/29 06:22:05 jlam Exp $
+# $NetBSD: Makefile,v 1.8 2006/01/06 17:28:20 joerg Exp $
#
DISTNAME= dfdisk-1.0
@@ -16,8 +16,6 @@
EGDIR= ${PREFIX}/share/examples/dfdisk
CONF_FILES= ${EGDIR}/dfdisk.conf ${PKG_SYSCONFDIR}/dfdisk.conf
-FILES_SUBST+= PKGVERSION=${PKGVERSION:Q}
-
.include "../../mk/bsd.prefs.mk"
.if exists(${ZOULARISBASE}/bin/ftp)
@@ -28,10 +26,19 @@
INSTALLATION_DIRS= bin man/man1
-do-build:
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= dfdisk.sh dfdisk.1 dfdisk.conf
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_SED.paths+= -e 's,@PKGVERSION@,${PKGVERSION},g'
+SUBST_SED.paths+= -e 's,@PKGBASE@,${PKGBASE},g'
+SUBST_SED.paths+= -e 's,@FTP@,${FTP},g'
+SUBST_SED.paths+= -e 's,@SH@,${SH},g'
+SUBST_STAGE.paths= post-patch
+
+post-extract:
.for f in dfdisk.sh dfdisk.1 dfdisk.conf
- @${ECHO} "Generating ${f}..."
- @${SED} ${FILES_SUBST_SED} < ${FILESDIR}/${f} > ${WRKDIR}/${f}
+ ${CP} ${FILESDIR}/${f} ${WRKDIR}/${f}
.endfor
do-install:
Home |
Main Index |
Thread Index |
Old Index