diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-07-27 23:14:05 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | 4e955d4aeaed9b3151abbf0e4e7f7c17ae7a279d (patch) | |
tree | 91535a1a92b1275119ac1b13ebdd4f53656c3f1b /network/varnish/varnish.SlackBuild | |
parent | 10805ae02cc1421a5e3d0c25485b1c979cafe32e (diff) | |
download | slackbuilds-4e955d4aeaed9b3151abbf0e4e7f7c17ae7a279d.tar.gz |
network/varnish: Updated for version 4.0.3.
Fixes build failure on -current.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'network/varnish/varnish.SlackBuild')
-rw-r--r-- | network/varnish/varnish.SlackBuild | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/network/varnish/varnish.SlackBuild b/network/varnish/varnish.SlackBuild index a58eb7116b..950474649c 100644 --- a/network/varnish/varnish.SlackBuild +++ b/network/varnish/varnish.SlackBuild @@ -5,7 +5,7 @@ # Written by Matt Schurenko <matt.schurenko@gmail.com> PRGNAM=varnish -VERSION=${VERSION:-2.1.5} +VERSION=${VERSION:-4.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -46,20 +46,20 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +sh ./autogen.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./autogen.sh - ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ - --localstatedir=/var \ + --localstatedir=/var/lib \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux @@ -81,10 +81,10 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh -# copy rc.varnish into ./etc/rc.d/ -mkdir $PKG/etc/rc.d/ +mkdir -p $PKG/etc/varnish/ +cp $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 -mv $PKG/etc/varnish/default.vcl{,.new} cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |