diff options
author | dsainty <dsainty> | 2006-09-03 06:27:04 +0000 |
---|---|---|
committer | dsainty <dsainty> | 2006-09-03 06:27:04 +0000 |
commit | ed556ce62c802962a8672647e352a7d6e5705c76 (patch) | |
tree | 05a87c22fa71fbdaa1cfd0901dfdc20c9904e87c /archivers/sarab | |
parent | eb78f0e1d483b4e6720c8ddacaa9671e9468e6da (diff) | |
download | pkgsrc-ed556ce62c802962a8672647e352a7d6e5705c76.tar.gz |
SaraB works with DAR (Disk ARchive) to schedule and rotate hard drive based
backups. SaraB supports the Towers of Hanoi, Grandfather-Father-Son, or any
custom backup rotation strategy.
Diffstat (limited to 'archivers/sarab')
-rw-r--r-- | archivers/sarab/DESCR | 3 | ||||
-rw-r--r-- | archivers/sarab/MESSAGE | 21 | ||||
-rw-r--r-- | archivers/sarab/Makefile | 69 | ||||
-rw-r--r-- | archivers/sarab/PLIST | 20 | ||||
-rw-r--r-- | archivers/sarab/distinfo | 5 |
5 files changed, 118 insertions, 0 deletions
diff --git a/archivers/sarab/DESCR b/archivers/sarab/DESCR new file mode 100644 index 00000000000..7bf623680a3 --- /dev/null +++ b/archivers/sarab/DESCR @@ -0,0 +1,3 @@ +SaraB works with DAR (Disk ARchive) to schedule and rotate hard drive based +backups. SaraB supports the Towers of Hanoi, Grandfather-Father-Son, or any +custom backup rotation strategy. diff --git a/archivers/sarab/MESSAGE b/archivers/sarab/MESSAGE new file mode 100644 index 00000000000..a3287b3b222 --- /dev/null +++ b/archivers/sarab/MESSAGE @@ -0,0 +1,21 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2006/09/03 06:27:04 dsainty Exp $ + +You should customise both the ${PKG_SYSCONFDIR}/sarab.dcf and +${PKG_SYSCONFDIR}/sarab.conf configuration files to select the backup +location. Default is "/mnt/backup/". + +You should customise ${PKG_SYSCONFDIR}/rotation.schedule based on your backup +requirements. Some example rotation files can be found under +${PREFIX}/share/examples/sarab. + +SaraB backups are usually scheduled and executed by cron. SaraB must be run +as root, and is generally run with no parameters. + +E.g. + +crontab -u root -l +# Daily backups at 3:13 AM +3 13 * * * ${PREFIX}/bin/sarab + +=========================================================================== diff --git a/archivers/sarab/Makefile b/archivers/sarab/Makefile new file mode 100644 index 00000000000..cecdeeb2207 --- /dev/null +++ b/archivers/sarab/Makefile @@ -0,0 +1,69 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/09/03 06:27:04 dsainty Exp $ + +DISTNAME= sarab-0.2.2 +CATEGORIES= archivers +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sarab/} + +MAINTAINER= dsainty@NetBSD.org +HOMEPAGE= http://sarab.sourceforge.net/ +COMMENT= Schedule And Rotate Automatic Backups +#LICENSE= GPL + +DEPENDS+= dar-[0-9]*:../../archivers/dar +WRKSRC= ${WRKDIR}/sarab + +USE_TOOLS+= bash:run +PKG_SYSCONFSUBDIR= sarab + +REPLACE_INTERPRETER+= bash +REPLACE.bash.old= /bin/bash +REPLACE.bash.new= ${TOOLS_PATH.bash} +REPLACE_FILES.bash= sarab.sh + +EGDIR= ${PREFIX}/share/examples/sarab +CONF_FILES+= ${EGDIR}/rotation.schedule ${PKG_SYSCONFDIR}/rotation.schedule +CONF_FILES+= ${EGDIR}/sarab.conf ${PKG_SYSCONFDIR}/sarab.conf +CONF_FILES+= ${EGDIR}/sarab.dcf ${PKG_SYSCONFDIR}/sarab.dcf + +SUBST_CLASSES+= dar +SUBST_STAGE.dar= post-patch +SUBST_MESSAGE.dar= Fix path to DAR utilities +SUBST_FILES.dar= etc/sarab.conf +SUBST_SED.dar= -e "s|/usr/local/bin/dar|${PREFIX}/bin/dar|" + +# archivers/dar disables building "dar_static" +SUBST_CLASSES+= nocopy +SUBST_STAGE.nocopy= post-patch +SUBST_MESSAGE.nocopy= Do not copy dar_static +SUBST_FILES.nocopy= etc/sarab.conf +SUBST_SED.nocopy= -e "s|COPY_DAR=\"yes\"|COPY_DAR=\"no\"|" + +SUBST_CLASSES+= conf +SUBST_STAGE.conf= post-patch +SUBST_MESSAGE.conf= Fix path to SaraB configuration files +SUBST_FILES.conf= sarab.sh etc/sarab.conf +SUBST_SED.conf= -e "s|/etc/sarab|${PKG_SYSCONFDIR}|" + +# NetBSD has /kern, and does not have /sys. Other platforms might +# differ. +SUBST_CLASSES+= prune +SUBST_STAGE.prune= post-patch +SUBST_MESSAGE.prune= Prune /kern instead of /sys +SUBST_FILES.prune= etc/sarab.dcf +SUBST_SED.prune= -e "s|--prune sys|--prune kern|" + +do-build: # do nothing + +do-install: + ${INSTALL_DATA_DIR} ${EGDIR} + for example in \ + ${WRKSRC}/etc/rotation.schedule.README \ + ${WRKSRC}/etc/rotation.schedule \ + ${WRKSRC}/etc/sarab.conf \ + ${WRKSRC}/etc/sarab.dcf \ + ${WRKSRC}/etc/examples/*; do \ + ${INSTALL_DATA} $${example} ${EGDIR}/; \ + done + ${INSTALL_SCRIPT} ${WRKSRC}/sarab.sh ${PREFIX}/bin/sarab + +.include "../../mk/bsd.pkg.mk" diff --git a/archivers/sarab/PLIST b/archivers/sarab/PLIST new file mode 100644 index 00000000000..c74ef5e6efe --- /dev/null +++ b/archivers/sarab/PLIST @@ -0,0 +1,20 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/09/03 06:27:04 dsainty Exp $ +bin/sarab +share/examples/sarab/9-tape_25-day +share/examples/sarab/generate_toh.sh +share/examples/sarab/gfs-differential +share/examples/sarab/gfs-full +share/examples/sarab/gfs-incremental +share/examples/sarab/rotation.schedule +share/examples/sarab/rotation.schedule.README +share/examples/sarab/sarab.conf +share/examples/sarab/sarab.dcf +share/examples/sarab/toh-3-tapes +share/examples/sarab/toh-4-tapes +share/examples/sarab/toh-5-tapes +share/examples/sarab/toh-6-tapes +share/examples/sarab/toh-7-tapes +share/examples/sarab/toh-8-tapes +share/examples/sarab/toh-9-tapes +@dirrm share/examples/sarab +@dirrm etc/sarab diff --git a/archivers/sarab/distinfo b/archivers/sarab/distinfo new file mode 100644 index 00000000000..9ab46a91ed8 --- /dev/null +++ b/archivers/sarab/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/09/03 06:27:04 dsainty Exp $ + +SHA1 (sarab-0.2.2.tar.gz) = 6119869e996305fb80d37f58bb2c6bf5e73cde27 +RMD160 (sarab-0.2.2.tar.gz) = b32a4f73ff98b57f3e486f728889d903809389ea +Size (sarab-0.2.2.tar.gz) = 22428 bytes |