summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ahlberg <aliz@gentoo.org>2004-08-15 11:06:00 +0000
committerDaniel Ahlberg <aliz@gentoo.org>2004-08-15 11:06:00 +0000
commit33f0eeab3615a85fafcc6513e789983f59a49a11 (patch)
tree4ac717143dacf90c1e603609ee99e157b2b4424d /net-dns/ez-ipupdate
parentclean version 0.7 (Manifest recommit) (diff)
downloadgentoo-2-33f0eeab3615a85fafcc6513e789983f59a49a11.tar.gz
gentoo-2-33f0eeab3615a85fafcc6513e789983f59a49a11.tar.bz2
gentoo-2-33f0eeab3615a85fafcc6513e789983f59a49a11.zip
Closing #20473
Diffstat (limited to 'net-dns/ez-ipupdate')
-rw-r--r--net-dns/ez-ipupdate/ChangeLog6
-rw-r--r--net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8.ebuild16
-rw-r--r--net-dns/ez-ipupdate/files/ez-ipupdate.rc650
3 files changed, 62 insertions, 10 deletions
diff --git a/net-dns/ez-ipupdate/ChangeLog b/net-dns/ez-ipupdate/ChangeLog
index bbd89d892c3b..555f73b9a03a 100644
--- a/net-dns/ez-ipupdate/ChangeLog
+++ b/net-dns/ez-ipupdate/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-dns/ez-ipupdate
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ChangeLog,v 1.9 2004/07/07 21:31:39 kugelfang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ChangeLog,v 1.10 2004/08/15 11:06:00 aliz Exp $
+
+ 15 Aug 2004; Daniel Ahlberg <aliz@gentoo.org>
+ ez-ipupdate-3.0.11_beta8.ebuild, files/ez-ipupdate.rc6:
+ Added initscript, closing #20473.
07 Jul 2004; Danny van Dyk <kugelfang@gentoo.org>
ez-ipupdate-3.0.11_beta8.ebuild:
diff --git a/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8.ebuild b/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8.ebuild
index e7cd0989d02b..74209b86e0ee 100644
--- a/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8.ebuild
+++ b/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8.ebuild
@@ -1,27 +1,25 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8.ebuild,v 1.6 2004/07/14 23:25:28 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8.ebuild,v 1.7 2004/08/15 11:06:00 aliz Exp $
MY_PV=${PV/_beta/b}
S="${WORKDIR}/${PN}-${MY_PV}"
DESCRIPTION="Dynamic DNS client for lots of dynamic dns services"
HOMEPAGE="http://gusnet.cx/proj/ez-ipupdate"
-SRC_URI="http://gusnet.cx/proj/ez-ipupdate/dist/${PN}-${MY_PV}.tar.gz"
+SRC_URI="http://gusnet.cx/proj/ez-ipupdate/dist/${PN}-${MY_PV}.tar.gz
+ mirror://gentoo/${PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 ppc sparc ~amd64"
+KEYWORDS="x86 ppc sparc amd64"
IUSE=""
DEPEND="virtual/libc"
-src_compile() {
- econf || die
- emake || die
-}
-
-src_install(){
+src_install() {
make DESTDIR=${D} install || die
sed -i 's#/usr/local/bin/ez-ipupdate#/usr/bin/ez-ipupdate#g' *.conf
dodoc *.conf CHANGELOG README
+
+ insinto /etc/init.d ; doins ${FILESDIR}/ez-ipupdate.rc6
}
diff --git a/net-dns/ez-ipupdate/files/ez-ipupdate.rc6 b/net-dns/ez-ipupdate/files/ez-ipupdate.rc6
new file mode 100644
index 000000000000..071f6f437b38
--- /dev/null
+++ b/net-dns/ez-ipupdate/files/ez-ipupdate.rc6
@@ -0,0 +1,50 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/files/ez-ipupdate.rc6,v 1.1 2004/08/15 11:06:00 aliz Exp $
+
+opts="${opts} reload update"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/ez-ipupdate.conf ]; then
+ eerror "You need a /etc/ez-ipupdate.conf containing"
+ eerror "your username and password or the service"
+ eerror "you wish to utilize."
+ return 1
+ fi
+
+ return 0
+}
+
+start() {
+ checkconfig || exit 1
+
+ local host=$( egrep "^host=" /etc/ez-ipupdate.conf | awk -F'=' '{print $2}' )
+ local interface=$( egrep "^interface=" /etc/ez-ipupdate.conf | awk -F'=' '{print $2}' )
+
+ ebegin "Starting ez-ipupdate for ${host} on ${interface}"
+ start-stop-daemon -p /var/run/ez-ipupdate.pid --start --quiet --exec /usr/bin/ez-ipupdate -- -c /etc/ez-ipupdate.conf -d -F /var/run/ez-ipupdate.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ez-ipupdate"
+ kill -QUIT `cat /var/run/ez-ipupdate.pid`
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading configfile"
+ kill -HUP `cat /var/run/ez-ipupdate.pid`
+ eend $?
+}
+
+update() {
+ ebegin "Forcing update"
+ kill -TERM `cat /var/run/ez-ipupdate.pid`
+ eend $?
+}