summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTilman Blumenbach <tilman+git@ax86.net>2016-01-30 20:43:55 +0100
committerJoey Hess <joeyh@joeyh.name>2016-02-02 12:11:16 -0400
commitba00b0240201ffd004512b19b84c0379a898d5c4 (patch)
tree3aca99d38f117b8e62a46030fa0c7460ccb56d59 /Makefile
parent2d371faabe6d3e92e9c8a4d0dd049df73ddc1d0b (diff)
Add hooks for Pacman 5.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 007faae..0ff9a05 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,11 @@ ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),apt)
mkdir -p $(DESTDIR)$(etcdir)/cruft/filters-unex
$(INSTALL_DATA) cruft_filter $(DESTDIR)$(etcdir)/cruft/filters-unex/etckeeper
endif
+ifeq ($(LOWLEVEL_PACKAGE_MANAGER),pacman)
+ mkdir -p $(DESTDIR)$(prefix)/share/libalpm/hooks
+ $(INSTALL_DATA) ./pacman-pre-install.hook $(DESTDIR)$(prefix)/share/libalpm/hooks/etckeeper-pre-install.hook
+ $(INSTALL_DATA) ./pacman-post-install.hook $(DESTDIR)$(prefix)/share/libalpm/hooks/etckeeper-post-install.hook
+endif
ifeq ($(LOWLEVEL_PACKAGE_MANAGER),pacman-g2)
mkdir -p $(DESTDIR)$(etcdir)/pacman-g2/hooks
$(INSTALL_DATA) pacman-g2.hook $(DESTDIR)$(etcdir)/pacman-g2/hooks/etckeeper