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