wok-current view busybox/receipt @ rev 557
Force install of glibc-2.7 by busybox
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 12 21:57:59 2008 +0200 (2008-04-12) |
parents | b796e9417abb |
children | 59f7e234eb2a |
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 patch -p0 < stuff/$PACKAGE-$VERSION-cpio-mkdir.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 files.
36 cp stuff/busybox.conf $fs/etc
37 chmod 600 $fs/etc/busybox.conf
38 cp stuff/dnsd.conf $fs/etc
39 cp stuff/udhcpd.conf $fs/etc
40 cd $fs
41 rm linuxrc
42 ln -s bin/busybox init
43 cd $WOK/$PACKAGE
44 # Udhcpc stuff.
45 mkdir -p $fs/usr/share/udhcpc
46 cp $src/examples/udhcp/simple.script \
47 $fs/usr/share/udhcpc/default.script
48 chmod +x $fs/usr/share/udhcpc/default.script
49 }
51 # Force glibc-2.7 reinstall if 2.3.6 still in use.
52 pre_install()
53 {
54 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc/receipt: then
55 tazpkg get-install glibc-base --forced
56 fi
57 }