diff --git a/srcpkgs/mdnsd/files/mdnsd/run b/srcpkgs/mdnsd/files/mdnsd/run index 1267cb96319..a03f0dc01b7 100644 --- a/srcpkgs/mdnsd/files/mdnsd/run +++ b/srcpkgs/mdnsd/files/mdnsd/run @@ -4,4 +4,7 @@ exec 2>&1 [ -r ./conf ] && . ./conf -exec chpst -u nobody:nogroup mdnsd -n ${OPTS} +exec 2>&1 +exec setpriv --reuid _mdnsd --regid _mdnsd --clear-groups \ + --ambient-caps +net_raw --inh-caps +net_raw --bounding-set -all,+net_raw \ + --no-new-privs -- mdnsd -n ${OPTS} diff --git a/srcpkgs/mdnsd/template b/srcpkgs/mdnsd/template index f0cdd42c410..65affd6a235 100644 --- a/srcpkgs/mdnsd/template +++ b/srcpkgs/mdnsd/template @@ -1,8 +1,9 @@ # Template file for 'mdnsd' pkgname=mdnsd -version=1.1 +version=1.2 revision=1 build_style=gnu-configure +configure_args="--with-systemd=/usr/lib/systemd/system" hostmakedepends="autoconf automake pkg-config libtool" short_desc="Embeddable Multicast DNS Daemon" maintainer="Duncaen " @@ -10,10 +11,12 @@ license="BSD-3-Clause" homepage="https://github.com/troglobit/mdnsd" changelog="https://github.com/troglobit/mdnsd/raw/master/ChangeLog.md" distfiles="https://github.com/troglobit/mdnsd/archive/v${version}.tar.gz" -checksum=8f3e91b27dc5c0c25d23f016d6913c7a0c1f081453a605ed4c9a17f1db1bcdb6 +checksum=93464af8f775184dd93fc90c72dd62e958f952294625cf0a1e77311aa9fa1d84 +system_accounts="_mdnsd" conf_files=" /etc/mdns.d/ssh.service" + conflicts="mDNSResponder" pre_configure() { @@ -21,7 +24,7 @@ pre_configure() { } post_install() { - rm ${DESTDIR}/usr/share/doc/mdnsd/LICENSE + rm "${DESTDIR}/usr/share/doc/mdnsd/LICENSE" vsv mdnsd vlicense LICENSE }