#!/bin/sh # # Build script for wireshark # Built on TinyCore v1.4 # Required extensions: # advcomp # mkisofs-tools # Xorg-7.4-dev.tce # compiletc.tce # perl_xml.tce # atk.tcel # atk-devs.tce # cairo.tcel # cairo-devs.tce # glib2.tcel # glib2-devs.tce # fontconfig.tcel # fontconfig-devs.tce # expat2.tcel # expat2-devs.tce # libxml2.tcel # libxml2-devs.tce # graphics-libs-1.tcel # graphics-libs-1-devs.tce # gtk2.tcel # gtk2-devs.tce # pixman.tcel # pixman-devs.tce # pango.tcel # pango-devs.tce # libpcap # libcap export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig tar -jxf wireshark-1.0.8.tar.bz2 cd wireshark-1.0.8 ./autogen.sh ./configure --enable-setuid-install # wireshark looks in wrong place for Xorg libs sudo ln -s /usr/local/lib/libXrender.la /usr/lib/libXrender.la sudo ln -s /usr/local/lib/libX11.la /usr/lib/libX11.la sudo ln -s /usr/local/lib/libXau.la /usr/lib/libXau.la sudo ln -s /usr/local/lib/libXdmcp.la /usr/lib/libXdmcp.la make touch ../mark sudo make install sudo cp image/wsicon64.png /usr/local/tce.icons # wbar icon echo "i: /usr/local/tce.icons/wsicon64.png" > /usr/local/tce.icons/wireshark echo "t: wireshark" >> /usr/local/tce.icons/wireshark echo "c: wireshark" >> /usr/local/tce.icons/wireshark # JWM menu echo "" > /usr/local/tce.menu/wireshark echo '/usr/local/bin/wireshark' >> /usr/local/tce.menu/wireshark echo "" >> /usr/local/tce.menu/wireshark cd .. find /usr/local/ -newer mark -not -type d | grep -v -e man/ > filelist tar -czf wireshark.tcel -T filelist advdef -z4 wireshark.tcel md5sum wireshark.tcel > wireshark.tcel.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../wireshark.tcel cd .. ZISODIR=`mktemp -d zisofs.XXXXXX` rm -rf $ZISODIR mkzftree -V9 $TCZDIR $ZISODIR mkisofs -z -R -V wireshark -o wireshark.tczl $ZISODIR md5sum wireshark.tczl > wireshark.tczl.md5.txt rm -rf $ZISODIR $TCZDIR filelist mark wireshark-1.0.8