Skip to contentSkip to conversation

busybox-udhcpd patches

PATCH New Holger Hans Peter Freyther 1 participant 1 message Jul 27, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox-udhcpd patches

Hi all,

first patch switches busybox to INC_PR, second creates udhcp.leases directory so udhcpd can start up.

holger

From 947d9e092ee782dd75014823ad2178be88e9b737 Mon Sep 17 00:00:00 2001
From: Holger Hans Peter Freyther <[email protected]>
Date: Wed, 27 Jul 2011 22:03:09 +0800
Subject: [PATCH 1/3] busybox: Use the INC_PR scheme known from OE

---
 meta/recipes-core/busybox/busybox.inc       |    2 ++
 meta/recipes-core/busybox/busybox_1.18.4.bb |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
meta/recipes-core/busybox/busybox.inc +2 -0
index 341c5c4..0867f1b 100644
@@ -3,6 +3,8 @@ DESCRIPTION = "BusyBox combines tiny versions of many common UNIX utilities into
 HOMEPAGE = "http://www.busybox.net"
 BUGTRACKER = "https://bugs.busybox.net/"
 
+INC_PR = "r1"
+
 # bzip2 applet in busybox is based on lightly-modified bzip2 source
 # the GPL is version 2 only
 LICENSE = "GPLv2 & bzip2"
meta/recipes-core/busybox/busybox_1.18.4.bb +1 -1
index cf37650..c16ebcc 100644
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r1"
+PR = "${INC_PR}.0"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://udhcpscript.patch \
Signature · 1 line
1.7.4.1

From f79816d6f4284111efd07c88dc1889299874cdc6 Mon Sep 17 00:00:00 2001
From: Holger Hans Peter Freyther <[email protected]>
Date: Wed, 27 Jul 2011 22:03:40 +0800
Subject: [PATCH 2/3] busybox: udhcpd wants to write to this directory, create it

Create the ${D}${localstatedir}/lib/misc/udhcpd.leases directory

---
 meta/recipes-core/busybox/busybox.inc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta/recipes-core/busybox/busybox.inc +3 -2
index 0867f1b..53f2d0d 100644
@@ -3,7 +3,7 @@ DESCRIPTION = "BusyBox combines tiny versions of many common UNIX utilities into
 HOMEPAGE = "http://www.busybox.net"
 BUGTRACKER = "https://bugs.busybox.net/"
 
-INC_PR = "r1"
+INC_PR = "r4"
 
 # bzip2 applet in busybox is based on lightly-modified bzip2 source
 # the GPL is version 2 only
@@ -19,7 +19,7 @@ PACKAGES =+ "${PN}-httpd ${PN}-udhcpd ${PN}-udhcpc ${PN}-syslog ${PN}-mdev"
 FILES_${PN}-httpd = "${sysconfdir}/init.d/busybox-httpd /srv/www"
 FILES_${PN}-syslog = "${sysconfdir}/init.d/syslog* ${sysconfdir}/syslog.conf*"
 FILES_${PN}-mdev = "${sysconfdir}/init.d/mdev ${sysconfdir}/mdev.conf"
-FILES_${PN}-udhcpd = "${sysconfdir}/init.d/busybox-udhcpd"
+FILES_${PN}-udhcpd = "${sysconfdir}/init.d/busybox-udhcpd ${localstatedir}/lib/misc/udhcpd.leases"
 FILES_${PN}-udhcpc = "${sysconfdir}/udhcpc.d ${datadir}/udhcpc ${sysconfdir}/init.d/busybox-udhcpc"
 
 INITSCRIPT_PACKAGES = "${PN}-httpd ${PN}-syslog ${PN}-udhcpd ${PN}-udhcpc ${PN}-mdev"
@@ -87,6 +87,7 @@ do_install () {
 		mv ${D}/busybox${sbindir}/udhcpd ${D}${sbindir}/
 
 		install -m 0755 ${WORKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/
+		install -d ${D}${localstatedir}/lib/misc/udhcpd.leases
 	fi
 	if grep "CONFIG_HWCLOCK=y" ${WORKDIR}/defconfig; then
 		# Move hwclock back to /sbin/hwclock
Signature · 1 line
1.7.4.1