summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--systemd/pacdbserve.service2
-rw-r--r--systemd/pacserve.service2
3 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 537de70..e985df8 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ MD := markdown
INSTALL := install
CP := cp
RM := rm
+LN := ln
SED := sed
CFLAGS += -std=c11 -O2 -Wall -Werror
CFLAGS += -lpthread
@@ -43,6 +44,8 @@ install: install-bin install-doc
install-bin: pacredir
$(INSTALL) -D -m0755 pacredir $(DESTDIR)$(PREFIX)/bin/pacredir
+ $(LN) -s darkhttpd $(DESTDIR)$(PREFIX)/bin/pacserve
+ $(LN) -s darkhttpd $(DESTDIR)$(PREFIX)/bin/pacdbserve
$(INSTALL) -D -m0644 pacredir.conf $(DESTDIR)/etc/pacredir.conf
$(INSTALL) -D -m0644 pacman/paccache $(DESTDIR)/etc/pacman.d/paccache
$(INSTALL) -D -m0644 avahi/pacserve.service $(DESTDIR)/etc/avahi/services/pacserve.service
diff --git a/systemd/pacdbserve.service b/systemd/pacdbserve.service
index 09d1792..bf2b80d 100644
--- a/systemd/pacdbserve.service
+++ b/systemd/pacdbserve.service
@@ -5,7 +5,7 @@ After=network.target
[Service]
User=nobody
Group=nobody
-ExecStart=/usr/bin/darkhttpd /var/lib/pacman/sync/ --ipv6 --port 7079 --no-listing
+ExecStart=/usr/bin/pacdbserve /var/lib/pacman/sync/ --ipv6 --port 7079 --no-listing
ProtectSystem=full
ProtectHome=on
PrivateDevices=on
diff --git a/systemd/pacserve.service b/systemd/pacserve.service
index 198e931..ee51821 100644
--- a/systemd/pacserve.service
+++ b/systemd/pacserve.service
@@ -5,7 +5,7 @@ After=network.target
[Service]
User=nobody
Group=nobody
-ExecStart=/usr/bin/darkhttpd /var/cache/pacman/pkg/ --ipv6 --port 7078 --no-listing
+ExecStart=/usr/bin/pacserve /var/cache/pacman/pkg/ --ipv6 --port 7078 --no-listing
ProtectSystem=full
ProtectHome=on
PrivateDevices=on