network/ebtables: Disabled a "warning-as-error" that broke build.

Also done a minor for version 2.0.10-4.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2012-09-17 19:52:01 +02:00 committed by Robby Workman
parent b5182e351c
commit 8b346244f0
2 changed files with 12 additions and 7 deletions

View File

@ -24,7 +24,7 @@
PRGNAM=ebtables
VERSION=${VERSION:-2.0.10}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -59,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-v$VERSION-1
tar xvf $CWD/$PRGNAM-v$VERSION-1.tar.gz
cd $PRGNAM-v$VERSION-1
rm -rf $PRGNAM-v$VERSION-4
tar xvf $CWD/$PRGNAM-v$VERSION-4.tar.gz
cd $PRGNAM-v$VERSION-4
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@ -69,7 +69,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
# Set our CFLAGS and avoid a "warning-as-error" that breaks build
sed -i \
-e "s|-fPIC -O3|${SLKCFLAGS}|" \
-e "s|-Wunused|-Wno-error=unused-but-set-variable|" \
Makefile
make
make install DESTDIR=$PKG \

View File

@ -1,8 +1,8 @@
PRGNAM="ebtables"
VERSION="2.0.10"
HOMEPAGE="http://ebtables.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/ebtables/ebtables-v2.0.10-1.tar.gz"
MD5SUM="33b9ff7c9b605605c705418f17812714"
DOWNLOAD="http://downloads.sourceforge.net/ebtables/ebtables-v2.0.10-4.tar.gz"
MD5SUM="506742a3d44b9925955425a659c1a8d0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""