summaryrefslogtreecommitdiff
path: root/sysutils/tob/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/tob/Makefile')
-rw-r--r--sysutils/tob/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/sysutils/tob/Makefile b/sysutils/tob/Makefile
index 3ed9a79a3f3..54e093ebf6e 100644
--- a/sysutils/tob/Makefile
+++ b/sysutils/tob/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2006/04/13 00:11:47 rillig Exp $
+# $NetBSD: Makefile,v 1.11 2006/10/19 23:56:13 rillig Exp $
DISTNAME= tob-0.25
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://tinyplanet.ca/projects/tob/
EXTRACT_SUFX= .tgz
@@ -14,29 +15,29 @@ CONF_FILES= ${EGDIR}/tob.rc ${PKG_SYSCONFDIR}/tob/tob.rc
CONF_FILES+= ${EGDIR}/example.exclude ${PKG_SYSCONFDIR}/tob/volumes/example.exclude
CONF_FILES+= ${EGDIR}/example.startdir ${PKG_SYSCONFDIR}/tob/volumes/example.startdir
-INSTALLATION_DIRS= man/man8 sbin
+INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin ${EGDIR}
-REPLACE_INTERPRETER+= bash
-REPLACE.bash.old= /bin/bash
-REPLACE.bash.new= ${SH}
-REPLACE_FILES.bash= tob
+REPLACE_SH+= tob
+USE_TOOLS+= sh:run
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'
+SUBST_SED.confdir+= -e 's|@VARBASE@|${VARBASE}|g'
+
+BUILD_DEFS+= VARBASE
do-build:
@${DO_NADA}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/tob ${PREFIX}/sbin
- ${INSTALL_MAN} ${WRKSRC}/tob.8 ${PREFIX}/man/man8/
+ ${INSTALL_MAN} ${WRKSRC}/tob.8 ${PREFIX}/${PKGMANDIR}/man8/
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/tob
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/tob/volumes
- ${INSTALL_DATA_DIR} /var/tob
- ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA_DIR} ${VARBASE}/tob
${INSTALL_DATA} ${WRKSRC}/tob.rc ${EGDIR}/tob.rc
${INSTALL_DATA} ${WRKSRC}/example.exclude ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/example.startdir ${EGDIR}