Gentoo Archives: gentoo-commits

From: Aaron Swenson <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/, net-dns/ddclient/files/
Date: Tue, 04 Sep 2018 09:44:15
Message-Id: 1536054164.8731f58759662021ba669f118ded858815ae800c.titanofold@gentoo
1 commit: 8731f58759662021ba669f118ded858815ae800c
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Mon Sep 3 12:06:45 2018 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 4 09:42:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8731f587
7
8 net-dns/ddclient: fix systemd unit
9
10 Closes: https://bugs.gentoo.org/665150
11 Package-Manager: Portage-2.3.48, Repoman-2.3.10
12 Closes: https://github.com/gentoo/gentoo/pull/9773
13
14 net-dns/ddclient/ddclient-3.9.0-r1.ebuild | 63 ++++++++++++++++++++++++++++++
15 net-dns/ddclient/files/ddclient.service-r1 | 2 +-
16 net-dns/ddclient/files/ddclient.tmpfiles | 3 ++
17 3 files changed, 67 insertions(+), 1 deletion(-)
18
19 diff --git a/net-dns/ddclient/ddclient-3.9.0-r1.ebuild b/net-dns/ddclient/ddclient-3.9.0-r1.ebuild
20 new file mode 100644
21 index 00000000000..5e18aacab16
22 --- /dev/null
23 +++ b/net-dns/ddclient/ddclient-3.9.0-r1.ebuild
24 @@ -0,0 +1,63 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI="6"
29 +
30 +inherit systemd user
31 +
32 +DESCRIPTION="Perl client used to update dynamic DNS entries"
33 +HOMEPAGE="https://sourceforge.net/projects/ddclient/"
34 +SRC_URI="mirror://sourceforge/ddclient/${P}.tar.gz"
35 +
36 +KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd"
37 +LICENSE="GPL-2+"
38 +SLOT="0"
39 +IUSE="examples iproute2"
40 +
41 +RDEPEND="dev-lang/perl
42 + dev-perl/Data-Validate-IP
43 + dev-perl/Digest-SHA1
44 + dev-perl/IO-Socket-INET6
45 + dev-perl/IO-Socket-SSL
46 + virtual/perl-Digest-SHA
47 + virtual/perl-JSON-PP
48 + iproute2? ( sys-apps/iproute2 )"
49 +
50 +pkg_setup() {
51 + enewgroup ddclient
52 + enewuser ddclient -1 -1 -1 ddclient
53 +}
54 +
55 +src_prepare() {
56 + # Remove PID setting, to reliably setup the environment for the init script
57 + sed -e '/^pid/d' -i sample-etc_ddclient.conf || die
58 +
59 + # Remove windows executable
60 + if use examples; then
61 + rm sample-etc_dhcpc_dhcpcd-eth0.exe || die
62 + fi
63 +
64 + # Use sys-apps/iproute2 instead of sys-apps/net-tools
65 + use iproute2 && eapply "${FILESDIR}"/${P}-use_iproute2.patch
66 +
67 + default
68 +}
69 +
70 +src_install() {
71 + dobin ddclient
72 +
73 + insinto /etc/ddclient
74 + insopts -m 0600 -o ddclient -g ddclient
75 + newins sample-etc_ddclient.conf ddclient.conf
76 +
77 + newinitd "${FILESDIR}"/ddclient.initd-r5 ddclient
78 + systemd_newunit "${FILESDIR}"/ddclient.service-r1 ddclient.service
79 + systemd_newtmpfilesd "${FILESDIR}"/ddclient.tmpfiles ddclient.conf
80 +
81 + dodoc Change* README* RELEASENOTE TODO UPGRADE
82 +
83 + if use examples; then
84 + docinto examples
85 + dodoc sample-*
86 + fi
87 +}
88
89 diff --git a/net-dns/ddclient/files/ddclient.service-r1 b/net-dns/ddclient/files/ddclient.service-r1
90 index 77cc3f7aa5e..d183b4f2a6c 100644
91 --- a/net-dns/ddclient/files/ddclient.service-r1
92 +++ b/net-dns/ddclient/files/ddclient.service-r1
93 @@ -4,7 +4,7 @@ ConditionPathExists=/etc/ddclient/ddclient.conf
94 Description=DDclient
95
96 [Service]
97 -ExecStart=/usr/sbin/ddclient --foreground
98 +ExecStart=/usr/bin/ddclient --foreground
99 Group=ddclient
100 Type=simple
101 User=ddclient
102
103 diff --git a/net-dns/ddclient/files/ddclient.tmpfiles b/net-dns/ddclient/files/ddclient.tmpfiles
104 new file mode 100644
105 index 00000000000..4c6cc19ab94
106 --- /dev/null
107 +++ b/net-dns/ddclient/files/ddclient.tmpfiles
108 @@ -0,0 +1,3 @@
109 +z /etc/ddclient/ddclient.conf 0600 ddclient ddclient - -
110 +d /run/ddclient 0700 ddclient ddclient - -
111 +d /var/cache/ddclient 0700 ddclient ddclient - -