diff options
Diffstat (limited to 'sysutils/etckeeper/patches/patch-init.d_40vcs-init')
-rw-r--r-- | sysutils/etckeeper/patches/patch-init.d_40vcs-init | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/etckeeper/patches/patch-init.d_40vcs-init b/sysutils/etckeeper/patches/patch-init.d_40vcs-init new file mode 100644 index 00000000000..d30998020cd --- /dev/null +++ b/sysutils/etckeeper/patches/patch-init.d_40vcs-init @@ -0,0 +1,26 @@ +$NetBSD: patch-init.d_40vcs-init,v 1.1 2013/05/27 08:36:00 sbd Exp $ + +Change '/etc' to ${ETCKEEPER_DIR} + +--- init.d/40vcs-init.orig 2011-02-22 20:19:36.000000000 +0000 ++++ init.d/40vcs-init +@@ -3,15 +3,15 @@ set -e + + if [ "$VCS" = git ] && [ ! -e .git ]; then + git init +- echo "$(hostname) /etc repository" > .git/description ++ echo "$(hostname) ${ETCKEEPER_DIR} repository" > .git/description + elif [ "$VCS" = hg ] && [ ! -e .hg ]; then + hg init + echo "[web]" > .hg/hgrc +- echo "description = $(hostname) /etc repository" >> .hg/hgrc ++ echo "description = $(hostname) ${ETCKEEPER_DIR} repository" >> .hg/hgrc + elif [ "$VCS" = bzr ] && [ ! -e .bzr ]; then + bzr init +- bzr nick "$(hostname) /etc repository" ++ bzr nick "$(hostname) ${ETCKEEPER_DIR} repository" + elif [ "$VCS" = darcs ] && [ ! -e _darcs ]; then + darcs initialize +- echo "$(hostname) /etc repository" > _darcs/prefs/motd ++ echo "$(hostname) ${ETCKEEPER_DIR} repository" > _darcs/prefs/motd + fi |