network/mz: Updated for version 0.34.9

This commit is contained in:
Heinz Wiesinger 2010-05-13 00:37:25 +02:00 committed by Erik Hanson
parent 2b0c3a2f95
commit f36565bc7e
3 changed files with 20 additions and 10 deletions

View File

@ -15,4 +15,4 @@ Mausezahn can be used for example
the command line with a simple syntax and online help. It could also be
used within (bash-) scripts to perform combination of tests.
Mausezahn requires libnet, which is also available from SlackBuilds.org.
Mausezahn requires libnet, which is also available from SlackBuilds.org.

View File

@ -2,7 +2,7 @@
# Slackware build script for mz
# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# Copyright 2008-2009 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mz
VERSION=0.34.6
VERSION=0.34.9
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -56,10 +59,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# we need to link to libssp to not fail because of -fstack-protector
sed -i "s/pcap rt/pcap rt ssp/" src/CMakeLists.txt
cmake \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX="$LIBDIRSUFFIX" \
.
make
make install DESTDIR=$PKG
@ -84,4 +92,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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}

View File

@ -1,8 +1,10 @@
PRGNAM="mz"
VERSION="0.34.6"
VERSION="0.34.9"
HOMEPAGE="http://www.perihel.at/sec/mz"
DOWNLOAD="http://www.perihel.at/sec/mz/mz-0.34.6.tar.gz"
MD5SUM="807bf2bce15206d4dd33e6651c959831"
MAINTAINER="ppr:kut"
DOWNLOAD="http://www.perihel.at/sec/mz/mz-0.34.9.tar.gz"
MD5SUM="17dcc41248744a14690a62bce3b637b2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Heinz Wiesinger"
EMAIL="pprkut@liwjatan.at"
APPROVED="michiel"
APPROVED="Erik Hanson"