summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--systemd/pacdbserve.socket9
-rw-r--r--systemd/pacserve.socket9
3 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 18b6afc..f00a983 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,9 @@ install-bin: pacredir
$(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/pacserve.service $(DESTDIR)$(PREFIX)/lib/systemd/system/pacserve.service
+ $(INSTALL) -D -m0644 systemd/pacserve.socket $(DESTDIR)$(PREFIX)/lib/systemd/system/pacserve.socket
$(INSTALL) -D -m0644 systemd/pacdbserve.service $(DESTDIR)$(PREFIX)/lib/systemd/system/pacdbserve.service
+ $(INSTALL) -D -m0644 systemd/pacdbserve.socket $(DESTDIR)$(PREFIX)/lib/systemd/system/pacdbserve.socket
$(INSTALL) -D -m0644 systemd/pacredir.service $(DESTDIR)$(PREFIX)/lib/systemd/system/pacredir.service
$(INSTALL) -D -m0644 initcpio/hook/paccache $(DESTDIR)$(PREFIX)/lib/initcpio/hooks/paccache
$(INSTALL) -D -m0644 initcpio/install/paccache $(DESTDIR)$(PREFIX)/lib/initcpio/install/paccache
diff --git a/systemd/pacdbserve.socket b/systemd/pacdbserve.socket
new file mode 100644
index 0000000..f8dc794
--- /dev/null
+++ b/systemd/pacdbserve.socket
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=pacdbserve.service
+
+[Socket]
+ListenStream=7079
+Accept=no
+
+[Install]
+WantedBy=sockets.target
diff --git a/systemd/pacserve.socket b/systemd/pacserve.socket
new file mode 100644
index 0000000..941cb7c
--- /dev/null
+++ b/systemd/pacserve.socket
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=pacserve.service
+
+[Socket]
+ListenStream=7078
+Accept=no
+
+[Install]
+WantedBy=sockets.target