From 4a00eab1c07176018b1460259b2811625715a042 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Oct 30 2013 15:38:43 +0000 Subject: import amanda-3.3.3-7.el7.src.rpm --- diff --git a/.amanda.metadata b/.amanda.metadata new file mode 100644 index 0000000..4e1bd03 --- /dev/null +++ b/.amanda.metadata @@ -0,0 +1,2 @@ +0ef6b84a3942c45a4144f8f6412e821ab29b8ac6 SOURCES/activate-devpay.1.gz +18a416e79e6c52fb59da6e87b040f946f9b5f681 SOURCES/amanda-3.3.3.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/amanda-3.1.1-tcpport.patch b/SOURCES/amanda-3.1.1-tcpport.patch new file mode 100644 index 0000000..dbdbed0 --- /dev/null +++ b/SOURCES/amanda-3.1.1-tcpport.patch @@ -0,0 +1,29 @@ +diff -up amanda-3.1.1/example/amanda-client.conf.in.tcpport amanda-3.1.1/example/amanda-client.conf.in +--- amanda-3.1.1/example/amanda-client.conf.in.tcpport 2010-06-29 19:09:55.000000000 +0200 ++++ amanda-3.1.1/example/amanda-client.conf.in 2010-08-10 14:44:32.372879810 +0200 +@@ -22,3 +22,5 @@ auth "bsdtcp" + + ssh_keys "" # your ssh keys file if you use ssh auth + ++#resolves "resource temporarily unavailable" bug ++unreserved-tcp-port 1025,65535 +diff -up amanda-3.1.1/example/amanda-client-postgresql.conf.in.tcpport amanda-3.1.1/example/amanda-client-postgresql.conf.in +--- amanda-3.1.1/example/amanda-client-postgresql.conf.in.tcpport 2010-06-29 19:09:55.000000000 +0200 ++++ amanda-3.1.1/example/amanda-client-postgresql.conf.in 2010-08-10 14:44:41.423755630 +0200 +@@ -44,3 +44,6 @@ property "foo-PG-DATADIR" "/var/postgres + # For this example: + # archive_command = 'test ! -f /var/postgresql/archive/%f && cp %p /var/postgresql/archive/%f' + property "foo-PG-ARCHIVEDIR" "/var/postgresql/archive" ++ ++#resolves "resource temporarily unavailable" bug ++unreserved-tcp-port 1025,65535 +diff -up amanda-3.1.1/example/amanda.conf.in.tcpport amanda-3.1.1/example/amanda.conf.in +--- amanda-3.1.1/example/amanda.conf.in.tcpport 2010-08-10 14:43:55.640754722 +0200 ++++ amanda-3.1.1/example/amanda.conf.in 2010-08-10 14:44:50.760880089 +0200 +@@ -761,3 +761,6 @@ define script-tool sc-email { + # configurations. + + #includefile "@CONFIG_DIR@/amanda.conf.main" ++ ++#resolves "resource temporarily unavailable" bug ++unreserved-tcp-port 1025,65535 diff --git a/SOURCES/amanda-3.1.1-xattrs.patch b/SOURCES/amanda-3.1.1-xattrs.patch new file mode 100644 index 0000000..62cc855 --- /dev/null +++ b/SOURCES/amanda-3.1.1-xattrs.patch @@ -0,0 +1,55 @@ +diff -up amanda-3.1.1/example/amanda.conf.in.xattrs amanda-3.1.1/example/amanda.conf.in +--- amanda-3.1.1/example/amanda.conf.in.xattrs 2010-08-03 14:45:25.000000000 +0200 ++++ amanda-3.1.1/example/amanda.conf.in 2010-08-03 14:47:42.516753010 +0200 +@@ -718,6 +718,7 @@ define interface local { + define application-tool app_amgtar { + comment "amgtar" + plugin "amgtar" ++ property "XATTRS" "YES" + #property "GNUTAR-PATH" "/path/to/gtar" + #property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir" + #default from gnutar_list_dir setting in amanda-client.conf +diff -up amanda-3.1.1/example/template.d/amanda-harddisk.conf.in.xattrs amanda-3.1.1/example/template.d/amanda-harddisk.conf.in +--- amanda-3.1.1/example/template.d/amanda-harddisk.conf.in.xattrs 2010-06-29 19:09:55.000000000 +0200 ++++ amanda-3.1.1/example/template.d/amanda-harddisk.conf.in 2010-08-03 14:47:17.027752940 +0200 +@@ -30,6 +30,7 @@ define dumptype global { + define application-tool app_amgtar { + comment "amgtar" + plugin "amgtar" ++ property "XATTRS" "YES" + #property "GNUTAR-PATH" "/path/to/gtar" + #property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir" + } +diff -up amanda-3.1.1/example/template.d/amanda-single-tape.conf.in.xattrs amanda-3.1.1/example/template.d/amanda-single-tape.conf.in +--- amanda-3.1.1/example/template.d/amanda-single-tape.conf.in.xattrs 2010-06-29 19:09:55.000000000 +0200 ++++ amanda-3.1.1/example/template.d/amanda-single-tape.conf.in 2010-08-03 14:47:21.307753002 +0200 +@@ -37,6 +37,7 @@ define dumptype global { + define application-tool app_amgtar { + comment "amgtar" + plugin "amgtar" ++ property "XATTRS" "YES" + #property "GNUTAR-PATH" "/path/to/gtar" + #property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir" + } +diff -up amanda-3.1.1/example/template.d/amanda-S3.conf.in.xattrs amanda-3.1.1/example/template.d/amanda-S3.conf.in +--- amanda-3.1.1/example/template.d/amanda-S3.conf.in.xattrs 2010-06-29 19:09:55.000000000 +0200 ++++ amanda-3.1.1/example/template.d/amanda-S3.conf.in 2010-08-03 14:47:26.723752659 +0200 +@@ -38,6 +38,7 @@ define dumptype global { + define application-tool app_amgtar { + comment "amgtar" + plugin "amgtar" ++ property "XATTRS" "YES" + #property "GNUTAR-PATH" "/path/to/gtar" + #property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir" + } +diff -up amanda-3.1.1/example/template.d/amanda-tape-changer.conf.in.xattrs amanda-3.1.1/example/template.d/amanda-tape-changer.conf.in +--- amanda-3.1.1/example/template.d/amanda-tape-changer.conf.in.xattrs 2010-06-29 19:09:55.000000000 +0200 ++++ amanda-3.1.1/example/template.d/amanda-tape-changer.conf.in 2010-08-03 14:47:30.827752997 +0200 +@@ -37,6 +37,7 @@ define dumptype global { + define application-tool app_amgtar { + comment "amgtar" + plugin "amgtar" ++ property "XATTRS" "YES" + #property "GNUTAR-PATH" "/path/to/gtar" + #property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir" + } diff --git a/SOURCES/amanda-3.2.0-config-dir.patch b/SOURCES/amanda-3.2.0-config-dir.patch new file mode 100644 index 0000000..1237799 --- /dev/null +++ b/SOURCES/amanda-3.2.0-config-dir.patch @@ -0,0 +1,19 @@ +diff --git a/example/amanda.conf.in b/example/amanda.conf.in +index 5c6ced7..721d683 100644 +--- a/example/amanda.conf.in ++++ b/example/amanda.conf.in +@@ -225,10 +225,10 @@ holdingdisk hd1 { + # Note that, although the keyword below is infofile, it is only so for + # historic reasons, since now it is supposed to be a directory (unless + # you have selected some database format other than the `text' default) +-infofile "@CONFIG_DIR@/@DEFAULT_CONFIG@/curinfo" # database DIRECTORY +-logdir "@CONFIG_DIR@/@DEFAULT_CONFIG@" # log directory +-indexdir "@CONFIG_DIR@/@DEFAULT_CONFIG@/index" # index directory +-#tapelist "@CONFIG_DIR@/@DEFAULT_CONFIG@/tapelist" # list of used tapes ++infofile "/var/lib/amanda/@DEFAULT_CONFIG@/curinfo" # database DIRECTORY ++logdir "/var/lib/amanda/@DEFAULT_CONFIG@" # log directory ++indexdir "/var/lib/amanda/@DEFAULT_CONFIG@/index" # index directory ++tapelist "/var/lib/amanda/@DEFAULT_CONFIG@/tapelist" # list of used tapes + # tapelist is stored, by default, in the directory that contains amanda.conf + + # tapetypes diff --git a/SOURCES/amanda-3.3.1-stdio.patch b/SOURCES/amanda-3.3.1-stdio.patch new file mode 100644 index 0000000..5b5cf75 --- /dev/null +++ b/SOURCES/amanda-3.3.1-stdio.patch @@ -0,0 +1,15 @@ +diff --git a/gnulib/stdio.in.h b/gnulib/stdio.in.h +index 80b9dbf..dc2dc9a 100644 +--- a/gnulib/stdio.in.h ++++ b/gnulib/stdio.in.h +@@ -140,8 +140,8 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " + /* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ +-#undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++//#undef gets ++//_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ diff --git a/SOURCES/amanda-3.3.2-autogen.patch b/SOURCES/amanda-3.3.2-autogen.patch new file mode 100644 index 0000000..e12af16 --- /dev/null +++ b/SOURCES/amanda-3.3.2-autogen.patch @@ -0,0 +1,10 @@ +diff --git a/autogen b/autogen +index 1d593d8..7cb7343 100755 +--- a/autogen ++++ b/autogen +@@ -57,4 +57,4 @@ autoheader || die "autoheader failed" + touch config/config.h.in + + echo "..automake" +-automake --force --copy --warnings=none || die "automake failed" ++automake --add-missing --force --copy --warnings=none || die "automake failed" diff --git a/SOURCES/amanda-common-makefile.patch b/SOURCES/amanda-common-makefile.patch new file mode 100644 index 0000000..12bb69c --- /dev/null +++ b/SOURCES/amanda-common-makefile.patch @@ -0,0 +1,12 @@ +diff --git a/common-src/Makefile.am b/common-src/Makefile.am +index 40e2eb6..93520b5 100644 +--- a/common-src/Makefile.am ++++ b/common-src/Makefile.am +@@ -146,6 +146,7 @@ genversion_SOURCES = genversion.c svn-info.h + genversion_LDADD = $(libamanda_la_LIBADD) \ + ../gnulib/libgnu.la + ++genversion.@OBJEXT@: $(genversion_SOURCES) genversion.h + genversion.h: $(top_builddir)/config.status + -rm -f $@ $@.new + echo '#define CC "$(CC)"' > $@.new diff --git a/SOURCES/amanda-udp.socket b/SOURCES/amanda-udp.socket new file mode 100644 index 0000000..6d94ebe --- /dev/null +++ b/SOURCES/amanda-udp.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Amanda Activation Socket + +[Socket] +Service=amanda-udp.service +ListenDatagram=10080 + +[Install] +WantedBy=sockets.target diff --git a/SOURCES/amanda-udp@.service b/SOURCES/amanda-udp@.service new file mode 100644 index 0000000..1054252 --- /dev/null +++ b/SOURCES/amanda-udp@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Amanda Backup System +After=local-fs.target + +[Service] +User=amandabackup +Group=disk +ExecStart=/usr/sbin/amandad -auth=bsd amdump +StandardInput=socket diff --git a/SOURCES/amanda.crontab b/SOURCES/amanda.crontab new file mode 100644 index 0000000..8c8bc7d --- /dev/null +++ b/SOURCES/amanda.crontab @@ -0,0 +1,9 @@ +# This is an example for a crontab entry for automated backup with amanda +# With these cron lines, Amanda will check that the correct tape is in +# the drive every weekday afternoon at 4pm (if it isn't, all the +# operators will get mail). At 12:45am that night the dumps will be run. +# +# This should be put in user operator's crontab +# +0 16 * * 1-5 /usr/sbin/amcheck -m DailySet1 +45 0 * * 2-6 /usr/sbin/amdump DailySet1 diff --git a/SOURCES/amanda.socket b/SOURCES/amanda.socket new file mode 100644 index 0000000..136d00f --- /dev/null +++ b/SOURCES/amanda.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Amanda Activation Socket + +[Socket] +ListenStream=10080 +Accept=true + +[Install] +WantedBy=sockets.target diff --git a/SOURCES/amanda@.service b/SOURCES/amanda@.service new file mode 100644 index 0000000..24adab4 --- /dev/null +++ b/SOURCES/amanda@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Amanda Backup System +After=local-fs.target + +[Service] +User=amandabackup +Group=disk +ExecStart=/usr/sbin/amandad -auth=bsdtcp amdump +StandardInput=socket diff --git a/SOURCES/amandahosts b/SOURCES/amandahosts new file mode 100644 index 0000000..affd314 --- /dev/null +++ b/SOURCES/amandahosts @@ -0,0 +1,29 @@ +# Allow access to amanda over the network. See 'man amanda' + +# 'ambackup' connects to 'amandad'. If your 'disklist' is correctly +# set up, i.e. if it does not use 'localhost' but the fully qualified +# domain name (FQDN) of the target machine, then you must put +# the FQDN here. 'ambackup' must be run by user 'amandabackup', so we allow +# access by user 'amandabackup'. Do not forget to add an 'only_from' line to +# '/etc/xinet.d/amanda' to allow access to 'amandad' only from known +# IP addresses. + +# replace mymachine.mydomain by the correct value and uncomment +# mymachine.mydomain amandabackup + + +# 'amrecover' connects to 'amandaidx', which uses the fully qualified +# domain name when access is done from another machine. 'amrecover' +# must be run by user 'root', so we allow access by user 'root'. + +# replace mymachine.mydomain by the correct value and uncomment +# mymachine.mydomain root + + +# 'amrecover' connects to 'amandaidx', which uses the bare machine +# name w/o domain name when access is done from the same machine. +# 'amrecover' must be run by user 'root', so we allow access by user +# 'root'. + +# replace mymachine by the correct value and uncomment +# mymachine root diff --git a/SOURCES/disklist b/SOURCES/disklist new file mode 100644 index 0000000..571b7c0 --- /dev/null +++ b/SOURCES/disklist @@ -0,0 +1,69 @@ +# sample Amanda2 disklist file, derived from CS.UMD.EDU's disklist +# +# If your configuration is called, say, "csd2", then this file normally goes +# in /etc/amanda/csd2/disklist. +# +# File format is: +# +# hostname diskdev dumptype +# +# where the dumptypes are defined by you in amanda.conf. + + +# At our site, root partitions have a different dumptype because they +# are of lower priority; they don't contain user data, and don't change +# much from the department prototype. In a crunch, they can be left for +# last or skipped. + +## A SPARCstation 1+ +#salty sd0a comp-root +#salty sd0g comp-user +#salty sd1g comp-user +#salty sd2a comp-root +#salty sd2g comp-user +#salty sd3c comp-user +# +## A DECstation 3100 +#slithy rz1a comp-root +#slithy rz1g comp-user +#slithy rz3a comp-root +#slithy rz3g comp-user +# +## We don't run compression on the master host since it is going to be +## busy enough running amanda. +#master sd0a nocomp-root -1 local +#master sd0g nocomp-user -1 local +## note: -1 is a placeholder for the spindle number +## the holding disk can't be dumped to itself, it uses a disktype that +## specifies the "no-hold" option (see amanda.conf). +#master sd1c holding-disk -1 local +# +## The chairman's disk is high priority to make sure it gets done. +#bigwig sd0a comp-root +#bigwig sd0g comp-high +## Likewise the named databases in the root partition on our primary +## nameserver. Also, compression is turned off because we don't want +## to create any unnecessary load on this baby (it's only a Sun3). +#bozo sd0a nocomp-high +#bozo sd0g nocomp-user +#bozo sd4c nocomp-user +# +## Dump Joe's NetBSD machine, with the mounted MS-DOS partition dumped +## using tar. +#joespc wd0a comp-root +#joespc wd0e comp-user +#joespc /msdos comp-user-tar +# +## Some really slow machines, like Sun2's and some Vaxstations, take +## forever to compress their dumps: it's just not worth it. +# +## A Sun2 +#cleo sd0a nocomp-root +#cleo sd0g nocomp-user +## A VaxStation +#susie rz8a nocomp-root +#susie rz8g nocomp-user +# +## and so on ... well, you get the idea + +localhost /etc comp-root-tar diff --git a/SOURCES/killpgrp.8 b/SOURCES/killpgrp.8 new file mode 100644 index 0000000..9745d3d --- /dev/null +++ b/SOURCES/killpgrp.8 @@ -0,0 +1,36 @@ +.\" This file is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +.\" the GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this file; if not, write to the Free Software +.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, +.\" MA 02111-1307 USA +.\" +.\" HISTORY: +.\" 2006-05-16, created by Rodrigo Rubira Branco +.TH killpgrp 8 "May 16, 2006" "User Manuals" "User Manuals" +.SH NAME +killpgrp \- kill all processes in the same process group +.SH SYNOPSIS +.nf +.fam C +\fBkillpgrp\fP +.fam T +.fi +.SH DESCRIPTION +Kills all processes in its process group when a process group leader is killed. +.PP +This program needs to be called by the client uid defined in amanda, and is used to kill VDUMP, VXDUMP, and XFSDUMP in a safe manner. It is called by sendsize, the amanda client software. +.PP +killpgrp send a SIGTERM to all processes in its process group. If a process in the group does not exit after three seconds +and does not answer, killpgp will send a SIGKILL. +.SH OPTIONS +\fBkillpgrp\fP takes no arguments. +.SH SECURITY +\fBkillpgrp\fP needs to be setuid root unless amanda is compiled with DONT_SUID_ROOT. +.SH SEE ALSO +\fBamanda\fP(8) +.SH AUTHOR +Manpage written by Rodrigo Rubira Branco diff --git a/SPECS/amanda.spec b/SPECS/amanda.spec new file mode 100644 index 0000000..0980661 --- /dev/null +++ b/SPECS/amanda.spec @@ -0,0 +1,1072 @@ +%define _libexecdir %{_libdir} +%define defconfig DailySet1 +%define indexserver amandahost +%define tapeserver %{indexserver} +%define amanda_user amandabackup +%define amanda_group disk + +%global _hardened_build 1 + +Summary: A network-capable tape backup solution +Name: amanda +Version: 3.3.3 +Release: 7%{?dist} +Source: http://downloads.sourceforge.net/amanda/amanda-%{version}.tar.gz +Source1: amanda.crontab +Source4: disklist +Source8: amandahosts +Source9: amanda.socket +Source10: amanda@.service +Source11: activate-devpay.1.gz +Source12: killpgrp.8 +Source13: amanda-udp.socket +Source14: amanda-udp@.service +Patch2: amanda-3.1.1-xattrs.patch +Patch3: amanda-3.1.1-tcpport.patch +Patch6: amanda-3.2.0-config-dir.patch +Patch10: amanda-3.3.1-stdio.patch +Patch11: amanda-3.3.2-autogen.patch +Patch12: amanda-common-makefile.patch + +License: BSD and GPLv3+ and GPLv2+ and GPLv2 +Group: Applications/System +URL: http://www.amanda.org +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: automake autoconf libtool +%if 0%{?fedora} +BuildRequires: dump +%endif +BuildRequires: gnuplot cups samba-client tar grep fileutils +BuildRequires: gcc-c++ readline-devel +BuildRequires: krb5-devel rsh openssh-clients ncompress mtx mt-st +BuildRequires: perl-devel perl(ExtUtils::Embed) perl(Test::Simple) +BuildRequires: glib2-devel openssl-devel swig bison flex +BuildRequires: libcurl-devel +Requires(pre): shadow-utils +Requires(post): grep sed systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units +Requires: fileutils grep initscripts tar /bin/mail +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: amanda-libs%{?_isa} = %{version}-%{release} +Obsoletes: amanda-devel < 2.6.1p2-5 +Provides: amanda-devel = 2.6.1p2-5 + +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Math::BigInt\\) + +%description +AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a +backup system that allows the administrator of a LAN to set up a +single master backup server to back up multiple hosts to one or more +tape drives or disk files. AMANDA uses native dump and/or GNU tar +facilities and can back up a large number of workstations running +multiple versions of Unix. Newer versions of AMANDA (including this +version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts. +The amanda package contains the core AMANDA programs and will need to +be installed on both AMANDA clients and AMANDA servers. Note that you +will have to install the amanda-client and/or amanda-server packages as +well. + +%package libs +Summary: Amanda libraries +Group: Applications/System +Requires: fileutils grep + +%description libs +This package contains basic Amanda libraries, which are used by all +Amanda programs. + +%package client +Summary: The client component of the AMANDA tape backup system +Group: Applications/System +Requires: fileutils grep +Requires(pre): amanda = %{version}-%{release} + +%description client +The Amanda-client package should be installed on any machine that will +be backed up by AMANDA (including the server if it also needs to be +backed up). You will also need to install the amanda package on each +AMANDA client machine. + +%package server +Summary: The server side of the AMANDA tape backup system +Group: Applications/System +Requires: fileutils grep +Requires(pre): amanda = %{version}-%{release} + +%description server +The amanda-server package should be installed on the AMANDA server, +the machine attached to the device(s) (such as a tape drive) where backups +will be written. You will also need to install the amanda package on +the AMANDA server machine. And, if the server is also to be backed up, the +server also needs to have the amanda-client package installed. + +%prep +%setup -q -n %{name}-%{version} +%patch2 -p1 -b .xattrs +%patch3 -p1 -b .tcpport +%patch6 -p1 -b .config +%patch10 -p1 -b .stdio +%patch11 -p1 -b .autogen +%patch12 -p1 -b .common-makefile +./autogen + +%build +export MAILER=/bin/mail CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS=-pie + +%configure --enable-shared \ + --disable-rpath \ + --disable-static \ + --disable-dependency-tracking \ + --disable-installperms \ + --with-amdatadir=%{_localstatedir}/lib/amanda \ + --with-amlibdir=%{_libdir} \ + --with-amperldir=%{perl_vendorarch} \ + --with-index-server=%{indexserver} \ + --with-tape-server=%{tapeserver} \ + --with-config=%{defconfig} \ + --with-gnutar-listdir=%{_localstatedir}/lib/amanda/gnutar-lists \ + --with-smbclient=%{_bindir}/smbclient \ + --with-amandates=%{_localstatedir}/lib/amanda/amandates \ + --with-amandahosts \ + --with-user=%amanda_user \ + --with-group=%amanda_group \ + --with-tmpdir=/var/log/amanda \ + --with-gnutar=/bin/tar \ + --with-ssh-security \ + --with-rsh-security \ + --with-bsdtcp-security \ + --with-bsdudp-security \ + --with-krb5-security + +make %{?_smp_mflags} + + +%install +rm -rf ${RPM_BUILD_ROOT} + +make install BINARY_OWNER=%(id -un) SETUID_GROUP=%(id -gn) DESTDIR=$RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT/etc/amanda +mkdir -p $RPM_BUILD_ROOT/var/log/amanda +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/amanda +install -m 600 %SOURCE8 $RPM_BUILD_ROOT%{_localstatedir}/lib/amanda/.amandahosts +install -p -m 644 -D %{SOURCE9} %{buildroot}%{_unitdir}/amanda.socket +install -p -m 644 -D %{SOURCE10} %{buildroot}%{_unitdir}/amanda@.service +install -p -m 644 -D %{SOURCE13} %{buildroot}%{_unitdir}/amanda-udp.socket +install -p -m 644 -D %{SOURCE14} %{buildroot}%{_unitdir}/amanda-udp@.service +install -D %{SOURCE11} %{buildroot}/%{_mandir}/man1/activate-devpay.1.gz +install -D %{SOURCE12} %{buildroot}/%{_mandir}/man8/killpgrp.8 + +ln -s %{_libexecdir}/amanda/amandad $RPM_BUILD_ROOT%{_sbindir}/amandad +ln -s amrecover.8.gz $RPM_BUILD_ROOT%{_mandir}/man8/amoldrecover.8 + +pushd ${RPM_BUILD_ROOT} + mv .%{_localstatedir}/lib/amanda/example .%{_sysconfdir}/amanda/%defconfig + cp ${RPM_SOURCE_DIR}/amanda.crontab .%{_sysconfdir}/amanda/crontab.sample + cp ${RPM_SOURCE_DIR}/disklist .%{_sysconfdir}/amanda/%defconfig + cp ${RPM_SOURCE_DIR}/disklist .%{_sysconfdir}/amanda/%defconfig + rm -f .%{_sysconfdir}/amanda/%defconfig/xinetd* + rm -f .%{_sysconfdir}/amanda/%defconfig/inetd* + + mkdir -p .%{_localstatedir}/lib/amanda/gnutar-lists + mkdir -p .%{_localstatedir}/lib/amanda/%defconfig/index + touch .%{_localstatedir}/lib/amanda/amandates +popd +rm -rf $RPM_BUILD_ROOT/usr/share/amanda +find $RPM_BUILD_ROOT -name \*.la | xargs rm + +%check +make check + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%pre +/usr/sbin/useradd -M -N -g %amanda_group -o -r -d %{_localstatedir}/lib/amanda -s /bin/bash \ + -c "Amanda user" -u 33 %amanda_user >/dev/null 2>&1 || : +/usr/bin/gpasswd -a %amanda_user tape >/dev/null 2>&1 || : + +%post +/sbin/ldconfig +%systemd_post amanda.socket +%systemd_post amanda-udp.socket + +%preun +%systemd_preun amanda.socket +%systemd_preun amanda-udp.socket + +%postun +/sbin/ldconfig +%systemd_postun_with_restart amanda.socket +%systemd_postun_with_restart amanda-udp.socket + +%post client -p /sbin/ldconfig + +%post server -p /sbin/ldconfig + +%postun client -p /sbin/ldconfig + +%postun server -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc COPYRIGHT* NEWS README +%{_unitdir}/amanda@.service +%{_unitdir}/amanda.socket +%{_unitdir}/amanda-udp@.service +%{_unitdir}/amanda-udp.socket + + +%dir %{_libexecdir}/amanda +%{_libexecdir}/amanda/amandad +%{_libexecdir}/amanda/amanda-sh-lib.sh +%{_libexecdir}/amanda/amcat.awk +%{_libexecdir}/amanda/amndmjob +%{_libexecdir}/amanda/amplot.awk +%{_libexecdir}/amanda/amplot.g +%{_libexecdir}/amanda/amplot.gp +%{_libexecdir}/amanda/ndmjob + +%{_sbindir}/amandad +%{_sbindir}/amaespipe +%{_sbindir}/amarchiver +%{_sbindir}/amcrypt +%{_sbindir}/amcrypt-ossl +%{_sbindir}/amcrypt-ossl-asym +%{_sbindir}/amcryptsimple +%{_sbindir}/amgetconf +%{_sbindir}/amgpgcrypt +%{_sbindir}/amplot + +%{perl_vendorarch}/Amanda/Archive.pm +%{perl_vendorarch}/Amanda/BigIntCompat.pm +%{perl_vendorarch}/Amanda/ClientService.pm +%{perl_vendorarch}/Amanda/Config.pm +%{perl_vendorarch}/Amanda/Config/ +%{perl_vendorarch}/Amanda/Constants.pm +%{perl_vendorarch}/Amanda/Debug.pm +%{perl_vendorarch}/Amanda/Feature.pm +%{perl_vendorarch}/Amanda/Header.pm +%{perl_vendorarch}/Amanda/IPC +%{perl_vendorarch}/Amanda/MainLoop.pm +%{perl_vendorarch}/Amanda/NDMP.pm +%{perl_vendorarch}/Amanda/Paths.pm +%{perl_vendorarch}/Amanda/Process.pm +%{perl_vendorarch}/Amanda/Script_App.pm +%{perl_vendorarch}/Amanda/Script.pm +%{perl_vendorarch}/Amanda/Tests.pm +%{perl_vendorarch}/Amanda/Util.pm +%{perl_vendorarch}/Amanda/Xfer.pm + +%{_mandir}/man5/amanda-archive-format.5* +%{_mandir}/man7/amanda-compatibility.7* +%{_mandir}/man5/amanda.conf* +%{_mandir}/man7/amanda-auth.7* +%{_mandir}/man7/amanda-match.7* +%{_mandir}/man7/amanda-scripts.7* +%{_mandir}/man8/amanda.8* +%{_mandir}/man8/amarchiver.8* +%{_mandir}/man8/amplot.8* +%{_mandir}/man8/script-email.8* +%{_mandir}/man8/amaespipe.8* +%{_mandir}/man8/amcrypt-ossl-asym.8* +%{_mandir}/man8/amcrypt-ossl.8* +%{_mandir}/man8/amcryptsimple.8* +%{_mandir}/man8/amcrypt.8* +%{_mandir}/man8/amgpgcrypt.8* +%{_mandir}/man8/amgetconf.8* +%{_mandir}/man8/amcleanupdisk.8* + +%dir %{_sysconfdir}/amanda/ +%dir %{_sysconfdir}/amanda/%defconfig + +%attr(-,%amanda_user,%amanda_group) %dir %{_localstatedir}/lib/amanda/ +%attr(600,%amanda_user,%amanda_group) %config(noreplace) %{_localstatedir}/lib/amanda/.amandahosts +%attr(02700,%amanda_user,%amanda_group) %dir /var/log/amanda + +%files libs +%{_libdir}/libamdevice*.so +%{_libdir}/libamserver*.so +%{_libdir}/libamclient*.so +%{_libdir}/libamanda-*.so +%{_libdir}/libamanda.so +%{_libdir}/libamandad*.so +%{_libdir}/libamar*.so +%{_libdir}/libamglue*.so +%{_libdir}/libamxfer*.so +%{_libdir}/libndmjob*.so +%{_libdir}/libndmlib*.so +%{perl_vendorarch}/auto/Amanda/Application/ +%{perl_vendorarch}/auto/Amanda/Cmdline/ +%{perl_vendorarch}/auto/Amanda/Device/ +%{perl_vendorarch}/auto/Amanda/Disklist/ +%{perl_vendorarch}/auto/Amanda/Logfile/ +%{perl_vendorarch}/auto/Amanda/Tapelist/ +%{perl_vendorarch}/auto/Amanda/XferServer/ +%{perl_vendorarch}/auto/Amanda/Archive/ +%{perl_vendorarch}/auto/Amanda/Config/ +%{perl_vendorarch}/auto/Amanda/Debug/ +%{perl_vendorarch}/auto/Amanda/Feature/ +%{perl_vendorarch}/auto/Amanda/Header/ +%{perl_vendorarch}/auto/Amanda/IPC/ +%{perl_vendorarch}/auto/Amanda/MainLoop/ +%{perl_vendorarch}/auto/Amanda/NDMP/ +%{perl_vendorarch}/auto/Amanda/Tests/ +%{perl_vendorarch}/auto/Amanda/Util/ +%{perl_vendorarch}/auto/Amanda/Xfer/ + +%files server +%defattr(-,root,root) +%{_libexecdir}/amanda/amdumpd +%{_libexecdir}/amanda/amcheck-device +%{_libexecdir}/amanda/amidxtaped +%{_libexecdir}/amanda/amindexd +%{_libexecdir}/amanda/amlogroll +%{_libexecdir}/amanda/amtrmidx +%{_libexecdir}/amanda/amtrmlog +%{_libexecdir}/amanda/driver +%attr(4750,root,%amanda_group) %{_libexecdir}/amanda/dumper +%{_libexecdir}/amanda/chg-disk +%{_libexecdir}/amanda/chg-lib.sh +%{_libexecdir}/amanda/chg-manual +%{_libexecdir}/amanda/chg-multi +%{_libexecdir}/amanda/chg-zd-mtx +%{_libexecdir}/amanda/chunker +%attr(4750,root,%amanda_group) %{_libexecdir}/amanda/planner +%{_libexecdir}/amanda/taper +%{_sbindir}/activate-devpay +%{_sbindir}/amaddclient +%{_sbindir}/amadmin +%{_sbindir}/amcleanup +%{_sbindir}/amcleanupdisk +%{_sbindir}/amdevcheck +%{_sbindir}/amdump +%{_sbindir}/amfetchdump +%{_sbindir}/amflush +%attr(4750,root,%amanda_group) %{_sbindir}/amcheck +%{_sbindir}/amcheckdb +%{_sbindir}/amcheckdump +%{_sbindir}/amlabel +%{_sbindir}/amoverview +%{_sbindir}/amreport +%{_sbindir}/amrestore +%{_sbindir}/amrmtape +%{_sbindir}/amserverconfig +%attr(4750,root,%amanda_group) %{_sbindir}/amservice +%{_sbindir}/amstatus +%{_sbindir}/amtape +%{_sbindir}/amtapetype +%{_sbindir}/amtoc +%{_sbindir}/amvault + +%{_mandir}/man5/disklist.5* +%{_mandir}/man5/tapelist.5* +%{_mandir}/man7/amanda-devices.7* +%{_mandir}/man7/amanda-changers.7* +%{_mandir}/man7/amanda-interactivity.7* +%{_mandir}/man7/amanda-taperscan.7* +%{_mandir}/man8/amaddclient.8* +%{_mandir}/man8/amadmin.8* +%{_mandir}/man8/amcleanup.8* +%{_mandir}/man8/amdevcheck.8* +%{_mandir}/man8/amdump.8* +%{_mandir}/man8/amfetchdump.8* +%{_mandir}/man8/amflush.8* +%{_mandir}/man8/amcheckdb.8* +%{_mandir}/man8/amcheckdump.8* +%{_mandir}/man8/amcheck.8* +%{_mandir}/man8/amlabel.8* +%{_mandir}/man8/amoverview.8* +%{_mandir}/man8/amreport.8* +%{_mandir}/man8/amrestore.8* +%{_mandir}/man8/amrmtape.8* +%{_mandir}/man8/amserverconfig.8* +%{_mandir}/man8/amservice.8* +%{_mandir}/man8/amstatus.8* +%{_mandir}/man8/amtapetype.8* +%{_mandir}/man8/amtape.8* +%{_mandir}/man8/amtoc.8* +%{_mandir}/man8/amvault.8* +%{_mandir}/man1/activate-devpay.1* + +%{perl_vendorarch}/Amanda/Cmdline.pm +%{perl_vendorarch}/Amanda/Curinfo/ +%{perl_vendorarch}/Amanda/Curinfo.pm +%{perl_vendorarch}/Amanda/DB/ +%{perl_vendorarch}/Amanda/Device.pm +%{perl_vendorarch}/Amanda/Disklist.pm +%{perl_vendorarch}/Amanda/Extract.pm +%{perl_vendorarch}/Amanda/Holding.pm +%{perl_vendorarch}/Amanda/Changer/ +%{perl_vendorarch}/Amanda/Changer.pm +%{perl_vendorarch}/Amanda/Interactivity/ +%{perl_vendorarch}/Amanda/Interactivity.pm +%{perl_vendorarch}/Amanda/Logfile.pm +%{perl_vendorarch}/Amanda/Recovery/ +%{perl_vendorarch}/Amanda/Report/ +%{perl_vendorarch}/Amanda/Report.pm +%{perl_vendorarch}/Amanda/ScanInventory.pm +%{perl_vendorarch}/Amanda/Tapelist.pm +%{perl_vendorarch}/Amanda/Taper/ +%{perl_vendorarch}/Amanda/XferServer.pm + +%config(noreplace) %{_sysconfdir}/amanda/crontab.sample +%config(noreplace) %{_sysconfdir}/amanda/%defconfig/* +%exclude %{_sysconfdir}/amanda/%defconfig/amanda-client.conf +%exclude %{_sysconfdir}/amanda/%defconfig/amanda-client-postgresql.conf + +%attr(-,%amanda_user,%amanda_group) %dir %{_localstatedir}/lib/amanda/%defconfig/ +%attr(-,%amanda_user,%amanda_group) %dir %{_localstatedir}/lib/amanda/%defconfig/index +%attr(-,%amanda_user,%amanda_group) %dir %{_localstatedir}/lib/amanda/template.d +%attr(-,%amanda_user,%amanda_group) %config(noreplace) %{_localstatedir}/lib/amanda/template.d/* + +%files client +%defattr(-,root,root) + +%dir %{_libexecdir}/amanda/application/ +%attr(4750,root,%amanda_group) %{_libexecdir}/amanda/application/amgtar +%attr(4750,root,%amanda_group) %{_libexecdir}/amanda/application/amstar +%{_libexecdir}/amanda/application/amlog-script +%{_libexecdir}/amanda/application/ampgsql +%{_libexecdir}/amanda/application/amraw +%{_libexecdir}/amanda/application/amsamba +%{_libexecdir}/amanda/application/amsuntar +%{_libexecdir}/amanda/application/amzfs-sendrecv +%{_libexecdir}/amanda/application/amzfs-snapshot +%{_libexecdir}/amanda/application/script-email + +%attr(4750,root,%amanda_group) %{_libexecdir}/amanda/calcsize +%attr(4750,root,%amanda_group) %{_libexecdir}/amanda/killpgrp +%{_libexecdir}/amanda/noop +%{_libexecdir}/amanda/patch-system +%attr(4750,root,%amanda_group) %{_libexecdir}/amanda/rundump +%attr(4750,root,%amanda_group) %{_libexecdir}/amanda/runtar +%{_libexecdir}/amanda/selfcheck +%{_libexecdir}/amanda/sendbackup +%{_libexecdir}/amanda/sendsize +%{_libexecdir}/amanda/teecount +%{_sbindir}/amdump_client +%{_sbindir}/amoldrecover +%{_sbindir}/amrecover + +%{_mandir}/man7/amanda-applications.7* +%{_mandir}/man8/amdump_client.8* +%{_mandir}/man5/amanda-client.conf.5* +%{_mandir}/man8/amgtar.8* +%{_mandir}/man8/ampgsql.8* +%{_mandir}/man8/amraw.8* +%{_mandir}/man8/amrecover.8* +%{_mandir}/man8/amoldrecover.8* +%{_mandir}/man8/amsamba.8* +%{_mandir}/man8/amstar.8* +%{_mandir}/man8/amsuntar.8* +%{_mandir}/man8/amzfs-sendrecv.8* +%{_mandir}/man8/amzfs-snapshot.8* +%{_mandir}/man8/killpgrp.8* + +%{perl_vendorarch}/Amanda/Application.pm +%{perl_vendorarch}/Amanda/Application/ + +%config(noreplace) %{_sysconfdir}/amanda/%defconfig/amanda-client.conf +%config(noreplace) %{_sysconfdir}/amanda/%defconfig/amanda-client-postgresql.conf + +%attr(-,%amanda_user,%amanda_group) %config(noreplace) %{_localstatedir}/lib/amanda/amandates +%attr(-,%amanda_user,%amanda_group) %{_localstatedir}/lib/amanda/gnutar-lists/ + + +%changelog +* Fri Oct 25 2013 Petr Hracek - 3.3.3-7 +- Resolves: #881128 - Move all dynamic libraries into amanda-libs + +* Mon Oct 21 2013 Petr Hracek - 3.3.3-6 +- Resolves: #881128 - Correct Makefile for building under s390x + +* Mon Oct 21 2013 Petr Hracek - 3.3.3-5 +- Resolves: #881128 - package amanda-libs introduced because of multilib issue + +* Tue Jul 16 2013 Petr Hracek - 3.3.3-4 +- Correct problem with man page killpgrp (#881128) + +* Tue Jun 25 2013 Petr Hracek - 3.3.3-3 +- Remove dependency on dump in RHEL-7 + +* Tue Jun 18 2013 Petr Hracek - 3.3.3-2 +- Added systemd udp unit files + +* Fri Mar 22 2013 Petr Hracek - 3.3.3-1 +- New upstream version +- Dependecy to /usr/sbin/service was removed. + Instead of /usr/sbin/service systemd files are used. + +* Thu Mar 21 2013 Petr Hracek - 3.3.2-5 +- Fix (#924326) Requires /sbin/service was changed to /usr/sbin/service + +* Thu Jan 31 2013 Petr Hracek - 3.3.2-4 +- fix (#858703) add killpgrp(8) man page to the amanda-client package + (killpgrp will be removed from man-pages package) +- Fix autogen for parallel tests. + +* Thu Dec 06 2012 Lukáš Nykrýn - 3.3.2-3 +- Fix group ownership +- Add manpage for activate-devpay + +* Tue Sep 18 2012 Petr Pisar - 3.3.2-2 +- Do not provide perl(Math::BigInt) (bug #648321) + +* Wed Aug 15 2012 Lukáš Nykrýn - 3.3.2-1 +- upgrade to new upstream release +- convert to systemd + +* Wed Jul 18 2012 Fedora Release Engineering - 3.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jun 27 2012 Petr Pisar - 3.3.1-2 +- Perl 5.16 rebuild + +* Wed Jun 20 2012 Lukáš Nykrýn - 3.3.1-1 +- upgrade to new upstream release + +* Mon Jun 11 2012 Petr Pisar - 3.3.0-6 +- Perl 5.16 rebuild + +* Wed Apr 18 2012 Lukáš Nykrýn > - 3.3.0-5 +- Fix building issues with newer glib + +* Thu Jan 12 2012 Fedora Release Engineering - 3.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 28 2011 Lukáš Nykrýn - 3.3.0-3 +- fix #757618 - Use of qw(...) as parentheses is deprecated +- fix #752253 - Using functions in amanda-client which are provided by server + +* Thu Jun 16 2011 Marcela Mašláňová - 3.3.0-2 +- Perl mass rebuild + +* Wed Jun 08 2011 Jan Görig - 3.3.0-1 +- upgrade to new upstream release +- uses bsdtcp authentication by default +- dropped amanda-3.1.1-bsd.patch +- modified example directory handling and dropped amanda-3.1.0-example.patch + +* Wed May 4 2011 Jan Görig - 3.3.0-0.1.beta1 +- update to new upstream beta release +- removed merged patch amanda-3.2.2-krb5-libs.patch + +* Wed Apr 27 2011 Jan Görig - 3.2.2-2 +- amgtar, amstar and amservice must have setuid flag (#697933) + +* Wed Mar 16 2011 Jan Görig - 3.2.2-1 +- upgrade to new upstream release +- removed merged patch amanda-3.1-amrestore.patch +- fixed build on system with amanda installed + +* Mon Feb 07 2011 Fedora Release Engineering - 3.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jan 31 2011 Jan Görig - 3.2.1-2 +- fix #666968 - amrestore should restore one file when outputting to a pipe + +* Wed Dec 15 2010 Jan Görig - 3.2.1-1 +- upgrade to new upstream release +- removed unneeded patches + +* Thu Nov 4 2010 Jan Görig - 3.2.0-1 +- upgrade to new upstream release +- fixed build with new glib +- changed owner of the most files to root +- moved variable files from /etc/amanda to /var/lib/amanda +- spec cleanups +- fix #648321 - amanda rpm should not provide the perl(Math::BigInt) + +* Thu Oct 7 2010 Jan Görig - 3.1.3-1 +- upstream security update + +* Wed Aug 18 2010 Jan Görig - 3.1.2-1 +- upgraded to new upstream bugfix version + +* Tue Aug 10 2010 Jan Görig - 3.1.1-2 +- removed obsolete README-rpm +- modified client configuration to match xinetd one +- modified tcpport patch to include postgresql sample configuration + +* Tue Aug 03 2010 Jan Görig - 3.1.1-1 +- upgraded to new upstream bugfix version +- dropped old upgrade scriptlets +- spec cleanups +- created symlink to manpage for amoldrecover +- default configuration now backups extended attributes +- fix #610169 - fixed build flags +- fix #600552 - corrected amdatadir path, updated example patch + +* Mon Jun 28 2010 Jan Görig - 3.1.0-1 +- upgraded to new upstream version +- documentation moved to main package +- fixed license tag +- moved files from libexecdir to libdir to avoid multilib conflict +- moved files between subpackages +- updated path in xinetd config +- added -fPIE to CFLAGS and -pie to LDFLAGS +- removed unused patches +- removed obsolete devel subpackage + +* Tue Jun 01 2010 Marcela Maslanova - 2.6.1p2-4 +- Mass rebuild with perl-5.12.0 + +* Thu Apr 22 2010 Daniel Novotny 2.6.1p2-3 +- fix #584774 - PIE patch disabled in amanda 2.6.1p2-2 + +* Tue Feb 16 2010 Daniel Novotny 2.6.1p2-2 +- fix #564935 - FTBFS amanda-2.6.1p2-1.fc13 + +* Thu Jan 21 2010 Daniel Novotny 2.6.1p2-1 +- upgrade to 2.6.1p2, drop upstreamed patches, rebase remaining patches + +* Fri Dec 4 2009 Stepan Kasal - 2.6.0p2-15 +- rebuild against perl 5.10.1 + +* Thu Oct 15 2009 Daniel Novotny 2.6.0p2-14 +- add amanda user to group "tape" (#529159) + +* Fri Aug 21 2009 Tomas Mraz - 2.6.0p2-13 +- rebuilt with new openssl + +* Tue Aug 04 2009 Daniel Novotny 2.6.0p2-12 +-fix #512534 - amstatus outputs "Insecure dependency in printf ..." + +* Fri Jul 24 2009 Fedora Release Engineering - 2.6.0p2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jul 22 2009 Daniel Novotny 2.6.0p2-10 +- fix #510961 - FTBFS: amanda-2.6.0p2-9 + +* Fri Apr 24 2009 Daniel Novotny 2.6.0p2-9 +- fix #497488 - amanda subpackages require only a specific version of amanda, + not also release + +* Tue Apr 14 2009 Daniel Novotny 2.6.0p2-8 +- fix #495724 (spec file fix, use "useradd -N" instead of "useradd -n") + +* Wed Apr 08 2009 Daniel Novotny 2.6.0p2-7 +- the tcpport patch was lost after rebase, adding again + (#448071, #462681) + +* Mon Feb 23 2009 Fedora Release Engineering - 2.6.0p2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Jan 15 2009 Tomas Mraz 2.6.0p2-5 +- rebuild with new openssl + +* Thu Nov 20 2008 Daniel Novotny 2.6.0p2-4 + .usernameupdate extension changed to .rpmsave (#472349) + +* Thu Oct 23 2008 Daniel Novotny 2.6.0p2-3 +- added trailing || : in the %%pre client script + +* Fri Oct 10 2008 Orion Poplawski 2.6.0p2-2 +- Drop duplicated libamglue.so from -devel +- Update -pie patch +- Fix Source typo +- Move xinetd to main package - used by both client and server +- Move %%{_libexecdir}/amanda/amanda-sh-lib.sh to main package +- LIBEXECDIR is used in xinetd template +- Make calcsize setuid root + +* Wed Oct 01 2008 Daniel Novotny 2.6.0p2-1 +- Update to 2.6.0p2 +- perl-ExtUtils-Embed added to BuildRequires +- perl patch dropped (upstreamed) +- library name change from libamglue.so.* to libamglue.so + +* Thu Mar 27 2008 Orion Poplawski 2.6.0-0.b3_20080314.1 +- Update to 2.6.0b3_20080314 +- New -lib patch that patches the autotool source files + +* Tue Mar 11 2008 Orion Poplawski 2.6.0-0.b3_20080310.1 +- Update to 2.6.0b3_20080310 +- Re-add updated pie patch, re-add autogen +- Update example patch to modify Makefile.am, leave template.d in + /var/lib/amanda for now + +* Wed Feb 20 2008 Orion Poplawski 2.6.0-0.b2_20080220.1 +- Update to 2.6.0b2-20080220 +- Drop libdir patch, use --with-libdir instead +- Move perl modules to %%{perl_vendorarch} and add perl Requires + +* Wed Feb 20 2008 Orion Poplawski 2.6.0-0.b2 +- Update to 2.6.0b2, drop upstreamed patches +- Update xattrs patch +- Add patches to fix install locations +- Add -fPIE/-pie to CFLAGS/LDFLAGS, drop pie patch +- Drop autotools BR +- Drop /usr/bin/Mail BR and specify mailer as /bin/mail +- Add %%check section +- Move /etc/amanda/amandates to /var/lib/amanda/amandates +- Remove ending . from summaries + +* Mon Feb 18 2008 Radek Brich 2.5.2.p1-10 +- do not require gnuplot by -server subpackage (bz#433101) + +* Thu Nov 22 2007 Radek Brich 2.5.2.p1-9 +- Change default amanda user name to 'amandabackup' (#124510). + This should not break upgrades as config files are checked for + old user name and updated. +- Add some explaining comments to .amandahosts (#153749) + +* Tue Aug 28 2007 Radek Brich 2.5.2.p1-8 +- rebuild + +* Fri Aug 17 2007 Radek Brich 2.5.2.p1-7 +- BuildRequires mtx and mt-st (#251690). + +* Fri Aug 10 2007 Radek Brich 2.5.2.p1-6 +- Included upstream patch for chg-multi.sh (#251316). + +* Wed Aug 08 2007 Radek Brich 2.5.2.p1-5 +- Added ssh and ncompress to BuildRequires (#250730). +- Removed some obsolete makes from build section. + +* Thu Jul 12 2007 Radek Brich 2.5.2.p1-4 +- Enable backing up ACL/SElinux xattrs with tar (#201916). +- Removed obsolete patches and sources. + +* Mon Jun 25 2007 Radek Brich 2.5.2.p1-3 +- Update -undefSymbols patch. All undefined symbols reported by + 'ldd -r' should now be fixed (#198178). + +* Fri Jun 22 2007 Radek Brich 2.5.2.p1-2 +- Fix undefined symbols in libamserver.so. +- Fix ./autogen so it automatically installs ylwrap (bug 224143). +- Run ./autogen in prep section (otherwise the -pie patch had no effect). +- Update -pie patch. + +* Thu Jun 21 2007 Radek Brich 2.5.2.p1-1 +- New upstream version. +- Client rpm now installs amanda-client.conf. +- Removed obsolete patches -bug18322 and -rsh. +- Clean up spec file (non-utf8 error and some warnings from rpmlint). + +* Mon Feb 19 2007 Jay Fenlason 2.5.1p3-1%{?dist} +- Upgrade to new upstream release, now that 2.5.1 is somewhat stable. +- Note that this requires changing the xinetd configuration and amanda.conf + because of the new authentication mechanism. +- -server subpackage does not require xinetd. +- -server scriptlets do not need to reload xinetd. + +* Mon Sep 25 2006 Jay Fenlason 2.5.0p2-4 +- Include my -dump_size patch to close + bz#206129: Dump output size determined incorrectly +- Clean up the spec file, following some suggestions in + bz#185659: amanda 2.5.0 +- Use a tarball without the problematic contrib/sst directory. +- Include my new_gnutar (based on a patch by Orion Poplawski + ) to work around changed incremental file format + in newer (>1.15.1) versions of gnutar. +- include my -wildcards patch to turn on wildcards with new versions of tar. + +* Tue Sep 5 2006 Jay Fenlason 2.5.0p2-3 +- move libamclient-*.so to the base rpm, so that multilib support works. + This fixes + bz#205202 File conflicts + +* Wed Jul 12 2006 Jesse Keating - 2.5.0p2-2.1 +- rebuild + +* Thu Jun 8 2006 Jay Fenlason 2.5.0p2-2 +- New upstream version +- Make the BuildRequires on /usr/bin/Mail rather than mailx, because we + don't really care where the Mail command comes from. +- include the amcheck_badtape patch by Paul Bijnens + to fix a problem where amcheck doesn't + realize the wrong tape is in the drive. +- include the error_msg patch from Jean-Louis Martineau + to fix a double-free problem +- include the restore patch from Jean-Louis Martineau + to fix an error in amrestore +- include a slightly modified form of the big_holding_disk patch from + Andrej Filipcic to fix a problem with holding + disks bigger than 4tb + +* Mon May 22 2006 Jesse Keating 2.5.0-3 +- Fix BuildReqs + +* Fri Apr 7 2006 Jay Fenlason 2.5.0-2 +- New upstream release: 2.5.0, with new features +- Do not include our own amanda.conf anymore, use the one from the + tarball. +- Remove the static libraries. +- Update the -pie patch +- Turn on the new -with-ssh-security option. +- Change the mode of ~amanda/.amandahosts to 600, since 2.5.0 requires + it. +- actually use the defconfig macro it this spec file. +- Change the name of the index server to "amandahost" from localhost. + Users should ensure that "amandahost.their-domain" points to their + Amanda server. +- Change amandahosts likewise. +- Add dependency on /usr/bin/Mail +- Ensure unversioned .so files are only in the -devel rpm. +- Remove DUMPER_DIR and the files in it, as nothing seems to actually + use them. +- Include the -overflow patch from Jean-Louis Martineau + + +* Fri Feb 10 2006 Jesse Keating - 2.4.5p1-3.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 2.4.5p1-3.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Wed Jan 18 2006 Jay Fenlason 2.4.5p1-3 +- Fix spec file to use %%{_localstatedir} instead of hardcoding /var/lib +- Add amanda_user and amanda_group defines, to make changing the username + easier. +- Add a BuildRequires on /usr/bin/Mail + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Fri Nov 4 2005 Jay Fenlason +- New upstream release. + +* Sun Jul 31 2005 Florian La Roche +- make sure amanda builds with newest rpm + +* Wed Apr 20 2005 Jay Fenlason 2.4.5-2 +- New upstream release. This obsoletes the -bug144052 patch. +- Reorg this spec file slightly to allow someone to specify + index server, tape server and default configuration when + rebuilding the rpms via something like + 'rpmbuild -ba --define "indexserver foo.fqdn.com" amanda.spec' + This change suggested by Matt Hyclak . + +* Tue Apr 5 2005 Jay Fenlason 2.4.4p4-4 +- Add -bug144052 patch to close + bz#144052 amverifyrun sometimes verifies the wrong tapes + +* Tue Mar 8 2005 Jay Fenlason 2.4.4p4-3 +- rebuild with gcc4 + +* Wed Jan 12 2005 Tim Waugh 2.4.4p4-2 +- Rebuilt for new readline. + +* Mon Oct 25 2004 Jay Fenlason 2.4.4p4-1 +- New upstream version +- Turn on --disable-dependency-tracking to work around an automake bug. + +* Mon Jun 28 2004 Jay Fenlason 2.4.4p3-1 +- New upstream version + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Mar 19 2004 Jay Fenlason 2.4.4p2-3 +- make a few more programs PIE by updating the amanda-2.4.4p2-pie.path + +* Tue Mar 02 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Tue Jan 13 2004 Jay Fenlason 2.4.4p2-1 +- New upstream version, includes the -sigchld and -client-utils + patches. Also includes a new chg-disk changer script and a new + amqde "quick-and-dirty estimate" program (called from sendsize--not + a user command. + +* Wed Jul 23 2003 Jay Fenlason 2.4.4p1-1 +- Merge from 2.4.4p1-0.3E + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed Feb 26 2003 Jay Fenlason 2.4.4-0 +- New upstream version. + +* Thu Feb 13 2003 Jay Fenlason 2.4.3-3 +- Removed call to signal(SIGCHLD, SIG_IGN) which prevents wait...() + from working on newer Red Hat systems. This fixes bug #84092. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Wed Dec 11 2002 Jay Fenlason 2.4.3-2 +- Add spec file entry for /usr/lib/amanda so owner/group set + correctly Fixes bugs 74025 and 73379. + +* Wed Nov 20 2002 Elliot Lee 2.4.3-1 +- Update to version 2.4.3, rebuild +- Update patch for bug18322 to match + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Tue Apr 2 2002 Trond Eivind Glomsrød 2.4.2p2-7 +- Don't strip explicitly +- Require samba-client instead of /usr/bin/smbclient + +* Thu Feb 21 2002 Trond Eivind Glomsrød 2.4.2p2-6 +- Rebuild + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Fri Jul 13 2001 Trond Eivind Glomsrød +- Build and install the "tapetype" utility program, for + tape size identification (#48745) + +* Tue Jun 19 2001 Trond Eivind Glomsrød +- don't use %%configure, to make it build + +* Mon Apr 9 2001 Bill Nottingham +- include ia64 again + +* Wed Apr 4 2001 Trond Eivind Glomsrød +- 2.4.2p2 - fixes problems with amrecover (#26567) +- made config files noreplace +- don't build on IA64 right now, amanda doesn't like + the dump there: It segfaults. + +* Fri Mar 16 2001 Trond Eivind Glomsrød +- Add /usr/bin/smbclient to buildprereq (#31996), to + avoid samba being built without such support + +* Thu Feb 22 2001 Trond Eivind Glomsrød +- Use %%{version} in source URL, and thus actually use + 2.4.2p1 instead of 2.4.2 (doh! # 28759) +- add patch to handle bogus /dev/root entries (#28759) + +* Fri Feb 16 2001 Trond Eivind Glomsrød +- 2.4.2p1 bugfix release +- move amandaixd and amidxtape to the server package (#28037) + +* Wed Jan 31 2001 Trond Eivind Glomsrød +- move /etc/xinetd.d/amanda to the client subpackage (#25430) + +* Tue Jan 30 2001 Trond Eivind Glomsrød +- don't have "chunksize -1" as the default, as it's no longer + supported +- make it uid amanda, with home /var/lib/amada + so programs can actually access it (#20510) +- make .amandahosts a config file (#18322) + +* Tue Jan 23 2001 Trond Eivind Glomsrød +- 2.4.2 +- make the UDP service "wait" (#23047) + +* Tue Oct 10 2000 Jeff Johnson +- build with shared libraries. +- add amanda-devel package to contain static libraries. +- update to 2.4.2-19991216-beta1 (#16818). +- sort out client-server file confusions (#17232). +- amandaidx-xinetd should have "wait = no" (#17551). +- /var/lib/amanda needs operator.disk ownership (17913). +- /etc/xinetd.d/amanda added to the amanda-server package (#18112). +- ignore socket error message (#18322). + +* Sun Sep 3 2000 Florian La Roche +- do not include /etc/xinetd.d/amandaidx in the server rpm + +* Mon Aug 21 2000 Trond Eivind Glomsrød +- only do reload of xinetd if xinetd is running (#16653) +- don't show output of reload command to STDOUT (#16653) +- don't use /usr/sbin/tcpd in amidx, xinetd is linked + with tcp_wrappers +- prereq initscripts (fixes #14572 and duplicates) + +* Tue Aug 1 2000 Bill Nottingham +- turn off amandaidx by default (#14937) +- fix some binary permissions (#14938) + +* Tue Aug 1 2000 Matt Wilson +- added Prereq: /sbin/service xinetd to client and server subpackages + +* Tue Jul 18 2000 Trond Eivind Glomsrød +- xinetd support + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Sun Jun 18 2000 Jeff Johnson +- add prereqs for scriptlets, requires for common package. + +* Sat Jun 10 2000 Jeff Johnson +- FHS packaging. +- move to 7.0 distro. + +* Tue May 23 2000 Tim Powers +- built for 7.0 +- man pages in /usr/share/man + +* Thu Apr 27 2000 Tim Powers +- added usr/lib/amanda/chg-zd-mtx to the client RPM to fix bug #8282 + +* Wed Mar 8 2000 Tim Powers +- fixed files/dirs ending up in the wrong packages. +- last time it wasn't built with dump (doh!), this time it is. Now has a + BuildRequires for dump. + +* Thu Feb 10 2000 Tim Powers +- strip binaries + +* Fri Jan 21 2000 TIm Powers +- added chown lines to post section + +* Tue Jan 11 2000 Tim Powers +- make sure the man pages are gzipped in each subpackage, overriding the build + system spec_install_post macro. +- using mega spec file changes from Marc Merlin since + the package we were shipping in the past had some major issues (not in + Marc's words ;) +- using Marc's added README and modified config files. +- adapted patches written by Alexandre Oliva from Marc + Merlin's package so that the patch matches the source version (the patches + are the glibc2.1 and glibc2.2 patches) + +* Mon Jan 3 2000 Tim Powers +- fix so configure doesn't crap out (libtoolize --force) +- gzip man pages, strip binaries +- rebuilt for 6.2 + +* Thu Aug 5 1999 Tim Powers +- applied patch so that it reports the available holding disk space correctly + +* Thu Jul 8 1999 Tim Powers +- added %%defattr lines +- rebuilt for 6.1 + +* Wed May 05 1999 Bill Nottingham +- update to 2.4.1p1 + +* Tue Oct 27 1998 Cristian Gafton +- version 2.4.1 + +* Tue May 19 1998 Cristian Gafton +- upgraded to full 2.4.0 release + +* Thu Feb 19 1998 Otto Hammersmith +- fixed group for -client and -server packages (Network->Networking) + +* Wed Feb 11 1998 Otto Hammersmith +- updated to 2.4.0b6, fixes security hole among other things + (as well as finally got the glibc patch in the main source.) + +* Tue Jan 27 1998 Otto Hammersmith +- moved versionsuffix to client package to remove dependency of amanda on amanda-client + +* Mon Jan 26 1998 Otto Hammersmith +- fixed libexec garbage. + +* Wed Jan 21 1998 Otto Hammersmith +- split into three packages amanda, amanda-client, and amanda-server + +* Fri Jan 9 1998 Otto Hammersmith +- updated to latest beta... builds much cleaner now. + +* Thu Jan 8 1998 Otto Hammersmith +- created the package +