summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-28 01:28:49 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-28 01:31:49 -0500
commit8b6b170f763a27ff7fa5bff3fb66d09eb3b7a102 (patch)
tree6eebd66653914709173ee76234fcd883c42dc903 /Makefile
parentc05d5042ce2fcb5174e808e6439b624edcc28fb4 (diff)
Initial commit of holo-files integration.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ef6a552..fbde21c 100644
--- a/Makefile
+++ b/Makefile
@@ -10,14 +10,11 @@ include $(topsrcdir)/build-aux/Makefile.head.mk
# The core of pristine-etc-keeper
std.sys_files += /etc/etckeeper/pristine/drain
std.sys_files += /etc/etckeeper/pristine/fill
-std.sys_files += /etc/etckeeper/post-install.d/50pristine-etc-keeper
-std.sys_files += /var/lib/pristine-etc/etc.lock
+std.sys_files += /var/lib/pristine-etc/chroot.lock
std.sys_files += /var/lib/pristine-etc/spool.lock
$(DESTDIR)/etc/etckeeper/pristine/%: $(srcdir)/%
install -Dm755 $< $@
-$(DESTDIR)/etc/etckeeper/post-install.d/%: $(srcdir)/%.post-install
- install -Dm755 $< $@
$(DESTDIR)/var/lib/pristine-etc/%.lock:
mkdir -p $(@D)
touch $@
@@ -29,6 +26,12 @@ $(DESTDIR)/usr/bin/pristine-etc-keeper: $(DESTDIR)/etc/etckeeper/pristine/fill
mkdir -p $(@D)
ln -srfT $< $@
+# pacman integration
+std.sys_files += /usr/share/libalpm/hooks/zz-pristine-etc-keeper-post-install.hook
+
+$(DESTDIR)/usr/share/libalpm/hooks/%.hook: %.hook
+ install -Dm644 $< $@
+
# systemd integration
std.sys_files += /usr/lib/systemd/system/pristine-etc-keeper.service