Commit cec7128d authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

noip: new package



[Peter: use install -D / proper permissions]
Signed-off-by: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 610d64b4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"

package/noip/Config.in

0 → 100644
+6 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_NOIP
	bool "noip"
	help
	  Dynamic DNS update client for no-ip.com

	  http://www.no-ip.com/downloads.php

package/noip/noip.mk

0 → 100644
+30 −0
Original line number Diff line number Diff line
#############################################################
#
# 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))