aboutsummaryrefslogtreecommitdiff
path: root/network/varnish
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-03-26 12:02:12 +1300
committerAndrew Clemons <andrew.clemons@gmail.com>2022-03-26 12:02:12 +1300
commitb746d53012ab6d494ef2f8e2eb606e0ef7fcef54 (patch)
tree96807e0fedfd384243bc5ebc3d8e96b68849e420 /network/varnish
parent1d2f62e100029a99c8b3e8b7c246cc8929ddc670 (diff)
network/varnish: Remove .la files.
Make sure files in /etc have correct owner and permissions. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'network/varnish')
-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