aboutsummaryrefslogtreecommitdiff
path: root/backupninja.spec.in
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2005-10-26 23:05:26 +0000
committerMicah Anderson <micah@riseup.net>2005-10-26 23:05:26 +0000
commitd076494a6ea20754841582d0903b13eb6a973cfd (patch)
treef38b4b96a044ef1449a0049aa09f4d70e9ddf960 /backupninja.spec.in
parentc4785ba5edb9738f7e9da8c4086a4b6984515dd2 (diff)
downloadbackupninja-d076494a6ea20754841582d0903b13eb6a973cfd.tar.gz
backupninja-d076494a6ea20754841582d0903b13eb6a973cfd.tar.bz2
A little rearranging to get to autotools
Diffstat (limited to 'backupninja.spec.in')
-rw-r--r--backupninja.spec.in59
1 files changed, 59 insertions, 0 deletions
diff --git a/backupninja.spec.in b/backupninja.spec.in
new file mode 100644
index 0000000..a7f820b
--- /dev/null
+++ b/backupninja.spec.in
@@ -0,0 +1,59 @@
+%define name @PACKAGE_NAME@
+%define version @PACKAGE_VERSION@
+
+Summary: Backupninja backup tool
+Name: %{name}
+Version: %{version}
+Release: 1
+License: GPL
+Group: Applications/System
+URL: http://dev.riseup.net/backupninja/
+Source: %{name}-%{version}.tar.gz
+Requires: bash, gawk, rdiff-backup, gzip
+Provides: %{name}
+Packager: Petr Klima <Petr.Klima@madeta-group.cz>
+BuildRoot: %{_tmppath}/%{name}-%{version}
+Prefix: %{_prefix}
+
+%description
+Modular rdiff.backup tool
+
+%prep
+#rm -rf ${buildroot}
+%setup -q
+
+%build
+%configure
+# this is necessary MAKEINSTALL rewrites @sysconfigdir@ atc.
+%{__make}
+
+%install
+%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(0750,root,root)
+%{_sbindir}/*
+%{_datadir}/backupninja/*
+%{_sysconfdir}/cron.d/backupninja
+%{_sysconfdir}/logrotate.d/backupninja
+
+%defattr(0600,root,root)
+%config(noreplace) %{_sysconfdir}/backupninja.conf
+%dir %{_sysconfdir}/backup.d
+%dir %{_localstatedir}/backups
+%ghost %{_localstatedir}/log/backupninja.log
+
+%defattr(0644,root,root)
+%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
+%{_mandir}/*
+
+%changelog
+* Mon Apr 29 2002 Petr Klima <Petr.Klima@madeta-group.cz> 0.7.0
+- first RPM release