aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--systemd/paccache.service7
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b44d0fa..3da4751 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,7 @@ install-bin: pacredir
$(INSTALL) -D -m0644 pacman/paccache $(DESTDIR)/etc/pacman.d/paccache
$(INSTALL) -D -m0644 avahi/pacserve.service $(DESTDIR)/etc/avahi/services/pacserve.service
$(INSTALL) -D -m0644 avahi/pacdbserve.service $(DESTDIR)/etc/avahi/services/pacdbserve.service
+ $(INSTALL) -D -m0644 systemd/paccache.service $(DESTDIR)$(PREFIX)/lib/systemd/system/paccache.service
$(INSTALL) -D -m0644 systemd/pacserve.service $(DESTDIR)$(PREFIX)/lib/systemd/system/pacserve.service
$(INSTALL) -D -m0644 systemd/pacdbserve.service $(DESTDIR)$(PREFIX)/lib/systemd/system/pacdbserve.service
$(INSTALL) -D -m0644 systemd/pacredir.service $(DESTDIR)$(PREFIX)/lib/systemd/system/pacredir.service
diff --git a/systemd/paccache.service b/systemd/paccache.service
new file mode 100644
index 0000000..3d0772c
--- /dev/null
+++ b/systemd/paccache.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Redirect pacman requests via avahi service
+
+[Install]
+Also=pacredir.service
+Also=pacserve.service
+Also=pacdbserve.service