summaryrefslogtreecommitdiff
path: root/etckeeper.spec
diff options
context:
space:
mode:
authorJimmy Tang <jtang@duo.tchpc.tcd.ie>2009-02-24 10:04:19 +0000
committerJoey Hess <joey@gnu.kitenet.net>2009-02-24 16:09:55 -0500
commit22cb391017efe46c84e00de8054a57e69805e0cd (patch)
tree317069355344ee56179a3cef69b34b65057f7da0 /etckeeper.spec
parent0586e023a870cb1fc2370eb0a30eb031cc091d6b (diff)
initial etckeeper specfile for generating an rpm
Diffstat (limited to 'etckeeper.spec')
-rw-r--r--etckeeper.spec57
1 files changed, 57 insertions, 0 deletions
diff --git a/etckeeper.spec b/etckeeper.spec
new file mode 100644
index 0000000..971713c
--- /dev/null
+++ b/etckeeper.spec
@@ -0,0 +1,57 @@
+Name: etckeeper
+Version: 0.31
+Release: 1%{?dist}
+Summary: store /etc in git, mercurial, bzr or darcs
+
+Group: System Tools
+License: GPLv2
+URL: http://kitenet.net/~joey/code/etckeeper/
+Source0: http://ftp.de.debian.org/debian/pool/main/e/etckeeper/%{name}_%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: git >= 1.6.1-1
+Obsoletes: etckeeper = snapshot
+
+%description
+The etckeeper program is a tool to let /etc be stored in a git,
+mercurial, bzr or darcs repository. It hooks into APT to automatically
+commit changes made to /etc during package upgrades. It tracks file
+metadata that version control systems do not normally support, but that
+is important for /etc, such as the permissions of /etc/shadow. It's
+quite modular and configurable, while also being simple to use if you
+understand the basics of working with version control.
+
+%prep
+%setup -q -n %{name}
+%{__perl} -pi -e '
+ s|HIGHLEVEL_PACKAGE_MANAGER=apt|HIGHLEVEL_PACKAGE_MANAGER=yum|;
+ s|LOWLEVEL_PACKAGE_MANAGER=dpkg|LOWLEVEL_PACKAGE_MANAGER=rpm|;
+ ' %{_builddir}/%{name}/etckeeper.conf
+
+
+%build
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{_sbindir}/etckeeper init -d /etc/
+
+%files
+%defattr(-,root,root,-)
+%doc GPL INSTALL TODO bash_completion README
+%{_sbindir}/*
+%{_mandir}/*
+/etc/*
+
+
+%changelog
+* Tue Feb 24 2009 Jimmy Tang <jtang@tchpc.tcd.ie> - 0.31-1
+- initial package