diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2011-10-07 19:39:01 -0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-10-08 23:22:50 +0200 |
commit | cec7128dc1a30880523011a115ff52d7a27c403d (patch) | |
tree | 99413c1fe72afe16dcf93e0b703dcb882e659e22 | |
parent | 610d64b4b934caff1772ce3d30546b53cba53d34 (diff) |
noip: new package
[Peter: use install -D / proper permissions]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/noip/Config.in | 6 | ||||
-rw-r--r-- | package/noip/noip.mk | 30 |
3 files changed, 37 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index 904ebb6e9..7dc888739 100644 --- a/package/Config.in +++ b/package/Config.in @@ -443,6 +443,7 @@ endif source "package/netplug/Config.in" source "package/netsnmp/Config.in" source "package/netstat-nat/Config.in" +source "package/noip/Config.in" source "package/nfs-utils/Config.in" source "package/ngircd/Config.in" source "package/ngrep/Config.in" diff --git a/package/noip/Config.in b/package/noip/Config.in new file mode 100644 index 000000000..02039dd97 --- /dev/null +++ b/package/noip/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_NOIP + bool "noip" + help + Dynamic DNS update client for no-ip.com + + http://www.no-ip.com/downloads.php diff --git a/package/noip/noip.mk b/package/noip/noip.mk new file mode 100644 index 000000000..0fe427a33 --- /dev/null +++ b/package/noip/noip.mk @@ -0,0 +1,30 @@ +############################################################# +# +# noip +# +############################################################# + +NOIP_VERSION = 2.1.9 +NOIP_SITE = http://www.no-ip.com/client/linux +NOIP_SOURCE = noip-duc-linux.tar.gz + +define NOIP_BUILD_CMDS + sed -i -e "s:\(#define CONFIG_FILENAME\).*:\1 \"/etc/no-ip2.conf\":" \ + $(@D)/noip2.c + $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ + PREFIX=/usr CONFDIR=/etc +endef + +define NOIP_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/noip2 $(TARGET_DIR)/usr/sbin/noip2 +endef + +define NOIP_UNINSTALL_TARGET_CMDS + rm -f "$(TARGET_DIR)/usr/sbin/noip2" +endef + +define NOIP_CLEAN_CMDS + $(MAKE) -C $(@D) clean +endef + +$(eval $(call GENTARGETS)) |