wok view busybox-static/receipt @ rev 5694

Up: geany (0.19)
author Alexander Medvedev <devl547@gmail.com>
date Wed Jun 16 19:49:20 2010 +0000 (2010-06-16)
parents 6c404abdffee
children 74d790665d71
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox-static"
4 VERSION="1.16.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=""
9 BUILD_DEPENDS="bzip2"
10 SOURCE="busybox"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.busybox.net/"
13 WGET_URL="http://www.busybox.net/downloads/$TARBALL"
14 CONFIG_FILES=""
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 while read file; do
21 [ -f done.$file ] && continue
22 echo "Apply $file..."
23 patch -p1 < $WOK/$SOURCE/stuff/$SOURCE-$VERSION-$file || return 1
24 touch done.$file
25 done <<EOT
26 vcsa2txt.u
27 ftpd.u
28 cpio-mkdir.u
29 tar.u
30 stat.u
31 ris.u
32 dpkg_deb.u
33 syslogd.u
34 modinfo.u
35 zmodules.u
36 modprobe.u
37 EOT
38 cp ../stuff/$SOURCE-$VERSION.config .config
39 make oldconfig
40 # "CFLAGS=-O0" is a workaround for GCC 4.5.0
41 make -j 4 "CFLAGS=-O0" && make "CFLAGS=-O0" install
42 echo "Chmod 4755 on busybox binary..."
43 chmod 4755 _install/bin/busybox
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/boot
50 cp -a $src/_install/bin/busybox $fs/usr/share/boot/busybox-static
51 }