wok view busybox/receipt @ rev 668

busybox/tftp: add tsize option
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 23 15:25:01 2008 +0000 (2008-04-23)
parents 83af6305cb33
children 001845e11b15
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 cp ../stuff/$PACKAGE-$VERSION.config .config
27 make oldconfig
28 make && make install
29 echo "Chmod 4755 on busybox binary..."
30 chmod 4755 _install/bin/busybox
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $src/_install/* $fs
37 mkdir -p $fs/etc/init.d
38 # Busybox config files.
39 cp stuff/busybox.conf $fs/etc
40 chmod 600 $fs/etc/busybox.conf
41 cp stuff/dnsd.conf $fs/etc
42 cp stuff/udhcpd.conf $fs/etc
43 cp stuff/inetd.conf $fs/etc
44 cp stuff/dnsd $fs/etc/init.d
45 cp stuff/udhcpd $fs/etc/init.d
46 cp stuff/inetd $fs/etc/init.d
47 cd $fs
48 rm linuxrc
49 ln -s bin/busybox init
50 cd $WOK/$PACKAGE
51 # Udhcpc stuff.
52 mkdir -p $fs/usr/share/udhcpc
53 cp $src/examples/udhcp/simple.script \
54 $fs/usr/share/udhcpc/default.script
55 chmod +x $fs/usr/share/udhcpc/default.script
56 }
58 # Force glibc-2.7 reinstall if 2.3.6 still in use.
59 pre_install()
60 {
61 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
62 tazpkg get-install glibc-base --forced
63 fi
64 }