summaryrefslogtreecommitdiff
path: root/dns/noip/files
diff options
context:
space:
mode:
Diffstat (limited to 'dns/noip/files')
-rw-r--r--dns/noip/files/noip.sh19
-rw-r--r--dns/noip/files/patch-no-ip.sh16
-rw-r--r--dns/noip/files/patch-noip.c12
3 files changed, 47 insertions, 0 deletions
diff --git a/dns/noip/files/noip.sh b/dns/noip/files/noip.sh
new file mode 100644
index 000000000000..eca1af8323b8
--- /dev/null
+++ b/dns/noip/files/noip.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ if [ -x %%PREFIX%%/bin/noip -a -f %%PREFIX%%/etc/no-ip.conf ]; then
+ echo -n ' noip';
+ su -m noip -c '%%PREFIX%%/bin/noip' 2> /dev/null > /dev/null
+ fi
+ ;;
+ stop)
+ echo -n ' noip';
+ killall noip
+ ;;
+ *)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/dns/noip/files/patch-no-ip.sh b/dns/noip/files/patch-no-ip.sh
new file mode 100644
index 000000000000..4d083a0ec7b6
--- /dev/null
+++ b/dns/noip/files/patch-no-ip.sh
@@ -0,0 +1,16 @@
+--- no-ip.sh.orig Wed Oct 10 16:35:12 2001
++++ no-ip.sh Fri Mar 29 01:55:11 2002
+@@ -1,3 +1,4 @@
++#!/bin/sh
+ #
+ # configuration file builder script for no-ip
+ #
+@@ -89,7 +90,7 @@
+ #
+ if [ "$NAT" = "N" ]
+ then
+- devs=`tail +3 /proc/net/dev | awk -F: '{print $1}' | tr -d ' '|tr '\n' ' '`
++ devs=`ifconfig -l inet`
+ DEV=foo
+ while [ "$DEV" = "foo" ]
+ do
diff --git a/dns/noip/files/patch-noip.c b/dns/noip/files/patch-noip.c
new file mode 100644
index 000000000000..04b51cdfffd6
--- /dev/null
+++ b/dns/noip/files/patch-noip.c
@@ -0,0 +1,12 @@
+--- noip.c.bak Sat Mar 30 17:59:58 2002
++++ noip.c Sat Mar 30 17:59:15 2002
+@@ -452,7 +452,8 @@
+ else
+ getip(IPaddress);
+ #ifdef DEBUG
+- ErrMsg("! LIA = %s, IP = %s",Last_IP_Addr, IPaddress);
++ if (debug)
++ ErrMsg("! LIA = %s, IP = %s",Last_IP_Addr, IPaddress);
+ #endif
+ if ((*IPaddress != 0) &&
+ (strcmp(IPaddress, Last_IP_Addr) != 0)) {