noip: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 7 Oct 2011 22:39:01 +0000 (19:39 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 8 Oct 2011 21:22:50 +0000 (23:22 +0200)
[Peter: use install -D / proper permissions]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/noip/Config.in [new file with mode: 0644]
package/noip/noip.mk [new file with mode: 0644]

index 904ebb6e9a520120c97b99b279ab82d94eb71909..7dc88873977d020d5c6b32323ffbca160e508496 100644 (file)
@@ -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 (file)
index 0000000..02039dd
--- /dev/null
@@ -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 (file)
index 0000000..0fe427a
--- /dev/null
@@ -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))