aboutsummaryrefslogtreecommitdiff
path: root/network/ettercap-NG
diff options
context:
space:
mode:
Diffstat (limited to 'network/ettercap-NG')
-rw-r--r--network/ettercap-NG/ettercap-NG.SlackBuild17
-rw-r--r--network/ettercap-NG/ettercap-NG_configure.patch11
-rw-r--r--network/ettercap-NG/slack-desc5
3 files changed, 23 insertions, 10 deletions
diff --git a/network/ettercap-NG/ettercap-NG.SlackBuild b/network/ettercap-NG/ettercap-NG.SlackBuild
index dbdead289e534..6f6270582938f 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/* \
diff --git a/network/ettercap-NG/ettercap-NG_configure.patch b/network/ettercap-NG/ettercap-NG_configure.patch
new file mode 100644
index 0000000000000..69e9ccc4e76d6
--- /dev/null
+++ b/network/ettercap-NG/ettercap-NG_configure.patch
@@ -0,0 +1,11 @@
+--- ettercap-NG-0.7.3/configure 2005-05-27 12:11:45.000000000 -0300
++++ ettercap-NG-0.7.3_patched/configure 2011-04-04 20:57:49.000000000 -0300
+@@ -8346,7 +8346,7 @@
+ exit 1
+ fi
+ gentoo_lt_version="1.5.18"
+-gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
++gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'`
+ if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
diff --git a/network/ettercap-NG/slack-desc b/network/ettercap-NG/slack-desc
index cbfdd41081afa..46fb57d0848aa 100644
--- a/network/ettercap-NG/slack-desc
+++ b/network/ettercap-NG/slack-desc
@@ -12,6 +12,7 @@ ettercap-NG: features sniffing of live connections, content filtering on the
ettercap-NG: fly and many other interesting tricks. It supports active and
ettercap-NG: passive dissection of many protocols (even ciphered ones) and
ettercap-NG: includes many feature for network and host host analysis.
-ettercap-NG:
+ettercap-NG:
ettercap-NG: Homepage: http://ettercap.sourceforge.net/
-ettercap-NG:
+ettercap-NG:
+ettercap-NG: