summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Tang <jtang@duo.tchpc.tcd.ie>2009-02-27 12:50:29 +0000
committerJoey Hess <joey@gnu.kitenet.net>2009-02-27 13:17:47 -0500
commit4c601e07ff344d24cc0b85753030c19c9dcdbc76 (patch)
treee0f5166223c3402ba4eb3ab1dfa47a9316ffa8f8
parent7d58bfad3bc285261ef457473da3682232b07fa0 (diff)
t/testing
make the rpm package do the right thing on a fresh install * refine specfile so that the basic config doesn't get blown away on an update. * install cron.daily script Signed-off-by: Jimmy Tang <jtang@duo.tchpc.tcd.ie>
-rw-r--r--etckeeper.spec19
1 files changed, 17 insertions, 2 deletions
diff --git a/etckeeper.spec b/etckeeper.spec
index cab99a0..34ae4af 100644
--- a/etckeeper.spec
+++ b/etckeeper.spec
@@ -1,6 +1,6 @@
Name: etckeeper
Version: 0.33
-Release: 1%{?dist}
+Release: 4%{?dist}
Summary: store /etc in git, mercurial, bzr or darcs
Group: System Tools
@@ -36,6 +36,7 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
+install -D debian/cron.daily $RPM_BUILD_ROOT/etc/cron.daily/etckeeper
%clean
@@ -43,16 +44,30 @@ rm -rf $RPM_BUILD_ROOT
%post
%{_sbindir}/etckeeper init -d /etc/
+mkdir -p %{_var}/cache/etckeeper
%files
%defattr(-,root,root,-)
%doc GPL INSTALL TODO README
%{_sbindir}/*
%{_mandir}/*
-/etc/*
+# this isn't very clever and its a manaual process update.
+# but it works
+%config(noreplace) /etc/yum/pluginconf.d/etckeeper.conf
+%config(noreplace) /etc/etckeeper/etckeeper.conf
+/etc/etckeeper/*.d/*
+/etc/cron.daily/etckeeper
+/etc/bash_completion.d/etckeeper
%{_prefix}/lib/*
%changelog
+* Fri Feb 27 2009 Jimmy Tang <jtang@tchpc.tcd.ie> - 0.33-4
+- fix up initial install to make directory in /var/cache/etckeeper
+- install the etckeeper daily cron job
+- define some config files that shouldn't be replaced, should the hooks
+in commit.d, init.d etc... saved and not blown away? if so they can
+defined as config files. etckeeper should record the changes anyway.
+
* Wed Feb 25 2009 Jimmy Tang <jtang@tchpc.tcd.ie> - 0.32-1
- yum etckeeper plugin is now apart of this package