summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authortron <tron>2002-07-11 11:37:52 +0000
committertron <tron>2002-07-11 11:37:52 +0000
commit215e48d987e542746b52199d4718e76e61c02b45 (patch)
treeb299665c9e1fbe91a0552208b3ae9ae9b2bb9ccf /sysutils
parentfcd6173fae91750bccfd60651c5a4c1a2ebf3cd9 (diff)
downloadpkgsrc-215e48d987e542746b52199d4718e76e61c02b45.tar.gz
Import new "cdbkup" package: CD-R(W) backup/restore system
This package was contributed by Mishka in PR pkg/15680.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/cdbkup/DESCR4
-rw-r--r--sysutils/cdbkup/Makefile34
-rw-r--r--sysutils/cdbkup/PLIST17
-rw-r--r--sysutils/cdbkup/distinfo5
-rw-r--r--sysutils/cdbkup/patches/patch-aa12
5 files changed, 72 insertions, 0 deletions
diff --git a/sysutils/cdbkup/DESCR b/sysutils/cdbkup/DESCR
new file mode 100644
index 00000000000..32f124846bc
--- /dev/null
+++ b/sysutils/cdbkup/DESCR
@@ -0,0 +1,4 @@
+cdbkup performs full or incremental backups of local or remote
+filesystems onto CD-R(W)s. Results are stored as tarballs on
+single- or multi-session ISO CDs. It works either interactively
+for multi-CD backups, or non-interactively for single-CD backups.
diff --git a/sysutils/cdbkup/Makefile b/sysutils/cdbkup/Makefile
new file mode 100644
index 00000000000..032b21de81d
--- /dev/null
+++ b/sysutils/cdbkup/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/07/11 11:37:52 tron Exp $
+
+DISTNAME= cdbkup-1.0
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cdbkup/} \
+ ftp://batraq.anything3d.com/pub/cdbkup/cdbkup-1/ \
+ http://mishka.terabyte.com.ua/cdbkup/
+
+MAINTAINER= mishka@terabyte.com.ua
+HOMEPAGE= http://sourceforge.net/projects/cdbkup/
+COMMENT= CD-R(W) backup/restore system
+
+DEPENDS+= cdrecord>=1.10:../../sysutils/cdrecord
+
+GNU_CONFIGURE= YES
+USE_PERL5= YES
+
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == SunOS)
+CDBKUP_SNARDIR?= /var/${PKGBASE}
+CDBKUP_DUMPGRP?= sys
+.else
+CDBKUP_SNARDIR?= /var/db/${PKGBASE}
+CDBKUP_DUMPGRP?= operator
+.endif
+
+CONFIGURE_ARGS+= --with-snardir=${CDBKUP_SNARDIR} \
+ --with-dumpgrp=${CDBKUP_DUMPGRP}
+PLIST_SUBST+= CDBKUP_SNARDIR=${CDBKUP_SNARDIR} \
+ CDBKUP_DUMPGRP=${CDBKUP_DUMPGRP} \
+ INSTALL=${INSTALL} RMDIR=${RMDIR} TRUE=${TRUE}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/cdbkup/PLIST b/sysutils/cdbkup/PLIST
new file mode 100644
index 00000000000..b3eb65bb38d
--- /dev/null
+++ b/sysutils/cdbkup/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/11 11:37:52 tron Exp $
+man/man1/cdappend.1
+man/man1/cdbkup.1
+man/man1/cdcat.1
+man/man1/cdrstr.1
+man/man1/cdsplit.1
+sbin/cdappend
+sbin/cdbkup
+sbin/cdcat
+sbin/cdrstr
+sbin/cdsplit
+share/doc/cdbkup/COMPLIANCE
+share/doc/cdbkup/README
+share/doc/cdbkup/TODO
+@dirrm share/doc/cdbkup
+@exec ${INSTALL} -d -m 750 -o root -g ${CDBKUP_DUMPGRP} ${CDBKUP_SNARDIR}
+@unexec ${RMDIR} ${CDBKUP_SNARDIR} 2>/dev/null || ${TRUE}
diff --git a/sysutils/cdbkup/distinfo b/sysutils/cdbkup/distinfo
new file mode 100644
index 00000000000..e130f8d59dc
--- /dev/null
+++ b/sysutils/cdbkup/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/07/11 11:37:52 tron Exp $
+
+SHA1 (cdbkup-1.0.tar.gz) = 78d02726eaa8e55138639b4b6a0164251a3d0766
+Size (cdbkup-1.0.tar.gz) = 38252 bytes
+SHA1 (patch-aa) = 96084141e52169a1759891d12f77ec6111c4ee78
diff --git a/sysutils/cdbkup/patches/patch-aa b/sysutils/cdbkup/patches/patch-aa
new file mode 100644
index 00000000000..ff345e2228b
--- /dev/null
+++ b/sysutils/cdbkup/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/07/11 11:37:52 tron Exp $
+--- src/cdcat.in Wed Feb 13 01:20:57 2002
++++ src/cdcat.in Tue Feb 19 22:09:50 2002
+@@ -98,7 +98,7 @@
+
+ sub mount {
+ return if( $test);
+- if( system("@MOUNT@ -t iso9660 ".esc_shell($device)." $mntpt") != 0)
++ if( system("@MOUNT@ -t cd9660 ".esc_shell($device)." $mntpt") != 0)
+ {
+ die "Can't mount $device: $!\n";
+ }