diff options
Diffstat (limited to 'config-etckeeper.PKGBUILD')
-rw-r--r-- | config-etckeeper.PKGBUILD | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/config-etckeeper.PKGBUILD b/config-etckeeper.PKGBUILD index 5f56b43..b5a9ef0 100644 --- a/config-etckeeper.PKGBUILD +++ b/config-etckeeper.PKGBUILD @@ -1,5 +1,5 @@ . ${BUILDFILE%/*}/common.sh -pkgver=20160713.2 +pkgver=20160713.7 depends=(etckeeper pristine-etc-keeper) @@ -24,6 +24,14 @@ add-unit etc/systemd/system/multi-user.target.wants/etckeeper.timer # [pristine-etc-keeper]: https://www.parabola.nu/packages/pcr/any/pristine-etc-keeper-git/ add-unit etc/systemd/system/multi-user.target.wants/pristine-etc-keeper.timer +# etckeeper is configured to automatically "forget" about files that +# become .gitignore'ed; normally you'd have to manually run +# `git rm --cached` on them. +add-file -m755 etc/etckeeper/commit.d/40git-ignore <<EOF +#!/bin/sh +git ls-files --ignored --exclude-standard -z|xargs -0r git rm --cached -- +EOF + # The etckeeper update-ignore hook is customized to ignore a couple # more files in `/etc` (and avoid ignoring `/etc/mtab`). We ignore # `resolv.conf` because it is managed by [resolvconf][openresolv]. @@ -65,4 +73,5 @@ add-file etc/pacman.d/.gitignore <<EOF /gnupg/ EOF +backup=($(find "$pkgdir" -printf '%P\n')) } |