network/xtables-addons: More cleanups

This commit is contained in:
Robby Workman 2010-05-23 23:08:15 -05:00
parent 34adb37b81
commit 55382320c4

View file

@ -32,10 +32,10 @@ KERNEL=${KERNEL:-$(uname -r)}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) export ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -47,15 +47,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
SRCARCH=x86
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
SRCARCH=x86
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
SRCARCH=x86
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
@ -85,8 +82,8 @@ CFLAGS="$SLKCFLAGS" \
--with-kbuild=/lib/modules/${KERNEL}/build \ --with-kbuild=/lib/modules/${KERNEL}/build \
--build=$ARCH-slackware-linux || true --build=$ARCH-slackware-linux || true
make SRCARCH=$SRCARCH make
make install DESTDIR=$PKG SRCARCH=$SRCARCH make install DESTDIR=$PKG
# Hrm, we don't want to install these # Hrm, we don't want to install these
rm -f $PKG/lib/modules/${KERNEL}/modules.* rm -f $PKG/lib/modules/${KERNEL}/modules.*