diff options
author | meckafett <tom.bradish@gmail.com> | 2010-05-13 00:36:22 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:36:22 +0200 |
commit | d8af4d8eefc2ed0063a7ff95f6a2f98d7176b88e (patch) | |
tree | a05335f4914a35010d9eb263b7fd0e8514a69f49 /network/ettercap-NG/ettercap-NG.SlackBuild | |
parent | 6d159af4c566d5d2d52c9f48e172bfc30b552f5f (diff) | |
download | slackbuilds-d8af4d8eefc2ed0063a7ff95f6a2f98d7176b88e.tar.gz |
network/ettercap-NG: Updated for version 0.7.3
Diffstat (limited to 'network/ettercap-NG/ettercap-NG.SlackBuild')
-rw-r--r-- | network/ettercap-NG/ettercap-NG.SlackBuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/network/ettercap-NG/ettercap-NG.SlackBuild b/network/ettercap-NG/ettercap-NG.SlackBuild index 7ba51fc551..0e39fce320 100644 --- a/network/ettercap-NG/ettercap-NG.SlackBuild +++ b/network/ettercap-NG/ettercap-NG.SlackBuild @@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" - elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e # exit on most errors. @@ -53,8 +56,9 @@ chown -R root:root . chmod -R u+w,go+r,a-s . CFLAGS="$SLKCFLAGS" \ - ./configure \ +./configure \ --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-plugins \ @@ -64,6 +68,11 @@ CFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +mkdir -p $PKG/usr/share/applications +cat $CWD/ettercap.desktop > $PKG/usr/share/applications/ettercap.desktop + +mv $PKG/etc/etter.conf $PKG/etc/etter.conf.new + ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null @@ -79,14 +88,9 @@ cp -a AUTHORS CHANGELOG INSTALL LICENSE README* THANKS TODO* doc/* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mkdir -p $PKG/usr/share/applications -cat $CWD/ettercap.desktop > $PKG/usr/share/applications/ettercap.desktop - -mv $PKG/etc/etter.conf $PKG/etc/etter.conf.new - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |