aboutsummaryrefslogtreecommitdiff
path: root/misc/amanda26-server
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-09-01 21:38:59 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-09-01 21:38:59 +0000
commitbeced671bdcb6ffe50e652d814ac803ba36386d8 (patch)
tree88eb9dbb4fc80b7d159c64e16db129bdd9b80aed /misc/amanda26-server
parent5ab8c07e58180fc55ab73ef19fe06b3c23d34390 (diff)
Notes
Diffstat (limited to 'misc/amanda26-server')
-rw-r--r--misc/amanda26-server/Makefile228
-rw-r--r--misc/amanda26-server/distinfo2
-rw-r--r--misc/amanda26-server/files/extra-patch-application-src::amzfs-sendrecv.pl52
-rw-r--r--misc/amanda26-server/files/extra-patch-sendbackup-dump.c23
-rw-r--r--misc/amanda26-server/files/patch-ad14
-rw-r--r--misc/amanda26-server/files/patch-amandad-src__Makefile.in12
-rw-r--r--misc/amanda26-server/files/patch-amar-src__Makefile.in12
-rw-r--r--misc/amanda26-server/files/patch-changer-src__chg-glue.pl10
-rw-r--r--misc/amanda26-server/files/patch-common-src__Makefile.in49
-rw-r--r--misc/amanda26-server/files/patch-common-src__glib-util.c91
-rw-r--r--misc/amanda26-server/files/patch-common-src_conffile.c29
-rw-r--r--misc/amanda26-server/files/patch-common-src_glib-util.h22
-rw-r--r--misc/amanda26-server/files/patch-man__Makefile.in10
-rw-r--r--misc/amanda26-server/files/patch-perl__Amanda__Process.pm11
-rw-r--r--misc/amanda26-server/files/patch-perl__Makefile.in195
-rw-r--r--misc/amanda26-server/files/patch-server-src__amcleanup.pl11
-rw-r--r--misc/amanda26-server/files/patch-server-src_amadmin.c20
-rw-r--r--misc/amanda26-server/files/patch-server-src_amflush.c41
-rw-r--r--misc/amanda26-server/files/patch-server-src_cmdline.c11
-rw-r--r--misc/amanda26-server/files/patch-server-src_find.c11
-rw-r--r--misc/amanda26-server/files/patch-server-src_holding.c20
-rw-r--r--misc/amanda26-server/files/patch-server-src_planner.c11
-rw-r--r--misc/amanda26-server/pkg-descr19
-rw-r--r--misc/amanda26-server/pkg-plist104
-rw-r--r--misc/amanda26-server/pkg-plist.client136
25 files changed, 0 insertions, 1144 deletions
diff --git a/misc/amanda26-server/Makefile b/misc/amanda26-server/Makefile
deleted file mode 100644
index 20673bb64254..000000000000
--- a/misc/amanda26-server/Makefile
+++ /dev/null
@@ -1,228 +0,0 @@
-# Created by: gpalmer
-# $FreeBSD$
-
-PORTNAME= amanda
-PORTVERSION= 2.6.1p2
-PORTREVISION= 5
-PORTEPOCH= 1
-CATEGORIES= misc
-MASTER_SITES= SF/amanda/amanda%20-%20stable/${PORTVERSION}
-PKGNAMESUFFIX?= 26-server
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT?= The Advanced Maryland Automatic Network Disk Archiver (server)
-
-WRKSRC= ${WRKDIR}/amanda-${PORTVERSION}
-SLAVEDIRS= misc/amanda26-client
-
-USES= gmake perl5 pkgconfig
-GNU_CONFIGURE= yes
-USE_GNOME= glib20
-USE_OPENSSL= yes
-PATCH_STRIP=
-CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \
- --without-amlibexecdir \
- --with-amandahosts --with-fqdn \
- --with-dump-honor-nodump --with-buffered-dump \
- --prefix=${PREFIX} \
- --disable-glibtest \
- --with-user=${AMANDA_USER} --with-group=${AMANDA_GROUP} \
- --with-bsdtcp-security --with-bsdudp-security \
- --with-ssh-security
-
-USE_LDCONFIG= yes
-
-OPTIONS_DEFINE= GNUTAR
-GNUTAR_DESC= use GNU tar
-
-AMANDA_USER?= operator
-AMANDA_GROUP?= operator
-AMANDA_GNUTAR_LISTDIR?= ${PREFIX}/var/amanda/gnutar-lists
-AMANDA_DATES?= ${PREFIX}/var/amanda/amandates
-PLIST_SUB= SHLIBVER=${PORTVERSION} AMANDA_DATES=${AMANDA_DATES}
-
-# amanda-server/amanda-client common part
-.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
-
-.if !defined(CLIENT_ONLY)
-OPTIONS_DEFINE+= PLOT SAMBA MTX AESPIPE S3
-PLOT_DESC= Enable ploting, requires X11 libraries
-SAMBA_DESC= Enable the use of smbclient
-MTX_DESC= Enable the use of mtx changer scripts
-AESPIPE_DESC= Enable encryption. Needed by amcrypt
-S3_DESC= Enable Amazon S3 device support
-.else
-OPTIONS_DEFINE+= ZFSCOMP
-ZFSCOMP_DESC= Accurate estimation of compressed ZFS filesystems
-.endif
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGNUTAR}
-CONFIGURE_ARGS+=--with-gnutar-listdir=${AMANDA_GNUTAR_LISTDIR} \
- --with-gnutar=${LOCALBASE}/bin/gtar
-BUILD_DEPENDS= gtar:${PORTSDIR}/archivers/gtar
-RUN_DEPENDS= gtar:${PORTSDIR}/archivers/gtar
-.endif
-
-# amanda-server part
-.if !defined(CLIENT_ONLY)
-
-pre-fetch:
- @${ECHO} ""
- @${ECHO} "You may use the following build options:"
- @${ECHO} ""
- @${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 configuration"
- @${ECHO} " The default is DailySet1"
- @${ECHO} " AMANDA_USER=user to specify the default user"
- @${ECHO} " The default is operator"
- @${ECHO} " AMANDA_GROUP=group to specify the default group"
- @${ECHO} " The default is operator"
- @${ECHO} " AMANDA_DATES=path to client amandates file"
- @${ECHO} ""
-
-CONFLICTS= amanda-server-2.5.* amanda-server-3.* amanda25-server-*
-
-BUILD_DEPENDS+= ${LOCALBASE}/lib/amanda/libamandad-${PORTVERSION}.so:${PORTSDIR}/misc/amanda26-client
-RUN_DEPENDS+= ${LOCALBASE}/lib/amanda/libamandad-${PORTVERSION}.so:${PORTSDIR}/misc/amanda26-client
-
-CONFIGURE_ARGS+=--without-client
-
-MAN5= disklist.5 \
- tapelist.5
-MAN7= amanda-changers.7 \
- amanda-devices.7
-MAN8= amaddclient.8 amadmin.8 amaespipe.8 amcheck.8 \
- amcheckdb.8 amcheckdump.8 amcleanup.8 \
- amcrypt.8 amcryptsimple.8 amcrypt-ossl-asym.8 amcrypt-ossl.8 \
- amdevcheck.8 \
- amdump.8 amfetchdump.8 amflush.8 amgetconf.8 amgpgcrypt.8 \
- amlabel.8 \
- amoverview.8 amreport.8 amrestore.8 amrmtape.8 \
- amserverconfig.8 amservice.8 amstatus.8 \
- amtape.8 amtoc.8 amtapetype.8 \
- amvault.8
-
-.if ${PORT_OPTIONS:MPLOT}
-BUILD_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
-RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
-MAN8+= amplot.8
-PLIST_SUB+= PLOT=''
-CONFIGURE_ARGS+= --with-gnuplot=${LOCALBASE}/bin/gnuplot
-.else
-PLIST_SUB+= PLOT='@comment '
-CONFIGURE_ARGS+= --without-gnuplot
-.endif
-
-.if ${PORT_OPTIONS:MSAMBA}
-SAMBA_PORT?= samba36
-BUILD_DEPENDS+= smbclient:${PORTSDIR}/net/${SAMBA_PORT}
-RUN_DEPENDS+= smbclient:${PORTSDIR}/net/${SAMBA_PORT}
-CONFIGURE_ARGS+= --with-smbclient=${LOCALBASE}/bin/smbclient
-.endif
-
-.if ${PORT_OPTIONS:MMTX}
-BUILD_DEPENDS+= mtx:${PORTSDIR}/misc/mtx
-RUN_DEPENDS+= mtx:${PORTSDIR}/misc/mtx
-.endif
-
-.if ${PORT_OPTIONS:MAESPIPE}
-RUN_DEPENDS+= aespipe:${PORTSDIR}/security/aespipe
-.else
-.endif
-
-# If configure founds libcurl, automatically enabled it (with plist change).
-.if ${PORT_OPTIONS:MS3}
-LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
-CONFIGURE_ARGS+= --enable-s3-device
-PLIST_SUB+= S3DEVICE=''
-.else
-CONFIGURE_ARGS+= --disable-s3-device
-PLIST_SUB+= S3DEVICE='@comment '
-.endif
-
-.if defined (AMANDA_TAPE)
-CONFIGURE_ARGS+= --with-tape-device=${AMANDA_TAPE}
-.endif
-
-# amanda-client part
-.else
-
-pre-fetch:
- @${ECHO} ""
- @${ECHO} "You may use the following build options:"
- @${ECHO} ""
- @${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 DailySet1"
- @${ECHO} " AMANDA_GNUTAR_LISTDIR=dir to specify the directory that"
- @${ECHO} " the gnutar index files should live in"
- @${ECHO} " The default is ${PREFIX}/var/amanda/gnutar-lists"
- @${ECHO} " AMANDA_USER=user to specify the default user"
- @${ECHO} " The default is operator"
- @${ECHO} " AMANDA_GROUP=group to specify the default group"
- @${ECHO} " The default is operator"
- @${ECHO} " AMANDA_DATES=path to client amandates file"
- @${ECHO} ""
-
-CONFLICTS= amanda-client-2.5.* amanda-client-3.* amanda25-client-*
-CONFIGURE_ARGS+=--without-server --with-amandates=${AMANDA_DATES}
-
-MAN5= amanda-archive-format.5 \
- amanda-client.conf.5 \
- amanda.conf.5
-MAN7= amanda-applications.7 \
- amanda-auth.7 \
- amanda-scripts.7
-MAN8= amanda.8 \
- amarchiver.8 \
- amgtar.8 \
- amrecover.8 \
- amsamba.8 \
- amstar.8 \
- amzfs-sendrecv.8 \
- amzfs-snapshot.8 \
- script-email.8
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${EXAMPLESDIR}
- ${CP} -R ${WRKSRC}/example/chg-multi.conf \
- ${WRKSRC}/example/chg-scsi.conf \
- ${WRKSRC}/example/disklist \
- ${EXAMPLESDIR}
-.endif
- ${MKDIR} ${AMANDA_GNUTAR_LISTDIR}
- ${CHOWN} ${AMANDA_USER}:${AMANDA_GROUP} ${AMANDA_GNUTAR_LISTDIR}
- ${TOUCH} ${AMANDA_DATES}
- ${CHOWN} ${AMANDA_USER}:${AMANDA_GROUP} ${AMANDA_DATES}
-
-.endif
-
-.if ${PORT_OPTIONS:MZFSCOMP}
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-application-src::amzfs-sendrecv.pl
-.endif
-
-# MEMO:
-# Prefix @WANT_SERVER_TRUE@ for server only files.
-# Prefix @WANT_CLIENT_TRUE@ for client only files.
-# For debugging: dbprintf(_("getcmd: %s\n"), line);
-# Maintainer TODO:
-# o amanda-server installs libexec/amanda/amandad, sbin/amarchiver
-# which should be handled by amanda-client only.
-# o pthread issue: http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD#Threading_and_-pthread
-
-.include <bsd.port.mk>
diff --git a/misc/amanda26-server/distinfo b/misc/amanda26-server/distinfo
deleted file mode 100644
index c2e20b9dea91..000000000000
--- a/misc/amanda26-server/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (amanda-2.6.1p2.tar.gz) = 828c71040f1ccf69f9996907a3575b7dc27890ea7a5fae5eac77183125eda195
-SIZE (amanda-2.6.1p2.tar.gz) = 2868102
diff --git a/misc/amanda26-server/files/extra-patch-application-src::amzfs-sendrecv.pl b/misc/amanda26-server/files/extra-patch-application-src::amzfs-sendrecv.pl
deleted file mode 100644
index 0a19153747d9..000000000000
--- a/misc/amanda26-server/files/extra-patch-application-src::amzfs-sendrecv.pl
+++ /dev/null
@@ -1,52 +0,0 @@
---- application-src/amzfs-sendrecv.pl.orig 2009-01-22 02:35:38.000000000 +0100
-+++ application-src/amzfs-sendrecv.pl 2009-01-31 10:37:59.495534563 +0100
-@@ -235,13 +235,48 @@
- } elsif (defined $errmsg) {
- $self->print_to_server_and_die($action, $errmsg, $Amanda::Script_App::ERROR);
- } else {
-- $self->print_to_server_and_die($action, "cannot estimate snapshot '$self->{snapshot}\@$self->{snapshot}': unknown reason", $Amanda::Script_App::ERROR);
-+ $self->print_to_server_and_die($action, "cannot estimate snapshot '$self->{snapshot}\@$self->{snapshot}': unknown reason", $Amanda::Script_App::ERROR);
- }
- }
-+ if ($level == 0) {
-+ my $compratio = $self->get_compratio();
-+ $msg *= int $compratio;
-+ }
-
- return $msg;
- }
-
-+sub get_compratio
-+{
-+ my $self = shift;
-+ my $action = shift;
-+
-+ my $cmd;
-+ $cmd = "$self->{pfexec_cmd} $self->{zfs_path} get -Hp -o value compressratio $self->{filesystem}\@$self->{snapshot}";
-+ debug "running (get-compression): $cmd";
-+ my($wtr, $rdr, $err, $pid);
-+ $err = Symbol::gensym;
-+ $pid = open3($wtr, $rdr, $err, $cmd);
-+ close $wtr;
-+ my ($msg) = <$rdr>;
-+ my ($errmsg) = <$err>;
-+ waitpid $pid, 0;
-+ close $rdr;
-+ close $err;
-+ if ($? != 0) {
-+ if (defined $msg && defined $errmsg) {
-+ $self->print_to_server_and_die($action, "$msg, $errmsg", $Amanda::Script_App::ERROR);
-+ } elsif (defined $msg) {
-+ $self->print_to_server_and_die($action, $msg, $Amanda::Script_App::ERROR);
-+ } elsif (defined $errmsg) {
-+ $self->print_to_server_and_die($action, $errmsg, $Amanda::Script_App::ERROR);
-+ } else {
-+ $self->print_to_server_and_die($action, "cannot read compression ratio '$self->{snapshot}\@$self->{snapshot}': unknown reason", $Amanda::Script_App::ERROR);
-+ }
-+ }
-+ return $msg
-+}
-+
- sub command_index_from_output {
- }
-
diff --git a/misc/amanda26-server/files/extra-patch-sendbackup-dump.c b/misc/amanda26-server/files/extra-patch-sendbackup-dump.c
deleted file mode 100644
index 3a232d1a8f25..000000000000
--- a/misc/amanda26-server/files/extra-patch-sendbackup-dump.c
+++ /dev/null
@@ -1,23 +0,0 @@
---- client-src/sendbackup-dump.c.orig 2008-12-13 04:18:11.000000000 +0900
-+++ client-src/sendbackup-dump.c 2009-01-27 07:30:40.000000000 +0900
-@@ -35,6 +35,10 @@
- #include "clock.h"
- #include "version.h"
-
-+#ifdef __FreeBSD__
-+#include <sys/param.h>
-+#endif
-+
- #define LEAF_AND_DIRS "sed -e \'\ns/^leaf[ \t]*[0-9]*[ \t]*\\.//\nt\n/^dir[ \t]/ {\ns/^dir[ \t]*[0-9]*[ \t]*\\.//\ns%$%/%\nt\n}\nd\n\'"
-
- static amregex_t re_table[] = {
-@@ -310,6 +314,9 @@
- cmdX, config,
- "vxdump",
- dumpkeys,
-+#ifdef __FreeBSD__
-+ "64",
-+#endif
- "1048576",
- "-",
- device,
diff --git a/misc/amanda26-server/files/patch-ad b/misc/amanda26-server/files/patch-ad
deleted file mode 100644
index 3fff9c551c52..000000000000
--- a/misc/amanda26-server/files/patch-ad
+++ /dev/null
@@ -1,14 +0,0 @@
---- client-src/calcsize.c.orig 2008-01-18 09:31:16.000000000 +0900
-+++ client-src/calcsize.c 2008-08-30 20:11:59.000000000 +0900
-@@ -160,7 +160,11 @@
- dump_total += (ST_BLOCKS(finfo) + (off_t)1) / (off_t)2 + (off_t)1;
- gtar_total += ROUND(4,(ST_BLOCKS(finfo) + (off_t)1));
- }
-+#ifdef GNUTAR
-+ g_printf(" GNUTAR dump\n");
-+#else
- g_printf(" gtar dump\n");
-+#endif
- g_printf("total %-9lu %-9lu\n",gtar_total,dump_total);
- return 0;
- #else
diff --git a/misc/amanda26-server/files/patch-amandad-src__Makefile.in b/misc/amanda26-server/files/patch-amandad-src__Makefile.in
deleted file mode 100644
index 9a80b4b90f95..000000000000
--- a/misc/amanda26-server/files/patch-amandad-src__Makefile.in
+++ /dev/null
@@ -1,12 +0,0 @@
---- amandad-src/Makefile.in.orig 2009-01-27 13:43:16.000000000 +0900
-+++ amandad-src/Makefile.in 2009-01-27 13:44:02.000000000 +0900
-@@ -776,7 +776,8 @@
- AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
- LINT = $(AMLINT)
- LINTFLAGS = $(AMLINTFLAGS)
--amlib_LTLIBRARIES = libamandad.la
-+@WANT_SERVER_TRUE@amlib_LTLIBRARIES =
-+@WANT_CLIENT_TRUE@amlib_LTLIBRARIES = libamandad.la
- LIB_EXTENSION = la
- libamandad_la_SOURCES = amandad_util.c
- libamandad_la_LDFLAGS = -release $(VERSION)
diff --git a/misc/amanda26-server/files/patch-amar-src__Makefile.in b/misc/amanda26-server/files/patch-amar-src__Makefile.in
deleted file mode 100644
index c7941f44904e..000000000000
--- a/misc/amanda26-server/files/patch-amar-src__Makefile.in
+++ /dev/null
@@ -1,12 +0,0 @@
---- amar-src/Makefile.in.orig 2009-01-27 14:01:04.000000000 +0900
-+++ amar-src/Makefile.in 2009-01-27 14:01:36.000000000 +0900
-@@ -856,7 +856,8 @@
- AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
- LINT = @AMLINT@
- LINTFLAGS = @AMLINTFLAGS@
--amlib_LTLIBRARIES = libamar.la
-+@WANT_SERVER_TRUE@amlib_LTLIBRARIES =
-+@WANT_CLIENT_TRUE@amlib_LTLIBRARIES = libamar.la
- libamar_la_SOURCES = amar.c
- libamar_la_LDFLAGS = -release $(VERSION)
- libamar_la_LIBADD = ../common-src/libamanda.la
diff --git a/misc/amanda26-server/files/patch-changer-src__chg-glue.pl b/misc/amanda26-server/files/patch-changer-src__chg-glue.pl
deleted file mode 100644
index 20467d2116fd..000000000000
--- a/misc/amanda26-server/files/patch-changer-src__chg-glue.pl
+++ /dev/null
@@ -1,10 +0,0 @@
---- changer-src/chg-glue.pl.orig 2009-01-28 15:06:00.000000000 +0900
-+++ changer-src/chg-glue.pl 2009-01-28 15:06:22.000000000 +0900
-@@ -206,6 +206,7 @@
- finish();
- return;
- }
-+ chomp($command);
-
- if (($slot) = ($command =~ /^-slot (.*)$/)) {
- do_slot($slot);
diff --git a/misc/amanda26-server/files/patch-common-src__Makefile.in b/misc/amanda26-server/files/patch-common-src__Makefile.in
deleted file mode 100644
index 9da99a06935e..000000000000
--- a/misc/amanda26-server/files/patch-common-src__Makefile.in
+++ /dev/null
@@ -1,49 +0,0 @@
---- common-src/Makefile.in.orig 2009-11-06 05:11:37.000000000 +0900
-+++ common-src/Makefile.in 2009-12-14 10:29:52.479439079 +0900
-@@ -1091,6 +1091,7 @@
-
- sbin_SCRIPTS_PERL = \
- $(sbin_CHECK_PERL)
-+@WANT_SERVER_TRUE@sbin_SCRIPTS_PERL =
-
- amlibexec_CHECK_PERL =
- amlibexec_SCRIPTS_PERL = \
-@@ -1101,6 +1102,7 @@
- amaespipe \
- amcrypt-ossl \
- amcrypt-ossl-asym
-+@WANT_SERVER_TRUE@sbin_SCRIPTS_SHELL =
-
- amlibexec_SCRIPTS_SHELL =
- SCRIPTS_INCLUDE = \
-@@ -1155,18 +1157,18 @@
- versuff.c: $(top_builddir)/config.status $(srcdir)/versuff.c.in
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
- install-amlibLTLIBRARIES: $(amlib_LTLIBRARIES)
-- @$(NORMAL_INSTALL)
-- test -z "$(amlibdir)" || $(MKDIR_P) "$(DESTDIR)$(amlibdir)"
-- @list='$(amlib_LTLIBRARIES)'; test -n "$(amlibdir)" || list=; \
-- list2=; for p in $$list; do \
-- if test -f $$p; then \
-- list2="$$list2 $$p"; \
-- else :; fi; \
-- done; \
-- test -z "$$list2" || { \
-- echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(amlibdir)'"; \
-- $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(amlibdir)"; \
-- }
-+@WANT_CLIENT_TRUE@ @$(NORMAL_INSTALL)
-+@WANT_CLIENT_TRUE@ test -z "$(amlibdir)" || $(MKDIR_P) "$(DESTDIR)$(amlibdir)"
-+@WANT_CLIENT_TRUE@ @list='$(amlib_LTLIBRARIES)'; test -n "$(amlibdir)" || list=; \
-+@WANT_CLIENT_TRUE@ list2=; for p in $$list; do \
-+@WANT_CLIENT_TRUE@ if test -f $$p; then \
-+@WANT_CLIENT_TRUE@ list2="$$list2 $$p"; \
-+@WANT_CLIENT_TRUE@ else :; fi; \
-+@WANT_CLIENT_TRUE@ done; \
-+@WANT_CLIENT_TRUE@ test -z "$$list2" || { \
-+@WANT_CLIENT_TRUE@ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(amlibdir)'"; \
-+@WANT_CLIENT_TRUE@ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(amlibdir)"; \
-+@WANT_CLIENT_TRUE@ }
-
- uninstall-amlibLTLIBRARIES:
- @$(NORMAL_UNINSTALL)
diff --git a/misc/amanda26-server/files/patch-common-src__glib-util.c b/misc/amanda26-server/files/patch-common-src__glib-util.c
deleted file mode 100644
index eb92dddcfc54..000000000000
--- a/misc/amanda26-server/files/patch-common-src__glib-util.c
+++ /dev/null
@@ -1,91 +0,0 @@
---- common-src/glib-util.c.orig 2008-12-01 21:17:19.000000000 +0000
-+++ common-src/glib-util.c 2013-02-07 15:54:40.000000000 +0000
-@@ -38,26 +38,15 @@
- if (did_glib_init) return;
- did_glib_init = TRUE;
-
-- /* Initialize glib's type system */
-- g_type_init();
--
- /* set up libcurl (this must happen before threading
- * is initialized) */
- #ifdef HAVE_LIBCURL
- # ifdef G_THREADS_ENABLED
-- g_assert(!g_thread_supported());
-+ g_assert(!g_thread_supported()); /* assert threads aren't initialized yet */
- # endif
- g_assert(curl_global_init(CURL_GLOBAL_ALL) == 0);
- #endif
-
-- /* And set up glib's threads */
--#if defined(G_THREADS_ENABLED) && !defined(G_THREADS_IMPL_NONE)
-- if (g_thread_supported()) {
-- return;
-- }
-- g_thread_init(NULL);
--#endif
--
- /* do a version check */
- #if GLIB_CHECK_VERSION(2,6,0)
- {
-@@ -71,6 +60,17 @@
- }
- }
- #endif
-+
-+ /* Initialize glib's type system. On glib >= 2.24, this will initialize
-+ * threads, so it must be done after curl is initialized. */
-+ g_type_init();
-+
-+ /* And set up glib's threads */
-+#if defined(G_THREADS_ENABLED) && !defined(G_THREADS_IMPL_NONE)
-+ if (!g_thread_supported())
-+ g_thread_init(NULL);
-+#endif
-+
- }
-
- typedef enum {
-@@ -107,38 +107,19 @@
- return to;
- }
-
--void g_list_free_full(GList * list) {
-- GList * cur = list;
--
-- while (cur != NULL) {
-- gpointer data = cur->data;
-- amfree(data);
-- cur = g_list_next(cur);
-- }
--
-- g_list_free(list);
--}
--
--void g_slist_free_full(GSList * list) {
-+#if (GLIB_MAJOR_VERSION < 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 28))
-+void _slist_free_full(GSList * list, GDestroyNotify free_fn) {
- GSList * cur = list;
-
- while (cur != NULL) {
- gpointer data = cur->data;
-- amfree(data);
-+ free_fn(data);
- cur = g_slist_next(cur);
- }
-
- g_slist_free(list);
- }
--
--void g_queue_free_full(GQueue * queue) {
-- while (!g_queue_is_empty(queue)) {
-- gpointer data;
-- data = g_queue_pop_head(queue);
-- amfree(data);
-- }
-- g_queue_free(queue);
--}
-+#endif
-
- void g_ptr_array_free_full(GPtrArray * array) {
- size_t i;
diff --git a/misc/amanda26-server/files/patch-common-src_conffile.c b/misc/amanda26-server/files/patch-common-src_conffile.c
deleted file mode 100644
index 1503c7f5c67e..000000000000
--- a/misc/amanda26-server/files/patch-common-src_conffile.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- common-src/conffile.c.orig 2011-06-25 22:48:30.000000000 +0200
-+++ common-src/conffile.c 2011-06-25 22:58:42.000000000 +0200
-@@ -4151,7 +4151,7 @@
- amfree(config_name);
- amfree(config_dir);
-
-- g_slist_free_full(seen_filenames);
-+ _slist_free_full(seen_filenames, g_free);
- seen_filenames = NULL;
-
- config_client = FALSE;
-@@ -5655,7 +5655,7 @@
- break;
-
- case CONFTYPE_PP_SCRIPTLIST:
-- g_slist_free_full(val->v.pp_scriptlist);
-+ _slist_free_full(val->v.pp_scriptlist, g_free);
- break;
-
- case CONFTYPE_APPLICATION:
-@@ -6771,7 +6771,7 @@
- void
- config_clear_errors(void)
- {
-- g_slist_free_full(cfgerr_errors);
-+ _slist_free_full(cfgerr_errors, g_free);
-
- cfgerr_errors = NULL;
- cfgerr_level = CFGERR_OK;
diff --git a/misc/amanda26-server/files/patch-common-src_glib-util.h b/misc/amanda26-server/files/patch-common-src_glib-util.h
deleted file mode 100644
index 913e150674ee..000000000000
--- a/misc/amanda26-server/files/patch-common-src_glib-util.h
+++ /dev/null
@@ -1,22 +0,0 @@
---- common-src/glib-util.h.orig 2008-12-01 21:17:19.000000000 +0000
-+++ common-src/glib-util.h 2013-02-07 15:54:27.000000000 +0000
-@@ -62,11 +62,16 @@
- * Returns its second (reset) argument.*/
- GValue* g_value_unset_copy(const GValue* from, GValue * to);
-
-+/* This function is available in glib-2.28.0 and higher; for lower versions
-+ * we build our own version with a different name */
-+#if (GLIB_MAJOR_VERSION < 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 28))
-+void _slist_free_full(GSList * list, GDestroyNotify free_fn);
-+#else
-+#define _slist_free_full(list, free_fn) g_slist_free_full((list), (free_fn))
-+#endif
-+
- /* These functions all take a GLib container, and call free() on all the
- * pointers in the container before free()ing the container itself. */
--void g_list_free_full(GList * list);
--void g_slist_free_full(GSList * list);
--void g_queue_free_full(GQueue * queue);
- void g_ptr_array_free_full(GPtrArray * array);
-
- /* g_value_compare() does what you expect. It returns TRUE if and
diff --git a/misc/amanda26-server/files/patch-man__Makefile.in b/misc/amanda26-server/files/patch-man__Makefile.in
deleted file mode 100644
index daeea0759ce8..000000000000
--- a/misc/amanda26-server/files/patch-man__Makefile.in
+++ /dev/null
@@ -1,10 +0,0 @@
---- man/Makefile.in.orig 2009-01-22 22:51:25.000000000 +0900
-+++ man/Makefile.in 2009-01-27 07:27:10.000000000 +0900
-@@ -640,6 +640,7 @@
- amanda-auth.7 \
- amarchiver.8 \
- script-email.8
-+@WANT_SERVER_TRUE@COMMON_MAN_PAGES =
-
- CLIENT_MAN_PAGES = \
- amanda-applications.7 \
diff --git a/misc/amanda26-server/files/patch-perl__Amanda__Process.pm b/misc/amanda26-server/files/patch-perl__Amanda__Process.pm
deleted file mode 100644
index 806659b3f979..000000000000
--- a/misc/amanda26-server/files/patch-perl__Amanda__Process.pm
+++ /dev/null
@@ -1,11 +0,0 @@
---- perl/Amanda/Process.pm.orig 2009-01-28 13:57:55.000000000 +0900
-+++ perl/Amanda/Process.pm 2009-01-28 13:58:19.000000000 +0900
-@@ -155,7 +155,7 @@
- $self->{ppid} = ();
- my $ps_argument = $Amanda::Constants::PS_ARGUMENT;
- if ($ps_argument eq "CYGWIN") {
-- open(PSTABLE, "-|", "ps -ef") || die("ps -ef: $!");
-+ open(PSTABLE, "-|", "ps -f") || die("ps -f: $!");
- my $psline = <PSTABLE>; #header line
- while($psline = <PSTABLE>) {
- chomp $psline;
diff --git a/misc/amanda26-server/files/patch-perl__Makefile.in b/misc/amanda26-server/files/patch-perl__Makefile.in
deleted file mode 100644
index b32626c1144e..000000000000
--- a/misc/amanda26-server/files/patch-perl__Makefile.in
+++ /dev/null
@@ -1,195 +0,0 @@
---- perl/Makefile.in.orig 2009-01-22 22:51:25.000000000 +0900
-+++ perl/Makefile.in 2009-01-27 16:15:23.000000000 +0900
-@@ -316,9 +316,9 @@
- $(libApplication_la_LDFLAGS) $(LDFLAGS) -o $@
- @WANT_CLIENT_TRUE@am_libApplication_la_rpath = -rpath \
- @WANT_CLIENT_TRUE@ $(libApplicationdir)
--libArchive_la_DEPENDENCIES = libamglue.la \
-- $(top_builddir)/amar-src/libamar.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libArchive_la_DEPENDENCIES = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/amar-src/libamar.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
- am_libArchive_la_OBJECTS = Archive.lo $(am__objects_1)
- libArchive_la_OBJECTS = $(am_libArchive_la_OBJECTS)
- libArchive_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
-@@ -337,15 +337,15 @@
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(libCmdline_la_LDFLAGS) $(LDFLAGS) -o $@
- @WANT_SERVER_TRUE@am_libCmdline_la_rpath = -rpath $(libCmdlinedir)
--libConfig_la_DEPENDENCIES = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libConfig_la_DEPENDENCIES = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
- am_libConfig_la_OBJECTS = Config.lo $(am__objects_1)
- libConfig_la_OBJECTS = $(am_libConfig_la_OBJECTS)
- libConfig_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(libConfig_la_LDFLAGS) $(LDFLAGS) -o $@
--libDebug_la_DEPENDENCIES = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libDebug_la_DEPENDENCIES = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
- am_libDebug_la_OBJECTS = Debug.lo $(am__objects_1)
- libDebug_la_OBJECTS = $(am_libDebug_la_OBJECTS)
- libDebug_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
-@@ -376,8 +376,8 @@
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(libLogfile_la_LDFLAGS) $(LDFLAGS) -o $@
- @WANT_SERVER_TRUE@am_libLogfile_la_rpath = -rpath $(libLogfiledir)
--libMainLoop_la_DEPENDENCIES = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libMainLoop_la_DEPENDENCIES = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
- am_libMainLoop_la_OBJECTS = MainLoop.lo $(am__objects_1)
- libMainLoop_la_OBJECTS = $(am_libMainLoop_la_OBJECTS)
- libMainLoop_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
-@@ -396,23 +396,23 @@
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(libTapelist_la_LDFLAGS) $(LDFLAGS) -o $@
- @WANT_SERVER_TRUE@am_libTapelist_la_rpath = -rpath $(libTapelistdir)
--libTests_la_DEPENDENCIES = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libTests_la_DEPENDENCIES = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
- am_libTests_la_OBJECTS = Tests.lo $(am__objects_1)
- libTests_la_OBJECTS = $(am_libTests_la_OBJECTS)
- libTests_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(libTests_la_LDFLAGS) $(LDFLAGS) -o $@
--libTypes_la_DEPENDENCIES = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libTypes_la_DEPENDENCIES = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
- am_libTypes_la_OBJECTS = Types.lo $(am__objects_1)
- libTypes_la_OBJECTS = $(am_libTypes_la_OBJECTS)
- libTypes_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(libTypes_la_LDFLAGS) $(LDFLAGS) -o $@
--libUtil_la_DEPENDENCIES = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
--am_libUtil_la_OBJECTS = Util.lo $(am__objects_1)
-+@WANT_CLIENT_TRUE@libUtil_la_DEPENDENCIES = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@am_libUtil_la_OBJECTS = Util.lo $(am__objects_1)
- libUtil_la_OBJECTS = $(am_libUtil_la_OBJECTS)
- libUtil_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-@@ -984,7 +984,8 @@
- $(am__append_2) $(am__append_3) $(am__append_4)
-
- # (amplot has a conditional, but doesn't have any header files)
--amlib_LTLIBRARIES = libamglue.la
-+@WANT_SERVER_TRUE@amlib_LTLIBRARIES =
-+@WANT_CLIENT_TRUE@amlib_LTLIBRARIES = libamglue.la
- libamglue_la_SOURCES = \
- amglue/ghashtable.c \
- amglue/bigint.c \
-@@ -1042,10 +1043,11 @@
- Amanda/Types.pm Amanda/Tests.pm Amanda/MainLoop.pm \
- Amanda/Paths.pm Amanda/Constants.pm Amanda/Script_App.pm \
- $(am__append_8) Amanda/Script.pm
-+@WANT_SERVER_TRUE@Amanda_DATA = $(am__append_5)
-
- # PACKAGE: Amanda::Archive
--libArchivedir = $(amperldir)/auto/Amanda/Archive
--libArchive_LTLIBRARIES = libArchive.la
-+@WANT_CLIENT_TRUE@libArchivedir = $(amperldir)/auto/Amanda/Archive
-+@WANT_CLIENT_TRUE@libArchive_LTLIBRARIES = libArchive.la
- libArchive_la_SOURCES = Amanda/Archive.c $(AMGLUE_SWG)
- libArchive_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
- libArchive_la_LIBADD = libamglue.la \
-@@ -1118,57 +1120,57 @@
-
-
- # PACKAGE: Amanda::Debug
--libDebugdir = $(amperldir)/auto/Amanda/Debug
--libDebug_LTLIBRARIES = libDebug.la
--libDebug_la_SOURCES = Amanda/Debug.c $(AMGLUE_SWG)
--libDebug_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
--libDebug_la_LIBADD = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libDebugdir = $(amperldir)/auto/Amanda/Debug
-+@WANT_CLIENT_TRUE@libDebug_LTLIBRARIES = libDebug.la
-+@WANT_CLIENT_TRUE@libDebug_la_SOURCES = Amanda/Debug.c $(AMGLUE_SWG)
-+@WANT_CLIENT_TRUE@libDebug_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
-+@WANT_CLIENT_TRUE@libDebug_la_LIBADD = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
-
-
- # PACKAGE: Amanda::Config
--libConfigdir = $(amperldir)/auto/Amanda/Config
--libConfig_LTLIBRARIES = libConfig.la
--libConfig_la_SOURCES = Amanda/Config.c $(AMGLUE_SWG)
--libConfig_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
--libConfig_la_LIBADD = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libConfigdir = $(amperldir)/auto/Amanda/Config
-+@WANT_CLIENT_TRUE@libConfig_LTLIBRARIES = libConfig.la
-+@WANT_CLIENT_TRUE@libConfig_la_SOURCES = Amanda/Config.c $(AMGLUE_SWG)
-+@WANT_CLIENT_TRUE@libConfig_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
-+@WANT_CLIENT_TRUE@libConfig_la_LIBADD = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
-
-
- # PACKAGE: Amanda::Util
--libUtildir = $(amperldir)/auto/Amanda/Util
--libUtil_LTLIBRARIES = libUtil.la
--libUtil_la_SOURCES = Amanda/Util.c $(AMGLUE_SWG)
--libUtil_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
--libUtil_la_LIBADD = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libUtildir = $(amperldir)/auto/Amanda/Util
-+@WANT_CLIENT_TRUE@libUtil_LTLIBRARIES = libUtil.la
-+@WANT_CLIENT_TRUE@libUtil_la_SOURCES = Amanda/Util.c $(AMGLUE_SWG)
-+@WANT_CLIENT_TRUE@libUtil_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
-+@WANT_CLIENT_TRUE@libUtil_la_LIBADD = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
-
-
- # PACKAGE: Amanda::Types
--libTypesdir = $(amperldir)/auto/Amanda/Types
--libTypes_LTLIBRARIES = libTypes.la
--libTypes_la_SOURCES = Amanda/Types.c $(AMGLUE_SWG)
--libTypes_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
--libTypes_la_LIBADD = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libTypesdir = $(amperldir)/auto/Amanda/Types
-+@WANT_CLIENT_TRUE@libTypes_LTLIBRARIES = libTypes.la
-+@WANT_CLIENT_TRUE@libTypes_la_SOURCES = Amanda/Types.c $(AMGLUE_SWG)
-+@WANT_CLIENT_TRUE@libTypes_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
-+@WANT_CLIENT_TRUE@libTypes_la_LIBADD = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
-
-
- # PACKAGE: Amanda::Tests
--libTestsdir = $(amperldir)/auto/Amanda/Tests
--libTests_LTLIBRARIES = libTests.la
--libTests_la_SOURCES = Amanda/Tests.c $(AMGLUE_SWG)
--libTests_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
--libTests_la_LIBADD = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libTestsdir = $(amperldir)/auto/Amanda/Tests
-+@WANT_CLIENT_TRUE@libTests_LTLIBRARIES = libTests.la
-+@WANT_CLIENT_TRUE@libTests_la_SOURCES = Amanda/Tests.c $(AMGLUE_SWG)
-+@WANT_CLIENT_TRUE@libTests_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
-+@WANT_CLIENT_TRUE@libTests_la_LIBADD = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
-
-
- # PACKAGE: Amanda::MainLoop
--libMainLoopdir = $(amperldir)/auto/Amanda/MainLoop
--libMainLoop_LTLIBRARIES = libMainLoop.la
--libMainLoop_la_SOURCES = Amanda/MainLoop.c $(AMGLUE_SWG)
--libMainLoop_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
--libMainLoop_la_LIBADD = libamglue.la \
-- $(top_builddir)/common-src/libamanda.la
-+@WANT_CLIENT_TRUE@libMainLoopdir = $(amperldir)/auto/Amanda/MainLoop
-+@WANT_CLIENT_TRUE@libMainLoop_LTLIBRARIES = libMainLoop.la
-+@WANT_CLIENT_TRUE@libMainLoop_la_SOURCES = Amanda/MainLoop.c $(AMGLUE_SWG)
-+@WANT_CLIENT_TRUE@libMainLoop_la_LDFLAGS = $(PERL_EXT_LDFLAGS)
-+@WANT_CLIENT_TRUE@libMainLoop_la_LIBADD = libamglue.la \
-+@WANT_CLIENT_TRUE@ $(top_builddir)/common-src/libamanda.la
-
-
- # PACKAGE: Amanda::Application
diff --git a/misc/amanda26-server/files/patch-server-src__amcleanup.pl b/misc/amanda26-server/files/patch-server-src__amcleanup.pl
deleted file mode 100644
index fbd45ccbea63..000000000000
--- a/misc/amanda26-server/files/patch-server-src__amcleanup.pl
+++ /dev/null
@@ -1,11 +0,0 @@
---- server-src/amcleanup.pl.orig 2009-01-28 13:57:21.000000000 +0900
-+++ server-src/amcleanup.pl 2009-01-28 13:57:33.000000000 +0900
-@@ -94,7 +94,7 @@
- } elsif (!$process_alive) {
- #check amdump/amflush process
- foreach my $pname ("amdump", "amflush") {
-- my $pid = `ps -ef|grep -w ${pname}|grep -w ${config_name}| grep -v grep | awk '{print \$2}'`;
-+ my $pid = `ps -f|grep -w ${pname}|grep -w ${config_name}| grep -v grep | awk '{print \$2}'`;
- chomp $pid;
- if ($pid ne "") {
- $Amanda_process->set_master($pname, $pid);
diff --git a/misc/amanda26-server/files/patch-server-src_amadmin.c b/misc/amanda26-server/files/patch-server-src_amadmin.c
deleted file mode 100644
index 613ac2cfd2c0..000000000000
--- a/misc/amanda26-server/files/patch-server-src_amadmin.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- server-src/amadmin.c.orig 2011-06-25 22:52:23.000000000 +0200
-+++ server-src/amadmin.c 2011-06-25 22:53:50.000000000 +0200
-@@ -1414,7 +1414,7 @@
- amfree(dumpstr);
- dumpfile_free_data(&file);
- }
-- g_slist_free_full(file_list);
-+ _slist_free_full(file_list, g_free);
- break;
-
- case HOLDING_DELETE:
-@@ -1432,7 +1432,7 @@
- error(_("Could not delete '%s'"), (char *)li->data);
- }
- }
-- g_slist_free_full(file_list);
-+ _slist_free_full(file_list, g_free);
- break;
- }
- }
diff --git a/misc/amanda26-server/files/patch-server-src_amflush.c b/misc/amanda26-server/files/patch-server-src_amflush.c
deleted file mode 100644
index b8f9ca13788f..000000000000
--- a/misc/amanda26-server/files/patch-server-src_amflush.c
+++ /dev/null
@@ -1,41 +0,0 @@
---- server-src/amflush.c.orig 2011-06-25 22:52:32.000000000 +0200
-+++ server-src/amflush.c 2011-06-25 22:54:16.000000000 +0200
-@@ -241,7 +241,7 @@
- stralloc((char *)datestamp->data),
- g_compare_strings);
- }
-- g_slist_free_full(all_datestamps);
-+ _slist_free_full(all_datestamps, g_free);
- }
- else {
- /* otherwise, in batch mode, use all datestamps */
-@@ -390,9 +390,9 @@
- }
- }
-
-- g_slist_free_full(datestamp_list);
-+ _slist_free_full(datestamp_list, g_free);
- datestamp_list = NULL;
-- g_slist_free_full(holding_list);
-+ _slist_free_full(holding_list, g_free);
- holding_list = NULL;
-
- if(redirect) { /* rename errfile */
-@@ -583,7 +583,7 @@
- }
- chupper = (char)toupper(ch);
- if (chupper < 'A' || chupper > max_char) {
-- g_slist_free_full(r_datestamp_list);
-+ _slist_free_full(r_datestamp_list, g_free);
- r_datestamp_list = NULL;
- break;
- }
-@@ -591,7 +591,7 @@
- stralloc(datestamps[chupper - 'A']));
- } while ((ch = *a++) != '\0');
- if (r_datestamp_list && ch == '\0') {
-- g_slist_free_full(datestamp_list);
-+ _slist_free_full(datestamp_list, g_free);
- datestamp_list = r_datestamp_list;
- break;
- }
diff --git a/misc/amanda26-server/files/patch-server-src_cmdline.c b/misc/amanda26-server/files/patch-server-src_cmdline.c
deleted file mode 100644
index d1d17a15b9bb..000000000000
--- a/misc/amanda26-server/files/patch-server-src_cmdline.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- server-src/cmdline.c.orig 2011-06-25 22:50:58.000000000 +0200
-+++ server-src/cmdline.c 2011-06-25 22:51:17.000000000 +0200
-@@ -255,7 +255,7 @@
- dumpfile_free_data(&file);
- }
-
-- g_slist_free_full(holding_files);
-+ _slist_free_full(holding_files, g_free);
-
- return matching_files;
- }
diff --git a/misc/amanda26-server/files/patch-server-src_find.c b/misc/amanda26-server/files/patch-server-src_find.c
deleted file mode 100644
index 621c9d02549d..000000000000
--- a/misc/amanda26-server/files/patch-server-src_find.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- server-src/find.c.orig 2011-06-25 22:52:09.000000000 +0200
-+++ server-src/find.c 2011-06-25 22:53:37.000000000 +0200
-@@ -257,7 +257,7 @@
- dumpfile_free_data(&file);
- }
-
-- g_slist_free_full(holding_file_list);
-+ _slist_free_full(holding_file_list, g_free);
- }
-
- static char *
diff --git a/misc/amanda26-server/files/patch-server-src_holding.c b/misc/amanda26-server/files/patch-server-src_holding.c
deleted file mode 100644
index 84f4061e790e..000000000000
--- a/misc/amanda26-server/files/patch-server-src_holding.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- server-src/holding.c.orig 2011-06-25 22:51:58.000000000 +0200
-+++ server-src/holding.c 2011-06-25 22:53:27.000000000 +0200
-@@ -565,7 +565,7 @@
- dumpfile_free_data(&file);
- }
-
-- if (file_list) g_slist_free_full(file_list);
-+ if (file_list) _slist_free_full(file_list, g_free);
-
- return result_list;
- }
-@@ -591,7 +591,7 @@
- dumpfile_free_data(&dfile);
- }
-
-- g_slist_free_full(all_files);
-+ _slist_free_full(all_files, g_free);
-
- return datestamps;
- }
diff --git a/misc/amanda26-server/files/patch-server-src_planner.c b/misc/amanda26-server/files/patch-server-src_planner.c
deleted file mode 100644
index 0fbd3ced557b..000000000000
--- a/misc/amanda26-server/files/patch-server-src_planner.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- server-src/planner.c.orig 2011-06-25 22:52:39.000000000 +0200
-+++ server-src/planner.c 2011-06-25 22:54:23.000000000 +0200
-@@ -431,7 +431,7 @@
- amfree(qhname);
- dumpfile_free_data(&file);
- }
-- g_slist_free_full(holding_list);
-+ _slist_free_full(holding_list, g_free);
- holding_list = NULL;
- }
- g_fprintf(stderr, _("ENDFLUSH\n"));
diff --git a/misc/amanda26-server/pkg-descr b/misc/amanda26-server/pkg-descr
deleted file mode 100644
index b97ec75aa48b..000000000000
--- a/misc/amanda26-server/pkg-descr
+++ /dev/null
@@ -1,19 +0,0 @@
-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/
diff --git a/misc/amanda26-server/pkg-plist b/misc/amanda26-server/pkg-plist
deleted file mode 100644
index 655238c1d854..000000000000
--- a/misc/amanda26-server/pkg-plist
+++ /dev/null
@@ -1,104 +0,0 @@
-lib/amanda/libamdevice-%%SHLIBVER%%.so
-lib/amanda/libamdevice.a
-lib/amanda/libamdevice.la
-lib/amanda/libamdevice.so
-lib/amanda/libamserver-%%SHLIBVER%%.so
-lib/amanda/libamserver.a
-lib/amanda/libamserver.la
-lib/amanda/libamserver.so
-lib/amanda/libamxfer-%%SHLIBVER%%.so
-lib/amanda/libamxfer.a
-lib/amanda/libamxfer.la
-lib/amanda/libamxfer.so
-lib/amanda/librestore-%%SHLIBVER%%.so
-lib/amanda/librestore.a
-lib/amanda/librestore.la
-lib/amanda/librestore.so
-%%SITE_PERL%%/Amanda/Changer.pm
-%%SITE_PERL%%/Amanda/Changer/compat.pm
-%%SITE_PERL%%/Amanda/Changer/disk.pm
-%%SITE_PERL%%/Amanda/Changer/single.pm
-%%SITE_PERL%%/Amanda/Cmdline.pm
-%%SITE_PERL%%/Amanda/DB/Catalog.pm
-%%SITE_PERL%%/Amanda/Device.pm
-%%SITE_PERL%%/Amanda/Logfile.pm
-%%SITE_PERL%%/Amanda/Process.pm
-%%SITE_PERL%%/Amanda/Tapelist.pm
-%%SITE_PERL%%/Amanda/Xfer.pm
-%%SITE_PERL%%/auto/Amanda/Cmdline/libCmdline.a
-%%SITE_PERL%%/auto/Amanda/Cmdline/libCmdline.la
-%%SITE_PERL%%/auto/Amanda/Cmdline/libCmdline.so
-%%SITE_PERL%%/auto/Amanda/Device/libDevice.a
-%%SITE_PERL%%/auto/Amanda/Device/libDevice.la
-%%SITE_PERL%%/auto/Amanda/Device/libDevice.so
-%%SITE_PERL%%/auto/Amanda/Logfile/libLogfile.a
-%%SITE_PERL%%/auto/Amanda/Logfile/libLogfile.la
-%%SITE_PERL%%/auto/Amanda/Logfile/libLogfile.so
-%%SITE_PERL%%/auto/Amanda/Tapelist/libTapelist.a
-%%SITE_PERL%%/auto/Amanda/Tapelist/libTapelist.la
-%%SITE_PERL%%/auto/Amanda/Tapelist/libTapelist.so
-%%SITE_PERL%%/auto/Amanda/Xfer/libXfer.a
-%%SITE_PERL%%/auto/Amanda/Xfer/libXfer.la
-%%SITE_PERL%%/auto/Amanda/Xfer/libXfer.so
-%%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-disk
-libexec/amanda/chg-glue
-libexec/amanda/chg-iomega
-libexec/amanda/chg-juke
-libexec/amanda/chg-lib.sh
-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-zd-mtx
-libexec/amanda/chunker
-libexec/amanda/amidxtaped
-libexec/amanda/driver
-libexec/amanda/dumper
-libexec/amanda/planner
-libexec/amanda/taper
-%%S3DEVICE%%sbin/activate-devpay
-sbin/amaddclient
-sbin/amadmin
-sbin/amcheck
-sbin/amcheckdb
-sbin/amcheckdump
-sbin/amcleanup
-sbin/amdevcheck
-sbin/amdump
-sbin/amfetchdump
-sbin/amflush
-sbin/amlabel
-sbin/amoverview
-%%PLOT%%sbin/amplot
-sbin/amreport
-sbin/amrestore
-sbin/amrmtape
-sbin/amserverconfig
-sbin/amservice
-sbin/amstatus
-sbin/amtape
-sbin/amtapetype
-sbin/amtoc
-sbin/amvault
-@dirrm %%SITE_PERL%%/auto/Amanda/Cmdline
-@dirrm %%SITE_PERL%%/auto/Amanda/Device
-@dirrm %%SITE_PERL%%/auto/Amanda/Logfile
-@dirrm %%SITE_PERL%%/auto/Amanda/Tapelist
-@dirrm %%SITE_PERL%%/auto/Amanda/Xfer
-@dirrm %%SITE_PERL%%/Amanda/DB
-@dirrm %%SITE_PERL%%/Amanda/Changer
-@dirrm include/amanda
diff --git a/misc/amanda26-server/pkg-plist.client b/misc/amanda26-server/pkg-plist.client
deleted file mode 100644
index 428adc9b1350..000000000000
--- a/misc/amanda26-server/pkg-plist.client
+++ /dev/null
@@ -1,136 +0,0 @@
-lib/amanda/libamanda-%%SHLIBVER%%.so
-lib/amanda/libamanda.a
-lib/amanda/libamanda.la
-lib/amanda/libamanda.so
-lib/amanda/libamandad-%%SHLIBVER%%.so
-lib/amanda/libamandad.a
-lib/amanda/libamandad.la
-lib/amanda/libamandad.so
-lib/amanda/libamar-%%SHLIBVER%%.so
-lib/amanda/libamar.a
-lib/amanda/libamar.la
-lib/amanda/libamar.so
-lib/amanda/libamclient-%%SHLIBVER%%.so
-lib/amanda/libamclient.a
-lib/amanda/libamclient.la
-lib/amanda/libamclient.so
-lib/amanda/libamglue.a
-lib/amanda/libamglue.la
-lib/amanda/libamglue.so
-libexec/amanda/amanda-sh-lib.sh
-libexec/amanda/amandad
-libexec/amanda/application/amgtar
-libexec/amanda/application/amgtar_perl
-libexec/amanda/application/amlog-script
-libexec/amanda/application/amsamba
-libexec/amanda/application/amstar
-libexec/amanda/application/amzfs-sendrecv
-libexec/amanda/application/amzfs-snapshot
-libexec/amanda/application/script-email
-libexec/amanda/calcsize
-libexec/amanda/killpgrp
-libexec/amanda/noop
-libexec/amanda/patch-system
-libexec/amanda/rundump
-libexec/amanda/runtar
-libexec/amanda/selfcheck
-libexec/amanda/sendbackup
-libexec/amanda/sendsize
-libexec/amanda/teecount
-libexec/amanda/versionsuffix
-%%SITE_PERL%%/Amanda/Application.pm
-%%SITE_PERL%%/Amanda/Application/Zfs.pm
-%%SITE_PERL%%/Amanda/Archive.pm
-%%SITE_PERL%%/Amanda/BigIntCompat.pm
-%%SITE_PERL%%/Amanda/Config.pm
-%%SITE_PERL%%/Amanda/Constants.pm
-%%SITE_PERL%%/Amanda/Debug.pm
-%%SITE_PERL%%/Amanda/MainLoop.pm
-%%SITE_PERL%%/Amanda/Paths.pm
-%%SITE_PERL%%/Amanda/Script.pm
-%%SITE_PERL%%/Amanda/Script_App.pm
-%%SITE_PERL%%/Amanda/Tests.pm
-%%SITE_PERL%%/Amanda/Types.pm
-%%SITE_PERL%%/Amanda/Util.pm
-%%SITE_PERL%%/auto/Amanda/Application/libApplication.a
-%%SITE_PERL%%/auto/Amanda/Application/libApplication.la
-%%SITE_PERL%%/auto/Amanda/Application/libApplication.so
-%%SITE_PERL%%/auto/Amanda/Archive/libArchive.a
-%%SITE_PERL%%/auto/Amanda/Archive/libArchive.la
-%%SITE_PERL%%/auto/Amanda/Archive/libArchive.so
-%%SITE_PERL%%/auto/Amanda/Config/libConfig.a
-%%SITE_PERL%%/auto/Amanda/Config/libConfig.la
-%%SITE_PERL%%/auto/Amanda/Config/libConfig.so
-%%SITE_PERL%%/auto/Amanda/Debug/libDebug.a
-%%SITE_PERL%%/auto/Amanda/Debug/libDebug.la
-%%SITE_PERL%%/auto/Amanda/Debug/libDebug.so
-%%SITE_PERL%%/auto/Amanda/MainLoop/libMainLoop.a
-%%SITE_PERL%%/auto/Amanda/MainLoop/libMainLoop.la
-%%SITE_PERL%%/auto/Amanda/MainLoop/libMainLoop.so
-%%SITE_PERL%%/auto/Amanda/Tests/libTests.a
-%%SITE_PERL%%/auto/Amanda/Tests/libTests.la
-%%SITE_PERL%%/auto/Amanda/Tests/libTests.so
-%%SITE_PERL%%/auto/Amanda/Types/libTypes.a
-%%SITE_PERL%%/auto/Amanda/Types/libTypes.la
-%%SITE_PERL%%/auto/Amanda/Types/libTypes.so
-%%SITE_PERL%%/auto/Amanda/Util/libUtil.a
-%%SITE_PERL%%/auto/Amanda/Util/libUtil.la
-%%SITE_PERL%%/auto/Amanda/Util/libUtil.so
-sbin/amaespipe
-sbin/amarchiver
-sbin/amcrypt
-sbin/amcrypt-ossl
-sbin/amcrypt-ossl-asym
-sbin/amcryptsimple
-sbin/amgetconf
-sbin/amgpgcrypt
-sbin/amoldrecover
-sbin/amrecover
-%%DATADIR%%/COPYRIGHT
-%%DATADIR%%/ChangeLog
-%%DATADIR%%/NEWS
-%%DATADIR%%/ReleaseNotes
-%%PORTDOCS%%%%EXAMPLESDIR%%/disklist
-%%PORTDOCS%%%%EXAMPLESDIR%%/chg-scsi.conf
-%%PORTDOCS%%%%EXAMPLESDIR%%/chg-multi.conf
-%%DATADIR%%/example/amanda.conf
-%%DATADIR%%/example/amanda-client.conf
-%%DATADIR%%/example/inetd.conf.amandaclient
-%%DATADIR%%/example/inetd.conf.amandaserver
-%%DATADIR%%/example/label-templates/3hole.ps
-%%DATADIR%%/example/label-templates/8.5x11.ps
-%%DATADIR%%/example/label-templates/DIN-A4.ps
-%%DATADIR%%/example/label-templates/DLT-A4.ps
-%%DATADIR%%/example/label-templates/DLT.ps
-%%DATADIR%%/example/label-templates/EXB-8500.ps
-%%DATADIR%%/example/label-templates/HP-DAT.ps
-%%DATADIR%%/example/xinetd.amandaclient
-%%DATADIR%%/example/xinetd.amandaserver
-%%DATADIR%%/template.d/advanced.conf
-%%DATADIR%%/template.d/amanda-harddisk.conf
-%%DATADIR%%/template.d/amanda-single-tape.conf
-%%DATADIR%%/template.d/amanda-tape-changer.conf
-%%DATADIR%%/template.d/amanda-S3.conf
-%%DATADIR%%/template.d/dumptypes
-%%DATADIR%%/template.d/tapetypes
-%%DATADIR%%/template.d/README
-%%DATADIR%%/template.d/chg-manual.conf
-@dirrm %%SITE_PERL%%/auto/Amanda/Util
-@dirrm %%SITE_PERL%%/auto/Amanda/Types
-@dirrm %%SITE_PERL%%/auto/Amanda/Tests
-@dirrm %%SITE_PERL%%/auto/Amanda/MainLoop
-@dirrm %%SITE_PERL%%/auto/Amanda/Debug
-@dirrm %%SITE_PERL%%/auto/Amanda/Config
-@dirrm %%SITE_PERL%%/auto/Amanda/Archive
-@dirrm %%SITE_PERL%%/auto/Amanda/Application
-@dirrm %%SITE_PERL%%/auto/Amanda
-@dirrm %%SITE_PERL%%/Amanda/Application
-@dirrm %%SITE_PERL%%/Amanda
-@dirrm %%DATADIR%%/template.d
-@dirrm %%DATADIR%%/example/label-templates
-@dirrm %%DATADIR%%/example
-@dirrm %%DATADIR%%
-@dirrm libexec/amanda/application
-@dirrm libexec/amanda
-@dirrm lib/amanda
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%