Contents of /trunk/extras/busybox/busybox-0.60.3-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1567 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1567 byte(s)
import repo
1 | # smage-script for sys-apps/busybox-0.60.3-r1 |
2 | |
3 | PNAME="busybox" |
4 | PVER="0.60.3" |
5 | PBUILD="r1" |
6 | |
7 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
8 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
9 | |
10 | |
11 | #needs: glibc to build |
12 | |
13 | #note1: we build a static version |
14 | |
15 | #compile time: unkown (Athlon XP 1900+, 512mb DDR400) |
16 | |
17 | src_prepare() { |
18 | munpack ${SRCFILE} || die |
19 | |
20 | cd ${SRCDIR} |
21 | cp ${SOURCEDIR}/${PNAME}/Config.h-${PVER}-cd ${SRCDIR}/Config.h || die |
22 | } |
23 | |
24 | src_compile() { |
25 | cd ${SRCDIR} |
26 | |
27 | make DOSTATIC=true || die |
28 | } |
29 | |
30 | src_install() { |
31 | cd ${SRCDIR} |
32 | |
33 | #needed directories |
34 | install -d ${BINDIR}/bin || die |
35 | install -d ${BINDIR}/usr/lib || die |
36 | install -d ${BINDIR}/usr/share/man/man1 || die |
37 | install -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/{scripts,pod,txt,html} || die |
38 | |
39 | install -o root -g root -m0755 busybox ${BINDIR}/bin || die |
40 | |
41 | install -m0644 AUTHORS Changelog* INSTALL LICENSE README TODO \ |
42 | ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die |
43 | |
44 | install -m0644 busybox.links \ |
45 | ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/scripts \ |
46 | || die |
47 | |
48 | cd ${SRCDIR}/docs |
49 | install -m0644 *.1 ${BINDIR}/usr/share/man/man1 || die |
50 | |
51 | install -m0644 *.txt ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/txt || die |
52 | install -m0644 *.pod ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/pod || die |
53 | install -m0644 *.html ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/html || die |
54 | install -m0644 *.sgml ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/html || die |
55 | |
56 | cd ${SRCDIR}/scripts |
57 | install -m0644 inittab ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/scripts || die |
58 | install -m0644 depmod.pl ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/scripts || die |
59 | } |
Properties
Name | Value |
---|---|
svn:executable | * |
svn:keywords | Id |