wok-6.x view busybox/receipt @ rev 2309
gcc: spin off libgomp
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 25 12:21:35 2009 +0000 (2009-02-25) |
parents | bd6010223726 |
children | b5c440736bca |
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox"
4 VERSION="1.12.0"
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 glibc-base"
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"
13 CONFIG_FILES="/etc/dnsd.conf /etc/inetd.conf /etc/udhcpd.conf /etc/resolv.conf"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 while read file; do
20 [ -f done.$file ] && continue
21 echo "Apply $file..."
22 patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1
23 touch done.$file
24 done <<EOT
25 vcsa2txt.u
26 dhcpc.u
27 cpio-mkdir.u
28 tar.u
29 stat.u
30 zmodules.u
31 modinfo.u
32 modprobe.u
33 paths.u
34 EOT
35 cp ../stuff/$PACKAGE-$VERSION.config .config
36 make oldconfig
37 make && make install
38 echo "Chmod 4755 on busybox binary..."
39 chmod 4755 _install/bin/busybox
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $src/_install/* $fs
46 mkdir -p $fs/etc/init.d
47 # Busybox config files.
48 cp stuff/busybox.conf $fs/etc
49 chmod 600 $fs/etc/busybox.conf
50 cp stuff/dnsd.conf $fs/etc
51 cp stuff/udhcpd.conf $fs/etc
52 touch $fs/etc/resolv.conf
53 cp stuff/inetd.conf $fs/etc
54 cp stuff/dnsd $fs/etc/init.d
55 cp stuff/udhcpd $fs/etc/init.d
56 cp stuff/inetd $fs/etc/init.d
57 cp stuff/zcip $fs/etc/init.d
58 cp stuff/init $fs
59 rm $fs/linuxrc
60 mkdir -p $fs/etc/modprobe.d
61 # Udhcpc stuff.
62 mkdir -p $fs/usr/share/udhcpc
63 cp stuff/udhcp.script \
64 $fs/usr/share/udhcpc/default.script
65 chmod +x $fs/usr/share/udhcpc/default.script
66 # ZeroConf stuff.
67 cp stuff/zcip.script $fs/etc
68 }
70 # Force glibc-2.7 reinstall if 2.3.6 still in use.
71 pre_install()
72 {
73 cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install
74 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
75 tazpkg get-install glibc-base --forced
76 fi
77 }
79 post_install()
80 {
81 mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf
82 }