diff options
Diffstat (limited to 'network/lighttpd/lighttpd.SlackBuild')
-rw-r--r-- | network/lighttpd/lighttpd.SlackBuild | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/network/lighttpd/lighttpd.SlackBuild b/network/lighttpd/lighttpd.SlackBuild index 5a655d7f2b..c764ad0417 100644 --- a/network/lighttpd/lighttpd.SlackBuild +++ b/network/lighttpd/lighttpd.SlackBuild @@ -73,6 +73,8 @@ else LIBDIRSUFFIX="" fi +if pkg-config --exists lua; then with_lua="--with-lua"; else with_lua=""; fi + set -e rm -rf $PKG @@ -99,6 +101,7 @@ CXXFLAGS="$SLKCFLAGS" \ --with-pcre \ --with-attr \ --with-openssl \ + $with_lua \ --build=$ARCH-slackware-linux make @@ -119,7 +122,19 @@ mkdir -p $PKG/etc/logrotate.d sed -e "s,@USER@,$LIGHTTPD_USER," -e "s,@GROUP@,$LIGHTTPD_GROUP," \ $CWD/conf/$PRGNAM.logrotate > $PKG/etc/logrotate.d/lighttpd.new -install -D -m 0644 $CWD/conf/$PRGNAM.conf $PKG/etc/$PRGNAM/$PRGNAM.conf.new +mkdir -p $PKG/etc/$PRGNAM/{conf,vhosts}.d +sed -e "s,@USER@,$LIGHTTPD_USER," -e "s,@GROUP@,$LIGHTTPD_GROUP," \ + $CWD/conf/$PRGNAM.conf > $PKG/etc/$PRGNAM/$PRGNAM.conf.new +cp doc/config/modules.conf $PKG/etc/$PRGNAM/modules.conf.new +cp doc/config/vhosts.d/vhosts.template $PKG/etc/$PRGNAM/vhosts.d + +mkdir -p $PKG/install +cat $CWD/doinst.sh > $PKG/install/doinst.sh +( cd doc/config/conf.d + for i in *.conf; do + cat $i > $PKG/etc/$PRGNAM/conf.d/$i.new + echo "config etc/lighttpd/conf.d/$i.new" >> $PKG/install/doinst.sh + done ) chown -R $LIGHTTPD_USER:$LIGHTTPD_GROUP $PKG/var/log/lighttpd/ chown -R $LIGHTTPD_USER:$LIGHTTPD_GROUP $PKG/var/cache/lighttpd @@ -127,15 +142,13 @@ chown -R $LIGHTTPD_USER:$LIGHTTPD_GROUP $PKG/var/cache/lighttpd find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING INSTALL NEWS README doc/* \ +cp -a AUTHORS COPYING INSTALL NEWS README \ + doc/scripts/*.{sh,pl} doc/*.css \ $PKG/usr/doc/$PRGNAM-$VERSION -rm -f $PKG/usr/doc/$PRGNAM-$VERSION/Makefile* cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |