wok-6.x view busybox/receipt @ rev 306
Busybox: df -i usage, do not patch patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 01 00:32:11 2008 +0000 (2008-03-01) |
parents | d293797ba11d |
children | e588ccb82a03 |
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox"
4 VERSION="1.7.3"
5 CATEGORY="base-system"
6 SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="slitaz-base-files"
9 BUILD_DEPENDS="bzip2"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.busybox.net/"
12 WGET_URL="http://www.busybox.net/downloads/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 patch -p0 < stuff/$PACKAGE-$VERSION-hexdump.u
18 patch -p0 < stuff/$PACKAGE-$VERSION-df.u
19 #patch -p0 < stuff/$PACKAGE-$VERSION-patch.u
20 patch -p0 < stuff/$PACKAGE-$VERSION-script.u
21 patch -p0 < stuff/$PACKAGE-$VERSION-usage-df.u
22 cp stuff/$PACKAGE-$VERSION.config $PACKAGE-$VERSION/.config
23 cd $PACKAGE-$VERSION
24 make oldconfig
25 make && make install
26 echo "Chmod 4755 on busybox binary..."
27 chmod 4755 _install/bin/busybox
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $src/_install/* $fs
34 mkdir $fs/etc
35 # Busybox config file.
36 cp stuff/busybox.conf $fs/etc
37 chmod 600 $fs/etc/busybox.conf
38 cd $fs
39 rm linuxrc
40 ln -s bin/busybox init
41 cd $WOK/$PACKAGE
42 # Udhcpc stuff.
43 mkdir -p $fs/usr/share/udhcpc
44 cp $src/examples/udhcp/simple.script \
45 $fs/usr/share/udhcpc/default.script
46 chmod +x $fs/usr/share/udhcpc/default.script
47 }