wok view busybox/receipt @ rev 756

busybox: do not break prefix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 07 21:18:17 2008 +0000 (2008-05-07)
parents 7b86145ce8ec
children 3a18f89210ce
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 while read file; do
19 patch -p1 < ../stuff/$file || return 1
20 done <<EOT
21 $PACKAGE-$VERSION-patch.u
22 $PACKAGE-$VERSION-vcsa2txt.u
23 $PACKAGE-$VERSION-cpio.u
24 $PACKAGE-$VERSION-dhcpc.u
25 $PACKAGE-$VERSION-cpio-mkdir.u
26 $PACKAGE-$VERSION-cpio-mtime.u
27 $PACKAGE-$VERSION-unlzma.u
28 $PACKAGE-$VERSION-tftp.u
29 $PACKAGE-$VERSION-tar.u
30 $PACKAGE-$VERSION-script.u
31 $PACKAGE-$VERSION-header_tar.u
32 EOT
33 cp ../stuff/$PACKAGE-$VERSION.config .config
34 make oldconfig
35 make && make install
36 echo "Chmod 4755 on busybox binary..."
37 chmod 4755 _install/bin/busybox
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $src/_install/* $fs
44 mkdir -p $fs/etc/init.d
45 # Busybox config files.
46 cp stuff/busybox.conf $fs/etc
47 chmod 600 $fs/etc/busybox.conf
48 cp stuff/dnsd.conf $fs/etc
49 cp stuff/udhcpd.conf $fs/etc
50 cp stuff/inetd.conf $fs/etc
51 cp stuff/dnsd $fs/etc/init.d
52 cp stuff/udhcpd $fs/etc/init.d
53 cp stuff/inetd $fs/etc/init.d
54 cd $fs
55 rm linuxrc
56 ln -s bin/busybox init
57 cd $WOK/$PACKAGE
58 # Udhcpc stuff.
59 mkdir -p $fs/usr/share/udhcpc
60 cp $src/examples/udhcp/simple.script \
61 $fs/usr/share/udhcpc/default.script
62 chmod +x $fs/usr/share/udhcpc/default.script
63 }
65 # Force glibc-2.7 reinstall if 2.3.6 still in use.
66 pre_install()
67 {
68 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
69 tazpkg get-install glibc-base --forced
70 fi
71 }