diff options
Diffstat (limited to 'network/lighttpd2/lighttpd2.SlackBuild')
-rw-r--r-- | network/lighttpd2/lighttpd2.SlackBuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/network/lighttpd2/lighttpd2.SlackBuild b/network/lighttpd2/lighttpd2.SlackBuild index 26a1b7331d70a..7461c69547487 100644 --- a/network/lighttpd2/lighttpd2.SlackBuild +++ b/network/lighttpd2/lighttpd2.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for lighttpd2 # Copyright (c) 2007 Daniel de Kok <moc.mikciat@leinad> -# Copyright (c) 2012-2015 Matteo Bernardini <ponce@slackbuilds.org> +# Copyright (c) 2012-2016 Matteo Bernardini <ponce@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ # Twisted for lighttpd2 by Matteo Bernardini <ponce@slackbuilds.org> PRGNAM=lighttpd2 -VERSION=${VERSION:-20150810_d2c6a28} +VERSION=${VERSION:-20151204_3a4698d} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -123,8 +123,11 @@ install -D -m 0644 $CWD/conf/lighttpd.conf $PKG/etc/$PRGNAM/lighttpd.conf.new install -m 0644 $CWD/conf/angel.conf $PKG/etc/$PRGNAM/angel.conf.new install -m 0644 contrib/mimetypes.conf $PKG/etc/$PRGNAM/mimetypes.conf.new install -m 0644 $CWD/conf/php-fpm.lua $PKG/etc/$PRGNAM/php-fpm.lua.new -install -D -m 0644 $CWD/conf/$PRGNAM.logrotate $PKG/etc/logrotate.d/$PRGNAM.new install -D -m 0644 contrib/default.html $PKG/var/www/htdocs-lighttpd/index.html +install -D -m 0644 $CWD/conf/$PRGNAM.logrotate $PKG/etc/logrotate.d/$PRGNAM.new +mkdir -p $PKG/etc/logrotate.d +sed "s|@LIGHTTPD_USER@|$LIGHTTPD_USER|" \ + $CWD/conf/$PRGNAM.logrotate > $PKG/etc/logrotate.d/$PRGNAM.new sed -i \ -e "s|user \"lighttpd|user \"$LIGHTTPD_USER|" \ |