summaryrefslogtreecommitdiff
path: root/sysutils/amanda
diff options
context:
space:
mode:
authorhubertf <hubertf>1997-10-11 21:53:59 +0000
committerhubertf <hubertf>1997-10-11 21:53:59 +0000
commitf5ee8e2561694e498edddcfba4a7f15ea35e3c17 (patch)
treecd1e0be6347cb17aeb9201b0ecc45b0286c98b53 /sysutils/amanda
parentef17a602de1210761f4ecdc6eea0e872eae46423 (diff)
downloadpkgsrc-f5ee8e2561694e498edddcfba4a7f15ea35e3c17.tar.gz
Import as of 09/25/97
Diffstat (limited to 'sysutils/amanda')
-rw-r--r--sysutils/amanda/Makefile26
-rw-r--r--sysutils/amanda/files/md51
-rw-r--r--sysutils/amanda/patches/patch-aa19
-rw-r--r--sysutils/amanda/patches/patch-ab76
-rw-r--r--sysutils/amanda/patches/patch-ac75
-rw-r--r--sysutils/amanda/pkg/COMMENT1
-rw-r--r--sysutils/amanda/pkg/DESCR68
-rw-r--r--sysutils/amanda/pkg/PLIST31
-rw-r--r--sysutils/amanda/scripts/configure8
9 files changed, 305 insertions, 0 deletions
diff --git a/sysutils/amanda/Makefile b/sysutils/amanda/Makefile
new file mode 100644
index 00000000000..37f86e3f12b
--- /dev/null
+++ b/sysutils/amanda/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: amanda
+# Version required: 2.3.0
+# Date created: 28th Feb 1995
+# Whom: gpalmer
+#
+# $Id: Makefile,v 1.1.1.1 1997/10/11 21:53:59 hubertf Exp $
+#
+
+DISTNAME= amanda-2.3.0
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.cs.umd.edu/pub/amanda/
+
+MAINTAINER= gpalmer@FreeBSD.ORG
+
+PATCH_STRIP=
+MAN8= amanda.8 amadmin.8 amcheck.8 amcleanup.8 amdump.8 \
+ amflush.8 amlabel.8 amrestore.8 amtape.8
+
+pre-configure:
+ echo "${CFLAGS}" > /tmp/build-ports-misc-amanda-cflags
+
+post-install:
+ mkdir -p ${PREFIX}/share/examples/amanda
+ cp -R ${WRKSRC}/example/* ${PREFIX}/share/examples/amanda
+
+.include <bsd.port.mk>
diff --git a/sysutils/amanda/files/md5 b/sysutils/amanda/files/md5
new file mode 100644
index 00000000000..5f4ae2326bf
--- /dev/null
+++ b/sysutils/amanda/files/md5
@@ -0,0 +1 @@
+MD5 (amanda-2.3.0.tar.gz) = fabe173c0b507633d8b7eb081acd8174
diff --git a/sysutils/amanda/patches/patch-aa b/sysutils/amanda/patches/patch-aa
new file mode 100644
index 00000000000..5de256cd752
--- /dev/null
+++ b/sysutils/amanda/patches/patch-aa
@@ -0,0 +1,19 @@
+*** tools/munge.orig Tue Feb 28 23:43:46 1995
+--- tools/munge Tue Feb 28 23:44:12 1995
+***************
+*** 35,41 ****
+ # Customize CPP to point to your system's C preprocessor.
+
+ # if cpp is on your path:
+! CPP=cpp
+
+ # if cpp is not on your path, try one of these:
+ # CPP=/lib/cpp # traditional
+--- 35,41 ----
+ # Customize CPP to point to your system's C preprocessor.
+
+ # if cpp is on your path:
+! CPP=/usr/bin/cpp
+
+ # if cpp is not on your path, try one of these:
+ # CPP=/lib/cpp # traditional
diff --git a/sysutils/amanda/patches/patch-ab b/sysutils/amanda/patches/patch-ab
new file mode 100644
index 00000000000..4421a52df5f
--- /dev/null
+++ b/sysutils/amanda/patches/patch-ab
@@ -0,0 +1,76 @@
+--- man/amanda.8~ Sun May 19 22:11:25 1996
++++ man/amanda.8 Fri Mar 7 22:24:28 1997
+@@ -135,19 +135,19 @@
+
+ All the files are stored in a
+ .I config
+-directory under /etc/amanda. Often a single site will have more than
++directory under /usr/local/etc/amanda. Often a single site will have more than
+ one configuration; these configurations are named by the directories
+ that their config files are in. For example, a site might have a
+ .I normal
+ configuration for every-day backups, and a
+ .I archive
+ configuration for 6-month full archival backups. The config files for
+-these two would be stored under /etc/amanda/normal and
+-/etc/amanda/archive, respectively.
++these two would be stored under /usr/local/etc/amanda/normal and
++/usr/local/etc/amanda/archive, respectively.
+
+ All log and database files generated by Amanda go in corresponding
+-directories under /usr/adm/amanda. In our example, the logs would go
+-in /usr/adm/amanda/normal and /usr/adm/amanda/archive.
++directories under /var/lov/amanda. In our example, the logs would go
++in /var/log/amanda/normal and /var/log/amanda/archive.
+
+ .SH CONFIG FILE PARAMETERS
+
+--- man/amcleanup.8~ Sun May 19 22:11:25 1996
++++ man/amcleanup.8 Fri Mar 7 22:23:07 1997
+@@ -31,13 +31,13 @@
+
+ .PP
+ .nf
+-if [ -s /usr/adm/amanda/csd/amanda.log ]
++if [ -s /var/log/amanda/csd/amanda.log ]
+ then
+ /usr/local/sbin/amcleanup csd
+ fi
+ .fi
+ .RS .5i
+-Putting the above in /etc/rc.local runs the Amanda
++Putting the above in /usr/local/etc/rc.local runs the Amanda
+ cleanup process when needed as part of the reboot, eliminating the need
+ to run it by hand.
+ .RE
+--- man/amflush.8~ Sun May 19 22:11:25 1996
++++ man/amflush.8 Fri Mar 7 22:22:28 1997
+@@ -22,7 +22,7 @@
+ .B Amflush
+ will look in the holding disk specified by the
+ .I amanda.conf
+-file in /etc/amanda/\fIconfig\fR
++file in /usr/local/etc/amanda/\fIconfig\fR
+ for any non-empty Amanda work directories. It then prompts the
+ operator to select the correct directory. The work directories on the
+ holding disk are named by the date at the time
+--- man/amlabel.8~ Sun May 19 22:11:25 1996
++++ man/amlabel.8 Fri Mar 7 22:22:22 1997
+@@ -11,7 +11,7 @@
+ .B Amlabel
+ writes an Amanda label on the tape in the tape drive specified by the
+ .I amanda.conf
+-file in /etc/amanda/\fIconfig\fR. The
++file in /usr/local/etc/amanda/\fIconfig\fR. The
+ .I label
+ can be any string that does not contain whitespace, and that matches the
+ .I amanda.conf
+@@ -26,7 +26,7 @@
+ .TP
+ % amlabel csd VOL1
+ If the line "tapedev /dev/tape/1n" is in
+-/etc/amanda/csd/amanda.conf, an Amanda label with the name "VOL1" is
++/usr/local/etc/amanda/csd/amanda.conf, an Amanda label with the name "VOL1" is
+ written on the /dev/tape/1n device.
+
+ .SH AUTHOR
diff --git a/sysutils/amanda/patches/patch-ac b/sysutils/amanda/patches/patch-ac
new file mode 100644
index 00000000000..09b7a827efa
--- /dev/null
+++ b/sysutils/amanda/patches/patch-ac
@@ -0,0 +1,75 @@
+*** config/options.h-vanilla Fri Feb 10 11:21:59 1995
+--- config/options.h Tue Feb 28 16:34:30 1995
+***************
+*** 42,51 ****
+ * LIBEXEC_DIR - Internal support programs
+ * MAN_DIR - Man pages
+ */
+! #define CONFIG_DIR "/etc/amanda"
+ #define LIBEXEC_DIR "/usr/local/libexec/amanda"
+ #define BIN_DIR "/usr/local/sbin"
+! #define MAN_DIR "/usr/share/local/man/man8"
+
+
+ /*
+--- 42,51 ----
+ * LIBEXEC_DIR - Internal support programs
+ * MAN_DIR - Man pages
+ */
+! #define CONFIG_DIR "/usr/local/etc/amanda"
+ #define LIBEXEC_DIR "/usr/local/libexec/amanda"
+ #define BIN_DIR "/usr/local/sbin"
+! #define MAN_DIR "/usr/local/man/man8"
+
+
+ /*
+***************
+*** 77,83 ****
+ * Since 2.2.1 is a major change, I recommend defining this for existing
+ * Amanda sites.
+ */
+! #define USE_VERSION_SUFFIXES
+
+
+ /*
+--- 77,83 ----
+ * Since 2.2.1 is a major change, I recommend defining this for existing
+ * Amanda sites.
+ */
+! /*#define USE_VERSION_SUFFIXES*/
+
+
+ /*
+***************
+*** 182,196 ****
+ #define HAVE_GZIP
+
+ #ifdef HAVE_GZIP
+! # define COMPRESS_PATH "/usr/imports/bin/gzip"
+ # define COMPRESS_SUFFIX ".gz"
+ # define COMPRESS_FAST_OPT "--fast"
+ # define COMPRESS_BEST_OPT "--best"
+! # define UNCOMPRESS_CMD "gzcat"
+ #else
+ # define COMPRESS_PATH COMPRESS /* defined in config.h */
+ # define COMPRESS_SUFFIX ".Z"
+ # define COMPRESS_FAST_OPT "-f" /* -f doesn't do anything */
+ # define COMPRESS_BEST_OPT "-f" /* it's just a placeholder */
+! # define UNCOMPRESS_CMD "zcat"
+ #endif
+--- 182,196 ----
+ #define HAVE_GZIP
+
+ #ifdef HAVE_GZIP
+! # define COMPRESS_PATH "/usr/bin/gzip"
+ # define COMPRESS_SUFFIX ".gz"
+ # define COMPRESS_FAST_OPT "--fast"
+ # define COMPRESS_BEST_OPT "--best"
+! # define UNCOMPRESS_CMD "/usr/bin/gzcat"
+ #else
+ # define COMPRESS_PATH COMPRESS /* defined in config.h */
+ # define COMPRESS_SUFFIX ".Z"
+ # define COMPRESS_FAST_OPT "-f" /* -f doesn't do anything */
+ # define COMPRESS_BEST_OPT "-f" /* it's just a placeholder */
+! # define UNCOMPRESS_CMD "/usr/bin/zcat"
+ #endif
diff --git a/sysutils/amanda/pkg/COMMENT b/sysutils/amanda/pkg/COMMENT
new file mode 100644
index 00000000000..87b97277da1
--- /dev/null
+++ b/sysutils/amanda/pkg/COMMENT
@@ -0,0 +1 @@
+The Advanced Maryland Automatic Network Disk Archiver
diff --git a/sysutils/amanda/pkg/DESCR b/sysutils/amanda/pkg/DESCR
new file mode 100644
index 00000000000..d22b3394fd2
--- /dev/null
+++ b/sysutils/amanda/pkg/DESCR
@@ -0,0 +1,68 @@
+WHAT IS AMANDA?
+---------------
+
+This is an alpha-test release of Amanda, the Advanced Maryland Automatic
+Network Disk Archiver. Amanda is a backup system designed to archive many
+computers on a network to a single large-capacity tape drive. This release
+is currently in daily use at the University of Maryland at College Park
+Computer Science Department, backing up all the disks on all the
+workstations in the department: currently over 70 gigabytes of data across
+more than 400 filesystems on more than 146 workstations and servers, using
+a single 5 Gigabyte Exabyte EXB-8500. Here are some features of Amanda:
+
+ * written in C, freely distributable.
+ * built on top of standard backup software: BSD Unix dump/restore, and
+ later GNU Tar and others.
+ * will back up multiple machines in parallel to a holding disk, blasting
+ finished dumps one by one to tape as fast as we can write files to
+ tape. For example, a ~2 Gb 8mm tape on a ~240K/s interface to a host
+ with a large holding disk can be filled by Amanda in under 4 hours.
+ * does simple tape management: will not overwrite the wrong tape.
+ * supports tape changers via a generic interface. Easily customizable to
+ any type of tape carousel, robot, or stacker that can be controlled via
+ the unix command line.
+ * supports Kerberos 4 security, including encrypted dumps. The Kerberos
+ support is available as a separate add-on package, see the file
+ KERBEROS.HOW-TO-GET on the ftp site, and the file docs/KERBEROS in this
+ package, for more details.
+ * for a restore, tells you what tapes you need, and finds the proper
+ backup image on the tape for you.
+ * recovers gracefully from errors, including down or hung machines.
+ * reports results, including all errors in detail, in email to operators.
+ * will dynamically adjust backup schedule to keep within constraints: no
+ more juggling by hand when adding disks and computers to network.
+ * includes a pre-run checker program, that conducts sanity checks on both
+ the tape server host and all the client hosts (in parallel), and will
+ send an e-mail report of any problems that could cause the backups to
+ fail.
+ * can compress dumps before sending over net, with either compress or gzip.
+ * can optionally syncronize with external backups, for those large
+ timesharing computers where you want to do fu--------------------------------------------
+
+Amanda requires a host that is mostly idle at night, with a large capacity
+tape drive (e.g. an EXABYTE or DAT tape). This becomes the "tape server
+host". All the computers you are going to dump are the "backup client
+hosts". The server host can also be a client host.
+
+Amanda works best with one or more large "holding disk" partition on the
+server host available to it for buffering dumps before writing to tape.
+The holding disk allows Amanda to run backups in parallel to the disk, only
+writing them to tape when the backup is finished. Note that the holding
+disk is not required: without it Amanda will run backups sequentially to
+the tape drive. Running it this way kills the great performance, but still
+allows you to take advantage of Amanda's other features.
+
+As a rule of thumb, for best performance the holding disk should be larger
+than the dump output from your largest disk partitions. For example, if
+you are backing up some full gigabyte disks that compress down to 500 MB,
+then you'll want 500 MB on your holding disk. On the other hand, if those
+gigabyte drives are partitioned into 500 MB filesystems, they'll probably
+compress down to 250 MB and you'll only need that much on your holding
+disk. Amanda will perform better with larger holding disks. We use 800 MB
+for our holding disk.
+
+Actually, Amanda will still work if you have full dumps that are larger
+than the holding disk: Amanda will send those dumps directly to tape one at
+a time. If you have many such dumps you will be limited by the dump speed
+of those machines.
+
diff --git a/sysutils/amanda/pkg/PLIST b/sysutils/amanda/pkg/PLIST
new file mode 100644
index 00000000000..8eb96afc145
--- /dev/null
+++ b/sysutils/amanda/pkg/PLIST
@@ -0,0 +1,31 @@
+libexec/amanda/amandad
+libexec/amanda/sendsize
+libexec/amanda/calcsize
+libexec/amanda/sendbackup-dump
+libexec/amanda/sendbackup-gnutar
+libexec/amanda/runtar
+libexec/amanda/selfcheck
+libexec/amanda/taper
+libexec/amanda/dumper
+libexec/amanda/driver
+libexec/amanda/planner
+libexec/amanda/reporter
+libexec/amanda/getconf
+sbin/amrestore
+sbin/amadmin
+sbin/amflush
+sbin/amlabel
+sbin/amcheck
+sbin/amdump
+sbin/amcleanup
+sbin/amtape
+libexec/amanda/chg-generic
+man/man8/amanda.8.gz
+man/man8/amadmin.8.gz
+man/man8/amcheck.8.gz
+man/man8/amcleanup.8.gz
+man/man8/amdump.8.gz
+man/man8/amflush.8.gz
+man/man8/amlabel.8.gz
+man/man8/amrestore.8.gz
+man/man8/amtape.8.gz
diff --git a/sysutils/amanda/scripts/configure b/sysutils/amanda/scripts/configure
new file mode 100644
index 00000000000..25832ebaf14
--- /dev/null
+++ b/sysutils/amanda/scripts/configure
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+CFLAGS=`cat /tmp/build-ports-misc-amanda-cflags`
+rm /tmp/build-ports-misc-amanda-cflags
+echo $CFLAGS
+
+mv $WRKSRC/config/config.h-freebsd2 $WRKSRC/config/config.h
+sed "s/#define MK_CCOPTS -g/#define MK_CCOPTS $CFLAGS/" < $WRKSRC/config/options.h-vanilla > $WRKSRC/config/options.h