* [Buildroot] [PATCH] noip: new package
@ 2011-10-07 22:39 Gustavo Zacarias
2011-10-08 21:24 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2011-10-07 22:39 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/Config.in | 1 +
package/noip/Config.in | 6 ++++++
package/noip/noip.mk | 30 ++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 0 deletions(-)
create mode 100644 package/noip/Config.in
create mode 100644 package/noip/noip.mk
diff --git a/package/Config.in b/package/Config.in
index 6cd3796..9e27ff8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -445,6 +445,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 0000000..02039dd
--- /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 0000000..0ac3368
--- /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) $(@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))
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] noip: new package
2011-10-07 22:39 [Buildroot] [PATCH] noip: new package Gustavo Zacarias
@ 2011-10-08 21:24 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-10-08 21:24 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Gustavo> +NOIP_VERSION = 2.1.9
Gustavo> +NOIP_SITE = http://www.no-ip.com/client/linux
Gustavo> +NOIP_SOURCE = noip-duc-linux.tar.gz
Gustavo> +
Gustavo> +define NOIP_BUILD_CMDS
Gustavo> + sed -i -e "s:\(#define CONFIG_FILENAME\).*:\1 \"/etc/no-ip2.conf\":" \
Gustavo> + $(@D)/noip2.c
Gustavo> + $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
Gustavo> + PREFIX=/usr CONFDIR=/etc
Gustavo> +endef
Gustavo> +
Gustavo> +define NOIP_INSTALL_TARGET_CMDS
Gustavo> + $(INSTALL) $(@D)/noip2 $(TARGET_DIR)/usr/sbin/noip2
this should be install -D -m 0755 for proper permissions / handling of
skeleton without /usr/sbin.
I've fixed that and committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-08 21:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07 22:39 [Buildroot] [PATCH] noip: new package Gustavo Zacarias
2011-10-08 21:24 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox