diff options
-rw-r--r-- | net-dns/ez-ipupdate/ChangeLog | 6 | ||||
-rw-r--r-- | net-dns/ez-ipupdate/Manifest | 5 | ||||
-rw-r--r-- | net-dns/ez-ipupdate/ez-ipupdate-3.0.11_beta8.ebuild | 16 | ||||
-rw-r--r-- | net-dns/ez-ipupdate/files/ez-ipupdate.rc6 | 50 |
4 files changed, 65 insertions, 12 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/Manifest b/net-dns/ez-ipupdate/Manifest index a175f40583f3..a23a66b4e7ff 100644 --- a/net-dns/ez-ipupdate/Manifest +++ b/net-dns/ez-ipupdate/Manifest @@ -1,3 +1,4 @@ -MD5 e4c5edae810687bad22de91a3d5d3b1a ez-ipupdate-3.0.11_beta8.ebuild 756 -MD5 b802673d244a8b720a9eb451e784372d ChangeLog 1503 +MD5 11167a67d84e335dd2398694a4a2563c ez-ipupdate-3.0.11_beta8.ebuild 802 +MD5 9e763c59243fb7796e36e4227a6faf3a ChangeLog 1642 +MD5 cce1451ebc90d2c8a8068f6fe7d7a875 files/ez-ipupdate.rc6 1226 MD5 fc53ff461d5187c04a36e96c42f0d7e2 files/digest-ez-ipupdate-3.0.11_beta8 71 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 $? +} |