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