From 6c1938f38426d95e27c4d35c9601936a26760183 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sun, 3 Apr 2016 17:39:10 +0200 Subject: net-dns/noip-updater: Fix typo in systemd service file --- net-dns/noip-updater/files/noip.service | 3 +- net-dns/noip-updater/noip-updater-2.1.9-r3.ebuild | 76 ----------------------- net-dns/noip-updater/noip-updater-2.1.9-r4.ebuild | 76 +++++++++++++++++++++++ 3 files changed, 77 insertions(+), 78 deletions(-) delete mode 100644 net-dns/noip-updater/noip-updater-2.1.9-r3.ebuild create mode 100644 net-dns/noip-updater/noip-updater-2.1.9-r4.ebuild (limited to 'net-dns/noip-updater') diff --git a/net-dns/noip-updater/files/noip.service b/net-dns/noip-updater/files/noip.service index b4834e84..dcfe4d46 100644 --- a/net-dns/noip-updater/files/noip.service +++ b/net-dns/noip-updater/files/noip.service @@ -1,6 +1,6 @@ [Unit] Description=No-IP Dynamic DNS Update Client -Require=network-online.target +Requires=network-online.target After=network-online.target [Service] @@ -9,4 +9,3 @@ ExecStart=/usr/sbin/noip2 -c /etc/no-ip2.conf [Install] WantedBy=multi-user.target - diff --git a/net-dns/noip-updater/noip-updater-2.1.9-r3.ebuild b/net-dns/noip-updater/noip-updater-2.1.9-r3.ebuild deleted file mode 100644 index 6a711e52..00000000 --- a/net-dns/noip-updater/noip-updater-2.1.9-r3.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 -inherit eutils readme.gentoo-r1 systemd toolchain-funcs user - -MY_P=${P/-updater/} -DESCRIPTION="no-ip.com dynamic DNS updater" -HOMEPAGE="http://www.no-ip.com" -SRC_URI="http://www.no-ip.com/client/linux/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 ~arm ~hppa ia64 ~mips ~ppc ppc64 sparc x86" -IUSE="ezipupd" - -RDEPEND="" -DEPEND="sys-devel/gcc" - -S=${WORKDIR}/${MY_P} - -DOC_CONTENTS=" - Configuration can be done manually via /usr/sbin/noip2 -C or - by using this ebuild's config option. -" - -src_prepare() { - eapply "${FILESDIR}"/noip-2.1.9-flags.patch - eapply "${FILESDIR}"/noip-2.1.9-daemon.patch - local sedarg - sedarg=( - -e "s:\(#define CONFIG_FILEPATH\).*:\1 \"/etc\":" - -e "s:\(#define CONFIG_FILENAME\).*:\1 \"/etc/no-ip2.conf\":" - ) - ! use ezipupd || sedarg+=( - -e "s:\"nobody\":\"ez-ipupd\":g" - ) - sed -i "${sedarg[@]}" noip2.c || die "sed failed" - eapply_user -} - -src_compile() { - emake \ - CC=$(tc-getCC) \ - PREFIX=/usr \ - CONFDIR=/etc -} - -src_install() { - dosbin noip2 - dodoc README.FIRST - newinitd "${FILESDIR}"/noip2.start noip - systemd_dounit "${FILESDIR}"/noip.service - readme.gentoo_create_doc -} - -pkg_preinst() { - use ezipupd && ! use prefix || return 0 - enewgroup ez-ipupd - enewuser ez-ipupd -1 -1 /var/cache/ez-ipupdate ez-ipupd - if test -d /var/cache/ez-ipupdate - then chmod 750 /var/cache/ez-ipupdate - chown ez-ipupd:ez-ipupd /var/cache/ez-ipupdate - fi -} - -pkg_postinst() { - readme.gentoo_print_elog -} - -pkg_config() { - cd /tmp - einfo "Answer the following questions." - noip2 -C || die -} diff --git a/net-dns/noip-updater/noip-updater-2.1.9-r4.ebuild b/net-dns/noip-updater/noip-updater-2.1.9-r4.ebuild new file mode 100644 index 00000000..6a711e52 --- /dev/null +++ b/net-dns/noip-updater/noip-updater-2.1.9-r4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils readme.gentoo-r1 systemd toolchain-funcs user + +MY_P=${P/-updater/} +DESCRIPTION="no-ip.com dynamic DNS updater" +HOMEPAGE="http://www.no-ip.com" +SRC_URI="http://www.no-ip.com/client/linux/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ~hppa ia64 ~mips ~ppc ppc64 sparc x86" +IUSE="ezipupd" + +RDEPEND="" +DEPEND="sys-devel/gcc" + +S=${WORKDIR}/${MY_P} + +DOC_CONTENTS=" + Configuration can be done manually via /usr/sbin/noip2 -C or + by using this ebuild's config option. +" + +src_prepare() { + eapply "${FILESDIR}"/noip-2.1.9-flags.patch + eapply "${FILESDIR}"/noip-2.1.9-daemon.patch + local sedarg + sedarg=( + -e "s:\(#define CONFIG_FILEPATH\).*:\1 \"/etc\":" + -e "s:\(#define CONFIG_FILENAME\).*:\1 \"/etc/no-ip2.conf\":" + ) + ! use ezipupd || sedarg+=( + -e "s:\"nobody\":\"ez-ipupd\":g" + ) + sed -i "${sedarg[@]}" noip2.c || die "sed failed" + eapply_user +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + PREFIX=/usr \ + CONFDIR=/etc +} + +src_install() { + dosbin noip2 + dodoc README.FIRST + newinitd "${FILESDIR}"/noip2.start noip + systemd_dounit "${FILESDIR}"/noip.service + readme.gentoo_create_doc +} + +pkg_preinst() { + use ezipupd && ! use prefix || return 0 + enewgroup ez-ipupd + enewuser ez-ipupd -1 -1 /var/cache/ez-ipupdate ez-ipupd + if test -d /var/cache/ez-ipupdate + then chmod 750 /var/cache/ez-ipupdate + chown ez-ipupd:ez-ipupd /var/cache/ez-ipupdate + fi +} + +pkg_postinst() { + readme.gentoo_print_elog +} + +pkg_config() { + cd /tmp + einfo "Answer the following questions." + noip2 -C || die +} -- cgit v1.2.3-65-gdbad