mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-04 12:18:08 -07:00
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:
committed by
Anthony G. Basile
parent
3d8e9f8640
commit
cecd6be7b3
16
net-dns/getdns/files/getdns-1.4.2-stubby.service.patch
Normal file
16
net-dns/getdns/files/getdns-1.4.2-stubby.service.patch
Normal 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
|
||||
@@ -30,6 +30,8 @@ RDEPEND="
|
||||
stubby? ( sys-libs/libcap:= )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" )
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--runstatedir=/var/run \
|
||||
Reference in New Issue
Block a user