Magellan Linux

Contents of /smage/trunk/core/busybox/busybox-1.15.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 68 - (show annotations) (download)
Mon Jan 4 18:04:40 2010 UTC (14 years, 3 months ago) by niro
File size: 2061 byte(s)
auto added: ver bump to 1.15.3-r1
1 # $Id$
2
3 PNAME="busybox"
4 PVER="1.15.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}-${PVER}-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}-${PVER}-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
51 src_compile()
52 {
53 cd ${SRCDIR}
54
55 make oldconfig || die
56 mmake || die
57
58 # create a busybox.links file
59 HOSTCC=gcc sh applets/busybox.mkll | sort > busybox.links || die
60
61 # fix missing applet symlinks
62 echo "/bin/du" >> busybox.links || die
63
64 # do not use ash as default sh, we want bin/bash
65 sed -i '/bin\/sh/d' busybox.links || die
66
67 # use poweroff as default halt command
68 sed -i '/sbin\/halt/d' busybox.links || die
69 echo -e '#!/bin/sh\n/sbin/poweroff $*' > halt.sh || die
70 }
71
72 src_install()
73 {
74 cd ${SRCDIR}
75
76 minstalldir /bin || die
77 minstallexec busybox /bin || die
78
79 minstalldir /sbin || die
80 minstallexec halt.sh /sbin/halt || die
81
82 minstalldir /usr/share/busybox || die
83 minstallfile busybox.links /usr/share/busybox || die
84
85 minstalldir /usr/share/busybox/keymaps || die
86 minstallfile de.kmap /usr/share/busybox/keymaps || die
87
88 minstalldir /usr/share/udhcpc || die
89 minstallexec -s udhcpc.sh-${UDHCPC_CVS_REV} /usr/share/udhcpc/default.script || die
90 }

Properties

Name Value
svn:keywords Id