Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
amanda
amanda.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File amanda.spec of Package amanda
# # spec file for package amanda # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # %if 0%{?suse_version} <= 1110 %define amanda_group disk %else %define amanda_group amanda %endif Name: amanda Version: 3.3.6 Release: 0 Summary: Network Disk Archiver License: GPL-3.0+ Group: Productivity/Archiving/Backup Url: http://www.amanda.org/ Source: %{name}-%{version}.tar.gz #amanda-SuSE.tar.bz2 contain init scripts, config examples Source1: %{name}-SuSE.tar.bz2 Source2: amanda-howto-collection.pdf.tar.bz2 Patch3: amanda-2.6.1p1-shellbang.patch Patch4: amanda-2.6.1p1-return_val.patch Patch6: amanda-2.6.1p1-avoid-perl-provides.patch Patch9: amanda-3.3.2-returnvalues.patch Patch10: amanda-automake_add_missing.patch Patch11: amanda-3.3.3-noundefbool.patch Patch12: amanda-2.6.1p1-fix-perl-format.patch Patch13: amanda-timestamp.patch BuildRequires: automake BuildRequires: cups-client BuildRequires: dump BuildRequires: gawk BuildRequires: glib2-devel BuildRequires: gnuplot BuildRequires: krb5-devel BuildRequires: libtool BuildRequires: libxslt BuildRequires: mailx BuildRequires: mtx BuildRequires: perl-base BuildRequires: popt-devel BuildRequires: procps BuildRequires: readline-devel BuildRequires: samba-client BuildRequires: sendmail BuildRequires: pkgconfig(smbclient) Requires: %{_bindir}/smbclient Requires: dump Requires: perl = %{perl_version} # FIXME: use proper Requires(pre/post/preun/...) PreReq: permissions PreReq: pwdutils BuildRoot: %{_tmppath}/%{name}-%{version}-build %description 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. %prep %setup -q -a 1 -a 2 rm -r patches %patch3 %patch4 %patch6 -p1 %patch9 -p1 %patch10 %patch11 %patch12 -p1 %patch13 -p1 %build ./autogen CFLAGS="%{optflags} -fno-strict-aliasing -fPIC -fPIE" \ CXXFLAGS="%{optflags} -fno-strict-aliasing -fPIC -fPIE" \ LDFLAGS="-pie" \ ./configure --mandir=%{_mandir} \ --with-bsdtcp-security --with-bsdudp-security \ --with-ssh-security --with-rsh-security --with-krb5-security \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --sysconfdir=%{_sysconfdir} \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --localstatedir=%{_localstatedir}/lib \ --with-index-server=localhost \ --with-gnutar-listdir=%{_localstatedir}/lib/amanda/gnutar-lists \ --with-smbclient=%{_bindir}/smbclient \ --with-amperldir=%{perl_vendorlib} \ --with-user=amanda \ --with-group=%{amanda_group} \ --with-gnutar=/bin/tar \ --disable-libtool \ --with-amandahosts \ --disable-installperms make %{?_smp_mflags} %install make DESTDIR=%{buildroot}/ install install -d %{buildroot}/%{_sysconfdir}/amanda \ %{buildroot}%{_localstatedir}/lib/amanda/index \ %{buildroot}%{_localstatedir}/lib/amanda/gnutar-lists \ %{buildroot}%{_localstatedir}/lib/amanda/disklist \ %{buildroot}%{_localstatedir}/lib/amanda/DailySet1 \ %{buildroot}%{_localstatedir}/lib/amanda/lbl-templ \ %{buildroot}/%{_docdir}/%{name} \ %{buildroot}/%{_sysconfdir}/xinetd.d install NEWS README README.SuSE example/{amanda.conf,chg-multi.conf,disklist} %{buildroot}/%{_docdir}/%{name} chmod 644 %{buildroot}/%{_docdir}/%{name}/* \ %{buildroot}/%{_mandir}/*/* cp -a SuSE/* %{buildroot} #we must change group name for amanada user in xinit'd scripts for 11.1 and lower %if 0%{?suse_version} <= 1110 sed -i 's|amanda|disk|' %{buildroot}%{_sysconfdir}/xinetd.d/am* %endif # pdf doc cp amanda-howto-collection.pdf %{buildroot}/%{_docdir}/%{name}/ # label templates cp -a example/*.ps %{buildroot}%{_localstatedir}/lib/amanda/lbl-templ # contain docs,examples which are already included rm -rf %{buildroot}%{_datadir}/amanda # bnc#412636 touch %{buildroot}/%{_libexecdir}/amanda/exclude.gtar # delete all static linking remnats find %{buildroot} \( -name "*.a" -o -name "*.la" \) -delete # create a list of binaries to be checked externally cat << EOF > %{buildroot}%{_libexecdir}/amanda/suidlist %{_sbindir}/amcheck %{_libexecdir}/amanda/calcsize %{_libexecdir}/amanda/rundump %{_libexecdir}/amanda/planner %{_libexecdir}/amanda/runtar %{_libexecdir}/amanda/dumper %{_libexecdir}/amanda/killpgrp EOF %pre # since 11.2 we use group "tape" instead of "disk" for tape devices /dev/nst*, # so we must check group for "amanda" user %if 0%{?suse_version} > 1110 # create primary group for amanda user %{_sbindir}/groupadd -r amanda 2>/dev/null || : # if user already exists and has effective group "disk", we have to change this group # to "amanda" group and also add supplementary "tape" group see bnc#523006 # else - move amanda to group amanda unconditionally (ignore failures if amanda doesn't exist) %{_bindir}/id -n -g amanda 2>&1 | grep "disk" >/dev/null \ && %{_sbindir}/usermod -g amanda -G tape amanda \ || %{_sbindir}/usermod -g amanda amanda 2>&1 \ || : # this is ugly but just simple add user with "tape" and "amanda" groups regardless of existing user %{_sbindir}/useradd -r -o -g amanda -G tape -u 37 -s /bin/bash \ -c "Amanda admin" -d %{_localstatedir}/lib/amanda amanda >/dev/null 2>&1 || : %else # in <= 11.1 use old disk group for amanda user %{_sbindir}/useradd -r -o -g disk -u 37 -s /bin/bash \ -c "Amanda admin" -d %{_localstatedir}/lib/amanda amanda >/dev/null 2>&1 || : %endif %post %if 0%{?set_permissions:1} %set_permissions %{_sbindir}/amcheck %{_libexecdir}/amanda/calcsize %{_libexecdir}/amanda/rundump %{_libexecdir}/amanda/planner %{_libexecdir}/amanda/runtar %{_libexecdir}/amanda/dumper %{_libexecdir}/amanda/killpgrp %else %run_permissions %endif %if 0%{?suse_version} >= 1120 %verifyscript %verify_permissions -f %{_libexecdir}/amanda/suidlist %endif %files %defattr(-,root,root) %doc %attr(644,root,root) amanda-howto-collection.pdf ChangeLog NEWS AUTHORS COPYRIGHT README ReleaseNotes %doc %attr(755,root,root) %dir %{_docdir}/%{name} %doc %{_mandir}/man*/* %config %{_libexecdir}/amanda/exclude.gtar %attr(755,root,root) %dir %{_libexecdir}/amanda %attr(664,amanda,%{amanda_group}) %config(noreplace) %{_sysconfdir}/dumpdates %attr(664,amanda,%{amanda_group}) %config(noreplace) %{_sysconfdir}/amandates %attr(755,amanda,%{amanda_group}) %dir %{_sysconfdir}/amanda %attr(755,amanda,%{amanda_group}) %dir %{_sysconfdir}/amanda/example %attr(755,amanda,%{amanda_group}) %dir %{_localstatedir}/lib/amanda/ %attr(755,amanda,%{amanda_group}) %dir %{_localstatedir}/lib/amanda/disklist %attr(755,amanda,%{amanda_group}) %dir %{_localstatedir}/lib/amanda/gnutar-lists/ %attr(755,amanda,%{amanda_group}) %dir %{_localstatedir}/lib/amanda/index/ %attr(755,amanda,%{amanda_group}) %dir %{_localstatedir}/lib/amanda/DailySet1 %attr(755,amanda,%{amanda_group}) %dir %{_localstatedir}/lib/amanda/lbl-templ %attr(644,amanda,%{amanda_group}) %{_localstatedir}/lib/amanda/lbl-templ/* %config %attr(644,amanda,%{amanda_group}) %{_localstatedir}/lib/amanda/.bashrc %config %attr(644,amanda,%{amanda_group}) %{_localstatedir}/lib/amanda/.profile # bnc#412636 file permissions of .amandahosts should be 600 %config %attr(600,amanda,%{amanda_group}) %{_localstatedir}/lib/amanda/.amandahosts %config %attr(644,amanda,%{amanda_group}) %{_sysconfdir}/amanda/example/amanda.conf %config %attr(644,amanda,%{amanda_group}) %{_sysconfdir}/amanda/example/disklist %config(noreplace) %{_sysconfdir}/xinetd.d/* # perl scripts %dir %{perl_vendorlib}/Amanda/ %dir %{perl_vendorlib}/Amanda/Application %dir %{perl_vendorlib}/Amanda/Changer %dir %{perl_vendorlib}/Amanda/Config %dir %{perl_vendorlib}/Amanda/Curinfo %dir %{perl_vendorlib}/Amanda/DB %dir %{perl_vendorlib}/Amanda/Interactivity %dir %{perl_vendorlib}/Amanda/IPC %dir %{perl_vendorlib}/Amanda/Recovery %dir %{perl_vendorlib}/Amanda/Report %dir %{perl_vendorlib}/Amanda/Taper %dir %{perl_vendorlib}/Amanda/Taper/Scan %dir %{perl_vendorlib}/auto/Amanda/ %dir %{perl_vendorlib}/auto/Amanda/Application %dir %{perl_vendorlib}/auto/Amanda/Archive %dir %{perl_vendorlib}/auto/Amanda/Cmdline %dir %{perl_vendorlib}/auto/Amanda/Config %dir %{perl_vendorlib}/auto/Amanda/Debug %dir %{perl_vendorlib}/auto/Amanda/Device %dir %{perl_vendorlib}/auto/Amanda/Disklist %dir %{perl_vendorlib}/auto/Amanda/Feature %dir %{perl_vendorlib}/auto/Amanda/Header %dir %{perl_vendorlib}/auto/Amanda/IPC %dir %{perl_vendorlib}/auto/Amanda/IPC/Binary %dir %{perl_vendorlib}/auto/Amanda/Logfile %dir %{perl_vendorlib}/auto/Amanda/MainLoop %dir %{perl_vendorlib}/auto/Amanda/NDMP %dir %{perl_vendorlib}/auto/Amanda/Tapelist %dir %{perl_vendorlib}/auto/Amanda/Tests %dir %{perl_vendorlib}/auto/Amanda/Util %dir %{perl_vendorlib}/auto/Amanda/Xfer %dir %{perl_vendorlib}/auto/Amanda/XferServer %{perl_vendorlib}/Amanda/*/*/*.pm %{perl_vendorlib}/Amanda/*/*.pm %{perl_vendorlib}/Amanda/*.pm %{perl_vendorlib}/auto/Amanda/*/*.so %{perl_vendorlib}/auto/Amanda/*/*/*.so %defattr(755,amanda,%{amanda_group}) %{_sbindir}/amadmin %{_sbindir}/amcheckdb %{_sbindir}/amcleanup %{_sbindir}/amdump %{_sbindir}/amflush %{_sbindir}/amgetconf %{_sbindir}/amlabel %{_sbindir}/amoverview %{_sbindir}/amplot %verify(not mode) %attr(0750,root,%{amanda_group}) %{_sbindir}/amcheck %attr(0750,amanda,%{amanda_group}) %{_sbindir}/amrecover %{_sbindir}/amreport %{_sbindir}/amrestore %{_sbindir}/amrmtape %{_sbindir}/amstatus %{_sbindir}/amtape %{_sbindir}/amtapetype %{_sbindir}/amtoc %{_sbindir}/amcrypt-ossl %{_sbindir}/amcrypt-ossl-asym %{_sbindir}/amoldrecover %{_sbindir}/amgpgcrypt %{_sbindir}/amaespipe %{_sbindir}/amcrypt %{_sbindir}/amfetchdump %{_sbindir}/amaddclient %{_sbindir}/amarchiver %{_sbindir}/amcheckdump %{_sbindir}/amcryptsimple %{_sbindir}/amdevcheck %{_sbindir}/amdump_client %{_sbindir}/amserverconfig %{_sbindir}/amservice %{_sbindir}/amvault %defattr(644,amanda,%{amanda_group}) %{_libexecdir}/amanda/suidlist %{_libexecdir}/amanda/amcat.awk %{_libexecdir}/amanda/amplot.awk %{_libexecdir}/amanda/amplot.g %{_libexecdir}/amanda/amplot.gp %defattr(755,amanda,%{amanda_group}) %{_libexecdir}/amanda/amandad %{_libexecdir}/amanda/amdumpd %{_libexecdir}/amanda/amidxtaped %{_libexecdir}/amanda/amindexd %{_libexecdir}/amanda/amtrmidx %{_libexecdir}/amanda/chg-disk %{_libexecdir}/amanda/chg-manual %{_libexecdir}/amanda/chg-multi %{_libexecdir}/amanda/chg-zd-mtx %{_libexecdir}/amanda/driver %{_libexecdir}/amanda/amcheck-device %{_sbindir}/amcleanupdisk %{_libexecdir}/amanda/amlogroll %{_libexecdir}/amanda/amndmjob %{_libexecdir}/amanda/amtrmlog %{_libexecdir}/amanda/patch-system %{_libexecdir}/amanda/selfcheck %{_libexecdir}/amanda/sendbackup %{_libexecdir}/amanda/sendsize %{_libexecdir}/amanda/taper %{_libexecdir}/amanda/chunker %{_libexecdir}/amanda/noop %{_libexecdir}/amanda/ndmjob %{_libexecdir}/amanda/amanda-sh-lib.sh %{_libexecdir}/amanda/teecount %{_libexecdir}/amanda/chg-lib.sh %verify(not mode) %attr(0750,root,%{amanda_group})%{_libexecdir}/amanda/calcsize %verify(not mode) %attr(0750,root,%{amanda_group})%{_libexecdir}/amanda/dumper %verify(not mode) %attr(0750,root,%{amanda_group})%{_libexecdir}/amanda/killpgrp %verify(not mode) %attr(0750,root,%{amanda_group})%{_libexecdir}/amanda/planner %verify(not mode) %attr(0750,root,%{amanda_group})%{_libexecdir}/amanda/rundump %verify(not mode) %attr(0750,root,%{amanda_group})%{_libexecdir}/amanda/runtar %dir %{_libexecdir}/amanda/application/ %{_libexecdir}/amanda/application/* # include shared libs %dir %{_libdir}/amanda/ %{_libdir}/amanda/lib* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor