Remove, I doubt anyone can prove what we currently have actually works.

ok sthen@
This commit is contained in:
ajacoutot 2014-07-11 17:02:56 +00:00
parent 509824f71e
commit 7dc0114f9e
17 changed files with 0 additions and 625 deletions

View File

@ -1,117 +0,0 @@
# $OpenBSD: Makefile,v 1.48 2014/04/21 22:25:41 ajacoutot Exp $
BROKEN-alpha= internal compiler error: in extract_insn, at recog.c:2077
# XXX -main contains the files from -client rather than depending it
COMMENT-main= network-capable tape backup (client and tape server)
COMMENT-client= network-capable tape backup (client only)
COMMENT-doc= network-capable tape backup (documentation)
DISTVERSION= 2.4.5p1
# PKGVERSION= ${DISTVERSION}p1
# Minor patched releases are usually named with a "pX" suffix.
# These names can not be used with the OpenBSD ports framework.
PKGVERSION= ${DISTVERSION:S/p/./}
DISTNAME= amanda-${DISTVERSION}
PKGNAME-main= amanda-${PKGVERSION}
PKGNAME-client= amanda-client-${PKGVERSION}
PKGNAME-doc= amanda-doc-${PKGVERSION}
REVISION-main= 5
REVISION-client=3
CATEGORIES= misc
HOMEPAGE= http://www.amanda.org/
MAINTAINER= Olivier Cherrier <oc@symacx.com>
# BSD
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=amanda/}
# AMANDA configure looks for gtar and smbclient so that it can hard-code
# the pathnames.
# Configure looks for gnuplot to see if it should build amplot.
BUILD_DEPENDS+= archivers/gtar \
net/samba \
math/gnuplot
# There is no need to set RUN_DEPENDS, because AMANDA will run fine
# without gtar, smbclient, and gnuplot. They will only be required
# if the user creates a configuration that needs them, and then
# AMANDA will gracefully tell them what is required.
WANTLIB= c m readline termcap
PKG_ARCH-doc= *
WANTLIB-doc=
LIB_DEPENDS-doc=
MULTI_PACKAGES= -main -client -doc
FLAVORS= db gpg
FLAVOR?=
CONFIGURE_STYLE= gnu
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/config
# Because AMANDA does not conform to shared library naming standards,
# and knowing that no software outside of AMANDA attempts to use the
# shared libraries, we disable the generation of shared libraries.
CONFIGURE_ARGS= --disable-shared \
--libexecdir=${PREFIX}/libexec/amanda \
--with-configdir=${SYSCONFDIR}/amanda \
--with-user=operator \
--with-group=operator
USE_GROFF = Yes
# Use this flavor to speed things up if you have large AMANDA
# databases.
.if ${FLAVOR:Mdb}
WANTLIB+= lib/db4/db
LIB_DEPENDS+= databases/db/v4
CONFIGURE_ARGS+= --with-db=db
CFLAGS+= -L${LOCALBASE}/lib
.endif
.if ${FLAVOR:Mgpg}
BUILD_DEPENDS+= security/gnupg
CONFIGURE_ENV+= GZIP=${LOCALBASE}/bin/gpgzip
.endif
LIBTOOL_FLAGS= --tag=disable-shared
OLD_DOC_DIR= ${PREFIX}/share/amanda
DOC_DIR= ${PREFIX}/share/doc/amanda
EXAMPLE_DIR= ${PREFIX}/share/examples/amanda
post-install:
chmod a+rX ${PREFIX}/sbin/amrecover
@cd ${WRKSRC}; \
${INSTALL_DATA_DIR} ${DOC_DIR}; \
${INSTALL_DATA} AUTHORS ${DOC_DIR}; \
${INSTALL_DATA} NEWS ${DOC_DIR}; \
${INSTALL_DATA} README ${DOC_DIR}; \
${INSTALL_DATA} ChangeLog ${DOC_DIR}; \
mv ${OLD_DOC_DIR}/* ${DOC_DIR}; \
rmdir ${OLD_DOC_DIR}; \
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}; \
${INSTALL_DATA} example/*.ps ${EXAMPLE_DIR}; \
${INSTALL_DATA} example/disklist ${EXAMPLE_DIR}; \
cd example; \
for f in *.conf *.conf.chg-scsi; do \
sed -e 's,usr/adm,var,' \
-e 's,/usr/local/etc,${SYSCONFDIR},' $$f \
> ${EXAMPLE_DIR}/$$f; \
done
@sed -e 's,@LOCALBASE@,${LOCALBASE},' \
${FILESDIR}/crontab.sample > ${EXAMPLE_DIR}/crontab.sample
@${INSTALL_DATA} /dev/null ${EXAMPLE_DIR}/amandates
@sed -e 's,@LOCALBASE@,${LOCALBASE},' \
-e 's,@SYSCONFDIR@,${SYSCONFDIR},' \
${FILESDIR}/gpgzip > ${PREFIX}/bin/gpgzip;
.include <bsd.port.mk>

View File

@ -1,2 +0,0 @@
SHA256 (amanda-2.4.5p1.tar.gz) = ceJxbxCY9axmM+AuJS4EjODnb4gOLdtTHZ0mGtJj/mQ=
SIZE (amanda-2.4.5p1.tar.gz) = 1557400

View File

@ -1,6 +0,0 @@
# $OpenBSD: crontab.sample,v 1.4 2005/06/15 21:49:35 db Exp $
#
# Here is a sample crontab file for the operator user
#
0 16 * * 1-5 @LOCALBASE@/sbin/amcheck -m your_config
45 0 * * 2-6 @LOCALBASE@/sbin/amdump your_config

View File

@ -1,74 +0,0 @@
#!/bin/sh
#
# $OpenBSD: gpgzip,v 1.1 2005/05/31 09:09:30 db Exp $
#
# AMANDA gzip wrapper for GPG encrypted backups
# modified version from jaf@uchicago.edu
# enable for debugging
#set -x
# Set default configuration variables and locations for binaries
config="@SYSCONFDIR@/amanda/amanda.gpg.conf"
debug_bin="/usr/bin/logger"
gzip_bin="/usr/bin/gzip"
gzip_flags="$@"
gpg_bin="@LOCALBASE@/bin/gpg"
gpg_encrypt_flags="--no-tty --batch --no-secmem-warning --no-verbose -e"
gpg_decrypt_flags="--no-verbose --no-greeting --no-secmem-warning \
--no-tty --batch -d"
# Encrypt the data stream and feed it to gzip for final compression.
# NOTE: gpg will compress the data by default with the first supported
# algorithm found in the recipient key settings, defaults to zlib, ZIP.
# Encrypting the files first is suboptimal for further compression, but
# otherwise gpg will complain about tapered data when restoring with
# the AMANDA utilities.
dump() {
${gpg_bin} --homedir=${gpg_home} -r ${gpg_id} \
${gpg_encrypt_flags} | \
${gzip_bin} ${gzip_flags} >&1
}
# Unzip and decrypt the data stream
restore() {
${gzip_bin} ${gzip_flags} | \
${gpg_bin} ${gpg_decrypt_flags} --homedir=${gpg_home} \
-r ${gpg_id} >&1
}
# Sane environment?
if [ ! -f ${config} ]; then
${debug_bin} "Configuration file ${config} not found."
exit 1
else
. ${config}
if [ "$gpg_id" = "" ]; then
${debug_bin} "ERROR: gpg_id variable not set in ${config}."
exit 1
elif [ "$gpg_home" = "" ]; then
${debug_bin} "ERROR: gpg_home variable not set in ${config}."
exit 1
fi
fi
# Called with -dc as argument for restore. Checking for d will suffice.
while getopts "d" arg
do
case $arg in
d)
restore
break
;;
*)
dump
break
;;
esac
done
exit 0

View File

@ -1,31 +0,0 @@
$OpenBSD: patch-man_Makefile_in,v 1.1 2005/11/25 09:08:01 sturm Exp $
--- man/Makefile.in.orig Thu Nov 3 15:21:10 2005
+++ man/Makefile.in Thu Nov 3 15:24:35 2005
@@ -539,13 +539,21 @@ uninstall-man: uninstall-man5 uninstall-
install-data-hook:
- @list="$(man_MANS)"; \
+ @list="$(man5_MANS)"; \
for p in $$list; do \
- pa=$(DESTDIR)$(mandir)/man8/`echo $$p|sed '$(transform)'`; \
- echo chown $(BINARY_OWNER) $$pa; \
- chown $(BINARY_OWNER) $$pa; \
- echo chgrp $(SETUID_GROUP) $$pa; \
- chgrp $(SETUID_GROUP) $$pa; \
+ pa=$(DESTDIR)$(man5dir)/`echo $$p|sed '$(transform)'`; \
+ echo chown $(MANOWN) $$pa; \
+ chown $(MANOWN) $$pa; \
+ echo chgrp $(MANGRP) $$pa; \
+ chgrp $(MANGRP) $$pa; \
+ done
+ @list="$(man8_MANS)"; \
+ for p in $$list; do \
+ pa=$(DESTDIR)$(man8dir)/`echo $$p|sed '$(transform)'`; \
+ echo chown $(MANOWN) $$pa; \
+ chown $(MANOWN) $$pa; \
+ echo chgrp $(MANGRP) $$pa; \
+ chgrp $(MANGRP) $$pa; \
done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

View File

@ -1,2 +0,0 @@
This is the client part of the Advanced Maryland Automatic Network Disk
Archiver.

View File

@ -1,2 +0,0 @@
This package contains additional documentation for the Advanced
Maryland Automatic Network Disk Archiver.

View File

@ -1,33 +0,0 @@
AMANDA: 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. It is built on top of
standard backup software: Unix dump/restore, GNU Tar and others, so it
is possible to restore from a backup tape even if AMANDA is not
installed.
AMANDA requires a host that is mostly idle during the time backups are
done, with a large capacity tape drive (e.g. an EXABYTE, DAT or DLT
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.
Other features include:
* 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 GPG encrypted archives.
* 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.
* 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 or after sending over the net,
with either compress or gzip.

View File

@ -1,43 +0,0 @@
In order to update /etc/services and /etc/inetd.conf, run
${PREFIX}/libexec/amanda/patch-system --disable-index --disable-tape
inetd(8) must be reloaded (or started). To enable it at boot, the
following line needs to be added to rc.conf.local(5):
inetd_flags=
You should check both of these files, verifying proper installation.
You also need to create /operator/.amandahosts, which will contain the
FQDN of the tape server and the user allowed to access this machine.
The contents should look like this:
backup.openbsd.org operator
The permissions of /operator/.amandahosts must be restricted:
chmod u=rw /operator/.amandahosts
chown operator:operator /operator/.amandahosts
Sample configuration files have been installed in
${PREFIX}/share/examples/amanda.
gpg flavor only:
You need an additional secret GPG key for the backup user on the
client. There is one drawback in this configuration, the key must be
setup without a password. After key generation import the master public
key:
gpg --import /tmp/master-pub.key
The imported key needs to be signed otherwise gnupg will not run
properly in batch mode:
gpg --sign-key $MASTER-PUBKEY-ID
Add the following variables to ${SYSCONFDIR}/amanda/amanda.gpg.conf:
gpg_home="/operator/.gnupg" # keyring location
gpg_id="$MASTER-PUBKEY-ID" # pub key id of master key

View File

@ -1,59 +0,0 @@
In order to update /etc/services and /etc/inetd.conf, run
${PREFIX}/libexec/amanda/patch-system --enable-index --enable-tape
You should check both of these files, verifying proper installation.
inetd(8) must be reloaded (or started). To enable it at boot, the
following line needs to be added to rc.conf.local(5):
inetd_flags=
You also need to create /operator/.amandahosts, which will contain the
FQDN of the tape server and the user allowed to access this machine.
The contents should look like this:
backup.openbsd.org operator
The permissions of /operator/.amandahosts must be restricted:
chmod u=rw /operator/.amandahosts
chown operator:operator /operator/.amandahosts
Sample configuration files have been installed in
${PREFIX}/share/examples/amanda.
gpg flavor only:
Setup AMANDA as usual and make sure compression is enabled for the
dumptype declarations you plan to use. Generate the master keys for
your backups. Keep those keys and a copy of them in a very SAFE and
RELIABLE place:
gpg --gen-key ... follow instructions
Export your resulting public key (gpg --list-keys shows them)
for installation on the backup clients:
gpg --armor --export $MASTER-PUBKEY-ID > /tmp/master-pub.key
You need an additional secret GPG key for the backup user on the
client. There is one drawback in this configuration, the key must be
setup without a password. After key generation import the master public
key from above:
gpg --import /tmp/master-pub.key
The imported key needs to be signed otherwise gnupg will not run
properly in batch mode:
gpg --sign-key $MASTER-PUBKEY-ID
Add the following variables to ${SYSCONFDIR}/amanda/amanda.gpg.conf:
gpg_home="/operator/.gnupg" # keyring location
gpg_id="$MASTER-PUBKEY-ID" # pub key id of master key
If you want to restore your backups import the secret master key and
unset the password. After restoration of your data delete this key
again!

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PFRAG.gpg-client,v 1.1 2005/05/31 09:09:30 db Exp $
bin/gpgzip

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PFRAG.gpg-main,v 1.1 2006/11/21 22:19:01 espie Exp $
bin/gpgzip

View File

@ -1,35 +0,0 @@
@comment $OpenBSD: PLIST-client,v 1.8 2005/11/25 09:08:01 sturm Exp $
@conflict amanda-*
@owner operator
@group operator
libexec/amanda/
libexec/amanda/amandad
@mode 4550
@owner root
libexec/amanda/amqde
libexec/amanda/calcsize
libexec/amanda/killpgrp
@mode
@owner operator
libexec/amanda/patch-system
@mode 4550
@owner root
libexec/amanda/rundump
libexec/amanda/runtar
@mode
@owner operator
libexec/amanda/selfcheck
libexec/amanda/sendbackup
libexec/amanda/sendsize
libexec/amanda/versionsuffix
@man man/man8/amanda.8
@man man/man8/amrecover.8
@man man/man8/amrestore.8
sbin/amrecover
sbin/amrestore
share/examples/amanda/
share/examples/amanda/amandates
%%gpg%%
@sample /etc/amandates
@sample /var/amanda/
@sample /var/amanda/gnutar-lists/

View File

@ -1,59 +0,0 @@
@comment $OpenBSD: PLIST-doc,v 1.3 2005/11/25 09:08:01 sturm Exp $
@conflict amanda-<=2.4.2.2
@conflict amanda-client-<=2.4.2.2
share/doc/amanda/
share/doc/amanda/AUTHORS
share/doc/amanda/COPYRIGHT
share/doc/amanda/COPYRIGHT-APACHE
share/doc/amanda/COPYRIGHT-REGEX
share/doc/amanda/ChangeLog
share/doc/amanda/NEWS
share/doc/amanda/README
share/doc/amanda/chgscsi.txt
share/doc/amanda/dumperapi.txt
share/doc/amanda/eventapi.txt
share/doc/amanda/exclude.txt
share/doc/amanda/faq.txt
share/doc/amanda/historical.txt
share/doc/amanda/howto-afs.txt
share/doc/amanda/howto-cygwin.txt
share/doc/amanda/howto-filedriver.txt
share/doc/amanda/howtos.txt
share/doc/amanda/index.txt
share/doc/amanda/indexing.txt
share/doc/amanda/install.txt
share/doc/amanda/internals.txt
share/doc/amanda/introduction.txt
share/doc/amanda/ix01.txt
share/doc/amanda/kerberos.txt
share/doc/amanda/labelprinting.txt
share/doc/amanda/links.txt
share/doc/amanda/manpages.txt
share/doc/amanda/multitape.txt
share/doc/amanda/portusage.txt
share/doc/amanda/pr01.txt
share/doc/amanda/pr02.txt
share/doc/amanda/pr03.txt
share/doc/amanda/pr04.txt
share/doc/amanda/rait.txt
share/doc/amanda/references.txt
share/doc/amanda/restore.txt
share/doc/amanda/samba.txt
share/doc/amanda/security-api.txt
share/doc/amanda/security.txt
share/doc/amanda/strategy-api.txt
share/doc/amanda/survey.txt
share/doc/amanda/systemnotes.txt
share/doc/amanda/tapechangers.txt
share/doc/amanda/tapesnchangers.txt
share/doc/amanda/tapetypes.txt
share/doc/amanda/technical.txt
share/doc/amanda/topten.txt
share/doc/amanda/upgrade.txt
share/doc/amanda/using.txt
share/doc/amanda/various.txt
share/doc/amanda/vtape-api.txt
share/doc/amanda/whatwasnew.txt
share/doc/amanda/wishlist.txt
share/doc/amanda/y2k.txt
share/doc/amanda/zftape.txt

View File

@ -1,146 +0,0 @@
@comment $OpenBSD: PLIST-main,v 1.1 2006/11/21 22:19:01 espie Exp $
@pkgpath misc/amanda
@conflict amanda-client-*
lib/libamanda.a
@comment lib/libamanda.la
lib/libamclient.a
@comment lib/libamclient.la
lib/libamserver.a
@comment lib/libamserver.la
lib/libamtape.a
@comment lib/libamtape.la
@owner operator
@group operator
libexec/amanda/
libexec/amanda/amandad
libexec/amanda/amcat.awk
libexec/amanda/amcleanupdisk
libexec/amanda/amidxtaped
libexec/amanda/amindexd
libexec/amanda/amlogroll
libexec/amanda/amplot.awk
libexec/amanda/amplot.g
libexec/amanda/amplot.gp
@owner root
@mode 4550
libexec/amanda/amqde
@owner operator
@mode
libexec/amanda/amtrmidx
libexec/amanda/amtrmlog
@owner root
@mode 4550
libexec/amanda/calcsize
@owner operator
@mode
libexec/amanda/chg-chio
libexec/amanda/chg-chs
libexec/amanda/chg-disk
libexec/amanda/chg-iomega
libexec/amanda/chg-juke
libexec/amanda/chg-manual
libexec/amanda/chg-mcutil
libexec/amanda/chg-mtx
libexec/amanda/chg-multi
libexec/amanda/chg-null
libexec/amanda/chg-rait
libexec/amanda/chg-rth
libexec/amanda/chg-scsi
libexec/amanda/chg-zd-mtx
libexec/amanda/driver
@owner root
@mode 4550
libexec/amanda/dumper
libexec/amanda/killpgrp
@owner operator
@mode
libexec/amanda/patch-system
@owner root
@mode 4550
libexec/amanda/planner
libexec/amanda/rundump
libexec/amanda/runtar
@owner operator
@mode
libexec/amanda/selfcheck
libexec/amanda/sendbackup
libexec/amanda/sendsize
libexec/amanda/taper
libexec/amanda/versionsuffix
@man man/man5/amanda.conf.5
@man man/man8/amadmin.8
@man man/man8/amanda.8
@man man/man8/amcheck.8
@man man/man8/amcheckdb.8
@man man/man8/amcleanup.8
@man man/man8/amdd.8
@man man/man8/amdump.8
@man man/man8/amflush.8
@man man/man8/amgetconf.8
@man man/man8/amlabel.8
@man man/man8/ammt.8
@man man/man8/amoverview.8
@man man/man8/amplot.8
@man man/man8/amrecover.8
@man man/man8/amreport.8
@man man/man8/amrestore.8
@man man/man8/amrmtape.8
@man man/man8/amstatus.8
@man man/man8/amtape.8
@man man/man8/amtapetype.8
@man man/man8/amtoc.8
@man man/man8/amverify.8
@man man/man8/amverifyrun.8
@owner operator
@group operator
sbin/amadmin
@owner root
@mode 4550
sbin/amcheck
@owner operator
@mode
sbin/amcheckdb
sbin/amcleanup
sbin/amdd
sbin/amdump
sbin/amflush
sbin/amgetconf
sbin/amlabel
sbin/ammt
sbin/amoverview
sbin/amplot
sbin/amrecover
sbin/amreport
sbin/amrestore
sbin/amrmtape
sbin/amstatus
sbin/amtape
sbin/amtapetype
sbin/amtoc
sbin/amverify
sbin/amverifyrun
share/examples/amanda/
share/examples/amanda/3hole.ps
share/examples/amanda/8.5x11.ps
share/examples/amanda/DIN-A4.ps
share/examples/amanda/DLT.ps
share/examples/amanda/EXB-8500.ps
share/examples/amanda/HP-DAT.ps
share/examples/amanda/amanda.conf
share/examples/amanda/amanda.conf.chg-scsi
share/examples/amanda/chg-mcutil.conf
share/examples/amanda/chg-multi.conf
share/examples/amanda/chg-scsi-hpux.conf
share/examples/amanda/chg-scsi-linux.conf
share/examples/amanda/chg-scsi-solaris.conf
share/examples/amanda/chg-scsi.conf
share/examples/amanda/crontab.sample
share/examples/amanda/disklist
share/examples/amanda/amandates
%%gpg%%
@owner operator
@group operator
@sample /etc/amandates
@sample /var/amanda/
@sample /var/amanda/gnutar-lists/
@extraunexec rm -rf ${SYSCONFDIR}/amanda

View File

@ -1,6 +0,0 @@
Remove AMANDA entries (amanda, amandaidx, amidxtape) from
/etc/inetd.conf and remove inetd_flags from rc.conf.local(5)
if inetd(8) is not needed anymore.
gpg flavor only:
Do not forget to remove the GPG keyrings from your system.

View File

@ -1,6 +0,0 @@
Remove AMANDA entries (amanda, amandaidx, amidxtape) from
/etc/inetd.conf and remove inetd_flags from rc.conf.local(5)
if inetd(8) is not needed anymore.
gpg flavor only:
Do not forget to remove the GPG keyrings from your system.