wok-4.x view busybox/receipt @ rev 620
busybox: dnsd inetd udhcpd startup scripts
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 19 19:31:00 2008 +0000 (2008-04-19) |
parents | 87b81df312aa |
children | 3c49a36cd5e3 |
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 cp ../stuff/$PACKAGE-$VERSION.config .config
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 -p $fs/etc/init.d
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 cp stuff/inetd.conf $fs/etc
41 cp stuff/dnsd $fs/etc/init.d
42 cp stuff/udhcpd $fs/etc/init.d
43 cp stuff/inetd $fs/etc/init.d
44 cd $fs
45 rm linuxrc
46 ln -s bin/busybox init
47 cd $WOK/$PACKAGE
48 # Udhcpc stuff.
49 mkdir -p $fs/usr/share/udhcpc
50 cp $src/examples/udhcp/simple.script \
51 $fs/usr/share/udhcpc/default.script
52 chmod +x $fs/usr/share/udhcpc/default.script
53 }
55 # Force glibc-2.7 reinstall if 2.3.6 still in use.
56 pre_install()
57 {
58 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
59 tazpkg get-install glibc-base --forced
60 fi
61 }