wok-6.x view busybox/receipt @ rev 665
Add: geany-dev - Let build VC plugin and do Hg commit graphicaly...
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 23 01:14:59 2008 +0200 (2008-04-23) |
parents | 73595cae4a67 |
children | 83af6305cb33 |
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 cp ../stuff/$PACKAGE-$VERSION.config .config
25 make oldconfig
26 make && make install
27 echo "Chmod 4755 on busybox binary..."
28 chmod 4755 _install/bin/busybox
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $src/_install/* $fs
35 mkdir -p $fs/etc/init.d
36 # Busybox config files.
37 cp stuff/busybox.conf $fs/etc
38 chmod 600 $fs/etc/busybox.conf
39 cp stuff/dnsd.conf $fs/etc
40 cp stuff/udhcpd.conf $fs/etc
41 cp stuff/inetd.conf $fs/etc
42 cp stuff/dnsd $fs/etc/init.d
43 cp stuff/udhcpd $fs/etc/init.d
44 cp stuff/inetd $fs/etc/init.d
45 cd $fs
46 rm linuxrc
47 ln -s bin/busybox init
48 cd $WOK/$PACKAGE
49 # Udhcpc stuff.
50 mkdir -p $fs/usr/share/udhcpc
51 cp $src/examples/udhcp/simple.script \
52 $fs/usr/share/udhcpc/default.script
53 chmod +x $fs/usr/share/udhcpc/default.script
54 }
56 # Force glibc-2.7 reinstall if 2.3.6 still in use.
57 pre_install()
58 {
59 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
60 tazpkg get-install glibc-base --forced
61 fi
62 }