aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2020-11-24 08:25:33 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-11-24 15:50:13 +0000
commit60b70ea180b9fb278e4d7ca1aa1fe44a3275237c (patch)
treeb64c3748cda3ad9dd699a9efd8915e2ca9645d98
parent9663c71d7ed335a7a895cc2d201ead5705843fae (diff)
downloadaports-60b70ea180b9fb278e4d7ca1aa1fe44a3275237c.tar.gz
aports-60b70ea180b9fb278e4d7ca1aa1fe44a3275237c.tar.bz2
aports-60b70ea180b9fb278e4d7ca1aa1fe44a3275237c.tar.xz
main/etckeeper: upgrade to 1.18.15
upstream is no longer shipping the cron job
-rw-r--r--main/etckeeper/APKBUILD10
-rwxr-xr-xmain/etckeeper/etckeeper.cron8
2 files changed, 14 insertions, 4 deletions
diff --git a/main/etckeeper/APKBUILD b/main/etckeeper/APKBUILD
index 7e58d192d2..2fdff6eb85 100644
--- a/main/etckeeper/APKBUILD
+++ b/main/etckeeper/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=etckeeper
-pkgver=1.18.14
+pkgver=1.18.15
pkgrel=0
pkgdesc="Store /etc in git."
url="http://etckeeper.branchable.com"
@@ -17,6 +17,7 @@ subpackages="
install="$pkgname.post-install $pkgname.pre-deinstall"
source="$pkgname-$pkgver.tar.gz::https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/etckeeper-$pkgver.tar.gz
apk-commit_hook
+ etckeeper.cron
"
prepare() {
@@ -57,12 +58,13 @@ package() {
rmdir "$pkgdir"/lib/
rm -rf "$pkgdir"/etc/apt
- install -m755 -D "$builddir"/debian/cron.daily \
+ install -m755 -D "$srcdir"/etckeeper.cron \
"$pkgdir"/etc/periodic/daily/"$pkgname"
install -m755 -D "$srcdir"/apk-commit_hook \
"$pkgdir"/etc/apk/commit_hooks.d/"$pkgname"
}
-sha512sums="1bc01845d47ce3af1ef56474745843e8be6e005da90a21bed302fe73476fbf1f64b84fae7dac73139c394ca698bd146e1609fa34ebbc6737ba73a6f61e670948 etckeeper-1.18.14.tar.gz
-d0ff88615359e8b03da5f9162a7bae3f32c06891a8899096025283d77e950dd72280c6c19b8eb8a4cde08742c6ca715cd32c37c16e8bbf2d030e9fd16a1fc940 apk-commit_hook"
+sha512sums="7b2cca6c346a7c2b97ffd9b418169712ec46d947a3c8685490ce95eb9f5b6fa389e7b3ae6ad2c1ad6774bed88212b05c5ffe202ad055dea19fdde2509a349a85 etckeeper-1.18.15.tar.gz
+d0ff88615359e8b03da5f9162a7bae3f32c06891a8899096025283d77e950dd72280c6c19b8eb8a4cde08742c6ca715cd32c37c16e8bbf2d030e9fd16a1fc940 apk-commit_hook
+471c1f8f2cce94248f679e56e2bfc4ac384d9b6944d4023a2ebdd3d197f95d335f4ccc0d3d946a68513d3cc5638189fa8e04923f097605435fd3e4f01c60e1c2 etckeeper.cron"
diff --git a/main/etckeeper/etckeeper.cron b/main/etckeeper/etckeeper.cron
new file mode 100755
index 0000000000..eb74401a54
--- /dev/null
+++ b/main/etckeeper/etckeeper.cron
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+if [ -e /etc/etckeeper/daily ] && [ -e /etc/etckeeper/etckeeper.conf ]; then
+ . /etc/etckeeper/etckeeper.conf
+ if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then
+ /etc/etckeeper/daily
+ fi
+fi