aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/varnish/varnish.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/network/varnish/varnish.SlackBuild b/network/varnish/varnish.SlackBuild
index 7e0a44740c79..cad34e3806e4 100644
--- a/network/varnish/varnish.SlackBuild
+++ b/network/varnish/varnish.SlackBuild
@@ -9,7 +9,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=varnish
VERSION=${VERSION:-6.5.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,6 +80,8 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -95,9 +97,9 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
mkdir -p $PKG/etc/varnish/
-cp $PKG/usr/doc/$PRGNAM-$VERSION/example.vcl $PKG/etc/varnish/default.vcl.new
+cat $PKG/usr/doc/$PRGNAM-$VERSION/example.vcl > $PKG/etc/varnish/default.vcl.new
mkdir -p $PKG/etc/rc.d/
-cp -p $CWD/rc.varnishd $PKG/etc/rc.d/rc.varnishd.new
+cat $CWD/rc.varnishd > $PKG/etc/rc.d/rc.varnishd.new
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE