Magellan Linux

Contents of /smage/trunk/core/busybox/busybox-1.10.2-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (show annotations) (download)
Sun Jan 11 01:07:49 2009 UTC (15 years, 3 months ago) by niro
File size: 2724 byte(s)
-fixed old cvs headers
1 # $Id$
2
3 PNAME="busybox"
4 PVER="1.10.2"
5 PBUILD="r7"
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 # disable ps wide options, it breaks commands linke ps -e etc
64 sed -i 's/.*\(CONFIG_FEATURE_PS_WIDE\).*/#\ \1 is not set/' .config || die
65 }
66
67 src_compile()
68 {
69 cd ${SRCDIR}
70
71 make oldconfig || die
72 mmake || die
73
74 # create a busybox.links file
75 HOSTCC=gcc sh applets/busybox.mkll | sort > busybox.links || die
76
77 # fix missing applet symlinks
78 echo "/bin/du" >> busybox.links || die
79
80 # do not use ash as default sh, we want bin/bash
81 sed -i '/bin\/sh/d' busybox.links || die
82
83 # use poweroff as default halt command
84 sed -i '/sbin\/halt/d' busybox.links || die
85 echo -e '#!/bin/sh\n/sbin/poweroff $*' > halt.sh || die
86 }
87
88 src_install()
89 {
90 cd ${SRCDIR}
91
92 minstalldir /bin || die
93 minstallexec busybox /bin || die
94
95 minstalldir /sbin || die
96 minstallexec halt.sh /sbin/halt || die
97
98 minstalldir /usr/share/busybox || die
99 minstallfile busybox.links /usr/share/busybox || die
100
101 minstalldir /usr/share/busybox/keymaps || die
102 minstallfile de.kmap /usr/share/busybox/keymaps || die
103
104 minstalldir /usr/share/udhcpc || die
105 minstallexec -s udhcpc.sh-${UDHCPC_CVS_REV} /usr/share/udhcpc/default.script || die
106 }

Properties

Name Value
svn:keywords Id