From 6cf6815c44d6ccb5fb8479c3ba5bfe780d64c9d1 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Mon, 15 Sep 2003 16:47:39 +0000 Subject: [PATCH] busybox-1.00-pre3.oe, busybox-1.00-pre2.oe: BUGFIX: install -d /etc/init.d prior to trying to install files there in the busybox install functions. pcre-4.4.oe: Add do_install function for pcre BKrev: 3f65ed2b2f83lUsQzdjImG1f0Y_3XQ --- content/busybox-1.00-pre2.oe | 1 + content/busybox-1.00-pre3.oe | 44 ++++++++++++++++++++++++++++++++++++ content/pcre-4.4.oe | 5 ++++ 3 files changed, 50 insertions(+) diff --git a/content/busybox-1.00-pre2.oe b/content/busybox-1.00-pre2.oe index 2fcd689f1c..d3a87edd61 100644 --- a/content/busybox-1.00-pre2.oe +++ b/content/busybox-1.00-pre2.oe @@ -29,6 +29,7 @@ do_compile () { do_install () { set -e + install -d ${D}/etc/init.d oe_runmake 'PREFIX=${D}' install install -m 0755 ${FILESDIR}/syslog ${D}/etc/init.d/syslog install -m 0755 ${FILESDIR}/hwclock.sh ${D}/etc/init.d/hwclock.sh diff --git a/content/busybox-1.00-pre3.oe b/content/busybox-1.00-pre3.oe index e69de29bb2..d3a87edd61 100644 --- a/content/busybox-1.00-pre3.oe +++ b/content/busybox-1.00-pre3.oe @@ -0,0 +1,44 @@ +LICENSE="GPL" +SRC_URI="http://www.busybox.net/downloads/${PN}-${PV}.tar.gz" +DEPENDS=virtual/libc +DESCRIPTION=BusyBox version ${PV}.\ + BusyBox combines tiny versions of many common UNIX utilities into a single\ + small executable. It provides minimalist replacements for most of the\ + utilities you usually find in GNU fileutils, shellutils, etc. The utilities\ + in BusyBox generally have fewer options than their full-featured GNU\ + cousins; however, the options that are included provide the expected\ + functionality and behave very much like their GNU counterparts. BusyBox\ + provides a fairly complete POSIX environment for any small or embedded\ + system. + +S="${WORKDIR}/${P}" +export EXTRA_CFLAGS="${CFLAGS}" +EXTRA_OEMAKE_append=' CROSS=${CROSS}' + +do_configure () { + set -e + install -m 0644 ${FILESDIR}/defconfig ${S}/.config + cml1_do_configure +} + +do_compile () { + set -e + unset CFLAGS + base_do_compile +} + +do_install () { + set -e + install -d ${D}/etc/init.d + oe_runmake 'PREFIX=${D}' install + install -m 0755 ${FILESDIR}/syslog ${D}/etc/init.d/syslog + install -m 0755 ${FILESDIR}/hwclock.sh ${D}/etc/init.d/hwclock.sh +} + +do_package_ipk_prepend () { + set -e + install -m 0755 ${FILESDIR}/postinst ${D}/CONTROL/postinst; + install -m 0755 ${FILESDIR}/prerm ${D}/CONTROL/prerm; +} + +inherit cml1 base diff --git a/content/pcre-4.4.oe b/content/pcre-4.4.oe index 41bbbbf786..d0c02bb3df 100644 --- a/content/pcre-4.4.oe +++ b/content/pcre-4.4.oe @@ -36,3 +36,8 @@ do_stage () { install -m 0644 pcre.h ${STAGING_DIR}/target/include/ install -m 0644 pcreposix.h ${STAGING_DIR}/target/include/ } + +do_install () { + set -e + oe_runmake 'DESTDIR=${D}' install +} -- 2.39.5