summaryrefslogtreecommitdiff
path: root/content/busybox-1.00-pre2.oe
blob: 252d6fefbbcc8d00c779f667a49bb8391b46454f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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}'

inherit cml1

do_configure () {
	install -m 0644 ${FILESDIR}/defconfig ${S}/.config
	cml1_do_configure
}

do_compile () {
	unset CFLAGS
	base_do_compile
}

do_install () {
	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;
}