automatic version update by autodist [release 4.4.0-1mamba;Fri Feb 19 2021]
This commit is contained in:
parent
43baf30828
commit
6274640d12
@ -4,18 +4,27 @@
|
|||||||
%define serverhtdocsdir %(apxs -q htdocsdir 2>/dev/null)
|
%define serverhtdocsdir %(apxs -q htdocsdir 2>/dev/null)
|
||||||
|
|
||||||
Name: BackupPC
|
Name: BackupPC
|
||||||
Version: 3.3.0
|
Version: 4.4.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: A system for backing up Linux, WinXX PCs, Macs and laptops to a server's disk
|
Summary: A system for backing up Linux, WinXX PCs, Macs and laptops to a server's disk
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://backuppc.sourceforge.net/
|
URL: https://backuppc.sourceforge.net/
|
||||||
Source: http://downloads.sourceforge.net/sourceforge/backuppc/BackupPC-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/sourceforge/backuppc/BackupPC-%{version}.tar.gz
|
||||||
|
Source1: backuppc.tmpfiles
|
||||||
License: GPL
|
License: GPL
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: libperl
|
||||||
|
BuildRequires: perl-BackupPC-XS
|
||||||
|
BuildRequires: perl-File-Listing
|
||||||
|
BuildRequires: perl-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRequires: perl-BackupPC-XS
|
||||||
Requires: httpd
|
Requires: httpd
|
||||||
|
Requires: perl-BackupPC-XS
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
BackupPC is a high-performance, enterprise-grade backup system for backing up Linux, WinXX PCs, Macs and laptops to a server's disk. Features include clever pooling of identical files, no client-side software, and a powerful Apache/CGI user interface.
|
BackupPC is a high-performance, enterprise-grade backup system for backing up Linux, WinXX PCs, Macs and laptops to a server's disk. Features include clever pooling of identical files, no client-side software, and a powerful Apache/CGI user interface.
|
||||||
@ -33,43 +42,63 @@ perl configure.pl \
|
|||||||
--html-dir=%serverhtdocsdir/BackupPC \
|
--html-dir=%serverhtdocsdir/BackupPC \
|
||||||
--html-dir-url=/BackupPC \
|
--html-dir-url=/BackupPC \
|
||||||
--backuppc-user=backuppc \
|
--backuppc-user=backuppc \
|
||||||
--install-dir /opt/BackupPC \
|
--install-dir %{_datadir}/backuppc \
|
||||||
--dest-dir %{buildroot} \
|
--dest-dir %{buildroot} \
|
||||||
--data-dir /var/BackupPC \
|
--data-dir /var/lib/backuppc \
|
||||||
--no-set-perms \
|
--no-set-perms \
|
||||||
|
--run-dir /run/BackupPC \
|
||||||
--uid-ignore
|
--uid-ignore
|
||||||
|
|
||||||
install -D -m0755 init.d/linux-backuppc %{buildroot}%{_initrddir}/backuppc
|
install -D -m0644 systemd/backuppc.service %{buildroot}%{_unitdir}/backuppc.service
|
||||||
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/backuppc.conf
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
/usr/sbin/groupadd backuppc -g %{vscan_gid} 2>/dev/null
|
/usr/sbin/groupadd backuppc -g %{backuppc_gid} 2>/dev/null
|
||||||
/usr/sbin/useradd -u %{vscan_uid} -c 'Virus Scan user' -d /var/amavis -g vscan -s /bin/false vscan 2>/dev/null
|
/usr/sbin/useradd -u %{backuppc_uid} -c 'BackupPC user' -d /var/lib/backuppc -g backuppc -s /bin/false backuppc 2>/dev/null
|
||||||
fi
|
fi
|
||||||
exit 0
|
%tmpfiles_create_package backuppc %{SOURCE1}
|
||||||
|
:
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post backuppc
|
||||||
|
:
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
%systemd_preun backuppc
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/usr/sbin/userdel backuppc 2>/dev/null
|
/usr/sbin/userdel backuppc 2>/dev/null
|
||||||
/usr/sbin/groupdel backuppc 2>/dev/null
|
/usr/sbin/groupdel backuppc 2>/dev/null
|
||||||
fi
|
fi
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart backuppc
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%dir %{_sysconfdir}/BackupPC
|
||||||
%config(noreplace) %{_sysconfdir}/BackupPC/config.pl
|
%config(noreplace) %{_sysconfdir}/BackupPC/config.pl
|
||||||
%config(noreplace) %{_sysconfdir}/BackupPC/hosts
|
%config(noreplace) %{_sysconfdir}/BackupPC/hosts
|
||||||
%{_initrddir}/backuppc
|
%{_sysconfdir}/BackupPC/config.pl.sample
|
||||||
|
%{_sysconfdir}/BackupPC/hosts.sample
|
||||||
|
%{_unitdir}/backuppc.service
|
||||||
|
%{_tmpfilesdir}/backuppc.conf
|
||||||
%attr(-,backuppc,nobody) %{servercgidir}/BackupPC_Admin
|
%attr(-,backuppc,nobody) %{servercgidir}/BackupPC_Admin
|
||||||
%attr(-,backuppc,nobody) %{serverhtdocsdir}/BackupPC
|
%attr(-,backuppc,nobody) %{serverhtdocsdir}/BackupPC
|
||||||
%attr(-,backuppc,backuppc) /opt/BackupPC
|
%attr(-,backuppc,backuppc) %{_datadir}/backuppc
|
||||||
|
%dir /var/lib/backuppc
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
#%doc ChangeLog README
|
#%doc ChangeLog README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 19 2021 Automatic Build System <autodist@mambasoft.it> 4.4.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 3.3.0-1mamba
|
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 3.3.0-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
1
backuppc.tmpfiles
Normal file
1
backuppc.tmpfiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /run/backuppc 0755 backuppc backuppc -
|
Loading…
Reference in New Issue
Block a user