summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/noip-updater/files')
-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
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"
+}