Blob Blame History Raw

Name:		backupninja
Version:	1.0.1
Release:	9%{?dist}
Summary:	Lightweight, extensible backup system

Group:		Applications/System
License:	GPLv2
URL:		https://labs.riseup.net/code/projects/backupninja
Source0:	https://labs.riseup.net/code/attachments/download/275/backupninja-1.0.1.tar.gz

Patch0:		backupninja-rsync-action.patch
Patch1:		backupninja-1.0.1-redhat.patch
Patch2:		backupninja-duplicity-version.patch
Patch3:		backupninja-extbackup-fix.patch

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:	noarch

Requires:	rdiff-backup
Requires:	logrotate
%if 0%{?el5}
Requires:	vixie-cron
%else
Requires:	cronie
%endif


%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 file system 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
hard-linking.


%prep
%setup -q
%patch0 -p1 -b .rsync
%patch1 -p1 -b .redhat
%patch2 -p1 -b .dupver
%patch3 -p1 -b .extbck

%build
# put all script 'libs' into one dir
%configure --libdir=%{_libexecdir}

make %{?_smp_mflags}

%install
%if 0%{?el5}
rm -rf %{buildroot}
%endif
make install DESTDIR=%{buildroot}
mkdir -p -m 0750 %{buildroot}/%{_sysconfdir}/backup.d

%if 0%{?el5}
%clean
rm -rf %{buildroot}
%endif


%files
%{!?_licensedir:%global license %doc}
%{_sbindir}/backupninja
%{_sbindir}/ninjahelper
%{_libexecdir}/backupninja
%doc AUTHORS ChangeLog FAQ NEWS README TODO
%license COPYING
%config(noreplace) %{_sysconfdir}/backupninja.conf
%config(noreplace) %{_sysconfdir}/cron.d/backupninja
%config(noreplace) %{_sysconfdir}/logrotate.d/backupninja
%dir %attr(0750,root,root )%{_sysconfdir}/backup.d
%{_datadir}/backupninja
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*


%changelog
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Fri Jul 08 2016 Denis Fateyev <denis@fateyev.com> - 1.0.1-8
- Fix duplicity path and S3, CloudFiles usage

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Fri Nov 21 2014 Denis Fateyev <denis@fateyev.com> - 1.0.1-5
- Added patch for RH-system specific

* Mon Sep 08 2014 Denis Fateyev <denis@fateyev.com> - 1.0.1-4
- Fix rsync action handler

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Jan 19 2014 Denis Fateyev <denis@fateyev.com> - 1.0.1-2
- Fix RHEL5 cron dependencies

* Thu Jan 16 2014 Denis Fateyev <denis@fateyev.com> - 1.0.1-1
- Initial Fedora RPM package