# hooks addon DEBUG support # need strace, lsmod and ldd wrapper # for debug purposes if [ ! $TCOS_DEBUG_TOOLS ]; then _verbose "(04debug) TCOS_DEBUG_TOOLS disabled" else stat_before mkdir -p $DESTDIR/lib/terminfo/l/ mkdir -p $DESTDIR/lib/terminfo/x/ cp -a /lib/terminfo/l/linux $DESTDIR/lib/terminfo/l/ cp -a /lib/terminfo/x/xterm* $DESTDIR/lib/terminfo/x/ [ -e /usr/sbin/iftop ] && cpifexists /usr/sbin/iftop /usr/bin/ cpifexists /bin/lsmod /usr/bin/ [ -e /usr/bin/strace ] && cpifexists /usr/bin/strace /usr/bin/ cpifexists /sbin/mkfs /sbin/ cpifexists /sbin/mkfs.vfat /sbin/ cpifexists /sbin/mkfs.ext3 /sbin/ stat_after "Debug tools" fi # end of TCOS_DEBUG_TOOLS cat < $DESTDIR/bin/ldd #!/bin/sh file=\$1 if [ ! -f /\$file ]; then file=\$(which \$file) fi if [ ! -e \${file} ]; then echo "\${file} not found" exit 1 fi /lib/ld-linux.so.2 --list \$file EOF chmod +x $DESTDIR/bin/ldd