aboutsummaryrefslogtreecommitdiff
path: root/network/haproxy/haproxy.SlackBuild
diff options
context:
space:
mode:
authorCherife Li <cherife-#-dotimes.com>2010-05-13 00:36:38 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:36:38 +0200
commitae3b99d9b670a894af0faf650ac5ff1b0fb2f48e (patch)
tree5ea3d82936dd7ca60d2b80e73dfe7e8ae2f2da97 /network/haproxy/haproxy.SlackBuild
parent1ff9eced8670b0de46435ecb3fa947fbb31fbc15 (diff)
network/haproxy: Updated for version 1.3.15.7
Diffstat (limited to 'network/haproxy/haproxy.SlackBuild')
-rw-r--r--network/haproxy/haproxy.SlackBuild21
1 files changed, 14 insertions, 7 deletions
diff --git a/network/haproxy/haproxy.SlackBuild b/network/haproxy/haproxy.SlackBuild
index c8550300ab12..5377c90691f9 100644
--- a/network/haproxy/haproxy.SlackBuild
+++ b/network/haproxy/haproxy.SlackBuild
@@ -51,11 +51,14 @@ else
fi
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -89,7 +92,9 @@ cat $CWD/rc.haproxy > $PKG/etc/rc.d/rc.haproxy.new
cat ./examples/haproxy.cfg > $PKG/etc/haproxy/haproxy.cfg.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGELOG CONTRIB LICENSE README ROADMAP SUBVERS TODO VERDATE VERSION doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG CONTRIB LICENSE README \
+ ROADMAP SUBVERS TODO VERDATE VERSION doc/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/haproxy.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/haproxy.SlackBuild
mv $PKG/usr/share/man $PKG/usr/
@@ -101,8 +106,10 @@ rm -rf $PKG/usr/{share,/doc/haproxy}
)
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/install
@@ -110,4 +117,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}