All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] dhcpcd: new package
@ 2013-03-11  1:23 John Stile
  2013-06-18  6:48 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: John Stile @ 2013-03-11  1:23 UTC (permalink / raw)
  To: buildroot

From: John Stile <johns@msli.com>

Dhcpcd is an RFC2131 compliant DHCP client.

Signed-off-by: John Stile <john@stilen.com>
---
 package/Config.in        |  1 +
 package/dhcpcd/Config.in |  7 +++++++
 package/dhcpcd/dhcpcd.mk | 43 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)
 create mode 100644 package/dhcpcd/Config.in
 create mode 100644 package/dhcpcd/dhcpcd.mk

diff --git a/package/Config.in b/package/Config.in
index 0ba7762..4bfa1e7 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -634,6 +634,7 @@ source "package/cups/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/dhcp/Config.in"
 endif
+source "package/dhcpcd/Config.in"
 source "package/dhcpdump/Config.in"
 source "package/dnsmasq/Config.in"
 source "package/dropbear/Config.in"
diff --git a/package/dhcpcd/Config.in b/package/dhcpcd/Config.in
new file mode 100644
index 0000000..152d7f3
--- /dev/null
+++ b/package/dhcpcd/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_DHCPCD
+	bool "dhcpcd"
+	help
+	  An RFC2131 compliant DHCP client
+	  NOTE: If uClibc, depends on  UCLIBC_SUPPORT_AI_ADDRCONFIG=y
+
+	  http://roy.marples.name/downloads/dhcpcd
diff --git a/package/dhcpcd/dhcpcd.mk b/package/dhcpcd/dhcpcd.mk
new file mode 100644
index 0000000..cab7a9e
--- /dev/null
+++ b/package/dhcpcd/dhcpcd.mk
@@ -0,0 +1,43 @@
+#############################################################
+#
+# dhcpcd
+#
+#############################################################
+
+DHCPCD_VERSION = 5.6.7
+DHCPCD_SOURCE = dhcpcd-$(DHCPCD_VERSION).tar.bz2
+DHCPCD_SITE = http://roy.marples.name/downloads/dhcpcd/
+DHCPCD_LICENSE = BSD-2c
+
+ifeq ($(BR2_USE_MMU),)
+	DHCPCD_CONFIG_OPT += --disable-fork
+endif 
+
+define DHCPCD_CONFIGURE_CMDS
+	(cd $(@D); \
+	./configure \
+		--target=$(BR2_GCC_TARGET_ARCH) \
+		--os=linux \
+		$(DHCPCD_CONFIG_OPT) )
+endef
+
+define DHCPCD_BUILD_CMDS
+	$(MAKE) \
+		$(TARGET_CONFIGURE_OPTS) \
+		-C $(@D) all
+endef
+
+define DHCPCD_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/dhcpcd \
+		$(TARGET_DIR)/usr/bin/dhcpcd
+	$(INSTALL) -D -m 0644 $(@D)/dhcpcd.conf \
+		$(TARGET_DIR)/etc/dhcpcd.conf
+	$(INSTALL) -D -m 0755 $(@D)/dhcpcd-run-hooks \
+		$(TARGET_DIR)/libexec/dhcpcd-run-hooks
+endef
+
+# NOTE: Even though this package has a configure script, it is not generated
+# using the autotools, so we have to use the generic package infrastructure.
+
+$(eval $(call generic-package))
+
-- 
1.7.12.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] dhcpcd: new package
  2013-03-11  1:23 [Buildroot] [PATCH] dhcpcd: new package John Stile
@ 2013-06-18  6:48 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2013-06-18  6:48 UTC (permalink / raw)
  To: buildroot

>>>>> "John" == John Stile <john@stilen.com> writes:

 John> From: John Stile <johns@msli.com>
 John> Dhcpcd is an RFC2131 compliant DHCP client.

 John> Signed-off-by: John Stile <john@stilen.com>
 John> ---
 John>  package/Config.in        |  1 +
 John>  package/dhcpcd/Config.in |  7 +++++++
 John>  package/dhcpcd/dhcpcd.mk | 43 +++++++++++++++++++++++++++++++++++++++++++
 John>  3 files changed, 51 insertions(+)
 John>  create mode 100644 package/dhcpcd/Config.in
 John>  create mode 100644 package/dhcpcd/dhcpcd.mk

 John> diff --git a/package/Config.in b/package/Config.in
 John> index 0ba7762..4bfa1e7 100644
 John> --- a/package/Config.in
 John> +++ b/package/Config.in
 John> @@ -634,6 +634,7 @@ source "package/cups/Config.in"
 John>  if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 John>  source "package/dhcp/Config.in"
 John>  endif
 John> +source "package/dhcpcd/Config.in"
 John>  source "package/dhcpdump/Config.in"
 John>  source "package/dnsmasq/Config.in"
 John>  source "package/dropbear/Config.in"
 John> diff --git a/package/dhcpcd/Config.in b/package/dhcpcd/Config.in
 John> new file mode 100644
 John> index 0000000..152d7f3
 John> --- /dev/null
 John> +++ b/package/dhcpcd/Config.in
 John> @@ -0,0 +1,7 @@
 John> +config BR2_PACKAGE_DHCPCD
 John> +	bool "dhcpcd"
 John> +	help

It needs IPv6 support in the toolchain, so it need to depend on
BR2_INET_IPV6 and show a comment if not available.

 John> +	  An RFC2131 compliant DHCP client
 John> +	  NOTE: If uClibc, depends on  UCLIBC_SUPPORT_AI_ADDRCONFIG=y

Our default uClibc defconfig has AI_ADDRCONFIG enabled, so I dropped
this line.

Committed with that fixed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-18  6:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11  1:23 [Buildroot] [PATCH] dhcpcd: new package John Stile
2013-06-18  6:48 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.