Contents of /smage/trunk/core/busybox/busybox-1.17.4-r1.smage2
Parent Directory | Revision Log
Revision 886 -
(show annotations)
(download)
Sat Dec 4 15:32:17 2010 UTC (13 years, 9 months ago) by niro
File size: 2386 byte(s)
Sat Dec 4 15:32:17 2010 UTC (13 years, 9 months ago) by niro
File size: 2386 byte(s)
fixed a typo
1 | # $Id: busybox-1.15.3-r3.smage2 546 2010-05-08 10:58:18Z niro $ |
2 | |
3 | PNAME="busybox" |
4 | PVER="1.17.4" |
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 | PROVIDE="virtual/sed |
16 | virtual/tar |
17 | virtual/usbutils |
18 | virtual/pciutils |
19 | virtual/debianutils |
20 | virtual/which" |
21 | |
22 | # busbox config CVS revision |
23 | CFG_CVS_REV=1.11 |
24 | # udhcpc client script CVS revision |
25 | UDHCPC_CVS_REV=1.1 |
26 | |
27 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
29 | |
30 | sminclude mtools |
31 | |
32 | SRC_URI=( |
33 | http://www.busybox.net/downloads/${SRCFILE} |
34 | mirror://${PNAME}/${SRCFILE} |
35 | mirror://${PNAME}/config-${CFG_CVS_REV} |
36 | mirror://${PNAME}/udhcpc.sh-${UDHCPC_CVS_REV} |
37 | mirror://${PNAME}/de.kmap.gz |
38 | mirror://${PNAME}/mdev.rc |
39 | mirror://${PNAME}/mdev.conf |
40 | mirror://${PNAME}/${PNAME}-1.15.3-flags.patch |
41 | ) |
42 | |
43 | src_prepare() |
44 | { |
45 | munpack ${SRCFILE} || die |
46 | munpack de.kmap.gz ${SRCDIR} || die |
47 | cd ${SRCDIR} |
48 | |
49 | # official patches |
50 | |
51 | # magellan patches |
52 | # remove broken cflags |
53 | mpatch ${PNAME}-1.15.3-flags.patch || die |
54 | |
55 | # using a custom config |
56 | cp ${SOURCEDIR}/${PNAME}/config-${CFG_CVS_REV} .config || die |
57 | |
58 | # disable static linking atm, broken with glibc-2.12 |
59 | sed -i 's/.*\(CONFIG_STATIC\).*/#\ \1 is not set/' .config || die |
60 | } |
61 | |
62 | src_compile() |
63 | { |
64 | cd ${SRCDIR} |
65 | |
66 | make oldconfig || die |
67 | mmake || die |
68 | |
69 | # create a busybox.links file |
70 | HOSTCC=gcc sh applets/busybox.mkll | sort > busybox.links || die |
71 | |
72 | # fix missing applet symlinks |
73 | echo "/bin/du" >> busybox.links || die |
74 | |
75 | # do not use ash as default sh, we want bin/bash |
76 | sed -i '/bin\/sh/d' busybox.links || die |
77 | |
78 | # use poweroff as default halt command |
79 | sed -i '/sbin\/halt/d' busybox.links || die |
80 | echo -e '#!/bin/sh\n/sbin/poweroff $*' > halt.sh || die |
81 | } |
82 | |
83 | src_install() |
84 | { |
85 | cd ${SRCDIR} |
86 | |
87 | minstalldir /bin || die |
88 | minstallexec busybox /bin || die |
89 | |
90 | minstalldir /sbin || die |
91 | minstallexec halt.sh /sbin/halt || die |
92 | |
93 | minstalldir /usr/share/busybox || die |
94 | minstallfile busybox.links /usr/share/busybox || die |
95 | |
96 | minstalldir /usr/share/busybox/keymaps || die |
97 | minstallfile de.kmap /usr/share/busybox/keymaps || die |
98 | |
99 | minstalldir /usr/share/udhcpc || die |
100 | minstallexec -s udhcpc.sh-${UDHCPC_CVS_REV} /usr/share/udhcpc/default.script || die |
101 | |
102 | minstallrc mdev.rc mdev || die |
103 | minstalldir /etc || die |
104 | minstallfile -s mdev.conf /etc || die |
105 | } |