wok-current diff busybox-boot/receipt @ rev 13591
move from undigest: 0install adminer blktrace busybox-boot blktrace codiad davmail e4rat fbff flashrom fsthost get-softmodem-driver lessfs libmikmod libmikmod-dev lvmts mikmod navit phpeasyvcs puppet qtractor splashutils systemd tokyocabinet tokyocabinet-dev vmware-view-open-client wine-rt-dev xflux
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 08 09:35:38 2012 +0100 (2012-11-08) |
parents | |
children | 4fd8473c8682 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox-boot/receipt Thu Nov 08 09:35:38 2012 +0100 1.3 @@ -0,0 +1,70 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="busybox-boot" 1.7 +VERSION="1.20.2" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="Many common UNIX utilities for core-5in1/boot flavor." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +DEPENDS="linux syslinux" 1.12 +WANTED="busybox" 1.13 +WEB_SITE="http://www.busybox.net/" 1.14 +CONFIG_FILES="" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + jslinux=false 1.20 + mkdir -p $fs/bin $fs/sbin $fs/dev/pts $fs/proc $fs/sys $fs/tmp 1.21 + cp -a $src/busybox-static $fs/bin/busybox 1.22 + mknod -m 660 $fs/dev/console c 5 1 1.23 + mknod -m 771 $fs/dev/null c 1 3 1.24 + mknod -m 660 $fs/dev/tty c 5 0 1.25 + if $jslinux; then 1.26 + mknod -m 644 $fs/dev/clipboard c 10 231 1.27 + mknod -m 660 $fs/dev/ttyS0 c 4 64 1.28 + fi 1.29 + mknod -m 660 $fs/dev/tty1 c 4 1 1.30 + cat > $fs/init <<EOT 1.31 +#!/bin/busybox sh 1.32 + 1.33 +for i in \$(busybox --list) ; do busybox ln /bin/busybox /bin/\$i; done 1.34 + 1.35 +export PATH=/bin 1.36 +export HOME=/ 1.37 +export TERM=vt100 1.38 + 1.39 +mount -t proc none /proc 1.40 +[ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb 1.41 +mount -t sysfs none /sys 1.42 +mount -t devpts none /dev/pts 1.43 + 1.44 +TTY=\$(tty 2>/dev/null) 1.45 +TTY=\${TTY:-/dev/tty1} 1.46 +EOT 1.47 + $jslinux && cat >> $fs/init <<EOT 1.48 +stty -F \$TTY rows 30 2>/dev/null 1.49 +EOT 1.50 + cat >> $fs/init <<EOT 1.51 + 1.52 +busybox | sed '/Current/,\$!d' 1.53 +while true; do 1.54 + if [ -x /bin/setsid ]; then 1.55 + setsid sh -c "exec sh <\$TTY >\$TTY 2>&1" 1.56 + else 1.57 + sh <\$TTY >\$TTY 2>&1 1.58 + fi 1.59 +done 1.60 +EOT 1.61 + chmod +x $fs/init 1.62 + ln $fs/init $fs/sbin/init 1.63 +} 1.64 + 1.65 +pre_install() 1.66 +{ 1.67 + rm -rf $1/bin $1/sbin 1.68 +} 1.69 + 1.70 +post_install() 1.71 +{ 1.72 + rm -rf $1/lib $1/var $1/sbin $1/home $1/root $1/media 1.73 +}