Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 545 - (show annotations) (download)
Sat May 8 10:21:03 2010 UTC (13 years, 11 months ago) by niro
File size: 2264 byte(s)
-disabled blkid in favor of util-linux
1 # $Id$
2
3 PNAME="busybox"
4 PVER="1.15.3"
5 PBUILD="r2"
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 # disable blkid, we're using the full-featured version from util-linux
51 # which has ftype guessing features and a better uuid handling
52 sed -i 's/.*\(CONFIG_BLKID\).*/#\ \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