wok view busybox/receipt @ rev 213

Refix in slitaz-hacker (when using tazlito gen-distro)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Feb 14 16:42:58 2008 +0100 (2008-02-14)
parents 36917db46db6
children b10bd3feab54
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox"
4 VERSION="1.7.3"
5 CATEGORY="base-system"
6 SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="slitaz-base-files"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.busybox.net/"
11 WGET_URL="http://www.busybox.net/downloads/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cp stuff/$PACKAGE-$VERSION.config $PACKAGE-$VERSION/.config
17 cd $PACKAGE-$VERSION
18 make oldconfig
19 make && make install
20 echo "Chmod 4755 on busybox binary..."
21 chmod 4755 _install/bin/busybox
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 cp -a $src/_install/* $fs
28 mkdir $fs/etc
29 # Busybox config file.
30 cp stuff/busybox.conf $fs/etc
31 chmod 600 $fs/etc/busybox.conf
32 cd $fs
33 rm linuxrc
34 ln -s bin/busybox init
35 cd $WOK/$PACKAGE
36 # Udhcpc stuff.
37 mkdir -p $fs/usr/share/udhcpc
38 cp $src/examples/udhcp/simple.script \
39 $fs/usr/share/udhcpc/default.script
40 chmod +x $fs/usr/share/udhcpc/default.script
41 }