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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DDAFB138334 for ; Sun, 2 Dec 2018 23:38:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB94CE0B7B; Sun, 2 Dec 2018 23:38:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A929E0B7B for ; Sun, 2 Dec 2018 23:38:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8ACBA335C67 for ; Sun, 2 Dec 2018 23:38:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD5FE2A7 for ; Sun, 2 Dec 2018 23:38:31 +0000 (UTC) From: "Aaron W. Swenson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron W. Swenson" Message-ID: <1543793881.c5a1aea329a52da62c39184d19935590b5c38e57.titanofold@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/ddclient/files/, net-dns/ddclient/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/ddclient/ddclient-3.9.0-r2.ebuild net-dns/ddclient/files/ddclient.initd-r6 X-VCS-Directories: net-dns/ddclient/files/ net-dns/ddclient/ X-VCS-Committer: titanofold X-VCS-Committer-Name: Aaron W. Swenson X-VCS-Revision: c5a1aea329a52da62c39184d19935590b5c38e57 X-VCS-Branch: master Date: Sun, 2 Dec 2018 23:38:31 +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: 1177eac1-fba3-45e3-a7c8-036f374cc54b X-Archives-Hash: 0842d36861b7fa6db8fde7a4ac27150c commit: c5a1aea329a52da62c39184d19935590b5c38e57 Author: Conrad Kostecki kostecki com> AuthorDate: Sun Dec 2 18:57:40 2018 +0000 Commit: Aaron W. Swenson gentoo 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 kostecki.com> Closes: https://github.com/gentoo/gentoo/pull/10542 Signed-off-by: Aaron W. Swenson 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 +}