commit:     cecd6be7b3c948d81dd4c97cfba092acfbd0a366
Author:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
AuthorDate: Wed Jun 20 15:00:34 2018 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Jul 12 22:31:43 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cecd6be7

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

Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>

 net-dns/getdns/files/getdns-1.4.2-stubby.service.patch   | 16 ++++++++++++++++
 .../{getdns-1.4.2.ebuild => getdns-1.4.2-r1.ebuild}      |  2 ++
 2 files changed, 18 insertions(+)

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
index 00000000000..2bb7546fcfa
--- /dev/null
+++ b/net-dns/getdns/files/getdns-1.4.2-stubby.service.patch
@@ -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

diff --git a/net-dns/getdns/getdns-1.4.2.ebuild 
b/net-dns/getdns/getdns-1.4.2-r1.ebuild
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 de86ca0dce7..28d7a6c9c3c 100644
--- a/net-dns/getdns/getdns-1.4.2.ebuild
+++ b/net-dns/getdns/getdns-1.4.2-r1.ebuild
@@ -30,6 +30,8 @@ RDEPEND="
        stubby? ( sys-libs/libcap:= )
 "
 
+PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" )
+
 src_configure() {
        econf \
                --runstatedir=/var/run \

Reply via email to