net-dns/getdns: fix upstream systemd unit to match ebuild configuration #656988
authorQuentin Retornaz <gentoo@retornaz.com>
Wed, 20 Jun 2018 15:00:34 +0000 (17:00 +0200)
committerAnthony G. Basile <blueness@gentoo.org>
Thu, 12 Jul 2018 22:31:43 +0000 (18:31 -0400)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
net-dns/getdns/files/getdns-1.4.2-stubby.service.patch [new file with mode: 0644]
net-dns/getdns/getdns-1.4.2-r1.ebuild [moved from net-dns/getdns/getdns-1.4.2.ebuild with 96% similarity]

diff --git a/net-dns/getdns/files/getdns-1.4.2-stubby.service.patch b/net-dns/getdns/files/getdns-1.4.2-stubby.service.patch
new file mode 100644 (file)
index 0000000..2bb7546
--- /dev/null
@@ -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
similarity index 96%
rename from net-dns/getdns/getdns-1.4.2.ebuild
rename to net-dns/getdns/getdns-1.4.2-r1.ebuild
index de86ca0dce7a032c925960a62dad9a2fa45fbcf8..28d7a6c9c3c98aea2d65b267a117f8be3b5d16b8 100644 (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 \