summaryrefslogtreecommitdiff
path: root/sysutils/tob
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/tob')
-rw-r--r--sysutils/tob/DESCR13
-rw-r--r--sysutils/tob/Makefile37
-rw-r--r--sysutils/tob/PLIST8
-rw-r--r--sysutils/tob/distinfo6
-rw-r--r--sysutils/tob/patches/patch-aa63
-rw-r--r--sysutils/tob/patches/patch-ab13
6 files changed, 140 insertions, 0 deletions
diff --git a/sysutils/tob/DESCR b/sysutils/tob/DESCR
new file mode 100644
index 00000000000..fa389bba530
--- /dev/null
+++ b/sysutils/tob/DESCR
@@ -0,0 +1,13 @@
+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.
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"
diff --git a/sysutils/tob/PLIST b/sysutils/tob/PLIST
new file mode 100644
index 00000000000..3b8358503bf
--- /dev/null
+++ b/sysutils/tob/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/27 12:01:12 agc Exp $
+man/man8/tob.8
+sbin/tob
+share/examples/tob/example.exclude
+share/examples/tob/example.startdir
+share/examples/tob/tob.rc
+@unexec ${RMDIR} /var/tob
+@dirrm share/examples/tob
diff --git a/sysutils/tob/distinfo b/sysutils/tob/distinfo
new file mode 100644
index 00000000000..db07a250c03
--- /dev/null
+++ b/sysutils/tob/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/27 12:01:12 agc Exp $
+
+SHA1 (tob-0.25.tgz) = 71a5bb9dac7c2d4aa800392213b11e9616370b80
+Size (tob-0.25.tgz) = 107423 bytes
+SHA1 (patch-aa) = b83fdd64a257005146bc577554a416f56c072948
+SHA1 (patch-ab) = a4c27f1b93a669f2be0a6f2579e528c583393be8
diff --git a/sysutils/tob/patches/patch-aa b/sysutils/tob/patches/patch-aa
new file mode 100644
index 00000000000..dcdc1f67274
--- /dev/null
+++ b/sysutils/tob/patches/patch-aa
@@ -0,0 +1,63 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/27 12:01:12 agc Exp $
+
+--- tob 2003/06/27 11:08:36 1.1
++++ tob 2003/06/27 11:13:55
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#! /bin/sh
+ #
+ # tob --- Tape Oriented Backup
+ #
+@@ -13,8 +13,8 @@
+ #
+
+ # File locations
+-TOBLISTS=/var/lib/tob
+-TOBHOME=/etc/tob
++TOBLISTS=/var/tob
++TOBHOME=@PKG_SYSCONFDIR@/tob
+
+ ############################################################################
+ # Global settings, most of which can be overruled in the resource file:
+@@ -77,13 +77,17 @@
+ fi
+ elif [ -x /usr/bin/mktemp ]
+ then
+- TMPLIST=`mktemp -p tob`
++ case `uname -s` in
++ NetBSD) prefarg="-t" ;;
++ *) prefarg="-p" ;;
++ esac
++ TMPLIST=`mktemp $prefarg tob`
+ rc1=$?
+- FILELIST=`mktemp -p tob`
++ FILELIST=`mktemp $prefarg tob`
+ rc2=$?
+- TMPLIST1=`mktemp -p tob`
++ TMPLIST1=`mktemp $prefarg tob`
+ rc3=$?
+- TMPLIST2=`mktemp -p tob`
++ TMPLIST2=`mktemp $prefarg tob`
+ rc4=$?
+ if [ $rc1 -ne 0 -o $rc2 -ne 0 -o $rc3 -ne 0 -o $rc4 -ne 0 ]
+ then
+@@ -131,7 +135,7 @@
+ VER=0.25
+
+ # RCLIST: list of resource files which tob will search for
+-RCLIST='/usr/local/etc/tob.rc /etc/tob/tob.rc /etc/tob.rc /usr/etc/tob.rc'
++RCLIST='@PKG_SYSCONFDIR@/tob/tob.rc /usr/local/etc/tob.rc /etc/tob/tob.rc /etc/tob.rc /usr/etc/tob.rc'
+
+ ############################################################################
+ # show a message to the screen
+@@ -189,6 +193,10 @@
+ if [ "$EXT" = "" ] ; then
+ error "variable EXT is undefined"
+ fi
++
++ case "$UID" in
++ "") UID=`id -u` ;;
++ esac
+
+ if [ "$NEEDROOT" = "yes" ] ; then
+ if [ $UID -ne 0 ]; then
diff --git a/sysutils/tob/patches/patch-ab b/sysutils/tob/patches/patch-ab
new file mode 100644
index 00000000000..d85ba99d40e
--- /dev/null
+++ b/sysutils/tob/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/06/27 12:01:12 agc Exp $
+
+--- tob.rc 2003/06/27 11:42:50 1.1
++++ tob.rc 2003/06/27 11:43:41
+@@ -13,7 +13,7 @@
+ # Copyright 1996-1999 Dirk Eddelbuettel <edd@debian.org>
+
+ # Debian stores tob configuration in and below this directory
+-TOBHOME="/etc/tob"
++TOBHOME="@PKG_SYSCONFDIR@/tob"
+
+ # Examples for possible backup devices selected via BACKUPDEV
+ #