Annotation of /smage/trunk/core/busybox/busybox-1.17.3-r1.smage2
Parent Directory | Revision Log
Revision 626 -
(hide annotations)
(download)
Tue Oct 19 16:41:04 2010 UTC (13 years, 6 months ago) by niro
File size: 2617 byte(s)
Tue Oct 19 16:41:04 2010 UTC (13 years, 6 months ago) by niro
File size: 2617 byte(s)
auto added: ver bump to 1.17.3-r1
1 | niro | 626 | # $Id: busybox-1.15.3-r3.smage2 546 2010-05-08 10:58:18Z niro $ |
2 | |||
3 | PNAME="busybox" | ||
4 | PVER="1.17.3" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="sys-apps" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="BusyBox combines tiny versions of many common UNIX utilities into a single small executable." | ||
11 | HOMEPAGE="http://www.busybox.net/" | ||
12 | |||
13 | DEPEND="" | ||
14 | |||
15 | # busbox config CVS revision | ||
16 | CFG_CVS_REV=1.10 | ||
17 | # udhcpc client script CVS revision | ||
18 | UDHCPC_CVS_REV=1.1 | ||
19 | |||
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
22 | |||
23 | sminclude mtools | ||
24 | |||
25 | SRC_URI=( | ||
26 | http://www.busybox.net/downloads/${SRCFILE} | ||
27 | mirror://busybox/${SRCFILE} | ||
28 | mirror://busybox/config-${CFG_CVS_REV} | ||
29 | mirror://busybox/udhcpc.sh-${UDHCPC_CVS_REV} | ||
30 | mirror://busybox/de.kmap.gz | ||
31 | mirror://busybox/${PNAME}-1.15.3-flags.patch | ||
32 | ) | ||
33 | |||
34 | src_prepare() | ||
35 | { | ||
36 | munpack ${SRCFILE} || die | ||
37 | munpack de.kmap.gz ${SRCDIR} || die | ||
38 | cd ${SRCDIR} | ||
39 | |||
40 | # magellan patches | ||
41 | # remove broken cflags | ||
42 | mpatch ${PNAME}-1.15.3-flags.patch || die | ||
43 | |||
44 | # using a custom config | ||
45 | cp ${SOURCEDIR}/${PNAME}/config-${CFG_CVS_REV} .config || die | ||
46 | |||
47 | # disable ps wide options, it breaks commands linke ps -e etc | ||
48 | sed -i 's/.*\(CONFIG_FEATURE_PS_WIDE\).*/#\ \1 is not set/' .config || die | ||
49 | |||
50 | # disable blkid, we're using the full-featured version from util-linux | ||
51 | # which has ftype guessing features and a better uuid handling | ||
52 | sed -i 's/.*\(CONFIG_BLKID\).*/#\ \1 is not set/' .config || die | ||
53 | |||
54 | # enable advanced fbsplash features provided by tykefs patch | ||
55 | echo "CONFIG_FEATURE_FBSPLASH_8BPP=y" >> .config || die | ||
56 | echo "CONFIG_FEATURE_FBSPLASH_SPRITES=y" >> .config || die | ||
57 | echo "CONFIG_FEATURE_FBSPLASH_TEXT=y" >> .config || die | ||
58 | echo "CONFIG_FEATURE_FBSPLASH_FONTLOAD=y" >> .config || die | ||
59 | } | ||
60 | |||
61 | src_compile() | ||
62 | { | ||
63 | cd ${SRCDIR} | ||
64 | |||
65 | make oldconfig || die | ||
66 | mmake || die | ||
67 | |||
68 | # create a busybox.links file | ||
69 | HOSTCC=gcc sh applets/busybox.mkll | sort > busybox.links || die | ||
70 | |||
71 | # fix missing applet symlinks | ||
72 | echo "/bin/du" >> busybox.links || die | ||
73 | |||
74 | # do not use ash as default sh, we want bin/bash | ||
75 | sed -i '/bin\/sh/d' busybox.links || die | ||
76 | |||
77 | # use poweroff as default halt command | ||
78 | sed -i '/sbin\/halt/d' busybox.links || die | ||
79 | echo -e '#!/bin/sh\n/sbin/poweroff $*' > halt.sh || die | ||
80 | } | ||
81 | |||
82 | src_install() | ||
83 | { | ||
84 | cd ${SRCDIR} | ||
85 | |||
86 | minstalldir /bin || die | ||
87 | minstallexec busybox /bin || die | ||
88 | |||
89 | minstalldir /sbin || die | ||
90 | minstallexec halt.sh /sbin/halt || die | ||
91 | |||
92 | minstalldir /usr/share/busybox || die | ||
93 | minstallfile busybox.links /usr/share/busybox || die | ||
94 | |||
95 | minstalldir /usr/share/busybox/keymaps || die | ||
96 | minstallfile de.kmap /usr/share/busybox/keymaps || die | ||
97 | |||
98 | minstalldir /usr/share/udhcpc || die | ||
99 | minstallexec -s udhcpc.sh-${UDHCPC_CVS_REV} /usr/share/udhcpc/default.script || die | ||
100 | } |