pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/tob Replaced mv(1) and sed(1) with the SUBST ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5af6c3acd575
branches: trunk
changeset: 511331:5af6c3acd575
user: rillig <rillig%pkgsrc.org@localhost>
date: Thu Apr 13 00:11:47 2006 +0000
description:
Replaced mv(1) and sed(1) with the SUBST framework.
diffstat:
sysutils/tob/Makefile | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (37 lines):
diff -r 63b027da823c -r 5af6c3acd575 sysutils/tob/Makefile
--- a/sysutils/tob/Makefile Wed Apr 12 23:58:39 2006 +0000
+++ b/sysutils/tob/Makefile Thu Apr 13 00:11:47 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2006/03/11 10:07:50 ghen Exp $
+# $NetBSD: Makefile,v 1.10 2006/04/13 00:11:47 rillig Exp $
DISTNAME= tob-0.25
CATEGORIES= sysutils
@@ -9,7 +9,6 @@
HOMEPAGE= http://tinyplanet.ca/projects/tob/
COMMENT= General driver for making and maintaining backups
-
EGDIR= ${PREFIX}/share/examples/tob
CONF_FILES= ${EGDIR}/tob.rc ${PKG_SYSCONFDIR}/tob/tob.rc
CONF_FILES+= ${EGDIR}/example.exclude ${PKG_SYSCONFDIR}/tob/volumes/example.exclude
@@ -22,12 +21,14 @@
REPLACE.bash.new= ${SH}
REPLACE_FILES.bash= tob
+SUBST_CLASSES+= confdir
+SUBST_STAGE.confdir= do-build
+SUBST_MESSAGE.confdir= Adjusting configuration directory
+SUBST_FILES.confdir= tob tob.rc
+SUBST_SED.confdir= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
+
do-build:
- for f in tob tob.rc; do \
- ${MV} ${WRKSRC}/$$f ${WRKSRC}/$$f-pre && \
- ${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
- ${WRKSRC}/$$f-pre > ${WRKSRC}/$$f; \
- done
+ @${DO_NADA}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/tob ${PREFIX}/sbin
Home |
Main Index |
Thread Index |
Old Index