wok view busybox/receipt @ rev 739
Add wifi (Meta package to install all wifi packages)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 04 13:04:46 2008 +0200 (2008-05-04) |
parents | 001845e11b15 |
children | 7b86145ce8ec |
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox"
4 VERSION="1.10.1"
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 cd $PACKAGE-$VERSION
18 patch -p1 < ../stuff/$PACKAGE-$VERSION-patch.u
19 patch -p1 < ../stuff/$PACKAGE-$VERSION-vcsa2txt.u
20 patch -p1 < ../stuff/$PACKAGE-$VERSION-cpio.u
21 patch -p1 < ../stuff/$PACKAGE-$VERSION-dhcpc.u
22 patch -p1 < ../stuff/$PACKAGE-$VERSION-cpio-mkdir.u
23 patch -p1 < ../stuff/$PACKAGE-$VERSION-cpio-mtime.u
24 patch -p1 < ../stuff/$PACKAGE-$VERSION-unlzma.u
25 patch -p1 < ../stuff/$PACKAGE-$VERSION-tftp.u
26 patch -p1 < ../stuff/$PACKAGE-$VERSION-tar.u || exit 1
27 cp ../stuff/$PACKAGE-$VERSION.config .config
28 make oldconfig
29 make && make install
30 echo "Chmod 4755 on busybox binary..."
31 chmod 4755 _install/bin/busybox
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $src/_install/* $fs
38 mkdir -p $fs/etc/init.d
39 # Busybox config files.
40 cp stuff/busybox.conf $fs/etc
41 chmod 600 $fs/etc/busybox.conf
42 cp stuff/dnsd.conf $fs/etc
43 cp stuff/udhcpd.conf $fs/etc
44 cp stuff/inetd.conf $fs/etc
45 cp stuff/dnsd $fs/etc/init.d
46 cp stuff/udhcpd $fs/etc/init.d
47 cp stuff/inetd $fs/etc/init.d
48 cd $fs
49 rm linuxrc
50 ln -s bin/busybox init
51 cd $WOK/$PACKAGE
52 # Udhcpc stuff.
53 mkdir -p $fs/usr/share/udhcpc
54 cp $src/examples/udhcp/simple.script \
55 $fs/usr/share/udhcpc/default.script
56 chmod +x $fs/usr/share/udhcpc/default.script
57 }
59 # Force glibc-2.7 reinstall if 2.3.6 still in use.
60 pre_install()
61 {
62 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
63 tazpkg get-install glibc-base --forced
64 fi
65 }