From 7748146936014bb364c51e2547982e9f59a5f31a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 3 Oct 2022 01:13:47 +0100 Subject: gentoo auto-resync : 03:10:2022 - 01:13:47 --- net-dns/ddclient/ddclient-3.10.0_rc2.ebuild | 81 +++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 net-dns/ddclient/ddclient-3.10.0_rc2.ebuild (limited to 'net-dns/ddclient/ddclient-3.10.0_rc2.ebuild') 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 +} -- cgit v1.2.3