diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-08-31 06:42:38 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-08-31 06:42:38 +0000 |
commit | 7a9536dd198950714691c873670923f470bb3ee8 (patch) | |
tree | 330a35df45c7815f3eb4cbc0f8d2f69042bf201c /net-dns/ddclient | |
parent | Add unit file (#481490 by Galym Kerimbekov) (diff) | |
download | gentoo-2-7a9536dd198950714691c873670923f470bb3ee8.tar.gz gentoo-2-7a9536dd198950714691c873670923f470bb3ee8.tar.bz2 gentoo-2-7a9536dd198950714691c873670923f470bb3ee8.zip |
Add unit file (#471310 by nE0sIghT and Ago)
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-dns/ddclient')
-rw-r--r-- | net-dns/ddclient/ChangeLog | 10 | ||||
-rw-r--r-- | net-dns/ddclient/ddclient-3.8.1-r5.ebuild | 56 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.service | 12 |
3 files changed, 76 insertions, 2 deletions
diff --git a/net-dns/ddclient/ChangeLog b/net-dns/ddclient/ChangeLog index c045972988a9..0ef8420f15c5 100644 --- a/net-dns/ddclient/ChangeLog +++ b/net-dns/ddclient/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dns/ddclient -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.58 2012/09/21 18:42:12 ago Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.59 2013/08/31 06:42:38 pacho Exp $ + +*ddclient-3.8.1-r5 (31 Aug 2013) + + 31 Aug 2013; Pacho Ramos <pacho@gentoo.org> +ddclient-3.8.1-r5.ebuild, + +files/ddclient.service: + Add unit file (#471310 by nE0sIghT and Ago) 21 Sep 2012; Agostino Sarubbo <ago@gentoo.org> -ddclient-3.8.1-r1.ebuild, -ddclient-3.8.1-r2.ebuild, -ddclient-3.8.1-r3.ebuild, -ddclient-3.8.1.ebuild: diff --git a/net-dns/ddclient/ddclient-3.8.1-r5.ebuild b/net-dns/ddclient/ddclient-3.8.1-r5.ebuild new file mode 100644 index 000000000000..2dde563e0148 --- /dev/null +++ b/net-dns/ddclient/ddclient-3.8.1-r5.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.8.1-r5.ebuild,v 1.1 2013/08/31 06:42:38 pacho Exp $ + +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/files/ddclient.service b/net-dns/ddclient/files/ddclient.service new file mode 100644 index 000000000000..e2d3608d44d4 --- /dev/null +++ b/net-dns/ddclient/files/ddclient.service @@ -0,0 +1,12 @@ +[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 |