This commit is contained in:
parent
d4b1cf4454
commit
64b15c6b46
26
misc/amanda/Makefile
Normal file
26
misc/amanda/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# OpenBSD makefile for: amanda
|
||||
# Version required: 2.3.0
|
||||
# Date created: 9 Dec 1997
|
||||
# Whom: ejovi
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1997/12/09 06:23:36 joey Exp $
|
||||
#
|
||||
|
||||
DISTNAME= amanda-2.3.0
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= ftp://ftp.cs.umd.edu/pub/amanda/
|
||||
|
||||
MAINTAINER= joey@OpenBSD.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>
|
1
misc/amanda/files/md5
Normal file
1
misc/amanda/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (amanda-2.3.0.tar.gz) = fabe173c0b507633d8b7eb081acd8174
|
19
misc/amanda/patches/patch-aa
Normal file
19
misc/amanda/patches/patch-aa
Normal file
@ -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
|
76
misc/amanda/patches/patch-ab
Normal file
76
misc/amanda/patches/patch-ab
Normal file
@ -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
|
75
misc/amanda/patches/patch-ac
Normal file
75
misc/amanda/patches/patch-ac
Normal file
@ -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
|
1
misc/amanda/pkg/COMMENT
Normal file
1
misc/amanda/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
The Advanced Maryland Automatic Network Disk Archiver
|
68
misc/amanda/pkg/DESCR
Normal file
68
misc/amanda/pkg/DESCR
Normal file
@ -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.
|
||||
|
31
misc/amanda/pkg/PLIST
Normal file
31
misc/amanda/pkg/PLIST
Normal file
@ -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
|
8
misc/amanda/scripts/configure
vendored
Normal file
8
misc/amanda/scripts/configure
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user