aboutsummaryrefslogtreecommitdiffstats
path: root/misc/amanda25-server
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2002-05-24 05:06:27 +0800
committernectar <nectar@FreeBSD.org>2002-05-24 05:06:27 +0800
commit9f025fe8d430711eeddfbd75125b2118b9317998 (patch)
tree378fcf9324c4167c180adde6f2cddb79a67562d4 /misc/amanda25-server
parent8c0b242c916fdb56d63cb79b3b3912a561088a2c (diff)
downloadfreebsd-ports-gnome-9f025fe8d430711eeddfbd75125b2118b9317998.tar.gz
freebsd-ports-gnome-9f025fe8d430711eeddfbd75125b2118b9317998.tar.zst
freebsd-ports-gnome-9f025fe8d430711eeddfbd75125b2118b9317998.zip
Revive amanda-client and amanda-server. These are not the old
amanda, but rather the _current_ amanda. I mistakenly associated them with ports/misc/amanda. Please pass the pointy hat. Graciously brought to my attention by: jeh
Diffstat (limited to 'misc/amanda25-server')
-rw-r--r--misc/amanda25-server/Makefile157
-rw-r--r--misc/amanda25-server/distinfo1
-rw-r--r--misc/amanda25-server/files/patch-aa21
-rw-r--r--misc/amanda25-server/files/patch-ab12
-rw-r--r--misc/amanda25-server/files/patch-ac35
-rw-r--r--misc/amanda25-server/pkg-comment1
-rw-r--r--misc/amanda25-server/pkg-comment.client1
-rw-r--r--misc/amanda25-server/pkg-descr27
-rw-r--r--misc/amanda25-server/pkg-plist40
-rw-r--r--misc/amanda25-server/pkg-plist.client46
10 files changed, 341 insertions, 0 deletions
diff --git a/misc/amanda25-server/Makefile b/misc/amanda25-server/Makefile
new file mode 100644
index 000000000000..648c07955626
--- /dev/null
+++ b/misc/amanda25-server/Makefile
@@ -0,0 +1,157 @@
+# New ports collection makefile for: amanda
+# Date created: 28th Feb 1995
+# Whom: gpalmer
+#
+# $FreeBSD$
+#
+
+PORTNAME?= ${MASTERPORTNAME}
+PORTVERSION= 2.4.3b2
+PORTREVISION?= 2
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= amanda
+DISTFILES= amanda-${PORTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= jeh@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/amanda-${PORTVERSION}
+SLAVEDIRS= misc/amanda-client
+MASTERPORTNAME= amanda-server
+
+NO_LATEST_LINK= yes
+USE_GMAKE= yes
+HAS_CONFIGURE= yes
+PATCH_STRIP=
+
+.include <bsd.port.pre.mk>
+# amanda-server part
+.if !defined(CLIENT_ONLY)
+
+pre-fetch:
+ @${ECHO} ""
+ @${ECHO} "You may use the following build options:"
+ @${ECHO} ""
+ @${ECHO} " -DWITH_PLOT to enable ploting, requires X11 libraries"
+ @${ECHO} " -DWITH_SAMBA to enable the use of smbclient"
+ @${ECHO} " -DWITH_MTX to enable the use of mtx changer scripts"
+ @${ECHO} " -DWITHOUT_GNUTAR to NOT use GNUTar and use the"
+ @${ECHO} " native FreeBSD version"
+ @${ECHO} " AMANDA_SERVER=server to specify a server name"
+ @${ECHO} " The default is `uname -n`"
+ @${ECHO} " AMANDA_TAPE=tape to specify the default tape device"
+ @${ECHO} " The default is /dev/nrsa0"
+ @${ECHO} " AMANDA_CONFIG=config to specify the default configuation"
+ @${ECHO} " The default is user"
+ @${ECHO} ""
+
+RUN_DEPENDS= ${LOCALBASE}/sbin/amrecover:${PORTSDIR}/misc/amanda-client
+BUILD_DEPENDS= ${LOCALBASE}/sbin/amrecover:${PORTSDIR}/misc/amanda-client
+
+CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \
+ --with-amandahosts --with-fqdn \
+ --with-dump-honor-nodump --with-buffered-dump \
+ --with-user=operator --with-group=operator \
+ --without-client --disable-libtool --prefix=${PREFIX}
+
+MAN8= amadmin.8 amcheck.8 amcheckdb.8 amcleanup.8 amdd.8 \
+ amdump.8 amflush.8 amgetconf.8 amlabel.8 ammt.8 \
+ amoverview.8 amreport.8 amrmtape.8 amstatus.8 \
+ amtape.8 amtoc.8 amverify.8
+
+.if defined (WITH_PLOT)
+BUILD_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
+RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
+MAN8+= amplot.8
+PLIST_SUB+= PLOT=''
+.else
+PLIST_SUB+= PLOT='@comment '
+.endif
+
+.if defined (WITH_SAMBA)
+BUILD_DEPENDS+= smbclient:${PORTSDIR}/net/samba
+RUN_DEPENDS+= smbclient:${PORTSDIR}/net/samba
+CONFIGURE_ARGS+= --with-smbclient=${PREFIX}/bin/smbclient
+.endif
+
+.if defined (WITH_MTX)
+BUILD_DEPENDS+= mtx:${PORTSDIR}/misc/mtx
+RUN_DEPENDS+= mtx:${PORTSDIR}/misc/mtx
+.endif
+
+.if !defined (WITHOUT_GNUTAR)
+CONFIGURE_ARGS+= --with-gnutar=${PREFIX}/bin/gtar
+BUILD_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
+RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
+.endif
+
+.if defined (AMANDA_SERVER)
+CONFIGURE_ARGS+= --with-index-server=${AMANDA_SERVER}
+CONFIGURE_ARGS+= --with-tape-server=${AMANDA_SERVER}
+.endif
+
+.if defined (AMANDA_TAPE)
+CONFIGURE_ARGS+= --with-tape-device=${AMANDA_TAPE}
+.endif
+
+.if defined (AMANDA_CONFIG)
+CONFIGURE_ARGS+= --with-config=${AMANDA_CONFIG}
+.endif
+
+#
+# Before 4.0, pre-CAM scsiio.h existed
+.if ${OSVERSION} < 400000
+PLIST_SUB+= SCSICHG=''
+.else
+PLIST_SUB+= SCSICHG='@comment '
+.endif
+
+# amanda-client part
+.else
+
+pre-fetch:
+ @${ECHO} ""
+ @${ECHO} "You may use the following build options:"
+ @${ECHO} ""
+ @${ECHO} " -DWITHOUT_GNUTAR to NOT use GNUTar and use the"
+ @${ECHO} " native FreeBSD version"
+ @${ECHO} " AMANDA_SERVER=server to specify a server name"
+ @${ECHO} " The default is `uname -n`"
+ @${ECHO} " AMANDA_CONFIG=config to specify the default configuation"
+ @${ECHO} " The default is user"
+ @${ECHO} ""
+
+CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \
+ --with-amandahosts --with-fqdn \
+ --with-dump-honor-nodump --with-buffered-dump \
+ --with-user=operator --with-group=operator \
+ --without-server --disable-libtool --prefix=${PREFIX}
+
+MAN8= amanda.8 amrecover.8 amrestore.8
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/examples/amanda
+ ${CP} -R ${WRKSRC}/example/amanda.conf \
+ ${WRKSRC}/example/chg-multi.conf \
+ ${WRKSRC}/example/chg-scsi.conf \
+ ${WRKSRC}/example/disklist \
+ ${PREFIX}/share/examples/amanda
+
+.if !defined (WITHOUT_GNUTAR)
+CONFIGURE_ARGS+= --with-gnutar=${PREFIX}/bin/gtar
+BUILD_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
+RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
+.endif
+
+.if defined (AMANDA_SERVER)
+CONFIGURE_ARGS+= --with-index-server=${AMANDA_SERVER}
+CONFIGURE_ARGS+= --with-tape-server=${AMANDA_SERVER}
+.endif
+
+.if defined (AMANDA_CONFIG)
+CONFIGURE_ARGS+= --with-config=${AMANDA_CONFIG}
+.endif
+
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/amanda25-server/distinfo b/misc/amanda25-server/distinfo
new file mode 100644
index 000000000000..eff82f076ac0
--- /dev/null
+++ b/misc/amanda25-server/distinfo
@@ -0,0 +1 @@
+MD5 (amanda-2.4.3b2.tar.gz) = ba220b2261b9cea9857fddfff5915fac
diff --git a/misc/amanda25-server/files/patch-aa b/misc/amanda25-server/files/patch-aa
new file mode 100644
index 000000000000..fb82d3eb80fc
--- /dev/null
+++ b/misc/amanda25-server/files/patch-aa
@@ -0,0 +1,21 @@
+--- man/Makefile.in.orig Sat Nov 25 09:02:01 2000
++++ man/Makefile.in Wed Jan 31 06:45:07 2001
+@@ -151,7 +151,7 @@
+
+ @WANT_AMPLOT_TRUE@AMPLOT_MAN_PAGES = @WANT_AMPLOT_TRUE@amplot.8
+
+-COMMON_MAN_PAGES = amanda.8
++@WANT_CLIENT_TRUE@COMMON_MAN_PAGES = @WANT_CLIENT_TRUE@amanda.8
+
+ @WANT_SERVER_TRUE@SERVER_MAN_PAGES = @WANT_SERVER_TRUE@amadmin.8 \
+ @WANT_SERVER_TRUE@ amcheck.8 \
+@@ -171,7 +171,7 @@
+
+ @WANT_RECOVER_TRUE@RECOVER_MAN_PAGES = amrecover.8
+
+-@WANT_RESTORE_TRUE@RESTORE_MAN_PAGES = amrestore.8
+
++@WANT_CLIENT_TRUE@RESTORE_MAN_PAGES = @WANT_CLIENT_TRUE@amrestore.8
+
+ # not autoconf-generated:
+ EXTRA_DIST = amplot.8 amrestore.8 amtape.8
diff --git a/misc/amanda25-server/files/patch-ab b/misc/amanda25-server/files/patch-ab
new file mode 100644
index 000000000000..4f6bc0ca5d58
--- /dev/null
+++ b/misc/amanda25-server/files/patch-ab
@@ -0,0 +1,12 @@
+--- common-src/Makefile.in Fri Nov 30 11:33:48 2001
++++ common-src/Makefile.in.new Fri Nov 30 18:03:29 2001
+@@ -611,7 +611,8 @@
+
+ install-data-am:
+
+-install-exec-am: install-libLTLIBRARIES
++@WANT_CLIENT_TRUE@install-exec-am: @WANT_CLIENT_TRUE@install-libLTLIBRARIES
++@WANT_SERVER_TRUE@install-exec-am:
+
+ install-info:
+
diff --git a/misc/amanda25-server/files/patch-ac b/misc/amanda25-server/files/patch-ac
new file mode 100644
index 000000000000..a9be81de184d
--- /dev/null
+++ b/misc/amanda25-server/files/patch-ac
@@ -0,0 +1,35 @@
+--- tape-src/Makefile.in.orig Fri Nov 30 14:33:56 2001
++++ tape-src/Makefile.in Tue Dec 4 08:04:12 2001
+@@ -162,7 +162,8 @@
+ @WANT_LIBTOOL_FALSE@LIB_EXTENSION = a
+ @WANT_LIBTOOL_FALSE@noinst_LIBRARIES = libamtape.a
+
+-sbin_PROGRAMS = ammt amdd
++@WANT_SERVER_TRUE@sbin_PROGRAMS = ammt amdd
++@WANT_CLIENT_TRUE@sbin_PROGRAMS =
+
+ libamtape_la_SOURCES = output-file.c \
+ output-null.c \
+@@ -241,7 +242,8 @@
+ output-tape.lo tapeio.lo
+ libamtape_la_OBJECTS = $(am_libamtape_la_OBJECTS)
+ EXTRA_PROGRAMS = tapetype$(EXEEXT) amtapeio$(EXEEXT)
+-sbin_PROGRAMS = ammt$(EXEEXT) amdd$(EXEEXT)
++@WANT_SERVER_TRUE@sbin_PROGRAMS = ammt$(EXEEXT) amdd$(EXEEXT)
++@WANT_CLIENT_TRUE@sbin_PROGRAMS =
+ PROGRAMS = $(sbin_PROGRAMS)
+
+ amdd_SOURCES = amdd.c
+@@ -524,7 +526,11 @@
+
+ install-data-am:
+
+-install-exec-am: install-libLTLIBRARIES install-sbinPROGRAMS
++@WANT_CLIENT_TRUE@install-exec-am: @WANT_CLIENT_TRUE@install-libLTLIBRARIES \
++ install-sbinPROGRAMS
++ @$(NORMAL_INSTALL)
++ $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
++@WANT_SERVER_TRUE@install-exec-am: install-sbinPROGRAMS
+ @$(NORMAL_INSTALL)
+ $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
+
diff --git a/misc/amanda25-server/pkg-comment b/misc/amanda25-server/pkg-comment
new file mode 100644
index 000000000000..87b97277da1d
--- /dev/null
+++ b/misc/amanda25-server/pkg-comment
@@ -0,0 +1 @@
+The Advanced Maryland Automatic Network Disk Archiver
diff --git a/misc/amanda25-server/pkg-comment.client b/misc/amanda25-server/pkg-comment.client
new file mode 100644
index 000000000000..87b97277da1d
--- /dev/null
+++ b/misc/amanda25-server/pkg-comment.client
@@ -0,0 +1 @@
+The Advanced Maryland Automatic Network Disk Archiver
diff --git a/misc/amanda25-server/pkg-descr b/misc/amanda25-server/pkg-descr
new file mode 100644
index 000000000000..30ad76ed3238
--- /dev/null
+++ b/misc/amanda25-server/pkg-descr
@@ -0,0 +1,27 @@
+** CAUTION **
+
+THE RELEASE OF AMANDA 2.4 BREAKS BACKWARDS COMPATIBILITY WITH
+EARLIER AMANDA CLIENTS (PER CHANGES FILE IN THE DISTRIBUTION.)
+
+WHAT IS AMANDA?
+---------------
+
+This is a 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.
+
+Here are some features of Amanda:
+
+ * written in C, freely distributable.
+ * built on top of standard backup software: 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.
+
+WWW: http://sourceforge.net/projects/amanda/
+
+- Jim
+jeh@FreeBSD.org
diff --git a/misc/amanda25-server/pkg-plist b/misc/amanda25-server/pkg-plist
new file mode 100644
index 000000000000..c293460b09db
--- /dev/null
+++ b/misc/amanda25-server/pkg-plist
@@ -0,0 +1,40 @@
+%%PLOT%%libexec/amanda/amcat.awk
+libexec/amanda/amcleanupdisk
+libexec/amanda/amindexd
+libexec/amanda/amlogroll
+%%PLOT%%libexec/amanda/amplot.awk
+%%PLOT%%libexec/amanda/amplot.g
+%%PLOT%%libexec/amanda/amplot.gp
+libexec/amanda/amtrmidx
+libexec/amanda/amtrmlog
+libexec/amanda/chg-chio
+libexec/amanda/chg-chs
+libexec/amanda/chg-manual
+libexec/amanda/chg-mtx
+libexec/amanda/chg-multi
+libexec/amanda/chg-rth
+libexec/amanda/chg-scsi
+%%SCSICHG%%libexec/amanda/chg-scsi
+libexec/amanda/chg-zd-mtx
+libexec/amanda/driver
+libexec/amanda/dumper
+libexec/amanda/planner
+libexec/amanda/taper
+sbin/amadmin
+sbin/amcheck
+sbin/amcheckdb
+sbin/amcleanup
+sbin/amdd
+sbin/amdump
+sbin/amflush
+sbin/amgetconf
+sbin/amlabel
+sbin/ammt
+sbin/amoverview
+%%PLOT%%sbin/amplot
+sbin/amreport
+sbin/amrmtape
+sbin/amstatus
+sbin/amtape
+sbin/amtoc
+sbin/amverify
diff --git a/misc/amanda25-server/pkg-plist.client b/misc/amanda25-server/pkg-plist.client
new file mode 100644
index 000000000000..925c4ef8826d
--- /dev/null
+++ b/misc/amanda25-server/pkg-plist.client
@@ -0,0 +1,46 @@
+libexec/amanda/amandad
+libexec/amanda/amidxtaped
+libexec/amanda/calcsize
+libexec/amanda/killpgrp
+libexec/amanda/patch-system
+libexec/amanda/rundump
+libexec/amanda/runtar
+libexec/amanda/selfcheck
+libexec/amanda/sendbackup
+libexec/amanda/sendsize
+libexec/amanda/versionsuffix
+sbin/amrecover
+sbin/amrestore
+share/amanda/COPYRIGHT
+share/amanda/COPYRIGHT-APACHE
+share/amanda/COPYRIGHT-REGEX
+share/amanda/DUMPER-API
+share/amanda/EXCLUDE
+share/amanda/FAQ
+share/amanda/INDEXING
+share/amanda/INSTALL
+share/amanda/INTERNALS
+share/amanda/KERBEROS
+share/amanda/LABEL.PRINTING
+share/amanda/MULTITAPE
+share/amanda/RAIT
+share/amanda/PORT.USAGE
+share/amanda/RESTORE
+share/amanda/SAMBA
+share/amanda/SECURITY
+share/amanda/SYSTEM.NOTES
+share/amanda/TAPE.CHANGERS
+share/amanda/TAPETYPES
+share/amanda/UPGRADE
+share/amanda/VTAPE-API
+share/amanda/WHATS.NEW
+share/amanda/WISHLIST
+share/amanda/YEAR2000
+share/amanda/ZFTAPE
+share/examples/amanda/amanda.conf
+share/examples/amanda/chg-multi.conf
+share/examples/amanda/chg-scsi.conf
+share/examples/amanda/disklist
+@dirrm share/examples/amanda
+@dirrm share/amanda
+@dirrm libexec/amanda