diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-17 19:52:01 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-17 23:34:12 -0500 |
commit | 8b346244f04d7f1b56a4bd08428774b73d54f1f0 (patch) | |
tree | c7c9af8487f201692e61b16c8cc05d8855883beb /network/ebtables | |
parent | b5182e351c83fef767d1e7cad7bc7922e0ce69b8 (diff) |
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>
Diffstat (limited to 'network/ebtables')
-rw-r--r-- | network/ebtables/ebtables.SlackBuild | 15 | ||||
-rw-r--r-- | network/ebtables/ebtables.info | 4 |
2 files changed, 12 insertions, 7 deletions
diff --git a/network/ebtables/ebtables.SlackBuild b/network/ebtables/ebtables.SlackBuild index c0740128f5509..39fa5ede9f777 100644 --- a/network/ebtables/ebtables.SlackBuild +++ b/network/ebtables/ebtables.SlackBuild @@ -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 \ diff --git a/network/ebtables/ebtables.info b/network/ebtables/ebtables.info index 87e3457b7ddb8..e929269cfc58e 100644 --- a/network/ebtables/ebtables.info +++ b/network/ebtables/ebtables.info @@ -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="" |