public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/files/, net-dns/ddclient/
@ 2018-09-02 10:24 Aaron Swenson
  0 siblings, 0 replies; 4+ messages in thread
From: Aaron Swenson @ 2018-09-02 10:24 UTC (permalink / raw
  To: gentoo-commits

commit:     07bcf259bce767f0cad640468a9efba700e246ba
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Sat Sep  1 21:24:57 2018 +0000
Commit:     Aaron Swenson <titanofold <AT> gentoo <DOT> org>
CommitDate: Sun Sep  2 10:23:42 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07bcf259

net-dns/ddclient: bump to version 3.9.0

Closes: https://bugs.gentoo.org/665070
Package-Manager: Portage-2.3.48, Repoman-2.3.10
Closes: https://github.com/gentoo/gentoo/pull/9762

 net-dns/ddclient/Manifest                          |  1 +
 net-dns/ddclient/ddclient-3.9.0.ebuild             | 65 ++++++++++++++++++++++
 .../files/ddclient-3.9.0-use_iproute2.patch        | 29 ++++++++++
 net-dns/ddclient/files/ddclient.initd-r5           | 21 +++++++
 net-dns/ddclient/files/ddclient.service-r1         | 13 +++++
 net-dns/ddclient/metadata.xml                      | 39 +++++++++----
 6 files changed, 157 insertions(+), 11 deletions(-)

diff --git a/net-dns/ddclient/Manifest b/net-dns/ddclient/Manifest
index 03aaf5c5581..54506bc1f80 100644
--- a/net-dns/ddclient/Manifest
+++ b/net-dns/ddclient/Manifest
@@ -1,3 +1,4 @@
 DIST ddclient-3.8.1.tar.gz 48600 BLAKE2B a945adcb42bd298422c71c0eea6bea36c6b266ce39e97ebfd833b29819a2f30f2651d7f7b17dbfc0720b6209d0c0ed94bf2673624777f07e6de83a7081471995 SHA512 d6722582dffe0c5a806176f24bd3d9117bc1210ea0137aa92138390be16e67d47b746777dc431282a664849c91626969a5e267777126bac03304c7aa34a9dad7
 DIST ddclient-3.8.2.tar.gz 46059 BLAKE2B 95dc19f26fe4a14d67154ad86723882ef371545156d88119d000366d97e045f37e9d6af229a24950740b915404cb35250baf05aa7cf1268f756ce7b1e776c6cb SHA512 8f74ce90ce4a31b8d53887b99556661343b96734ae630403434689459eaeb1354159ae26f0404b9db21a0ff4151816d1650746a13c547064748656a8c6e3f13b
 DIST ddclient-3.8.3.tar.gz 54516 BLAKE2B a472c84c05b6eccdef3ead0abfa6e38d5ef04fdc0df3327dad2181088102f1b40ac7986492c8d964589e3994cace9103ba56664809174f99d14d9c86c377c46a SHA512 055b6edf91a3b72d9ba80c9dedfbc1d60f62d6879bc722735488a5a1a37fafeb2e97567da98939ccc62fd39b0846438dfad1c022635d602c67bafda178574a76
+DIST ddclient-3.9.0.tar.gz 59018 BLAKE2B b9b58108d9f124fcd5a72cc57bfb0e6a5bc2e115edc27a1d5950a929670d67d5c703b09f51e7e82e977ccfb544d115da177b0ac8dc06a76a800aa207cde5a42d SHA512 ae314c96a37dd90256d6acf62f4a4523b72f540194131e351a032239b00b4520351f6549d3b20a9209fe49ccc6de7ce158ffa8635d341066ea71b789dc667438

diff --git a/net-dns/ddclient/ddclient-3.9.0.ebuild b/net-dns/ddclient/ddclient-3.9.0.ebuild
new file mode 100644
index 00000000000..850df0d4444
--- /dev/null
+++ b/net-dns/ddclient/ddclient-3.9.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit systemd user
+
+DESCRIPTION="Perl client used to update dynamic DNS entries"
+HOMEPAGE="https://sourceforge.net/projects/ddclient/"
+SRC_URI="mirror://sourceforge/ddclient/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd"
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="examples iproute2"
+
+RDEPEND="dev-lang/perl
+	dev-perl/Data-Validate-IP
+	dev-perl/Digest-SHA1
+	dev-perl/IO-Socket-INET6
+	dev-perl/IO-Socket-SSL
+	virtual/perl-Digest-SHA
+	virtual/perl-JSON-PP
+	iproute2? ( sys-apps/iproute2 )"
+
+pkg_setup() {
+	enewgroup ddclient
+	enewuser ddclient -1 -1 -1 ddclient
+}
+
+src_prepare() {
+	# Remove PID setting, to reliably setup the environment for the init script
+	sed -e '/^pid/d' -i sample-etc_ddclient.conf || die
+
+	# Remove windows executable
+	if use examples; then
+		rm sample-etc_dhcpc_dhcpcd-eth0.exe || die
+	fi
+
+	# Use sys-apps/iproute2 instead of sys-apps/net-tools
+	use iproute2 && eapply "${FILESDIR}"/${P}-use_iproute2.patch
+
+	default
+}
+
+src_install() {
+	dobin ddclient
+
+	newinitd "${FILESDIR}"/ddclient.initd-r5 ddclient
+	systemd_newunit "${FILESDIR}"/ddclient.service-r1 ddclient
+
+	insinto /etc/ddclient
+	insopts -m 0600 -o ddclient -g ddclient
+	newins sample-etc_ddclient.conf ddclient.conf
+
+	newinitd "${FILESDIR}"/ddclient.initd-r5 ddclient
+	systemd_dounit "${FILESDIR}"/ddclient.service
+
+	dodoc Change* README* RELEASENOTE TODO UPGRADE
+
+	if use examples; then
+		docinto examples
+		dodoc sample-*
+	fi
+}

diff --git a/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch b/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch
new file mode 100644
index 00000000000..b57f78ba14e
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch
@@ -0,0 +1,29 @@
+--- a/ddclient	2018-08-09 17:58:16.000000000 +0200
++++ b/ddclient	2018-09-01 22:35:43.000000000 +0200
+@@ -710,7 +710,7 @@
+     [ "ip",          "=s", "-ip address           : set the IP address to 'address'" ],
+     "",			     
+     [ "if",          "=s", "-if interface         : obtain IP address from 'interface'" ],
+-    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ifconfig {if}" ],
++    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ip addr show {if}" ],
+     "",
+     [ "web",         "=s", "-web provider|url     : obtain IP address from provider's IP checking page" ],
+     [ "web-skip",    "=s", "-web-skip pattern     : skip any IP addresses before 'pattern' on the web provider|url" ],
+@@ -1448,7 +1448,7 @@
+ 
+     {
+ 	local $opt{'use'} = 'if';
+-	foreach my $if (grep {/^[a-zA-Z]/} `ifconfig -a`) {
++	foreach my $if (grep {/^[a-zA-Z]/} `ip addr show`) {
+ 	    $if =~ s/:?\s.*//is;
+ 	    local $opt{'if'} = $if;
+ 	    printf "use=if, if=%s address is %s\n", opt('if'), define(get_ip('if'), 'NOT FOUND');
+@@ -2165,7 +2165,7 @@
+ 
+     } elsif ($use eq 'if') {
+ 	$skip  = opt('if-skip', $h)  || '';
+-	$reply = `ifconfig $arg 2> /dev/null`;
++	$reply = `ip addr show $arg 2> /dev/null`;
+ 	$reply = `ip addr list dev $arg 2> /dev/null` if $?;
+ 	$reply = '' if $?;
+ 

diff --git a/net-dns/ddclient/files/ddclient.initd-r5 b/net-dns/ddclient/files/ddclient.initd-r5
new file mode 100644
index 00000000000..a2284a27c1f
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient.initd-r5
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+name="DDclient"
+pidfile="/run/ddclient/${RC_SVCNAME}.pid"
+
+command="/usr/bin/ddclient"
+command_args="-pid ${pidfile}"
+command_group="ddclient"
+command_user="ddclient"
+
+depend() {
+	use dns logger
+}
+
+start_pre() {
+	checkpath -f -m 0600 -o ${command_user}:${command_group} /etc/ddclient/ddclient.conf
+	checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient
+	checkpath -d -m 0700 -o ${command_user}:${command_group} /var/cache/ddclient
+}

diff --git a/net-dns/ddclient/files/ddclient.service-r1 b/net-dns/ddclient/files/ddclient.service-r1
new file mode 100644
index 00000000000..77cc3f7aa5e
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient.service-r1
@@ -0,0 +1,13 @@
+[Unit]
+After=network-online.target
+ConditionPathExists=/etc/ddclient/ddclient.conf
+Description=DDclient
+
+[Service]
+ExecStart=/usr/sbin/ddclient --foreground
+Group=ddclient
+Type=simple
+User=ddclient
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-dns/ddclient/metadata.xml b/net-dns/ddclient/metadata.xml
index e4faff9063a..4e40c4923a7 100644
--- a/net-dns/ddclient/metadata.xml
+++ b/net-dns/ddclient/metadata.xml
@@ -1,15 +1,32 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <maintainer type="person">
-    <email>titanofold@gentoo.org</email>
-    <name>Aaron W. Swenson</name>
-  </maintainer>
-  <use>
-    <flag name="cloudflare">Enable support for updating IP address via CloudFlare</flag>
-    <flag name="hardened">Use iproute2 instead of ifconfig to grab an IP address</flag>
-  </use>
-  <upstream>
-    <remote-id type="sourceforge">ddclient</remote-id>
-  </upstream>
+	<maintainer type="person">
+		<email>titanofold@gentoo.org</email>
+		<name>Aaron W. Swenson</name>
+	</maintainer>
+	<maintainer type="person">
+		<email>ck+gentoo@bl4ckb0x.de</email>
+		<name>Conrad Kostecki</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<use>
+		<flag name="cloudflare">Enable support for updating IP address via CloudFlare</flag>
+		<flag name="examples">Install various example files, like for cron.</flag>
+		<flag name="hardened">Use iproute2 instead of ifconfig to grab an IP address</flag>
+		<flag name="iproute2">Use <pkg>sys-apps/iproute2</pkg> instead of <pkg>sys-apps/net-tools</pkg> for interaction.</flag>
+	</use>
+	<longdescription>
+		DDclient is a perl client used to update dynamic DNS entries
+		for accounts on dynamic DNS network service providers.
+		It has the capability to update more than just dynamic DNS
+		and it can fetch WAN-IP-addresses in a few different ways.
+	</longdescription>
+	<upstream>
+		<bugs-to>https://sourceforge.net/p/ddclient/bugs/</bugs-to>
+		<remote-id type="sourceforge">ddclient</remote-id>
+	</upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/files/, net-dns/ddclient/
@ 2018-10-30 10:34 Patrice Clement
  0 siblings, 0 replies; 4+ messages in thread
From: Patrice Clement @ 2018-10-30 10:34 UTC (permalink / raw
  To: gentoo-commits

commit:     008c5aeadcd3a5b33ffa52402ae1adcdff600179
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Sun Oct 28 15:01:29 2018 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Oct 30 10:34:26 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=008c5aea

net-dns/ddclient: drop old version

Also changed order of elements in metadata.xml.

Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10267
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 net-dns/ddclient/Manifest                |  2 --
 net-dns/ddclient/ddclient-3.8.2.ebuild   | 46 ------------------------------
 net-dns/ddclient/ddclient-3.8.3.ebuild   | 49 --------------------------------
 net-dns/ddclient/files/ddclient.confd    |  2 --
 net-dns/ddclient/files/ddclient.initd-r4 | 35 -----------------------
 net-dns/ddclient/metadata.xml            | 11 ++++---
 6 files changed, 5 insertions(+), 140 deletions(-)

diff --git a/net-dns/ddclient/Manifest b/net-dns/ddclient/Manifest
index 54506bc1f80..f48954925d5 100644
--- a/net-dns/ddclient/Manifest
+++ b/net-dns/ddclient/Manifest
@@ -1,4 +1,2 @@
 DIST ddclient-3.8.1.tar.gz 48600 BLAKE2B a945adcb42bd298422c71c0eea6bea36c6b266ce39e97ebfd833b29819a2f30f2651d7f7b17dbfc0720b6209d0c0ed94bf2673624777f07e6de83a7081471995 SHA512 d6722582dffe0c5a806176f24bd3d9117bc1210ea0137aa92138390be16e67d47b746777dc431282a664849c91626969a5e267777126bac03304c7aa34a9dad7
-DIST ddclient-3.8.2.tar.gz 46059 BLAKE2B 95dc19f26fe4a14d67154ad86723882ef371545156d88119d000366d97e045f37e9d6af229a24950740b915404cb35250baf05aa7cf1268f756ce7b1e776c6cb SHA512 8f74ce90ce4a31b8d53887b99556661343b96734ae630403434689459eaeb1354159ae26f0404b9db21a0ff4151816d1650746a13c547064748656a8c6e3f13b
-DIST ddclient-3.8.3.tar.gz 54516 BLAKE2B a472c84c05b6eccdef3ead0abfa6e38d5ef04fdc0df3327dad2181088102f1b40ac7986492c8d964589e3994cace9103ba56664809174f99d14d9c86c377c46a SHA512 055b6edf91a3b72d9ba80c9dedfbc1d60f62d6879bc722735488a5a1a37fafeb2e97567da98939ccc62fd39b0846438dfad1c022635d602c67bafda178574a76
 DIST ddclient-3.9.0.tar.gz 59018 BLAKE2B b9b58108d9f124fcd5a72cc57bfb0e6a5bc2e115edc27a1d5950a929670d67d5c703b09f51e7e82e977ccfb544d115da177b0ac8dc06a76a800aa207cde5a42d SHA512 ae314c96a37dd90256d6acf62f4a4523b72f540194131e351a032239b00b4520351f6549d3b20a9209fe49ccc6de7ce158ffa8635d341066ea71b789dc667438

diff --git a/net-dns/ddclient/ddclient-3.8.2.ebuild b/net-dns/ddclient/ddclient-3.8.2.ebuild
deleted file mode 100644
index 512df84b706..00000000000
--- a/net-dns/ddclient/ddclient-3.8.2.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit systemd user
-
-DESCRIPTION="Perl updater client for dynamic DNS services"
-HOMEPAGE="http://ddclient.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="hardened"
-
-RDEPEND=">=dev-lang/perl-5.1
-		 virtual/perl-Digest-SHA
-		 dev-perl/IO-Socket-SSL
-		 hardened? ( sys-apps/iproute2 )
-"
-
-pkg_setup() {
-	enewgroup ${PN}
-	enewuser ${PN} -1 -1 -1 ${PN}
-}
-
-src_prepare() {
-	# Remove pid setting because we can't leave it user configurable and
-	# reliably setup the environment for the init script to stop ${PN}
-	ebegin "Removing PID setting from ${PN}.conf"
-	sed '/^pid/d' -i "sample-etc_${PN}.conf"
-	eend $?
-}
-
-src_install() {
-	dosbin ${PN}
-	dodoc Change* COPYRIGHT README* RELEASENOTE sample*
-
-	newinitd "${FILESDIR}/${PN}.initd-r4" ${PN}
-	systemd_dounit "${FILESDIR}"/${PN}.service
-
-	insopts -m 0600 -o ${PN} -g ${PN}
-	insinto /etc/${PN}
-	newins sample-etc_${PN}.conf ${PN}.conf
-	newins sample-etc_${PN}.conf ${PN}.conf.sample
-}

diff --git a/net-dns/ddclient/ddclient-3.8.3.ebuild b/net-dns/ddclient/ddclient-3.8.3.ebuild
deleted file mode 100644
index 5ba587c41d2..00000000000
--- a/net-dns/ddclient/ddclient-3.8.3.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-inherit systemd user
-
-DESCRIPTION="Perl updater client for dynamic DNS services"
-HOMEPAGE="http://ddclient.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd"
-IUSE="cloudflare hardened"
-
-RDEPEND=">=dev-lang/perl-5.1
-	virtual/perl-Digest-SHA
-	dev-perl/IO-Socket-SSL
-	cloudflare? ( dev-perl/JSON-Any )
-	hardened? ( sys-apps/iproute2 )
-"
-
-pkg_setup() {
-	enewgroup ${PN}
-	enewuser ${PN} -1 -1 -1 ${PN}
-}
-
-src_prepare() {
-	default
-
-	# Remove pid setting because we can't leave it user configurable and
-	# reliably setup the environment for the init script to stop ${PN}
-	ebegin "Removing PID setting from ${PN}.conf"
-	sed '/^pid/d' -i "sample-etc_${PN}.conf" || die
-	eend $?
-}
-
-src_install() {
-	dosbin ${PN}
-	dodoc Change* COPYRIGHT README* RELEASENOTE sample*
-
-	newinitd "${FILESDIR}/${PN}.initd-r4" ${PN}
-	systemd_dounit "${FILESDIR}"/${PN}.service
-
-	insopts -m 0600 -o ${PN} -g ${PN}
-	insinto /etc/${PN}
-	newins sample-etc_${PN}.conf ${PN}.conf
-	newins sample-etc_${PN}.conf ${PN}.conf.sample
-}

diff --git a/net-dns/ddclient/files/ddclient.confd b/net-dns/ddclient/files/ddclient.confd
deleted file mode 100644
index 2408a40bb6f..00000000000
--- a/net-dns/ddclient/files/ddclient.confd
+++ /dev/null
@@ -1,2 +0,0 @@
-# No need to specify a pid in /etc/ddclient/ddclient.conf
-PIDFILE=/var/run/ddclient/ddclient.pid

diff --git a/net-dns/ddclient/files/ddclient.initd-r4 b/net-dns/ddclient/files/ddclient.initd-r4
deleted file mode 100644
index c25f0296519..00000000000
--- a/net-dns/ddclient/files/ddclient.initd-r4
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-PIDFILE="/run/ddclient/ddclient.pid"
-
-depend() {
-    before cron
-    need net
-    use dns logger squid
-}
-
-checkconfig() {
-    checkpath -f -m 0600 -o ddclient:ddclient /etc/ddclient/ddclient.conf || return 1
-    checkpath -d -m 0700 -o ddclient:ddclient /run/ddclient || return 1
-    checkpath -d -m 0700 -o ddclient:ddclient /var/cache/ddclient || return 1
-}
-
-start() {
-    checkconfig || return 1
-
-    ebegin "Starting ${SVCNAME}"
-    start-stop-daemon --start \
-        --user ddclient \
-	--name ddclient \
-        --pidfile ${PIDFILE} \
-        --exec /usr/sbin/ddclient -- -pid=${PIDFILE}
-    eend $?
-}
-
-stop() {
-    ebegin "Stopping ${SVCNAME}"
-    start-stop-daemon --stop --signal USR1 --pidfile ${PIDFILE}
-    eend $?
-}

diff --git a/net-dns/ddclient/metadata.xml b/net-dns/ddclient/metadata.xml
index 4e40c4923a7..2d82a2acf9c 100644
--- a/net-dns/ddclient/metadata.xml
+++ b/net-dns/ddclient/metadata.xml
@@ -13,18 +13,17 @@
 		<email>proxy-maint@gentoo.org</email>
 		<name>Proxy Maintainers</name>
 	</maintainer>
-	<use>
-		<flag name="cloudflare">Enable support for updating IP address via CloudFlare</flag>
-		<flag name="examples">Install various example files, like for cron.</flag>
-		<flag name="hardened">Use iproute2 instead of ifconfig to grab an IP address</flag>
-		<flag name="iproute2">Use <pkg>sys-apps/iproute2</pkg> instead of <pkg>sys-apps/net-tools</pkg> for interaction.</flag>
-	</use>
 	<longdescription>
 		DDclient is a perl client used to update dynamic DNS entries
 		for accounts on dynamic DNS network service providers.
 		It has the capability to update more than just dynamic DNS
 		and it can fetch WAN-IP-addresses in a few different ways.
 	</longdescription>
+	<use>
+		<flag name="examples">Install various example files, like for cron.</flag>
+		<flag name="hardened">Use iproute2 instead of ifconfig to grab an IP address</flag>
+		<flag name="iproute2">Use <pkg>sys-apps/iproute2</pkg> instead of <pkg>sys-apps/net-tools</pkg> for interaction.</flag>
+	</use>
 	<upstream>
 		<bugs-to>https://sourceforge.net/p/ddclient/bugs/</bugs-to>
 		<remote-id type="sourceforge">ddclient</remote-id>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/files/, net-dns/ddclient/
@ 2018-12-02 23:38 Aaron W. Swenson
  0 siblings, 0 replies; 4+ messages in thread
From: Aaron W. Swenson @ 2018-12-02 23:38 UTC (permalink / raw
  To: gentoo-commits

commit:     c5a1aea329a52da62c39184d19935590b5c38e57
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Sun Dec  2 18:57:40 2018 +0000
Commit:     Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
CommitDate: Sun Dec  2 23:38:01 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5a1aea3

net-dns/ddclient: add need net for init script

Also bumped to EAPI=7.

Closes: https://bugs.gentoo.org/672338
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
Closes: https://github.com/gentoo/gentoo/pull/10542
Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>

 net-dns/ddclient/ddclient-3.9.0-r2.ebuild | 65 +++++++++++++++++++++++++++++++
 net-dns/ddclient/files/ddclient.initd-r6  | 22 +++++++++++
 2 files changed, 87 insertions(+)

diff --git a/net-dns/ddclient/ddclient-3.9.0-r2.ebuild b/net-dns/ddclient/ddclient-3.9.0-r2.ebuild
new file mode 100644
index 00000000000..680f66ad4da
--- /dev/null
+++ b/net-dns/ddclient/ddclient-3.9.0-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd user
+
+DESCRIPTION="Perl client used to update dynamic DNS entries"
+HOMEPAGE="https://sourceforge.net/projects/ddclient/"
+SRC_URI="mirror://sourceforge/ddclient/${P}.tar.gz"
+
+KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="examples iproute2"
+
+RDEPEND="
+	dev-lang/perl
+	dev-perl/Data-Validate-IP
+	dev-perl/Digest-SHA1
+	dev-perl/IO-Socket-INET6
+	dev-perl/IO-Socket-SSL
+	virtual/perl-Digest-SHA
+	virtual/perl-JSON-PP
+	iproute2? ( sys-apps/iproute2 )
+"
+
+pkg_setup() {
+	enewgroup ddclient
+	enewuser ddclient -1 -1 -1 ddclient
+}
+
+src_prepare() {
+	# Remove PID setting, to reliably setup the environment for the init script
+	sed -e '/^pid/d' -i sample-etc_ddclient.conf || die
+
+	# Remove windows executable
+	if use examples; then
+		rm sample-etc_dhcpc_dhcpcd-eth0.exe || die
+	fi
+
+	# Use sys-apps/iproute2 instead of sys-apps/net-tools
+	use iproute2 && eapply "${FILESDIR}"/${P}-use_iproute2.patch
+
+	default
+}
+
+src_install() {
+	dobin ddclient
+
+	insinto /etc/ddclient
+	insopts -m 0600 -o ddclient -g ddclient
+	newins sample-etc_ddclient.conf ddclient.conf
+
+	newinitd "${FILESDIR}"/ddclient.initd-r6 ddclient
+	systemd_newunit "${FILESDIR}"/ddclient.service-r1 ddclient.service
+	systemd_newtmpfilesd "${FILESDIR}"/ddclient.tmpfiles ddclient.conf
+
+	dodoc Change* README* RELEASENOTE TODO UPGRADE
+
+	if use examples; then
+		docinto examples
+		dodoc sample-*
+	fi
+}

diff --git a/net-dns/ddclient/files/ddclient.initd-r6 b/net-dns/ddclient/files/ddclient.initd-r6
new file mode 100644
index 00000000000..7bdc433d1ed
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient.initd-r6
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="DDclient"
+pidfile="/run/ddclient/${RC_SVCNAME}.pid"
+
+command="/usr/bin/ddclient"
+command_args="-pid ${pidfile}"
+command_group="ddclient"
+command_user="ddclient"
+
+depend() {
+	need net
+	use dns logger
+}
+
+start_pre() {
+	checkpath -f -m 0600 -o ${command_user}:${command_group} /etc/ddclient/ddclient.conf
+	checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient
+	checkpath -d -m 0700 -o ${command_user}:${command_group} /var/cache/ddclient
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/files/, net-dns/ddclient/
@ 2022-12-10 21:53 Conrad Kostecki
  0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2022-12-10 21:53 UTC (permalink / raw
  To: gentoo-commits

commit:     e71f05f14a0e617d534c84c7803987c094060152
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 10 21:43:19 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Dec 10 21:53:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e71f05f1

net-dns/ddclient: drop 3.9.1-r2

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-dns/ddclient/Manifest                          |  1 -
 net-dns/ddclient/ddclient-3.9.1-r2.ebuild          | 67 ----------------------
 .../files/ddclient-3.9.0-use_iproute2.patch        | 29 ----------
 net-dns/ddclient/files/ddclient.initd-r6           | 22 -------
 net-dns/ddclient/files/ddclient.service-r1         | 13 -----
 net-dns/ddclient/files/ddclient.tmpfiles           |  3 -
 net-dns/ddclient/metadata.xml                      |  1 -
 7 files changed, 136 deletions(-)

diff --git a/net-dns/ddclient/Manifest b/net-dns/ddclient/Manifest
index 43738109bdd6..bb2dce564183 100644
--- a/net-dns/ddclient/Manifest
+++ b/net-dns/ddclient/Manifest
@@ -1,2 +1 @@
 DIST ddclient-3.10.0.tar.gz 275494 BLAKE2B abb2d313ae7c459305916b47f7c6e28a6a1ac9ce141b7e1ba64cb4b646191eff17cb0a89e2ee14a9e406cf0e5d319b2c144874a050679528c9b085a5f239a6aa SHA512 4740a96813e47e7989d61253ac8a69c6e0f70dd3c61a05227b03d973d9a024d17d6a31c16d633ade48a3fc58f0c79b8a0da8a4ec3369d852a2417e86e9971a05
-DIST ddclient-3.9.1.tar.gz 63469 BLAKE2B 8ae6543353d96f76d926117ae53d74da6e8bc8f116fa15b8b0d39bc29a4c334bfc3d673b8f1c57139213b91414d1b9a2063fde9e1015f03fb76ba70a60956a7e SHA512 a8a4d6cb94e4239a7b7b4fc7d9ebef703cbd6c45fc3394b644694a053b5b8aa8d109410b5b8b3676a5f30b18474d24c7feb16c65c30b28bd7d941d8a214b1346

diff --git a/net-dns/ddclient/ddclient-3.9.1-r2.ebuild b/net-dns/ddclient/ddclient-3.9.1-r2.ebuild
deleted file mode 100644
index b7461a66f5c5..000000000000
--- a/net-dns/ddclient/ddclient-3.9.1-r2.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit systemd tmpfiles
-
-DESCRIPTION="Perl client used to update dynamic DNS entries"
-HOMEPAGE="https://ddclient.net/"
-SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~sparc x86"
-LICENSE="GPL-2+"
-SLOT="0"
-IUSE="examples iproute2 selinux"
-
-RDEPEND="
-	acct-group/ddclient
-	acct-user/ddclient
-	dev-lang/perl
-	dev-perl/Data-Validate-IP
-	dev-perl/Digest-SHA1
-	dev-perl/IO-Socket-INET6
-	dev-perl/IO-Socket-SSL
-	virtual/perl-Digest-SHA
-	virtual/perl-JSON-PP
-	iproute2? ( sys-apps/iproute2 )
-	selinux? ( sec-policy/selinux-ddclient )
-"
-
-src_prepare() {
-	# Remove PID setting, to reliably setup the environment for the init script
-	sed -e '/^pid/d' -i sample-etc_ddclient.conf || die
-
-	# Remove windows executable
-	if use examples; then
-		rm sample-etc_dhcpc_dhcpcd-eth0.exe || die
-	fi
-
-	# Use sys-apps/iproute2 instead of sys-apps/net-tools
-	use iproute2 && eapply "${FILESDIR}"/${PN}-3.9.0-use_iproute2.patch
-
-	default
-}
-
-src_install() {
-	dobin ddclient
-
-	insinto /etc/ddclient
-	insopts -m 0600 -o ddclient -g ddclient
-	newins sample-etc_ddclient.conf ddclient.conf
-
-	newinitd "${FILESDIR}"/ddclient.initd-r6 ddclient
-	systemd_newunit "${FILESDIR}"/ddclient.service-r1 ddclient.service
-	newtmpfiles "${FILESDIR}"/ddclient.tmpfiles ddclient.conf
-
-	dodoc Change* README* RELEASENOTE TODO UPGRADE
-
-	if use examples; then
-		docinto examples
-		dodoc sample-*
-	fi
-}
-
-pkg_postinst() {
-	tmpfiles_process ddclient.conf
-}

diff --git a/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch b/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch
deleted file mode 100644
index b57f78ba14e1..000000000000
--- a/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/ddclient	2018-08-09 17:58:16.000000000 +0200
-+++ b/ddclient	2018-09-01 22:35:43.000000000 +0200
-@@ -710,7 +710,7 @@
-     [ "ip",          "=s", "-ip address           : set the IP address to 'address'" ],
-     "",			     
-     [ "if",          "=s", "-if interface         : obtain IP address from 'interface'" ],
--    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ifconfig {if}" ],
-+    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ip addr show {if}" ],
-     "",
-     [ "web",         "=s", "-web provider|url     : obtain IP address from provider's IP checking page" ],
-     [ "web-skip",    "=s", "-web-skip pattern     : skip any IP addresses before 'pattern' on the web provider|url" ],
-@@ -1448,7 +1448,7 @@
- 
-     {
- 	local $opt{'use'} = 'if';
--	foreach my $if (grep {/^[a-zA-Z]/} `ifconfig -a`) {
-+	foreach my $if (grep {/^[a-zA-Z]/} `ip addr show`) {
- 	    $if =~ s/:?\s.*//is;
- 	    local $opt{'if'} = $if;
- 	    printf "use=if, if=%s address is %s\n", opt('if'), define(get_ip('if'), 'NOT FOUND');
-@@ -2165,7 +2165,7 @@
- 
-     } elsif ($use eq 'if') {
- 	$skip  = opt('if-skip', $h)  || '';
--	$reply = `ifconfig $arg 2> /dev/null`;
-+	$reply = `ip addr show $arg 2> /dev/null`;
- 	$reply = `ip addr list dev $arg 2> /dev/null` if $?;
- 	$reply = '' if $?;
- 

diff --git a/net-dns/ddclient/files/ddclient.initd-r6 b/net-dns/ddclient/files/ddclient.initd-r6
deleted file mode 100644
index 7bdc433d1ed1..000000000000
--- a/net-dns/ddclient/files/ddclient.initd-r6
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-name="DDclient"
-pidfile="/run/ddclient/${RC_SVCNAME}.pid"
-
-command="/usr/bin/ddclient"
-command_args="-pid ${pidfile}"
-command_group="ddclient"
-command_user="ddclient"
-
-depend() {
-	need net
-	use dns logger
-}
-
-start_pre() {
-	checkpath -f -m 0600 -o ${command_user}:${command_group} /etc/ddclient/ddclient.conf
-	checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient
-	checkpath -d -m 0700 -o ${command_user}:${command_group} /var/cache/ddclient
-}

diff --git a/net-dns/ddclient/files/ddclient.service-r1 b/net-dns/ddclient/files/ddclient.service-r1
deleted file mode 100644
index d183b4f2a6c7..000000000000
--- a/net-dns/ddclient/files/ddclient.service-r1
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-After=network-online.target
-ConditionPathExists=/etc/ddclient/ddclient.conf
-Description=DDclient
-
-[Service]
-ExecStart=/usr/bin/ddclient --foreground
-Group=ddclient
-Type=simple
-User=ddclient
-
-[Install]
-WantedBy=multi-user.target

diff --git a/net-dns/ddclient/files/ddclient.tmpfiles b/net-dns/ddclient/files/ddclient.tmpfiles
deleted file mode 100644
index 4c6cc19ab943..000000000000
--- a/net-dns/ddclient/files/ddclient.tmpfiles
+++ /dev/null
@@ -1,3 +0,0 @@
-z /etc/ddclient/ddclient.conf 0600 ddclient ddclient - -
-d /run/ddclient 0700 ddclient ddclient - -
-d /var/cache/ddclient 0700 ddclient ddclient - -

diff --git a/net-dns/ddclient/metadata.xml b/net-dns/ddclient/metadata.xml
index 7ae4518001ba..211e2deb306b 100644
--- a/net-dns/ddclient/metadata.xml
+++ b/net-dns/ddclient/metadata.xml
@@ -17,7 +17,6 @@
 	</longdescription>
 	<use>
 		<flag name="examples">Install various example files, like for cron.</flag>
-		<flag name="iproute2">Use <pkg>sys-apps/iproute2</pkg> instead of <pkg>sys-apps/net-tools</pkg> for interaction.</flag>
 	</use>
 	<upstream>
 		<bugs-to>https://github.com/ddclient/ddclient/issues</bugs-to>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-10 21:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-02 23:38 [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/files/, net-dns/ddclient/ Aaron W. Swenson
  -- strict thread matches above, loose matches on Subject: below --
2022-12-10 21:53 Conrad Kostecki
2018-10-30 10:34 Patrice Clement
2018-09-02 10:24 Aaron Swenson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox