All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] dhcpcd: add option to override dbdir
@ 2013-09-30 13:40 Luca Ceresoli
  2013-10-27  9:39 ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Luca Ceresoli @ 2013-09-30 13:40 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
 package/dhcpcd/Config.in | 14 ++++++++++++++
 package/dhcpcd/dhcpcd.mk |  1 +
 2 files changed, 15 insertions(+)

diff --git a/package/dhcpcd/Config.in b/package/dhcpcd/Config.in
index a06a973..c144dd3 100644
--- a/package/dhcpcd/Config.in
+++ b/package/dhcpcd/Config.in
@@ -6,5 +6,19 @@ config BR2_PACKAGE_DHCPCD
 
 	  http://roy.marples.name/downloads/dhcpcd
 
+if BR2_PACKAGE_DHCPCD
+
+config BR2_PACKAGE_DHCPCD_DBDIR
+	string "database directory"
+	default "/var/db"
+	help
+	  By default dhcpcd stores obtained DHCP leases and other info in
+	  /var/db. Set this to any other directory you wish to use. This must
+	  be on a read-write filesystem, otherwise dhcpcd will not work.
+	  For example, you may want to change this directory if /var is on a
+	  read-only filesystem in your embedded system.
+
+endif
+
 comment "dhcpcd requires a toolchain with IPV6 support"
 	depends on !BR2_INET_IPV6
diff --git a/package/dhcpcd/dhcpcd.mk b/package/dhcpcd/dhcpcd.mk
index 5296db8..4d0e86c 100644
--- a/package/dhcpcd/dhcpcd.mk
+++ b/package/dhcpcd/dhcpcd.mk
@@ -18,6 +18,7 @@ define DHCPCD_CONFIGURE_CMDS
 	./configure \
 		--target=$(BR2_GCC_TARGET_ARCH) \
 		--os=linux \
+		--dbdir=$(BR2_PACKAGE_DHCPCD_DBDIR) \
 		$(DHCPCD_CONFIG_OPT) )
 endef
 
-- 
1.8.1.2

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

end of thread, other threads:[~2013-11-11 22:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 13:40 [Buildroot] [PATCH] dhcpcd: add option to override dbdir Luca Ceresoli
2013-10-27  9:39 ` Arnout Vandecappelle
2013-10-30  8:31   ` Luca Ceresoli
2013-10-31  7:00     ` Arnout Vandecappelle
2013-11-11 22:53       ` Luca Ceresoli

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.