aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--libalpm/80-pacredir.hook9
2 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ec244bd..a657dbb 100644
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,7 @@ install-bin: pacredir avahi/pacserve.service
$(INSTALL) -D -m0644 initcpio/install/pacredir $(DESTDIR)$(PREFIX)/lib/initcpio/install/pacredir
$(INSTALL) -D -m0644 dhcpcd/80-pacredir $(DESTDIR)$(PREFIX)/lib/dhcpcd/dhcpcd-hooks/80-pacredir
$(INSTALL) -D -m0755 networkmanager/80-pacredir $(DESTDIR)$(PREFIX)/lib/NetworkManager/dispatcher.d/80-pacredir
+ $(INSTALL) -D -m0644 libalpm/80-pacredir.hook $(DESTDIR)$(PREFIX)/lib/share/libalpm/hooks/80-pacredir.hook
install-doc: $(HTML)
$(INSTALL) -d -m0755 $(DESTDIR)$(PREFIX)/share/doc/pacredir/
diff --git a/libalpm/80-pacredir.hook b/libalpm/80-pacredir.hook
new file mode 100644
index 0000000..14eb4f3
--- /dev/null
+++ b/libalpm/80-pacredir.hook
@@ -0,0 +1,9 @@
+[Trigger]
+Operation = Upgrade
+Type = Package
+Target = pacredir
+
+[Action]
+Description = Restarting pacredir...
+When = PostTransaction
+Exec = /usr/bin/systemctl try-restart pacredir.service