* [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/, net-dns/ddclient/files/
@ 2018-09-04 9:44 Aaron Swenson
0 siblings, 0 replies; 4+ messages in thread
From: Aaron Swenson @ 2018-09-04 9:44 UTC (permalink / raw
To: gentoo-commits
commit: 8731f58759662021ba669f118ded858815ae800c
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Mon Sep 3 12:06:45 2018 +0000
Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
CommitDate: Tue Sep 4 09:42:44 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8731f587
net-dns/ddclient: fix systemd unit
Closes: https://bugs.gentoo.org/665150
Package-Manager: Portage-2.3.48, Repoman-2.3.10
Closes: https://github.com/gentoo/gentoo/pull/9773
net-dns/ddclient/ddclient-3.9.0-r1.ebuild | 63 ++++++++++++++++++++++++++++++
net-dns/ddclient/files/ddclient.service-r1 | 2 +-
net-dns/ddclient/files/ddclient.tmpfiles | 3 ++
3 files changed, 67 insertions(+), 1 deletion(-)
diff --git a/net-dns/ddclient/ddclient-3.9.0-r1.ebuild b/net-dns/ddclient/ddclient-3.9.0-r1.ebuild
new file mode 100644
index 00000000000..5e18aacab16
--- /dev/null
+++ b/net-dns/ddclient/ddclient-3.9.0-r1.ebuild
@@ -0,0 +1,63 @@
+# 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
+
+ insinto /etc/ddclient
+ insopts -m 0600 -o ddclient -g ddclient
+ newins sample-etc_ddclient.conf ddclient.conf
+
+ newinitd "${FILESDIR}"/ddclient.initd-r5 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.service-r1 b/net-dns/ddclient/files/ddclient.service-r1
index 77cc3f7aa5e..d183b4f2a6c 100644
--- a/net-dns/ddclient/files/ddclient.service-r1
+++ b/net-dns/ddclient/files/ddclient.service-r1
@@ -4,7 +4,7 @@ ConditionPathExists=/etc/ddclient/ddclient.conf
Description=DDclient
[Service]
-ExecStart=/usr/sbin/ddclient --foreground
+ExecStart=/usr/bin/ddclient --foreground
Group=ddclient
Type=simple
User=ddclient
diff --git a/net-dns/ddclient/files/ddclient.tmpfiles b/net-dns/ddclient/files/ddclient.tmpfiles
new file mode 100644
index 00000000000..4c6cc19ab94
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient.tmpfiles
@@ -0,0 +1,3 @@
+z /etc/ddclient/ddclient.conf 0600 ddclient ddclient - -
+d /run/ddclient 0700 ddclient ddclient - -
+d /var/cache/ddclient 0700 ddclient ddclient - -
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/, net-dns/ddclient/files/
@ 2019-04-18 12:56 Aaron W. Swenson
0 siblings, 0 replies; 4+ messages in thread
From: Aaron W. Swenson @ 2019-04-18 12:56 UTC (permalink / raw
To: gentoo-commits
commit: 6b82ba22d3824a3e3b4068bb19dad94c71e5a48b
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 18 12:55:54 2019 +0000
Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
CommitDate: Thu Apr 18 12:56:20 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b82ba22
net-dns/ddclient: Cleanup
Closes: https://bugs.gentoo.org/664826
Closes: https://bugs.gentoo.org/650406
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
net-dns/ddclient/Manifest | 1 -
net-dns/ddclient/ddclient-3.8.1-r5.ebuild | 55 ---------------------------
net-dns/ddclient/ddclient-3.9.0-r1.ebuild | 63 -------------------------------
net-dns/ddclient/files/cmd-over-cfg.patch | 11 ------
net-dns/ddclient/files/ddclient.confd-r1 | 2 -
net-dns/ddclient/files/ddclient.initd-r3 | 57 ----------------------------
net-dns/ddclient/files/ddclient.initd-r5 | 21 -----------
net-dns/ddclient/files/ddclient.service | 12 ------
net-dns/ddclient/files/iproute2.patch | 30 ---------------
net-dns/ddclient/metadata.xml | 1 -
10 files changed, 253 deletions(-)
diff --git a/net-dns/ddclient/Manifest b/net-dns/ddclient/Manifest
index f48954925d5..65a72add02c 100644
--- a/net-dns/ddclient/Manifest
+++ b/net-dns/ddclient/Manifest
@@ -1,2 +1 @@
-DIST ddclient-3.8.1.tar.gz 48600 BLAKE2B a945adcb42bd298422c71c0eea6bea36c6b266ce39e97ebfd833b29819a2f30f2651d7f7b17dbfc0720b6209d0c0ed94bf2673624777f07e6de83a7081471995 SHA512 d6722582dffe0c5a806176f24bd3d9117bc1210ea0137aa92138390be16e67d47b746777dc431282a664849c91626969a5e267777126bac03304c7aa34a9dad7
DIST ddclient-3.9.0.tar.gz 59018 BLAKE2B b9b58108d9f124fcd5a72cc57bfb0e6a5bc2e115edc27a1d5950a929670d67d5c703b09f51e7e82e977ccfb544d115da177b0ac8dc06a76a800aa207cde5a42d SHA512 ae314c96a37dd90256d6acf62f4a4523b72f540194131e351a032239b00b4520351f6549d3b20a9209fe49ccc6de7ce158ffa8635d341066ea71b789dc667438
diff --git a/net-dns/ddclient/ddclient-3.8.1-r5.ebuild b/net-dns/ddclient/ddclient-3.8.1-r5.ebuild
deleted file mode 100644
index f4c2cb5db01..00000000000
--- a/net-dns/ddclient/ddclient-3.8.1-r5.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="4"
-inherit eutils 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
- dev-perl/Digest-SHA1
- dev-perl/IO-Socket-SSL
- hardened? ( sys-apps/iproute2 )
-"
-
-pkg_setup() {
- enewgroup ${PN}
- enewuser ${PN} -1 -1 -1 ${PN}
-}
-
-src_prepare() {
- # Remove pid line, because it is specified in /etc/init.d/ddclient
- ebegin "Removing PID setup from ${PN}.conf"
- if ! sed '/^pid/d' -i "sample-etc_${PN}.conf"; then
- eerror "Failed to remove pid from /etc/${PN}/${PN}.conf"
- fi
- eend $?
-
- use hardened && epatch "${FILESDIR}/iproute2.patch"
-
- epatch "${FILESDIR}/cmd-over-cfg.patch"
-}
-
-src_install() {
- dosbin ${PN}
- dodoc Change* COPYRIGHT README* RELEASENOTE sample*
-
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
- systemd_dounit "${FILESDIR}"/${PN}.service
- keepdir /var/cache/${PN}
- fowners -R ${PN}:${PN} /var/cache/${PN}
-
- insinto /etc/${PN}
- insopts -m 0600 -o ${PN} -g ${PN}
- newins sample-etc_${PN}.conf ${PN}.conf
- newins sample-etc_${PN}.conf ${PN}.conf.sample
- fowners -R ${PN}:${PN} /etc/${PN}
-}
diff --git a/net-dns/ddclient/ddclient-3.9.0-r1.ebuild b/net-dns/ddclient/ddclient-3.9.0-r1.ebuild
deleted file mode 100644
index 5176c0ebc34..00000000000
--- a/net-dns/ddclient/ddclient-3.9.0-r1.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# 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="~alpha amd64 ~arm ~hppa ~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-r5 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/cmd-over-cfg.patch b/net-dns/ddclient/files/cmd-over-cfg.patch
deleted file mode 100644
index 9033873fde7..00000000000
--- a/net-dns/ddclient/files/cmd-over-cfg.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ddclient.old 2011-11-13 10:14:59.957846596 -0500
-+++ ddclient 2011-11-13 10:18:33.864245944 -0500
-@@ -773,7 +773,7 @@
- foreach my $h (sort keys %config) {
- next if $config{$h}{'protocol'} ne lc($s);
- $examined{$h} = 1;
-- my $use = $config{$h}{'use'} || opt('use');
-+ my $use = opt('use') || $config{$h}{'use'};
- local $opt{$use} = $config{$h}{$use} if $config{$h}{$use};
- # bug #13: we should only do this once
- # use isn't enough, we have to save the origin to.
diff --git a/net-dns/ddclient/files/ddclient.confd-r1 b/net-dns/ddclient/files/ddclient.confd-r1
deleted file mode 100644
index 69ad0eeff87..00000000000
--- a/net-dns/ddclient/files/ddclient.confd-r1
+++ /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-r3 b/net-dns/ddclient/files/ddclient.initd-r3
deleted file mode 100644
index e0606a60b11..00000000000
--- a/net-dns/ddclient/files/ddclient.initd-r3
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-if [ -d /run ] ; then
- PIDFILE=${PIDFILE:-/run/ddclient/ddclient.pid}
-else
- PIDFILE=${PIDFILE:-/var/run/ddclient/ddclient.pid}
-fi
-
-depend() {
- before cron
- need net
- use dns logger squid
-}
-
-checkconfig() {
- local conf="/etc/ddclient/ddclient.conf"
-
- if [ -e "${conf}" ] ; then
- if [ -n "$(find /etc/ddclient -maxdepth 1 -name ddclient.conf -perm +0044)" ] ; then
- eerror "${conf} must not be world or group readable. Try:"
- eerror " chmod 600 ${conf}"
- eerror " chown ddclient:ddclient ${conf}"
- return 1
- fi
- else
- eerror "${conf} is needed to run ddclient"
- eerror "There is a sample file in /etc/ddclient/"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
-
- local piddir=$(dirname ${PIDFILE})
- if [ ! -d ${piddir} ] ; then
- ebegin "Making ${piddir}"
- mkdir -p ${piddir}
- eend $?
- ebegin "Changing permissions of ${piddir}"
- chown ddclient:ddclient ${piddir}
- eend $?
- fi
-
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --user ddclient --exec /usr/sbin/ddclient \
- --name ddclient --pidfile ${PIDFILE} -- -pid=${PIDFILE}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --signal USR1 --pidfile ${PIDFILE}
- eend $?
-}
diff --git a/net-dns/ddclient/files/ddclient.initd-r5 b/net-dns/ddclient/files/ddclient.initd-r5
deleted file mode 100644
index a2284a27c1f..00000000000
--- a/net-dns/ddclient/files/ddclient.initd-r5
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/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 b/net-dns/ddclient/files/ddclient.service
deleted file mode 100644
index e2d3608d44d..00000000000
--- a/net-dns/ddclient/files/ddclient.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=Dynamic DNS Update Client
-After=network.target
-ConditionPathExists=/etc/ddclient/ddclient.conf
-
-[Service]
-ExecStart=/usr/sbin/ddclient --foreground
-User=ddclient
-Group=ddclient
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-dns/ddclient/files/iproute2.patch b/net-dns/ddclient/files/iproute2.patch
deleted file mode 100644
index f81dd8c00d8..00000000000
--- a/net-dns/ddclient/files/iproute2.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -u a/ddclient b/ddclient
---- a/ddclient 2011-07-11 17:04:21.000000000 -0400
-+++ b/ddclient 2011-08-12 20:13:15.980466303 -0400
-@@ -588,7 +588,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" ],
-@@ -1316,7 +1316,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');
-@@ -1937,7 +1937,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 = '' if $?;
-
- } elsif ($use eq 'cmd') {
diff --git a/net-dns/ddclient/metadata.xml b/net-dns/ddclient/metadata.xml
index 2d82a2acf9c..a65cccd3f08 100644
--- a/net-dns/ddclient/metadata.xml
+++ b/net-dns/ddclient/metadata.xml
@@ -21,7 +21,6 @@
</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>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/, net-dns/ddclient/files/
@ 2022-10-02 17:31 Conrad Kostecki
0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2022-10-02 17:31 UTC (permalink / raw
To: gentoo-commits
commit: 5e12ac362a472001de666a1d3516400a852c7717
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 2 17:09:10 2022 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Oct 2 17:30:28 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e12ac36
net-dns/ddclient: add 3.10.0_rc2
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
net-dns/ddclient/Manifest | 1 +
net-dns/ddclient/ddclient-3.10.0_rc2.ebuild | 81 +++++++++++++++++++++++++++++
net-dns/ddclient/files/ddclient.initd-r7 | 22 ++++++++
net-dns/ddclient/files/ddclient.service-r2 | 13 +++++
net-dns/ddclient/files/ddclient.tmpfiles-r1 | 3 ++
net-dns/ddclient/metadata.xml | 4 +-
6 files changed, 122 insertions(+), 2 deletions(-)
diff --git a/net-dns/ddclient/Manifest b/net-dns/ddclient/Manifest
index 5de0f53b774b..ec81abf672a0 100644
--- a/net-dns/ddclient/Manifest
+++ b/net-dns/ddclient/Manifest
@@ -1 +1,2 @@
+DIST ddclient-3.10.0_rc2.tar.gz 274330 BLAKE2B 898c2f66306ed7d8f69535bae17cd8c6f8ab764ab167ef5cdd648370b242f4b8715cacf027787d30ce2ba5f47bbe714b35ae00868352dd780610ab5a1781e987 SHA512 345f40542e04ede5e8679dc0722279955d6a261ad91f6c207c07927b63b61ffa5898fed716e5201ca8b84d6dd3e0321f0a7fef67cc300a1a8969c417c0f0696f
DIST ddclient-3.9.1.tar.gz 63469 BLAKE2B 8ae6543353d96f76d926117ae53d74da6e8bc8f116fa15b8b0d39bc29a4c334bfc3d673b8f1c57139213b91414d1b9a2063fde9e1015f03fb76ba70a60956a7e SHA512 a8a4d6cb94e4239a7b7b4fc7d9ebef703cbd6c45fc3394b644694a053b5b8aa8d109410b5b8b3676a5f30b18474d24c7feb16c65c30b28bd7d941d8a214b1346
diff --git a/net-dns/ddclient/ddclient-3.10.0_rc2.ebuild b/net-dns/ddclient/ddclient-3.10.0_rc2.ebuild
new file mode 100644
index 000000000000..6e67a98dd294
--- /dev/null
+++ b/net-dns/ddclient/ddclient-3.10.0_rc2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV="${PV/rc/}"
+
+inherit autotools optfeature systemd tmpfiles
+
+DESCRIPTION="Perl client used to update dynamic DNS entries"
+HOMEPAGE="https://ddclient.net/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="examples selinux"
+
+RDEPEND="
+ acct-group/ddclient
+ acct-user/ddclient
+ dev-lang/perl
+ dev-perl/Digest-SHA1
+ dev-perl/IO-Socket-INET6
+ dev-perl/IO-Socket-SSL
+ virtual/perl-Digest-SHA
+ virtual/perl-JSON-PP
+ selinux? ( sec-policy/selinux-ddclient )
+"
+
+src_prepare() {
+ default
+
+ # Remove PID setting, to reliably setup the environment for the init script
+ sed -e '/^pid/d' -i ddclient.conf.in || die
+
+ # Don't create cache directory, as it's created by init script / tmpfiles
+ sed -e '/MKDIR_P/d' -i Makefile.am || die
+
+ # Remove windows executable
+ if use examples; then
+ rm sample-etc_dhcpc_dhcpcd-eth0.exe || die
+ fi
+
+ eautoreconf
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/ddclient.initd-r7 ddclient
+ systemd_newunit "${FILESDIR}"/ddclient.service-r2 ddclient.service
+ newtmpfiles "${FILESDIR}"/ddclient.tmpfiles-r1 ddclient.conf
+
+ if use examples; then
+ docinto examples
+ dodoc sample-*
+ fi
+
+ einstalldocs
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} ]]; then
+ for v in ${REPLACING_VERSIONS}; do
+ if ver_test "${v}" -lt 3.10.0; then
+ cp /etc/ddclient/ddclient.conf /etc/ddclient.conf || die
+
+ ewarn "Your DDClient configuration has been copied from"
+ ewarn "'/etc/ddclient/ddclient.conf' to '/etc/ddclient.conf'."
+ ewarn "Please check your configuration."
+
+ break
+ fi
+ done
+ fi
+
+ optfeature "using iproute2 instead if ifconfig." sys-apps/iproute2
+ tmpfiles_process ddclient.conf
+}
diff --git a/net-dns/ddclient/files/ddclient.initd-r7 b/net-dns/ddclient/files/ddclient.initd-r7
new file mode 100644
index 000000000000..62a6a9da6412
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient.initd-r7
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2022 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.conf
+ checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient
+ checkpath -d -m 0700 -o ${command_user}:${command_group} /var/lib/cache/ddclient
+}
diff --git a/net-dns/ddclient/files/ddclient.service-r2 b/net-dns/ddclient/files/ddclient.service-r2
new file mode 100644
index 000000000000..2ce4746a6ef2
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient.service-r2
@@ -0,0 +1,13 @@
+[Unit]
+After=network-online.target
+ConditionPathExists=/etc/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-r1 b/net-dns/ddclient/files/ddclient.tmpfiles-r1
new file mode 100644
index 000000000000..eddef80e141e
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient.tmpfiles-r1
@@ -0,0 +1,3 @@
+z /etc/ddclient.conf 0600 ddclient ddclient - -
+d /run/ddclient 0700 ddclient ddclient - -
+d /var/lib/cache/ddclient 0700 ddclient ddclient - -
diff --git a/net-dns/ddclient/metadata.xml b/net-dns/ddclient/metadata.xml
index 67bf4c73fbb9..7ae4518001ba 100644
--- a/net-dns/ddclient/metadata.xml
+++ b/net-dns/ddclient/metadata.xml
@@ -20,7 +20,7 @@
<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>
+ <bugs-to>https://github.com/ddclient/ddclient/issues</bugs-to>
+ <remote-id type="github">ddclient/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/, net-dns/ddclient/files/
@ 2025-01-02 0:14 Conrad Kostecki
0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2025-01-02 0:14 UTC (permalink / raw
To: gentoo-commits
commit: 54d2059581878693c624ab83ae84d9c699c50d74
Author: Christophe Lermytte <gentoo <AT> lermytte <DOT> be>
AuthorDate: Fri Dec 27 19:05:08 2024 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Jan 2 00:04:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54d20595
net-dns/ddclient: fix automake portability warning leading to build failure
Signed-off-by: Christophe Lermytte <gentoo <AT> lermytte.be>
Closes: https://bugs.gentoo.org/936224
Closes: https://github.com/gentoo/gentoo/pull/39869
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
net-dns/ddclient/ddclient-3.11.2.ebuild | 6 ++-
...t-3.11.2-fix-automake-portability-warning.patch | 48 ++++++++++++++++++++++
2 files changed, 53 insertions(+), 1 deletion(-)
diff --git a/net-dns/ddclient/ddclient-3.11.2.ebuild b/net-dns/ddclient/ddclient-3.11.2.ebuild
index a4bd6b60045f..6707a47f7a88 100644
--- a/net-dns/ddclient/ddclient-3.11.2.ebuild
+++ b/net-dns/ddclient/ddclient-3.11.2.ebuild
@@ -9,10 +9,12 @@ DESCRIPTION="Perl client used to update dynamic DNS entries"
HOMEPAGE="https://ddclient.net/"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~sparc x86"
LICENSE="GPL-2+"
SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~sparc x86"
+
IUSE="examples selinux test"
+
RESTRICT="!test? ( test )"
RDEPEND="
@@ -36,6 +38,8 @@ BDEPEND="
)
"
+PATCHES="${FILESDIR}/ddclient-3.11.2-fix-automake-portability-warning.patch"
+
src_prepare() {
default
diff --git a/net-dns/ddclient/files/ddclient-3.11.2-fix-automake-portability-warning.patch b/net-dns/ddclient/files/ddclient-3.11.2-fix-automake-portability-warning.patch
new file mode 100644
index 000000000000..e775701d2de4
--- /dev/null
+++ b/net-dns/ddclient/files/ddclient-3.11.2-fix-automake-portability-warning.patch
@@ -0,0 +1,48 @@
+https://github.com/ddclient/ddclient/commit/a12398c315b9b909e57e87acf9fd3a15a0b3e213.patch
+https://bugs.gentoo.org/936224
+
+From: Richard Hansen <rhansen@rhansen.org>
+Date: Thu, 19 Dec 2024 05:00:56 -0500
+Subject: [PATCH] Makefile.am: Fix Automake portability warning
+
+This silences:
+
+ Makefile.am:20: warning: escaping \# comment markers is not portable
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -16,19 +16,7 @@ EXTRA_DIST = \
+ sample-get-ip-from-fritzbox
+ CLEANFILES =
+
+-# Command that replaces substitution variables with their values.
+-subst = sed \
+- -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
+- -e '1 s|^\#\!.*perl$$|\#\!$(PERL)|g' \
+- -e 's|@localstatedir[@]|$(localstatedir)|g' \
+- -e 's|@runstatedir[@]|$(runstatedir)|g' \
+- -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
+- -e 's|@CURL[@]|$(CURL)|g'
+-
+-# Files that will be generated by passing their *.in file through
+-# $(subst).
+ subst_files = ddclient ddclient.conf
+-
+ EXTRA_DIST += $(subst_files:=.in)
+ CLEANFILES += $(subst_files)
+
+@@ -36,7 +24,14 @@ $(subst_files): Makefile
+ rm -f '$@' '$@'.tmp
+ in='$@'.in; \
+ test -f "$${in}" || in='$(srcdir)/'$${in}; \
+- $(subst) "$${in}" >'$@'.tmp && \
++ sed \
++ -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
++ -e '1 s|^#\!.*perl$$|#\!$(PERL)|g' \
++ -e 's|@localstatedir[@]|$(localstatedir)|g' \
++ -e 's|@runstatedir[@]|$(runstatedir)|g' \
++ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
++ -e 's|@CURL[@]|$(CURL)|g' \
++ "$${in}" >'$@'.tmp && \
+ { ! test -x "$${in}" || chmod +x '$@'.tmp; }
+ mv '$@'.tmp '$@'
+
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-01-02 0:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-02 0:14 [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/, net-dns/ddclient/files/ Conrad Kostecki
-- strict thread matches above, loose matches on Subject: below --
2022-10-02 17:31 Conrad Kostecki
2019-04-18 12:56 Aaron W. Swenson
2018-09-04 9:44 Aaron Swenson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox