diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/02-pacredir-avahi-MulticastDNS-resolve.conf | 9 | ||||
-rw-r--r-- | compat/avahi.conf | 6 | ||||
-rw-r--r-- | compat/pacserve-announce.service.in | 23 |
3 files changed, 38 insertions, 0 deletions
diff --git a/compat/02-pacredir-avahi-MulticastDNS-resolve.conf b/compat/02-pacredir-avahi-MulticastDNS-resolve.conf new file mode 100644 index 0000000..314b8f7 --- /dev/null +++ b/compat/02-pacredir-avahi-MulticastDNS-resolve.conf @@ -0,0 +1,9 @@ +# This file is shipped by pacredir to enable multicast DNS in +# systemd-resolved globally. +# +# For Avahi compatibility the value is overwritten from 'yes' +# (see 01-pacredir-MulticastDNS-yes.conf) to 'resolve'. This +# allows avahi-daemon to announce the pacserve service. + +[Resolve] +MulticastDNS=resolve diff --git a/compat/avahi.conf b/compat/avahi.conf new file mode 100644 index 0000000..a486d74 --- /dev/null +++ b/compat/avahi.conf @@ -0,0 +1,6 @@ +[Unit] +Upholds=pacserve-announce.service + +[Service] +ExecStartPost= +ExecStopPost= diff --git a/compat/pacserve-announce.service.in b/compat/pacserve-announce.service.in new file mode 100644 index 0000000..e425f68 --- /dev/null +++ b/compat/pacserve-announce.service.in @@ -0,0 +1,23 @@ +# (C) 2013-2025 by Christian Hesse <mail@eworm.de> +# Markus Weippert <markus@gekmihesg.de> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +[Unit] +Description=Announce pacman database files and package archives +Documentation=https://pacredir.eworm.de/ +After=avahi-daemon.service pacserve.service +BindsTo=pacserve.service +Requires=avahi-daemon.service + +[Service] +EnvironmentFile=/etc/pacserve.conf +ExecStart=/usr/bin/avahi-publish -s "pacserve on %l" _pacserve._tcp ${PORT} id=%ID% arch=%ARCH% +DynamicUser=on +ProtectSystem=full +ProtectHome=on +PrivateDevices=on +NoNewPrivileges=on |