diff options
author | luoyi <luoyi.ly@gmail.com> | 2010-05-13 00:36:48 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:36:48 +0200 |
commit | 211924047cfb05cbf4c07e882dabc30023e3373b (patch) | |
tree | 9796983b600c13a654187ec56bd9de93f9c52244 /network/ipvsadm/ipvsadm.SlackBuild | |
parent | 419f9cb86cc04a4c17cea3c8ecae39ed0d4cfb5c (diff) | |
download | slackbuilds-211924047cfb05cbf4c07e882dabc30023e3373b.tar.gz |
network/ipvsadm: Updated for version 1.25
Diffstat (limited to 'network/ipvsadm/ipvsadm.SlackBuild')
-rw-r--r-- | network/ipvsadm/ipvsadm.SlackBuild | 15 |
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} |