summaryrefslogtreecommitdiff
path: root/network/ettercap-NG/ettercap-NG.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@slackbuilds.org>2011-04-04 21:53:56 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-04-04 21:53:56 -0300
commit6d31eff69ce60f33a260a74d0e6142698b5624bc (patch)
tree2ebd3cbcbfa36ae58456afa8f6865eeb28bf2742 /network/ettercap-NG/ettercap-NG.SlackBuild
parentc8cec2ab0eb2566016b2df074ac3b92e307655fa (diff)
downloadslackbuilds-6d31eff69ce60f33a260a74d0e6142698b5624bc.tar.gz
network/ettercap-NG: Fixed configure check for libtool.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/ettercap-NG/ettercap-NG.SlackBuild')
-rw-r--r--network/ettercap-NG/ettercap-NG.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/network/ettercap-NG/ettercap-NG.SlackBuild b/network/ettercap-NG/ettercap-NG.SlackBuild
index dbdead289e..6f62705829 100644
--- a/network/ettercap-NG/ettercap-NG.SlackBuild
+++ b/network/ettercap-NG/ettercap-NG.SlackBuild
@@ -22,17 +22,17 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Modified by the SlackBuilds.org team
+
PRGNAM=ettercap-NG
VERSION=${VERSION:-0.7.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -56,7 +56,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e # exit on most errors.
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -67,6 +67,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r,a-s .
+# Patch to fix "[:space:]" character class
+patch -p1 < $CWD/ettercap-NG_configure.patch
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -88,10 +91,8 @@ mv $PKG/etc/etter.conf $PKG/etc/etter.conf.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS CHANGELOG INSTALL LICENSE README* THANKS TODO* doc/* \