wok view slitaz-loram-http/stuff/loram.rootfs @ rev 3783

Add: apache-ant (1.7.1)
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jul 30 15:18:44 2009 +0000 (2009-07-30)
parents 52ca9fcdca28
children d09310ff02e5
line source
1 echo "$(du -hs /usr | cut -f1) were used by /usr"
2 lib/ld-*.so --list ./sbin/insmod | grep /usr/lib | cut -d\ -f3 | \
3 while read ii; do
4 mv .${ii%%.so.*}.so* ./lib
5 done
6 for ii in /sbin /lib /bin; do
7 mkdir -p ./usr/.moved$ii
8 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
9 libcap; do
10 for k in $(grep -s ^$ii /var/lib/tazpkg/installed/$j/files.list) ; do
11 [ -f .$k ] || continue
12 mv .$k ./usr/.moved$k
13 ln -s /usr/.moved$k .$k
14 done
15 done
16 done
17 k="$(ls /lib/libp*.so /lib/librt*)"
18 [ -x /bin/funionfs ] && k=""
19 for ii in /var/lib/tazpkg/installed /lib/modules/*/kernel/drivers/net \
20 /lib/modules/*/kernel/sound /sbin/depmod /sbin/modinfo /sbin/lsmod \
21 /lib/libnss_[^d]* $k; do
22 [ -L .$ii ] && continue
23 j=$(dirname /usr/.moved$ii)
24 mkdir -p .$j
25 mv .$ii .$j
26 ln -s /usr/.moved$ii .$ii
27 done
28 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr"
29 mv usr/bin/httpfs bin
30 cp usr/lib/libfuse.so.2.* lib/libfuse.so.2
31 mv usr/share/udhcpc/default.script .
32 rm -rf usr
33 mkdir -p usr/share/udhcpc
34 mv default.script usr/share/udhcpc
35 ln -s /cdrom/boot boot
36 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free \
37 bin/killall5 bin/seq ; do
38 [ -e $ii ] || ln -s busybox $ii
39 done
40 mkdir cdrom .usr.rw
41 COMPRESSION="gzip"