wok-stable diff busybox-static/receipt @ rev 5066

Add busybox-static
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 12 13:33:45 2010 +0100 (2010-03-12)
parents
children 81e8704dacde
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox-static/receipt	Fri Mar 12 13:33:45 2010 +0100
     1.3 @@ -0,0 +1,59 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="busybox-static"
     1.7 +VERSION="1.12.0"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +DEPENDS=""
    1.12 +BUILD_DEPENDS="bzip2"
    1.13 +SOURCE="busybox"
    1.14 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.15 +WEB_SITE="http://www.busybox.net/"
    1.16 +WGET_URL="http://www.busybox.net/downloads/$TARBALL"
    1.17 +CONFIG_FILES=""
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +    cd $src
    1.23 +    while read file; do
    1.24 +    	[ -f done.$file ] && continue
    1.25 +    	echo "Apply $file..."
    1.26 +    	patch -p1 < $WOK/$SOURCE/stuff/$SOURCE-$VERSION-$file || return 1
    1.27 +	touch done.$file
    1.28 +    done <<EOT
    1.29 +vcsa2txt.u
    1.30 +dhcpc.u
    1.31 +cpio-mkdir.u
    1.32 +tar.u
    1.33 +stat.u
    1.34 +zmodules.u
    1.35 +modinfo.u
    1.36 +modprobe.u
    1.37 +paths.u
    1.38 +mkswap.u
    1.39 +install.u
    1.40 +basename.u
    1.41 +unlzma.u
    1.42 +replay.u
    1.43 +ris.u
    1.44 +dpkg_deb.u
    1.45 +ionice.u
    1.46 +syslogd.u
    1.47 +iptunnel.u
    1.48 +rpm2cpio.u
    1.49 +EOT
    1.50 +    cp ../stuff/$SOURCE-$VERSION.config .config
    1.51 +    make oldconfig
    1.52 +    make && make install
    1.53 +    echo "Chmod 4755 on busybox binary..."
    1.54 +    chmod 4755 _install/bin/busybox
    1.55 +}
    1.56 +
    1.57 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.58 +genpkg_rules()
    1.59 +{
    1.60 +    mkdir $fs/bin
    1.61 +    cp -a $src/_install/bin/busybox $fs/bin/busybox-static
    1.62 +}