#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-wireshark VERSION=0.99.4 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf wireshark-$VERSION tar xjf $CWD/wireshark-$VERSION.tar.bz2 cd wireshark-$VERSION ./configure \ --prefix=/usr \ --program-suffix="" \ --program-prefix="" \ $TARGET make || exit make DESTDIR=$PKG install ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded find . | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ) gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/wireshark-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/wireshark.build.log