# smage-script for sys-apps/busybox-0.60.3-r1 PNAME="busybox" PVER="0.60.3" PBUILD="r1" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" #needs: glibc to build #note1: we build a static version #compile time: unkown (Athlon XP 1900+, 512mb DDR400) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} cp ${SOURCEDIR}/${PNAME}/Config.h-${PVER}-cd ${SRCDIR}/Config.h || die } src_compile() { cd ${SRCDIR} make DOSTATIC=true || die } src_install() { cd ${SRCDIR} #needed directories install -d ${BINDIR}/bin || die install -d ${BINDIR}/usr/lib || die install -d ${BINDIR}/usr/share/man/man1 || die install -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/{scripts,pod,txt,html} || die install -o root -g root -m0755 busybox ${BINDIR}/bin || die install -m0644 AUTHORS Changelog* INSTALL LICENSE README TODO \ ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die install -m0644 busybox.links \ ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/scripts \ || die cd ${SRCDIR}/docs install -m0644 *.1 ${BINDIR}/usr/share/man/man1 || die install -m0644 *.txt ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/txt || die install -m0644 *.pod ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/pod || die install -m0644 *.html ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/html || die install -m0644 *.sgml ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/html || die cd ${SRCDIR}/scripts install -m0644 inittab ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/scripts || die install -m0644 depmod.pl ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/scripts || die }