-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackupninja.spec.in
72 lines (59 loc) · 2.08 KB
/
backupninja.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Summary: Backupninja backup tool
Name: backupninja
Version: trunk
Release: 1
License: GPL
Group: Applications/System
URL: https://labs.riseup.net/code/projects/backupninja
Source: %{name}-%{version}.tar.bz2
Requires: bash, gawk, rdiff-backup, gzip, cron, logrotate, rdiff-backup, dialog
BuildRequires: automake
BuildRequires: -post-build-checks
BuildRoot: %{_tmppath}/%{name}-%{version}
%description
Backupninja allows you to coordinate system backup by dropping a few
simple configuration files into /etc/backup.d/. Most programs you
might use for making backups don't have their own configuration file format.
Backupninja provides a centralized way to configure and schedule many
different backup utilities. It allows for secure, remote, incremental
filesytem backup (via rdiff-backup), compressed incremental data,
backup system and hardware info, encrypted remote backups (via duplicity),
safe backup of MySQL/PostgreSQL databases, subversion or trac repositories,
burn CD/DVDs or create ISOs, incremental rsync with hardlinking.
%prep
%setup -q
%build
./autogen.sh
%configure
make
%install
rm -rf ${buildroot}
%makeinstall
mkdir -p "%{buildroot}%{_sysconfdir}/backup.d"
mkdir -p "%{buildroot}%{_localstatedir}/backups"
mkdir -p "%{buildroot}%{_localstatedir}/log"
touch "%{buildroot}%{_localstatedir}/log/backupninja.log"
%clean
rm -fr %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/*
%dir %{_datadir}/backupninja
%dir %{_libdir}/backupninja
%{_datadir}/backupninja/*
%{_libdir}/backupninja/*
%config %{_sysconfdir}/cron.d/backupninja
%config %{_sysconfdir}/logrotate.d/backupninja
%config(noreplace) %{_sysconfdir}/backupninja.conf
%dir %{_localstatedir}/backups
%ghost %{_localstatedir}/log/backupninja.log
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_mandir}/man1/*
%{_mandir}/man5/*
%defattr(0640,root,root,0750)
%dir %{_sysconfdir}/backup.d
%changelog
* Sun Oct 14 2007 Adam Monsen <haircut@gmail.com> 0.9.5-1
- use cleanup steps during %install and %clean
* Mon Apr 29 2002 Petr Klima <Petr.Klima@madeta-group.cz> 0.7.0
- first RPM release