diff options
Diffstat (limited to 'network/ebtables/ebtables.SlackBuild')
-rw-r--r-- | network/ebtables/ebtables.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/network/ebtables/ebtables.SlackBuild b/network/ebtables/ebtables.SlackBuild index c0740128f5..39fa5ede9f 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 \ |