diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-10-02 19:09:10 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-10-02 19:30:28 +0200 |
commit | 5e12ac362a472001de666a1d3516400a852c7717 (patch) | |
tree | d10d0e05f539fe803aba0064b1e211fe5175a886 /net-dns/ddclient | |
parent | media-sound/deadbeef: 1.9.2 version bump. (diff) | |
download | gentoo-5e12ac362a472001de666a1d3516400a852c7717.tar.gz gentoo-5e12ac362a472001de666a1d3516400a852c7717.tar.bz2 gentoo-5e12ac362a472001de666a1d3516400a852c7717.zip |
net-dns/ddclient: add 3.10.0_rc2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-dns/ddclient')
-rw-r--r-- | net-dns/ddclient/Manifest | 1 | ||||
-rw-r--r-- | net-dns/ddclient/ddclient-3.10.0_rc2.ebuild | 81 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.initd-r7 | 22 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.service-r2 | 13 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.tmpfiles-r1 | 3 | ||||
-rw-r--r-- | 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> |