[arch-commits] Commit in etckeeper/repos (4 files)
Christian Hesse
eworm at archlinux.org
Wed Mar 25 09:05:19 UTC 2015
Date: Wednesday, March 25, 2015 @ 10:05:18
Author: eworm
Revision: 129883
archrelease: copy trunk to community-testing-any
Added:
etckeeper/repos/community-testing-any/
etckeeper/repos/community-testing-any/PKGBUILD
(from rev 129882, etckeeper/trunk/PKGBUILD)
etckeeper/repos/community-testing-any/etckeeper.service
(from rev 129882, etckeeper/trunk/etckeeper.service)
etckeeper/repos/community-testing-any/etckeeper.timer
(from rev 129882, etckeeper/trunk/etckeeper.timer)
-------------------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
etckeeper.service | 12 ++++++++++++
etckeeper.timer | 10 ++++++++++
3 files changed, 73 insertions(+)
Copied: etckeeper/repos/community-testing-any/PKGBUILD (from rev 129882, etckeeper/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2015-03-25 09:05:18 UTC (rev 129883)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: mathieu.clabaut <mathieu.clabaut at gmail.com>
+# Contributor: Buce <dmbuce at gmail.com>
+# Contributor: Danie Roux <accounts at danieroux.com>
+
+pkgname=etckeeper
+pkgver=1.18.1
+pkgrel=4
+pkgdesc='collection of tools to let /etc be stored in a git, hg or bzr repository'
+arch=('any')
+url='http://kitenet.net/~joey/code/etckeeper/'
+license=('GPL2')
+depends=('git')
+makedepends=('mercurial' 'bzr')
+optdepends=('mercurial: use mercurial for version control'
+ 'bzr: use bazaar for version control')
+backup=('etc/etckeeper/etckeeper.conf')
+source=("git://git.kitenet.net/etckeeper#tag=${pkgver}"
+ 'etckeeper.service'
+ 'etckeeper.timer')
+sha256sums=('SKIP'
+ 'b92c15e4e2d7211ded184dccf3d4b219031eef4bc5fbe0b8d294e8c0f61195fd'
+ '256326aaaf5ce44a1b965e102cccd0cba433a76444ad9053428fb9f16428b8e5')
+
+build() {
+ cd "${srcdir}/etckeeper/"
+
+ # fix python
+ sed -i '/^PYTHON=/c PYTHON=python2' Makefile
+ sed -i '1s/python/python2/' zypper-etckeeper.py
+
+ # install path for bash-completion
+ sed -i '/bash_completion/s|$(etcdir)/bash_completion.d|${prefix}/share/bash-completion/completions|' Makefile
+
+ # This does not exist, but we do not want the apt stuff installed.
+ sed -i -e "/^LOWLEVEL_PACKAGE_MANAGER/c LOWLEVEL_PACKAGE_MANAGER=pacman" \
+ -e "/^HIGHLEVEL_PACKAGE_MANAGER/c HIGHLEVEL_PACKAGE_MANAGER=pacman" etckeeper.conf
+}
+
+package() {
+ cd "${srcdir}/etckeeper/"
+
+ make DESTDIR=${pkgdir} install
+
+ # autocommit timer
+ install -D -m0755 debian/cron.daily ${pkgdir}/usr/bin/etckeeper-autocommit
+ install -D -m0644 ${srcdir}/etckeeper.service ${pkgdir}/usr/lib/systemd/system/etckeeper.service
+ install -D -m0644 ${srcdir}/etckeeper.timer ${pkgdir}/usr/lib/systemd/system/etckeeper.timer
+}
+
Copied: etckeeper/repos/community-testing-any/etckeeper.service (from rev 129882, etckeeper/trunk/etckeeper.service)
===================================================================
--- community-testing-any/etckeeper.service (rev 0)
+++ community-testing-any/etckeeper.service 2015-03-25 09:05:18 UTC (rev 129883)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Autocommit of changes in /etc directory
+Documentation=man:etckeeper(8)
+DefaultDependencies=no
+Conflicts=shutdown.target
+After=local-fs.target time-sync.target
+Before=shutdown.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/etckeeper-autocommit
+IOSchedulingClass=idle
Copied: etckeeper/repos/community-testing-any/etckeeper.timer (from rev 129882, etckeeper/trunk/etckeeper.timer)
===================================================================
--- community-testing-any/etckeeper.timer (rev 0)
+++ community-testing-any/etckeeper.timer 2015-03-25 09:05:18 UTC (rev 129883)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Daily autocommit of changes in /etc directory
+Documentation=man:etckeeper(8)
+
+[Timer]
+OnBootSec=15min
+OnUnitActiveSec=1d
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list