# HG changeset patch # User Pascal Bellard # Date 1482766648 -3600 # Node ID f04e6a2d12240e4cd20316ae2c134fd35dec440d # Parent 71578afbe54445f25b4992cb34958b9a7b6e4a4a busybox: shrink script, isapnptools: merge diff -r 71578afbe544 -r f04e6a2d1224 busybox/receipt --- a/busybox/receipt Mon Dec 26 14:18:29 2016 +0100 +++ b/busybox/receipt Mon Dec 26 16:37:28 2016 +0100 @@ -118,6 +118,10 @@ #ln -s var/tmp rootfs/tmp sed -i 's/[ \t]*#.*//;s/[ \t] / /g;s/[ \t]\t/\t/g;/^$/d' rootfs/etc/services + sed -i '2,$s/^#.*//;/^$/d' rootfs/etc/init.d/rc* rootfs/etc/init.d/daemon \ + rootfs/etc/init.d/*.sh + sed -i 's/^#.*//;/^$/d' rootfs/etc/*.conf rootfs/etc/*tab \ + rootfs/etc/profile rootfs/etc/securetty rootfs/etc/shells ( cd rootfs ; find | cpio -o -H newc ) > rootfs.cpio du -h rootfs.cpio diff -r 71578afbe544 -r f04e6a2d1224 isapnptools/receipt --- a/isapnptools/receipt Mon Dec 26 14:18:29 2016 +0100 +++ b/isapnptools/receipt Mon Dec 26 16:37:28 2016 +0100 @@ -22,6 +22,9 @@ ln -s $i ./$PREFIX-${i#/usr/bin/uclibc-$TARGET-} done + sed -i 's/pnpdump_main.$(OBJEXT)/isapnp_main.$(OBJEXT) &/' src/Makefile.* + sed -i 's/return/if (!strcmp(basename(argv[0]),"isapnp")) return (isapnp_main(argc, argv));\n&/' src/pnpdump.c + # Let's go ! ./configure \ --host=$PREFIX \ @@ -34,6 +37,8 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { + mkdir -p $fs/sbin # move /usr/sbin/* /sbin to use pnptools *before* mounting /usr - cp -a $install/usr/sbin $fs + cp -a $install/usr/sbin/pnpdump $fs/sbin + ln $fs/sbin/pnpdump $fs/sbin/isapnp }