diff options
author | 2003-06-15 13:13:14 +0000 | |
---|---|---|
committer | 2003-06-15 13:13:14 +0000 | |
commit | c96c46312437a1003efab13f9430b168ab8cb944 (patch) | |
tree | 1dbf5888d1481e6405678020f05410fd63e75455 /net-dns/noip-updater/files | |
parent | Bumped to latest version and set older version to x86 (stable) (diff) | |
download | gentoo-2-c96c46312437a1003efab13f9430b168ab8cb944.tar.gz gentoo-2-c96c46312437a1003efab13f9430b168ab8cb944.tar.bz2 gentoo-2-c96c46312437a1003efab13f9430b168ab8cb944.zip |
Bumped to latest version and set older version to x86 (stable)
Diffstat (limited to 'net-dns/noip-updater/files')
-rw-r--r-- | net-dns/noip-updater/files/digest-noip-updater-2.0.12 | 1 | ||||
-rw-r--r-- | net-dns/noip-updater/files/noip-2.0.12.patch | 25 | ||||
-rw-r--r-- | net-dns/noip-updater/files/noip2.start | 34 |
3 files changed, 60 insertions, 0 deletions
diff --git a/net-dns/noip-updater/files/digest-noip-updater-2.0.12 b/net-dns/noip-updater/files/digest-noip-updater-2.0.12 new file mode 100644 index 000000000000..c90f36f14fad --- /dev/null +++ b/net-dns/noip-updater/files/digest-noip-updater-2.0.12 @@ -0,0 +1 @@ +MD5 72053672a5125d39b861a130aa4532f1 noip-2.0.12.tar.gz 68089 diff --git a/net-dns/noip-updater/files/noip-2.0.12.patch b/net-dns/noip-updater/files/noip-2.0.12.patch new file mode 100644 index 000000000000..44a8b9c6290c --- /dev/null +++ b/net-dns/noip-updater/files/noip-2.0.12.patch @@ -0,0 +1,25 @@ +*** noip2.c.orig Wed Jan 29 07:21:46 2003 +--- noip2.c Fri Jan 31 12:01:18 2003 +*************** +*** 147,156 **** + #define HOST 1 + #define GROUP 2 + #ifndef PREFIX +! #define PREFIX "/usr/local" + #endif +! #define CONFIG_FILEPATH PREFIX"/etc" +! #define CONFIG_FILENAME PREFIX"/etc/no-ip2.conf" + #define CONFSTRLEN 1024 + #define MAX_DEVLEN 16 + #define MAX_INSTANCE 4 +--- 147,156 ---- + #define HOST 1 + #define GROUP 2 + #ifndef PREFIX +! #define PREFIX "/usr" + #endif +! #define CONFIG_FILEPATH "/etc" +! #define CONFIG_FILENAME "/etc/no-ip2.conf" + #define CONFSTRLEN 1024 + #define MAX_DEVLEN 16 + #define MAX_INSTANCE 4 diff --git a/net-dns/noip-updater/files/noip2.start b/net-dns/noip-updater/files/noip2.start new file mode 100644 index 000000000000..9994d9968ca9 --- /dev/null +++ b/net-dns/noip-updater/files/noip2.start @@ -0,0 +1,34 @@ +#! /sbin/runscript + +depend() { + need localmount + need net + need dns +} + +checkconfig() { + if [ ! -f /etc/no-ip2.conf ] + then + einfo "Answer the following questions about your no-ip account." + noip2 -C || return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting noip" + start-stop-daemon --quiet --start -x /usr/sbin/noip2 -- -c /etc/no-ip2.conf + eend $? "noip did not start, error code $?" +} + +stop() { + ebegin "Stopping noip" + start-stop-daemon --oknodo --quiet --stop -x /usr/sbin/noip2 + noip_ecode=$? + eend $noip_ecode "Error stopping the noip daemon, error $noip_ecode" + checkconfig || return 1 + ebegin "Setting noip addresses to 0.0.0.0" + noip2 -c /etc/no-ip2.conf -i 0.0.0.0 >& /dev/null + eend $? "Failed to set noip addresses to 0.0.0.0, error $?" + return $noip_ecode +} |