From patchwork Mon Sep 30 13:40:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 279155 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 838B62C00A6 for ; Mon, 30 Sep 2013 23:41:14 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6AB20328C0; Mon, 30 Sep 2013 13:41:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bNBVrk+-PJcZ; Mon, 30 Sep 2013 13:41:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A21B231611; Mon, 30 Sep 2013 13:41:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5FC801C22A3 for ; Mon, 30 Sep 2013 13:41:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5CE398AE32 for ; Mon, 30 Sep 2013 13:41:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5Wi9SjaKH+Wz for ; Mon, 30 Sep 2013 13:40:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [5.144.164.170]) by whitealder.osuosl.org (Postfix) with ESMTPS id B0FE68ADDB for ; Mon, 30 Sep 2013 13:40:58 +0000 (UTC) Received: from wallace.comelit.it (host138-62-static.18-80-b.business.telecomitalia.it [80.18.62.138]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id D327420F49; Mon, 30 Sep 2013 15:40:55 +0200 (CEST) From: Luca Ceresoli To: buildroot@busybox.net Date: Mon, 30 Sep 2013 15:40:26 +0200 Message-Id: <1380548426-26780-1-git-send-email-luca@lucaceresoli.net> X-Mailer: git-send-email 1.8.1.2 Cc: Luca Ceresoli Subject: [Buildroot] [PATCH] dhcpcd: add option to override dbdir X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Luca Ceresoli --- 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