diff mbox

[1/1] busybox: added subpackage busybox-udhcpc-scripts to allow custom scripts to be installed

Message ID f3a85d40a2e2cfc68e1c2b10df422c1a0e12d5af.1375174634.git.kibo@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Kim Bøndergaard July 30, 2013, 9:57 a.m. UTC
---
 recipes/busybox/busybox.inc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc
index 217b940..59f73e8 100644
--- a/recipes/busybox/busybox.inc
+++ b/recipes/busybox/busybox.inc
@@ -38,6 +38,8 @@  SRC_URI += "\
 	file://default.script \
 "
 
+PACKAGES:<USE_busybox_udhcpc = " ${PN}-udhcpc-scripts "
+
 RECIPE_FLAGS += "busybox_init_shutdown_umount"
 DEFAULT_USE_busybox_init_shutdown_umount = "1"
 SRC_URI:>USE_busybox_init_shutdown_umount = " file://init-shutdown-umount.patch"
@@ -70,11 +72,14 @@  require busybox-install.inc
 
 FILES_${PN}:>USE_busybox_runit = " ${runitservicedir}"
 FILES_${PN}:>USE_busybox_syslogd = " ${localstatedir}/log"
-FILES_${PN}:>USE_busybox_udhcpc = " ${datadir}/udhcpc"
 FILES_${PN}:>USE_busybox_httpd = " /srv/www"
 FILES_${PN}:>USE_busybox_tftpd = " ${USE_busybox_tftpd_dir}"
 FILES_${PN}:>USE_busybox_ftpd = " ${USE_busybox_ftpd_dir}"
 
+FILES_${PN}-udhcpc-scripts = "${datadir}/udhcpc ${sysconfdir}/udhcpc.d"
+
 RDEPENDS_${PN} = "netbase base-passwd base-files ${LIB_DEPENDS}"
+RDEPENDS_${PN}:>USE_busybox_udhcpc += "${PN}-udhcpc-scripts"
+
 BUSYBOX_PROVIDES += "util/awk"
 PROVIDES_${PN} = "${BUSYBOX_PROVIDES}"