summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2002-12-16 05:38:20 +0000
committerSeemant Kulleen <seemant@gentoo.org>2002-12-16 05:38:20 +0000
commit28d45ec432b54c6ddeb08787f853974328fcd925 (patch)
tree53982e20a6a1db1ea84dad4f3c9c388c9a81c96a /net-dns/noip-updater
parentupdate with patches; multi version/arch scheme updates (diff)
downloadhistorical-28d45ec432b54c6ddeb08787f853974328fcd925.tar.gz
historical-28d45ec432b54c6ddeb08787f853974328fcd925.tar.bz2
historical-28d45ec432b54c6ddeb08787f853974328fcd925.zip
new ip updater for noip.com
Diffstat (limited to 'net-dns/noip-updater')
-rw-r--r--net-dns/noip-updater/ChangeLog13
-rw-r--r--net-dns/noip-updater/files/digest-noip-updater-1.61
-rw-r--r--net-dns/noip-updater/files/noip.c.patch6
-rw-r--r--net-dns/noip-updater/files/noip.start28
-rw-r--r--net-dns/noip-updater/noip-updater-1.6.ebuild55
5 files changed, 103 insertions, 0 deletions
diff --git a/net-dns/noip-updater/ChangeLog b/net-dns/noip-updater/ChangeLog
new file mode 100644
index 000000000000..c0dc8dbf7bc7
--- /dev/null
+++ b/net-dns/noip-updater/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for net-dns/noip-update
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/noip-updater/ChangeLog,v 1.1 2002/12/16 05:38:20 seemant Exp $
+
+*noip-updater-1.6 (15 Dec 2002)
+
+ 15 Dec 2002; Seemant Kulleen <seemant@gentoo.org> noip-updater-1.6.ebuild
+ ChangeLog files/noip.c.patch files/noip.start
+ files/digest-noip-updater-1.6 :
+
+ New package -- client to upgrade your noip.com DNS entry. Provided by:
+ Low Zhen Lin <lowzl@hotmail.com> in bug #9745
+
diff --git a/net-dns/noip-updater/files/digest-noip-updater-1.6 b/net-dns/noip-updater/files/digest-noip-updater-1.6
new file mode 100644
index 000000000000..2f507295abd6
--- /dev/null
+++ b/net-dns/noip-updater/files/digest-noip-updater-1.6
@@ -0,0 +1 @@
+MD5 6503e2e7d8ea35c304744a318b400a09 noip_updater_v1.6.tar.gz 42343
diff --git a/net-dns/noip-updater/files/noip.c.patch b/net-dns/noip-updater/files/noip.c.patch
new file mode 100644
index 000000000000..b20f55ccea62
--- /dev/null
+++ b/net-dns/noip-updater/files/noip.c.patch
@@ -0,0 +1,6 @@
+98,99c98,99
+< #define CONFIG_FILENAME "/usr/local/lib/no-ip.conf"
+< #define CONFIG_FILENAME_ETC "/usr/local/etc/no-ip.conf"
+---
+> #define CONFIG_FILENAME "/usr/lib/no-ip.conf"
+> #define CONFIG_FILENAME_ETC "/etc/no-ip.conf"
diff --git a/net-dns/noip-updater/files/noip.start b/net-dns/noip-updater/files/noip.start
new file mode 100644
index 000000000000..992e19924642
--- /dev/null
+++ b/net-dns/noip-updater/files/noip.start
@@ -0,0 +1,28 @@
+#! /sbin/runscript
+
+depend() {
+ need localmount
+ need net
+}
+
+start() {
+ if [ ! -f /etc/no-ip.conf ]
+ then
+ einfo "Answer the following questions about your no-ip account."
+ cd /tmp
+ (no-ip.sh && mv no-ip.conf /etc/no-ip.conf) || eend 1
+ ln -s /etc/no-ip.conf /usr/lib/no-ip.conf >& /dev/null
+ fi
+ ebegin "Starting noip"
+ noip -c /etc/no-ip.conf
+ eend $? "noip did not start, error code $?"
+}
+
+stop() {
+ ebegin "Stopping noip"
+ kill `ps -A | grep noip | awk '{print $1}'` >& /dev/null
+ eend $? "Either noip did not start or there was a problem stopping"
+ ebegin "Setting noip addresses to 0.0.0.0"
+ noip -c /etc/no-ip.conf -i 0.0.0.0
+ eend $? "Failed to set noip addresses to 0.0.0.0"
+}
diff --git a/net-dns/noip-updater/noip-updater-1.6.ebuild b/net-dns/noip-updater/noip-updater-1.6.ebuild
new file mode 100644
index 000000000000..8e9d24633146
--- /dev/null
+++ b/net-dns/noip-updater/noip-updater-1.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/noip-updater/noip-updater-1.6.ebuild,v 1.1 2002/12/16 05:38:20 seemant Exp $
+
+IUSE=""
+
+MY_P=${PN/-/_}_v${PV}
+S=${WORKDIR}/${MY_P}
+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"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ ebegin "Patching noip.c..."
+ patch noip.c < ${FILESDIR}/noip.c.patch || die
+ eend
+}
+
+pkg_config() {
+ cd /tmp
+ einfo "Answer the following questions."
+ (no-ip.sh && mv no-ip.conf /etc/no-ip.conf) || die
+ ln -s /etc/no-ip.conf /usr/lib/no-ip.conf >& /dev/null
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ into /usr
+ dosbin noip
+ dosbin no-ip.sh
+ docinto ${P}
+ dodoc README.FIRST
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/noip.start noip
+ prepalldocs
+}
+
+pkg_postinst() {
+
+ einfo "Configuration can be done manually via:"
+ einfo "/usr/sbin/no-ip.sh; or "
+ einfo "first time you use the /etc/init.d/noip script; or"
+ einfo "by using this ebuild's config option."
+}