pkgver=1 pkgrel=1 arch=(any) pkgname=config-etckeeper depends=(etckeeper pristine-etc-keeper) package() { cd "$pkgdir" install -dm755 etc/systemd/system/multi-user.target.wants # etckeeper is configured to use git (the default) to keep track of # changes in /etc. The systemd unit etckeeper.timer is enabled, which # makes a commit (if necessary) daily. It will also run before and # after pacman via libalpm hooks. ln -s /usr/lib/systemd/system/etckeeper.timer etc/systemd/system/multi-user.target.wants/etckeeper.timer # In addition to etckeeper keeping track of the current configuration, # lukeshu's pristine-etc-keeper maintains a branch of what /etc would # be like if we never made any changes from the default files. The # clean version of etc is available as the clean remote's master # branch. Doing a git diff clean/master master should be helpful in # investigating how things have been configured. ln -s /usr/lib/systemd/system/pristine-etc-keeper.timer etc/systemd/system/multi-user.target.wants/pristine-etc-keeper.timer # Add a stub to customize /etc/.gitignrore a bit install -Dm755 /dev/stdin etc/etckeeper/update-ignore.d/02custom <<_EOF_ #!/bin/bash sed -i '/^# end section managed by etckeeper$/,$d' .gitignore cat >> .gitignore <