net-dns/getdns: fix upstream systemd unit to match ebuild configuration #656988

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Quentin Retornaz
2018-06-20 17:00:34 +02:00
committed by Anthony G. Basile
parent 3d8e9f8640
commit cecd6be7b3
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
diff -ur a/stubby/systemd/stubby.service b/stubby/systemd/stubby.service
--- a/stubby/systemd/stubby.service 2018-05-11 13:25:22.000000000 +0200
+++ b/stubby/systemd/stubby.service 2018-06-20 15:40:23.650164668 +0200
@@ -3,9 +3,11 @@
[Service]
User=stubby
-DynamicUser=yes
+DynamicUser=no
CacheDirectory=stubby
WorkingDirectory=/var/cache/stubby
+ExecStartPre=/bin/mkdir -p /var/cache/stubby
+ExecStartPre=/bin/chown stubby:stubby /var/cache/stubby
ExecStart=/usr/bin/stubby
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE

View File

@@ -30,6 +30,8 @@ RDEPEND="
stubby? ( sys-libs/libcap:= )
"
PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" )
src_configure() {
econf \
--runstatedir=/var/run \