summaryrefslogtreecommitdiff
path: root/sysutils/tob/Makefile
diff options
context:
space:
mode:
authoragc <agc>2003-06-27 12:01:12 +0000
committeragc <agc>2003-06-27 12:01:12 +0000
commit6ab13948e25c46132634e0250779a3cf4195232a (patch)
treea3cc373e6485aa15ed2f02c93d55cefd78653f6c /sysutils/tob/Makefile
parentd1e1d24cecd3158c581106eee586db1e0a289f86 (diff)
downloadpkgsrc-6ab13948e25c46132634e0250779a3cf4195232a.tar.gz
Initial import of tob-0.25 into the NetBSD Packages Collection.
This has been placed in sysutils rather than archivers since it doesn't conform to the other archivers packages. The nudge came from a netbsd-help posting by Thomas Hafner and a URL posted by Jeremy Reed. tob is a general driver for making and maintaining backups. Given a set of `volume definitions', it creates arj, tar or afio based backups, and stores them either to a device in /dev, or a file in the filesystem, to be burned to optical media later, moved off to other machines, etc. Through a straightforward configuration file, you can instruct tob to mount and unmount devices before beginning backups. tob supports full backups, differential backups (of the files which were changed since the last full backup), and incremental backups (of files changed since any previous backups). It lets you determine the size of the backup before actually making it, maintain listings of made backups, make remote backups and possibly more.
Diffstat (limited to 'sysutils/tob/Makefile')
-rw-r--r--sysutils/tob/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/sysutils/tob/Makefile b/sysutils/tob/Makefile
new file mode 100644
index 00000000000..fae40ef6058
--- /dev/null
+++ b/sysutils/tob/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/27 12:01:12 agc Exp $
+
+DISTNAME= tob-0.25
+CATEGORIES= sysutils
+MASTER_SITES= http://tinyplanet.ca/projects/tob/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tech-pkg@netbsd.org
+HOMEPAGE= http://tinyplanet.ca/projects/tob/
+COMMENT= general driver for making and maintaining backups
+
+USE_PKGINSTALL= yes
+
+EGDIR= ${PREFIX}/share/examples/tob
+CONF_FILES= ${EGDIR}/tob.rc ${PKG_SYSCONFDIR}/tob/tob.rc
+SUPPORT_FILES= ${EGDIR}/example.exclude ${PKG_SYSCONFDIR}/tob/volumes/example.exclude
+SUPPORT_FILES+= ${EGDIR}/example.startdir ${PKG_SYSCONFDIR}/tob/volumes/example.startdir
+
+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-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/tob ${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/tob.8 ${PREFIX}/man/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} ${WRKSRC}/tob.rc ${EGDIR}/tob.rc
+ ${INSTALL_DATA} ${WRKSRC}/example.exclude ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/example.startdir ${EGDIR}
+
+.include "../../mk/bsd.pkg.mk"