wok-undigest view busybox-boot/receipt @ rev 509
Move to wok: seed
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 03 11:21:38 2011 +0100 (2011-11-03) |
parents | 3bfee8642246 |
children | b8038832f348 |
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox-boot"
4 VERSION="1.19.3"
5 CATEGORY="base-system"
6 SHORT_DESC="Many common UNIX utilities for core-5in1/boot flavor."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="slitaz-base-files slitaz-boot-scripts linux syslinux"
9 WANTED="busybox"
10 WEB_SITE="http://www.busybox.net/"
11 CONFIG_FILES=""
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p $fs/bin $fs/etc/init.d
17 cp -a $src/busybox-static $fs/bin/busybox
18 ln -s bin/busybox $fs/init
19 cat > $fs/etc/init.d/rcS <<EOT
20 #!/bin/busybox sh
21 for i in \$(busybox --list) ; do busybox ln /bin/busybox /bin/\$i; done
22 for i in /sbin /usr/bin /usr/sbin ; do ln -s /bin \$i; done
23 mount proc
24 [ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb
25 mount sys
26 ifconfig lo 127.0.0.1
27 ifconfig eth0 0.0.0.0 up
28 udhcpc -b -i eth0 -s /usr/share/udhcpc/default.script
29 busybox | sed '/Current/,\$!d'
30 EOT
31 # Udhcpc stuff.
32 mkdir -p $fs/usr/share/udhcpc
33 cp $WOK/$WANTED/stuff/udhcp.script $fs/usr/share/udhcpc/default.script
34 chmod +x $fs/usr/share/udhcpc/default.script $fs/etc/init.d/rcS
35 }
37 pre_install()
38 {
39 rm -rf $1/usr $1/bin
40 }
42 post_install()
43 {
44 rm -rf $1/lib $1/var $1/sbin $1/home $1/root $1/media
45 sed -i 's|sbin/getty.*|bin/sh|;/tty[3-9]/d' $1/etc/inittab
46 }