summaryrefslogtreecommitdiff
path: root/network/ipvsadm/ipvsadm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/ipvsadm/ipvsadm.SlackBuild')
-rw-r--r--network/ipvsadm/ipvsadm.SlackBuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/network/ipvsadm/ipvsadm.SlackBuild b/network/ipvsadm/ipvsadm.SlackBuild
index 9e14b1526e..7fb175cf4e 100644
--- a/network/ipvsadm/ipvsadm.SlackBuild
+++ b/network/ipvsadm/ipvsadm.SlackBuild
@@ -6,7 +6,7 @@
# Modified by the slackbuilds.org project
PRGNAM=ipvsadm
-VERSION=${VERSION:-1.24}
+VERSION=${VERSION:-1.25}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -18,10 +18,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=""
fi
set -e
@@ -39,7 +42,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# fix not detecting popt by default
+patch -p1 -i $CWD/ipvsadm-1.25-popt.patch
+
+# use SLKCFLAGS
+sed -i "s/-Wall/-Wall $SLKCFLAGS/" Makefile
+sed -i "s/-Wall/-Wall $SLKCFLAGS/" libipvs/Makefile
+
make
+
make BUILD_ROOT=$PKG install
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
@@ -57,4 +68,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}