wok-current diff busybox/receipt @ rev 10817
busybox: add index, CGI env, config and desktop files for httpd
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jun 06 00:30:06 2011 +0200 (2011-06-06) |
parents | c6e87acf001f |
children | 2c795c9fface |
line diff
1.1 --- a/busybox/receipt Sun May 01 12:51:33 2011 +0200 1.2 +++ b/busybox/receipt Mon Jun 06 00:30:06 2011 +0200 1.3 @@ -66,32 +66,37 @@ 1.4 { 1.5 cp -a $src/_install/* $fs 1.6 rm -f $fs/bin/bbconfig $fs/usr/bin/ar 1.7 - mkdir -p $fs/etc/init.d 1.8 + mkdir -p $fs/etc/init.d $fs/var 1.9 + 1.10 # Busybox config files. 1.11 - cp $stuff/busybox.conf $fs/etc 1.12 + for f in busybox.conf dnsd.conf udhcpd.conf inetd.conf httpd.conf zcip.script 1.13 + do 1.14 + cp $stuff/$f $fs/etc 1.15 + done 1.16 + chown -R 0.0 $fs/etc 1.17 chmod 600 $fs/etc/busybox.conf 1.18 - cp $stuff/dnsd.conf $fs/etc 1.19 - cp $stuff/udhcpd.conf $fs/etc 1.20 touch $fs/etc/resolv.conf 1.21 - cp $stuff/inetd.conf $fs/etc 1.22 + 1.23 + # Daemon scripts and init. 1.24 cp $stuff/daemon $fs/etc/init.d 1.25 DAEMON="crond dnsd ftpd httpd inetd klogd ntpd syslogd telnetd tftpd udhcpd zcip" 1.26 for i in $DAEMON; do 1.27 - grep -qi config_$i=y $stuff/$PACKAGE-${VERSION%.*}.config && 1.28 - ln -s daemon $fs/etc/init.d/$i 1.29 + grep -qi config_$i=y $stuff/$PACKAGE-${VERSION%.*}.config && 1.30 + ln -s daemon $fs/etc/init.d/$i 1.31 done 1.32 cp $stuff/init $fs 1.33 rm $fs/linuxrc 1.34 mkdir -p $fs/etc/modprobe.d 1.35 + 1.36 # Udhcpc stuff. 1.37 mkdir -p $fs/usr/share/udhcpc 1.38 cp $stuff/udhcp.script $fs/usr/share/udhcpc/default.script 1.39 chmod +x $fs/usr/share/udhcpc/default.script 1.40 - # ZeroConf stuff. 1.41 - cp $stuff/zcip.script $fs/etc 1.42 + 1.43 # Httpd stuff. 1.44 cp $stuff/httpd_helper.sh $fs/usr/bin 1.45 chmod +x $fs/usr/bin/httpd_helper.sh 1.46 + cp -a $stuff/www $fs/var 1.47 } 1.48 1.49 # Force glibc-2.7 reinstall if 2.3.6 still in use.