diff options
Diffstat (limited to 'network/haproxy/haproxy.SlackBuild')
-rw-r--r-- | network/haproxy/haproxy.SlackBuild | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/network/haproxy/haproxy.SlackBuild b/network/haproxy/haproxy.SlackBuild index 7870f6b498..c8550300ab 100644 --- a/network/haproxy/haproxy.SlackBuild +++ b/network/haproxy/haproxy.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for haproxy # -# Copyright 2008 Cherife Li <cherife@dotimes.com> +# Copyright 2008 Cherife Li <cherife-#-dotimes.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,15 +23,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Notes: -# + Don't forget to check the VERSION number. -# + You may want to customize the configure options. # + By default, this SlackBuild supposes that the kernel supports epoll -# if the kernel release is 2.4.x. -# This is a reasonable choice for running HAProxy, isn't it? -# Otherwise, please remember to modify this SlackBuild. +# if the kernel release is 2.4.x. Otherwise, please modify this SlackBuild +# to suit your situation. PRGNAM=haproxy -VERSION=1.3.15.2 +VERSION=1.3.15.7 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -92,16 +89,17 @@ 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 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 -# Compress man pages +mv $PKG/usr/share/man $PKG/usr/ +rm -rf $PKG/usr/{share,/doc/haproxy} + ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done ) -# Strip everything for good measure: ( 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 @@ -111,6 +109,5 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh -# Build the package: cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |