]> git.pld-linux.org Git - packages/amanda.git/blobdiff - amanda.spec
- release 4 (by relup.sh)
[packages/amanda.git] / amanda.spec
index 90fad4a6e48e9602c70069f93fb3996e4f4c84c7..ef802f65b0018b59c54d1bab0c5c59377fba3f81 100644 (file)
@@ -4,23 +4,29 @@
 %bcond_without samba   # without smbclient support
 %bcond_without client  # without client package
 %bcond_without server  # without server package
-#
+
 %include       /usr/lib/rpm/macros.perl
 Summary:       A network-capable tape backup solution
 Summary(pl.UTF-8):     Sieciowo zorientowany system tworzenia kopii zapasowych
 Name:          amanda
-Version:       3.2.0
-Release:       0.1
+Version:       3.3.2
+Release:       4
 License:       BSD
 Group:         Networking/Utilities
-Source0:       http://dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
-# Source0-md5: df73a318af8f04e9ad2ecb4d59dc052c
+Source0:       http://downloads.sourceforge.net/amanda/%{name}-%{version}.tar.gz
+# Source0-md5: 1a6cfe47eaee121f22540ac5fa58c366
 Source1:       %{name}-srv.crontab
 Source2:       %{name}.inetd
 Source3:       %{name}idx.inetd
 Source4:       amidxtape.inetd
+Source5:       k5%{name}.inet
 # http://amanda.svn.sourceforge.net/viewvc/amanda/amanda/branches/3_2/contrib/convert-zd-mtx-to-robot.sh
-Source5:       convert-zd-mtx-to-robot.sh
+Source6:       convert-zd-mtx-to-robot.sh
+Source7:       %{name}-ssh_config
+# https://github.com/janekr/amlvm-snapshot
+Source8:       amlvm-snapshot.conf
+Source9:       amlvm-snapshot.pl
+Source10:      amlvm-snapshot.README
 Patch0:                %{name}-no_libnsl.patch
 Patch1:                %{name}-chg-zd-mtx-sh.patch
 Patch2:                %{name}-tar.patch
@@ -31,6 +37,10 @@ Patch6:              %{name}-FHS.patch
 Patch7:                %{name}-no-buildtime-ipv6.patch
 Patch8:                %{name}-heimdal.patch
 Patch9:                %{name}-ac.patch
+Patch11:       %{name}-amstar-exclude-fix.patch
+Patch12:       %{name}-krb5-auth.patch
+Patch13:       %{name}-stdio.patch
+Patch14:       %{name}-amstar-device.patch
 URL:           http://www.amanda.org/
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake
@@ -39,9 +49,10 @@ BuildRequires:       dump
 BuildRequires: flex
 BuildRequires: glib2-devel
 BuildRequires: gnuplot
+BuildRequires: rpmbuild(macros) >= 1.654
 # curl is broken, see curl-config --libs
-BuildRequires: keyutils-devel
 BuildRequires: heimdal-devel
+BuildRequires: keyutils-devel
 BuildRequires: libtool
 BuildRequires: libxslt-progs
 BuildRequires: ncurses-devel
@@ -50,17 +61,17 @@ BuildRequires:      openssl-devel
 BuildRequires: perl-devel >= 5.6.0
 BuildRequires: pkgconfig
 BuildRequires: readline-devel >= 4.2
-BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: rpm-perlprov
+BuildRequires: rpmbuild(macros) >= 1.654
 %{?with_samba:BuildRequires:   samba-client}
 BuildRequires: swig
 %{?with_xfs:BuildRequires:     xfsdump}
-Conflicts:     shadow < 1:4.0.4.1-4
 Conflicts:     pwdutils < 3.1.2-2
+Conflicts:     shadow < 1:4.0.4.1-4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # for some unknown reason those get detected in R but not in P (Tie::StdHash comes from perl)
-%define                _noautoreq      'perl(Tie::StdHash)' 'perl(Amanda::Recovery::Clerk::Feedback)' 'perl(Amanda::Taper::Scribe::Feedback)'
+%define                _noautoreq_perl Tie::StdHash Amanda::Recovery::Clerk::Feedback Amanda::Taper::Scribe::Feedback
 
 %define                _ulibdir        %{_prefix}/lib
 
@@ -140,11 +151,11 @@ Requires(post):   /bin/hostname
 Requires(post):        /usr/bin/ssh-keygen
 Requires:      %{name}-common = %{version}-%{release}
 Requires:      rc-inetd
+Suggests:      gzip
 Suggests:      openssh-clients
 Suggests:      openssh-server
-Suggests:      tar
-Suggests:      gzip
 Suggests:      star
+Suggests:      tar
 Conflicts:     tar < 1.15
 
 %description client
@@ -200,6 +211,11 @@ typu streamer).
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+cp -a %{SOURCE10} .
 
 %build
 %{__aclocal} -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive
@@ -258,17 +274,27 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE2} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
 sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE4} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
+sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE5} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/k5amanda
 
 install example/amanda.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
 install example/amanda-client.conf $RPM_BUILD_ROOT%{_sysconfdir}/amanda
 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.amandahosts
 
-install %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}/amconvert-zd-mtx-to-robot.sh
+install %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/amconvert-zd-mtx-to-robot.sh
 
+install %{SOURCE7} $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/config
 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/{,client_}authorized_keys
 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amdump{,.pub}
 touch $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover{,.pub}
 
+%if %{with server}
+install -p %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/amanda/lvm-snapshot.conf
+%endif
+
+%if %{with client}
+sed -e 's|@@PERL_VENDORARCH@@|%{perl_vendorarch}|' %{SOURCE9} >$RPM_BUILD_ROOT%{_libdir}/amanda/application/amlvm-snapshot
+%endif
+
 > $RPM_BUILD_ROOT%{_sharedstatedir}/amanda/amandates
 
 # Amanda tools generate ssh keys with embeded commands pointing to /usr/lib
@@ -297,6 +323,18 @@ if [ -f %{_sharedstatedir}/amanda/.amandahosts ]; then
        chmod 600 %{_sharedstatedir}/amanda/.amandahosts
 fi
 
+%triggerpostun common -- amanda-common < 3.3
+%banner %{name}-common -e << EOF
+In amanda 3.3 the default auth has changed to "bsdtcp",
+if you are using the default "bsd" then you must add it
+to your configuration:
+
+ *   in amanda.conf
+ *   in amanda-client.conf
+ *   in dumptype/disklist
+ *   in inetd (if no '-auth' argument to amandad)
+EOF
+
 %pre common
 %groupadd -P %{name}-common -g 80 amanda
 %useradd -P %{name}-common -u 80 -G disk,tape -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
@@ -356,9 +394,18 @@ if [ "$1" = 0 ]; then
        %service -q rc-inetd reload
 fi
 
+%triggerpostun server -- amanda-server < 3.2.0
+%banner %{name} -e << EOF
+Warning: Tape changer configuration has chaged, please read
+%{_docdir}/%{name}-server-%{version}/ReleaseNotes.gz
+and %{_docdir}/%{name}-server-%{version}/NEWS.gz for details.
+You can use %{_sbindir}/amconvert-zd-mtx-to-robot.sh script
+to upgrade to chg-robot.
+EOF
+
 %files common
 %defattr(644,root,root,755)
-%doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING
+%doc AUTHORS COPYRIGHT ChangeLog NEWS README ReleaseNotes UPGRADING amlvm-snapshot.README
 %attr(755,root,root) %{_libdir}/amanda/libamanda*.so
 %attr(755,root,root) %{_libdir}/amanda/libamar*.so
 %attr(755,root,root) %{_libdir}/amanda/libamxfer*.so
@@ -392,6 +439,7 @@ fi
 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug
 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/amandad
 %attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.amandahosts
+%attr(600,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/.ssh/config
 # Commented out so it won't get removed on uninstall
 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/authorized_keys
 %{_mandir}/man5/amanda-archive-format.5*
@@ -461,6 +509,7 @@ fi
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amandaidx
 
 %config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/amanda.conf
+%config(noreplace) %verify(not md5 mtime size) %attr(640,amanda,amanda) %{_sysconfdir}/amanda/lvm-snapshot.conf
 
 # Commented out so it won't get removed on uninstall
 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/client_authorized_keys
@@ -474,8 +523,8 @@ fi
 %attr(755,root,root) %{_libdir}/amanda/libamserver*.so
 
 %attr(755,root,root) %{_libdir}/amanda/amcat.awk
-%attr(755,root,root) %{_libdir}/amanda/amcleanupdisk
 %attr(755,root,root) %{_libdir}/amanda/amcheck-device
+%attr(755,root,root) %{_libdir}/amanda/amdumpd
 %attr(755,root,root) %{_libdir}/amanda/amidxtaped
 %attr(755,root,root) %{_libdir}/amanda/amindexd
 %attr(755,root,root) %{_libdir}/amanda/amlogroll
@@ -502,6 +551,7 @@ fi
 %attr(755,root,root) %{_sbindir}/amcheckdb
 %attr(755,root,root) %{_sbindir}/amcheckdump
 %attr(755,root,root) %{_sbindir}/amcleanup
+%attr(755,root,root) %{_sbindir}/amcleanupdisk
 %attr(755,root,root) %{_sbindir}/amconvert-zd-mtx-to-robot.sh
 %attr(755,root,root) %{_sbindir}/amdevcheck
 %attr(755,root,root) %{_sbindir}/amdump
@@ -526,6 +576,7 @@ fi
 %{_mandir}/man7/amanda-changers.7*
 %{_mandir}/man7/amanda-compatibility.7*
 %{_mandir}/man7/amanda-devices.7*
+%{_mandir}/man7/amanda-interactivity.7*
 %{_mandir}/man7/amanda-taperscan.7*
 %{_mandir}/man8/amaddclient.8*
 %{_mandir}/man8/amadmin.8*
@@ -533,6 +584,7 @@ fi
 %{_mandir}/man8/amcheckdb.8*
 %{_mandir}/man8/amcheckdump.8*
 %{_mandir}/man8/amcleanup.8*
+%{_mandir}/man8/amcleanupdisk.8*
 %{_mandir}/man8/amdevcheck.8*
 %{_mandir}/man8/amdump.8*
 %{_mandir}/man8/amfetchdump.8*
@@ -563,15 +615,16 @@ fi
 %{perl_vendorarch}/Amanda/Device.pm
 %{perl_vendorarch}/Amanda/Disklist.pm
 %{perl_vendorarch}/Amanda/Holding.pm
-%{perl_vendorarch}/Amanda/Interactive.pm
-%dir %{perl_vendorarch}/Amanda/Interactive
-%{perl_vendorarch}/Amanda/Interactive/*.pm
+%{perl_vendorarch}/Amanda/Interactivity.pm
+%dir %{perl_vendorarch}/Amanda/Interactivity
+%{perl_vendorarch}/Amanda/Interactivity/*.pm
 %{perl_vendorarch}/Amanda/Logfile.pm
 %dir %{perl_vendorarch}/Amanda/Recovery
 %{perl_vendorarch}/Amanda/Recovery/*.pm
 %{perl_vendorarch}/Amanda/Report.pm
 %dir %{perl_vendorarch}/Amanda/Report
 %{perl_vendorarch}/Amanda/Report/*.pm
+%{perl_vendorarch}/Amanda/ScanInventory.pm
 %{perl_vendorarch}/Amanda/Tapelist.pm
 %dir %{perl_vendorarch}/Amanda/Taper
 %{perl_vendorarch}/Amanda/Taper/*.pm
@@ -596,18 +649,20 @@ fi
 %files client
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/amanda
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/k5amanda
 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,amanda) %{_sysconfdir}/amanda/amanda-client.conf
 # Commented out so it won't get removed on uninstall
 #%attr(600,amanda,amanda) %ghost %{_sharedstatedir}/amanda/.ssh/id_rsa_amrecover*
 %attr(640,amanda,amanda) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/amanda/amandates
 
 %dir %{_libdir}/amanda/application
-%attr(755,root,root) %{_libdir}/amanda/application/amgtar*
+%attr(4750,root,amanda) %{_libdir}/amanda/application/amgtar
 %attr(755,root,root) %{_libdir}/amanda/application/amlog-script
+%attr(755,root,root) %{_libdir}/amanda/application/amlvm-snapshot
 %attr(755,root,root) %{_libdir}/amanda/application/ampgsql
 %attr(755,root,root) %{_libdir}/amanda/application/amraw
 %attr(755,root,root) %{_libdir}/amanda/application/amsamba
-%attr(755,root,root) %{_libdir}/amanda/application/amstar
+%attr(4750,root,amanda) %{_libdir}/amanda/application/amstar
 %attr(755,root,root) %{_libdir}/amanda/application/amsuntar
 %attr(755,root,root) %{_libdir}/amanda/application/amzfs*
 %attr(755,root,root) %{_libdir}/amanda/application/script-email
@@ -624,12 +679,14 @@ fi
 %attr(4750,root,amanda) %{_libdir}/amanda/rundump
 %attr(4750,root,amanda) %{_libdir}/amanda/runtar
 %attr(755,root,root) %{_libdir}/amanda/selfcheck
+%attr(755,root,root) %{_sbindir}/amdump_client
 %attr(755,root,root) %{_sbindir}/amoldrecover
 %attr(755,root,root) %{_sbindir}/amrecover
 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/gnutar-lists
 %attr(750,amanda,amanda) %dir %{_sharedstatedir}/amanda/debug/client
 %{_mandir}/man7/amanda-applications.7*
 %{_mandir}/man5/amanda-client.conf.5*
+%{_mandir}/man8/amdump_client.8*
 %{_mandir}/man8/amgtar.8*
 %{_mandir}/man8/ampgsql.8*
 %{_mandir}/man8/amrecover.8*
This page took 0.081784 seconds and 4 git commands to generate.