diff options
author | rillig <rillig@pkgsrc.org> | 2006-04-13 00:11:47 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-04-13 00:11:47 +0000 |
commit | 3cdf5666c8c30421e53e2b21099efd8bce5f778a (patch) | |
tree | 5642253aea5b1d0880b5851074d95ee00c7172e5 /sysutils/tob | |
parent | 77b1da41b5576c7879d3c8c3a74ab666d1ef896c (diff) | |
download | pkgsrc-3cdf5666c8c30421e53e2b21099efd8bce5f778a.tar.gz |
Replaced mv(1) and sed(1) with the SUBST framework.
Diffstat (limited to 'sysutils/tob')
-rw-r--r-- | sysutils/tob/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sysutils/tob/Makefile b/sysutils/tob/Makefile index 9ffbab97056..3ed9a79a3f3 100644 --- a/sysutils/tob/Makefile +++ b/sysutils/tob/Makefile @@ -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 @@ MAINTAINER= pkgsrc-users@NetBSD.org 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.old= /bin/bash 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 |