diff options
Diffstat (limited to 'network/ettercap-NG/ettercap-NG.SlackBuild')
-rw-r--r-- | network/ettercap-NG/ettercap-NG.SlackBuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/network/ettercap-NG/ettercap-NG.SlackBuild b/network/ettercap-NG/ettercap-NG.SlackBuild index dbdead289e53..6f6270582938 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/* \ |