diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2002-12-16 05:38:20 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2002-12-16 05:38:20 +0000 |
commit | 78c807d83dc4de81990d49d2b1039b1d62f83109 (patch) | |
tree | 1031b25344c7fd5ecfc704b948b21109e7e41023 /net-dns/noip-updater/files | |
parent | update with patches; multi version/arch scheme updates (diff) | |
download | gentoo-2-78c807d83dc4de81990d49d2b1039b1d62f83109.tar.gz gentoo-2-78c807d83dc4de81990d49d2b1039b1d62f83109.tar.bz2 gentoo-2-78c807d83dc4de81990d49d2b1039b1d62f83109.zip |
new ip updater for noip.com
Diffstat (limited to 'net-dns/noip-updater/files')
-rw-r--r-- | net-dns/noip-updater/files/digest-noip-updater-1.6 | 1 | ||||
-rw-r--r-- | net-dns/noip-updater/files/noip.c.patch | 6 | ||||
-rw-r--r-- | net-dns/noip-updater/files/noip.start | 28 |
3 files changed, 35 insertions, 0 deletions
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" +} |