wok-stable view busybox/receipt @ rev 476
Up: slitaz-base-files (1.3.1)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Mar 21 14:29:44 2008 +0100 (2008-03-21) |
parents | 463b0b8fa55c |
children | 72b1adc58119 |
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 patch -p0 < stuff/$PACKAGE-$VERSION-vcsa2txt.u
23 cp stuff/$PACKAGE-$VERSION.config $PACKAGE-$VERSION/.config
24 cd $PACKAGE-$VERSION
25 make oldconfig
26 make && make install
27 echo "Chmod 4755 on busybox binary..."
28 chmod 4755 _install/bin/busybox
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $src/_install/* $fs
35 mkdir $fs/etc
36 # Busybox config file.
37 cp stuff/busybox.conf $fs/etc
38 chmod 600 $fs/etc/busybox.conf
39 cd $fs
40 rm linuxrc
41 ln -s bin/busybox init
42 cd $WOK/$PACKAGE
43 # Udhcpc stuff.
44 mkdir -p $fs/usr/share/udhcpc
45 cp $src/examples/udhcp/simple.script \
46 $fs/usr/share/udhcpc/default.script
47 chmod +x $fs/usr/share/udhcpc/default.script
48 }