h2o: switch webroot to /srv/www/h2o; create dirs in the runit service.

This commit is contained in:
Juan RP 2016-05-01 10:33:56 +02:00
parent 0719b208c7
commit a28375c716
3 changed files with 10 additions and 4 deletions

View File

@ -5,5 +5,5 @@ hosts:
localhost:
paths:
/:
file.dir: /srv/http
file.dir: /srv/www/h2o
access-log: /var/log/h2o/localhost.log

View File

@ -1,3 +1,10 @@
#!/bin/sh
[ -s conf ] && . ./conf
: ${LOGDIR:=/var/log/h2o}
mkdir -p $LOGDIR
chown h2o:h2o $LOGDIR
exec h2o -c /etc/h2o.conf

View File

@ -1,12 +1,11 @@
# Template file for 'h2o'
pkgname=h2o
version=1.7.1
revision=2
revision=3
build_style=cmake
conf_files="/etc/h2o.conf"
system_accounts="h2o"
make_dirs="/var/log/h2o 0750 root root"
hostmakedepends="cmake pkg-config"
hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel"
depends="perl"
short_desc="An optimized HTTP server with support for HTTP/1.x and HTTP/2"