From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B2212158020 for ; Thu, 10 Nov 2022 00:10:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ACAFDE088F; Thu, 10 Nov 2022 00:10:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 91D35E088B for ; Thu, 10 Nov 2022 00:10:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93C23340E98 for ; Thu, 10 Nov 2022 00:10:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C18986F8 for ; Thu, 10 Nov 2022 00:10:04 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1668038716.b3e0d261f9bbecfa96f17bbb6dd262a95b765e42.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/ddclient/Manifest net-dns/ddclient/ddclient-3.10.0.ebuild X-VCS-Directories: net-dns/ddclient/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: b3e0d261f9bbecfa96f17bbb6dd262a95b765e42 X-VCS-Branch: master Date: Thu, 10 Nov 2022 00:10:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1e2f8b87-a9b2-4678-98d8-9f60233fdfec X-Archives-Hash: 5abcd33adb6d3a1aa0328910a4f1c703 commit: b3e0d261f9bbecfa96f17bbb6dd262a95b765e42 Author: Conrad Kostecki gentoo org> AuthorDate: Tue Nov 8 22:50:50 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Thu Nov 10 00:05:16 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3e0d261 net-dns/ddclient: add 3.10.0 Closes: https://bugs.gentoo.org/880107 Signed-off-by: Conrad Kostecki gentoo.org> net-dns/ddclient/Manifest | 1 + net-dns/ddclient/ddclient-3.10.0.ebuild | 90 +++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/net-dns/ddclient/Manifest b/net-dns/ddclient/Manifest index ec81abf672a0..e185cf732ee1 100644 --- a/net-dns/ddclient/Manifest +++ b/net-dns/ddclient/Manifest @@ -1,2 +1,3 @@ +DIST ddclient-3.10.0.tar.gz 275494 BLAKE2B abb2d313ae7c459305916b47f7c6e28a6a1ac9ce141b7e1ba64cb4b646191eff17cb0a89e2ee14a9e406cf0e5d319b2c144874a050679528c9b085a5f239a6aa SHA512 4740a96813e47e7989d61253ac8a69c6e0f70dd3c61a05227b03d973d9a024d17d6a31c16d633ade48a3fc58f0c79b8a0da8a4ec3369d852a2417e86e9971a05 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.ebuild b/net-dns/ddclient/ddclient-3.10.0.ebuild new file mode 100644 index 000000000000..e90f14f8b53a --- /dev/null +++ b/net-dns/ddclient/ddclient-3.10.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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${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 selinux test" +RESTRICT="!test? ( test )" + +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 ) +" + +BDEPEND=" + test? ( + dev-perl/HTTP-Daemon + dev-perl/HTTP-Daemon-SSL + dev-perl/Plack + dev-perl/Test-MockModule + dev-perl/Test-Warnings + ) +" + +src_prepare() { + default + + # Remove PID setting, to reliably setup the environment for the init script + sed -e '/^pid/d' -i ddclient.conf.in || die + + # Disable 'get_ip_from_if.pl' test, as it fails with network-sandbox + # Don't create cache directory, as it's created by init script / tmpfiles + sed -e '/get_ip_from_if.pl/d' -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 + if [ -f "${EROOT}/etc/ddclient/ddclient.conf" ]; 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." + fi + break + fi + done + fi + + optfeature "using iproute2 instead if ifconfig." sys-apps/iproute2 + tmpfiles_process ddclient.conf +}