Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/
Date: Sat, 12 Oct 2019 09:15:53
Message-Id: 1570871080.a8abd07088b63a216add2c96a0dcdddd326ea586.juippis@gentoo
1 commit: a8abd07088b63a216add2c96a0dcdddd326ea586
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Tue Sep 17 17:49:39 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 12 09:04:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8abd070
7
8 net-dns/ddclient: drop user eclass
9
10 Dropped user eclass in favour of acct-* packages.
11
12 Package-Manager: Portage-2.3.76, Repoman-2.3.17
13 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
14 Closes: https://github.com/gentoo/gentoo/pull/12952
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 net-dns/ddclient/ddclient-3.9.0-r3.ebuild | 62 +++++++++++++++++++++++++++++++
18 1 file changed, 62 insertions(+)
19
20 diff --git a/net-dns/ddclient/ddclient-3.9.0-r3.ebuild b/net-dns/ddclient/ddclient-3.9.0-r3.ebuild
21 new file mode 100644
22 index 00000000000..a65c8645684
23 --- /dev/null
24 +++ b/net-dns/ddclient/ddclient-3.9.0-r3.ebuild
25 @@ -0,0 +1,62 @@
26 +# Copyright 1999-2019 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit systemd
32 +
33 +DESCRIPTION="Perl client used to update dynamic DNS entries"
34 +HOMEPAGE="https://sourceforge.net/projects/ddclient/"
35 +SRC_URI="mirror://sourceforge/ddclient/${P}.tar.gz"
36 +
37 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
38 +LICENSE="GPL-2+"
39 +SLOT="0"
40 +IUSE="examples iproute2"
41 +
42 +RDEPEND="
43 + acct-group/ddclient
44 + acct-user/ddclient
45 + dev-lang/perl
46 + dev-perl/Data-Validate-IP
47 + dev-perl/Digest-SHA1
48 + dev-perl/IO-Socket-INET6
49 + dev-perl/IO-Socket-SSL
50 + virtual/perl-Digest-SHA
51 + virtual/perl-JSON-PP
52 + iproute2? ( sys-apps/iproute2 )
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-r6 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 +}