Contents of /smage/trunk/core/busybox/busybox-1.15.3-r3.smage2
Parent Directory | Revision Log
Revision 546 -
(show annotations)
(download)
Sat May 8 10:58:18 2010 UTC (14 years, 4 months ago) by niro
File size: 2790 byte(s)
Sat May 8 10:58:18 2010 UTC (14 years, 4 months ago) by niro
File size: 2790 byte(s)
-add fbsplash features by tykef
1 | # $Id$ |
2 | |
3 | PNAME="busybox" |
4 | PVER="1.15.3" |
5 | PBUILD="r3" |
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}-${PVER}-flags.patch |
32 | mirror://busybox/${PNAME}-${PVER}-fbsplash-tykef-1.0.patch |
33 | ) |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | munpack de.kmap.gz ${SRCDIR} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # magellan patches |
42 | # remove broken cflags |
43 | mpatch ${PNAME}-${PVER}-flags.patch || die |
44 | |
45 | # add some advanced features to fbsplash |
46 | # see http://tykef.havlinda.net/programovani/fbsplash/ for details |
47 | mpatch ${PNAME}-${PVER}-fbsplash-tykef-1.0.patch || die |
48 | |
49 | # using a custom config |
50 | cp ${SOURCEDIR}/${PNAME}/config-${CFG_CVS_REV} .config || die |
51 | |
52 | # disable ps wide options, it breaks commands linke ps -e etc |
53 | sed -i 's/.*\(CONFIG_FEATURE_PS_WIDE\).*/#\ \1 is not set/' .config || die |
54 | |
55 | # disable blkid, we're using the full-featured version from util-linux |
56 | # which has ftype guessing features and a better uuid handling |
57 | sed -i 's/.*\(CONFIG_BLKID\).*/#\ \1 is not set/' .config || die |
58 | |
59 | # enable advanced fbsplash features provided by tykefs patch |
60 | echo "CONFIG_FEATURE_FBSPLASH_8BPP=y" >> .config || die |
61 | echo "CONFIG_FEATURE_FBSPLASH_SPRITES=y" >> .config || die |
62 | echo "CONFIG_FEATURE_FBSPLASH_TEXT=y" >> .config || die |
63 | echo "CONFIG_FEATURE_FBSPLASH_FONTLOAD=y" >> .config || die |
64 | } |
65 | |
66 | src_compile() |
67 | { |
68 | cd ${SRCDIR} |
69 | |
70 | make oldconfig || die |
71 | mmake || die |
72 | |
73 | # create a busybox.links file |
74 | HOSTCC=gcc sh applets/busybox.mkll | sort > busybox.links || die |
75 | |
76 | # fix missing applet symlinks |
77 | echo "/bin/du" >> busybox.links || die |
78 | |
79 | # do not use ash as default sh, we want bin/bash |
80 | sed -i '/bin\/sh/d' busybox.links || die |
81 | |
82 | # use poweroff as default halt command |
83 | sed -i '/sbin\/halt/d' busybox.links || die |
84 | echo -e '#!/bin/sh\n/sbin/poweroff $*' > halt.sh || die |
85 | } |
86 | |
87 | src_install() |
88 | { |
89 | cd ${SRCDIR} |
90 | |
91 | minstalldir /bin || die |
92 | minstallexec busybox /bin || die |
93 | |
94 | minstalldir /sbin || die |
95 | minstallexec halt.sh /sbin/halt || die |
96 | |
97 | minstalldir /usr/share/busybox || die |
98 | minstallfile busybox.links /usr/share/busybox || die |
99 | |
100 | minstalldir /usr/share/busybox/keymaps || die |
101 | minstallfile de.kmap /usr/share/busybox/keymaps || die |
102 | |
103 | minstalldir /usr/share/udhcpc || die |
104 | minstallexec -s udhcpc.sh-${UDHCPC_CVS_REV} /usr/share/udhcpc/default.script || die |
105 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |