wok-4.x view busybox/receipt @ rev 666

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