summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-05 21:36:26 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-05 21:36:26 +0200
commit8d9fda1e05c745d8e34a6a506c386b31f7285ec5 (patch)
tree76203dab6c8b70987d76ffcbcf92d2eb1a800802
parent73dd8a4f79ed2290d645f480ef0efade51aea403 (diff)
downloadpaccache-8d9fda1e05c745d8e34a6a506c386b31f7285ec5.tar.gz
paccache-8d9fda1e05c745d8e34a6a506c386b31f7285ec5.tar.zst
add paccache.service to enable all required services
-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