wok-current view busybox/receipt @ rev 537

Busybox/dhcpc: do not hang on network failure
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 10 19:43:50 2008 +0000 (2008-04-10)
parents 28948d3430a1
children b796e9417abb
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox"
4 VERSION="1.10.0"
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-patch.u
18 patch -p0 < stuff/$PACKAGE-$VERSION-vcsa2txt.u
19 patch -p0 < stuff/$PACKAGE-$VERSION-cpio.u
20 patch -p0 < stuff/$PACKAGE-$VERSION-dhcpc.u
21 cp stuff/$PACKAGE-$VERSION.config $PACKAGE-$VERSION/.config
22 cd $PACKAGE-$VERSION
23 make oldconfig
24 make && make install
25 echo "Chmod 4755 on busybox binary..."
26 chmod 4755 _install/bin/busybox
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $src/_install/* $fs
33 mkdir $fs/etc
34 # Busybox config files.
35 cp stuff/busybox.conf $fs/etc
36 chmod 600 $fs/etc/busybox.conf
37 cp stuff/dnsd.conf $fs/etc
38 cp stuff/udhcpd.conf $fs/etc
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 }