Contents of /smage/trunk/core/busybox/busybox-1.13.2-r1.smage2
Parent Directory | Revision Log
Revision 31 -
(show annotations)
(download)
Mon Jan 12 19:39:55 2009 UTC (15 years, 5 months ago) by niro
File size: 2180 byte(s)
Mon Jan 12 19:39:55 2009 UTC (15 years, 5 months ago) by niro
File size: 2180 byte(s)
-fixed busybox config
1 | # $Id$ |
2 | |
3 | PNAME="busybox" |
4 | PVER="1.13.2" |
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.6 |
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 alx |
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}-mdev.patch |
32 | mirror://busybox/${PNAME}-${PVER}-flags.patch |
33 | ) |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | munpack de.kmap.gz ${SRCDIR} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # apply official patches |
42 | mpatch ${PNAME}-${PVER}-mdev.patch || die |
43 | |
44 | # magellan patches |
45 | # remove broken cflags |
46 | mpatch ${PNAME}-${PVER}-flags.patch || die |
47 | |
48 | # using a custom config |
49 | cp ${SOURCEDIR}/${PNAME}/config-${CFG_CVS_REV} .config || die |
50 | |
51 | # disable ps wide options, it breaks commands linke ps -e etc |
52 | sed -i 's/.*\(CONFIG_FEATURE_PS_WIDE\).*/#\ \1 is not set/' .config || die |
53 | } |
54 | |
55 | src_compile() |
56 | { |
57 | cd ${SRCDIR} |
58 | |
59 | make oldconfig || die |
60 | mmake || die |
61 | |
62 | # create a busybox.links file |
63 | HOSTCC=gcc sh applets/busybox.mkll | sort > busybox.links || die |
64 | |
65 | # fix missing applet symlinks |
66 | echo "/bin/du" >> busybox.links || die |
67 | |
68 | # do not use ash as default sh, we want bin/bash |
69 | sed -i '/bin\/sh/d' busybox.links || die |
70 | |
71 | # use poweroff as default halt command |
72 | sed -i '/sbin\/halt/d' busybox.links || die |
73 | echo -e '#!/bin/sh\n/sbin/poweroff $*' > halt.sh || die |
74 | } |
75 | |
76 | src_install() |
77 | { |
78 | cd ${SRCDIR} |
79 | |
80 | minstalldir /bin || die |
81 | minstallexec busybox /bin || die |
82 | |
83 | minstalldir /sbin || die |
84 | minstallexec halt.sh /sbin/halt || die |
85 | |
86 | minstalldir /usr/share/busybox || die |
87 | minstallfile busybox.links /usr/share/busybox || die |
88 | |
89 | minstalldir /usr/share/busybox/keymaps || die |
90 | minstallfile de.kmap /usr/share/busybox/keymaps || die |
91 | |
92 | minstalldir /usr/share/udhcpc || die |
93 | minstallexec -s udhcpc.sh-${UDHCPC_CVS_REV} /usr/share/udhcpc/default.script || die |
94 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |