Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

13
sysutils/tob/DESCR Normal file
View File

@@ -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.

44
sysutils/tob/Makefile Normal file
View File

@@ -0,0 +1,44 @@
# $NetBSD: Makefile,v 1.13 2012/10/23 19:51:27 asau Exp $
DISTNAME= tob-0.25
PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://tinyplanet.ca/projects/tob/
EXTRACT_SUFX= .tgz
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
CONF_FILES+= ${EGDIR}/example.startdir ${PKG_SYSCONFDIR}/tob/volumes/example.startdir
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin ${EGDIR}
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
OWN_DIRS+= ${VARBASE}/tob ${PKG_SYSCONFDIR}/tob/volumes
do-build:
@${DO_NADA}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/tob ${DESTDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/tob.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
${INSTALL_DATA} ${WRKSRC}/tob.rc ${DESTDIR}${EGDIR}/tob.rc
${INSTALL_DATA} ${WRKSRC}/example.exclude ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/example.startdir ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"

7
sysutils/tob/PLIST Normal file
View File

@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:16:15 joerg 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

7
sysutils/tob/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.4 2006/10/19 23:56:13 rillig Exp $
SHA1 (tob-0.25.tgz) = 71a5bb9dac7c2d4aa800392213b11e9616370b80
RMD160 (tob-0.25.tgz) = 31ce5e85a10835909834853f1f95077cd3ad9542
Size (tob-0.25.tgz) = 107423 bytes
SHA1 (patch-aa) = b1c758fbe293a25e22a7f4849fe82ed60277a883
SHA1 (patch-ab) = a4c27f1b93a669f2be0a6f2579e528c583393be8

View File

@@ -0,0 +1,83 @@
$NetBSD: patch-aa,v 1.3 2006/10/19 23:56:13 rillig Exp $
--- tob.orig 2003-06-06 22:05:57.000000000 +0200
+++ tob 2006-10-20 01:48:50.000000000 +0200
@@ -13,8 +13,8 @@
#
# File locations
-TOBLISTS=/var/lib/tob
-TOBHOME=/etc/tob
+TOBLISTS=@VARBASE@/tob
+TOBHOME=@PKG_SYSCONFDIR@/tob
############################################################################
# Global settings, most of which can be overruled in the resource file:
@@ -77,13 +77,17 @@ then
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 @@ POSTCMD=''
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 @@ checkenv ()
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
@@ -583,10 +591,10 @@ full ()
cd $BACKUPDIR
for i in `find ${VOLUMENAME}_* -mtime +$MAXBACKUPAGE -exec echo {} \;`; do
- if [ $i == $UPTO ]; then
+ if [ $i = $UPTO ]; then
SEEN=1
fi
- if [ $SEEN == '0' ]; then
+ if [ $SEEN = '0' ]; then
message "Deleted old backup $i"
$RM -f $i
fi
@@ -652,10 +660,10 @@ differential ()
cd $BACKUPDIR
$RM -f ${VOLUMENAME}_*inc*
for i in `find ${VOLUMENAME}_*diff* -mtime +$MAXBACKUPAGE -exec echo {} \;`; do
- if [ $i == $UPTO ]; then
+ if [ $i = $UPTO ]; then
SEEN=1
fi
- if [ $SEEN == '0' ]; then
+ if [ $SEEN = '0' ]; then
message "Deleting old backup $i"
$RM -f $i
fi

View File

@@ -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
#