mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
h2o: switch webroot to /srv/www/h2o; create dirs in the runit service.
This commit is contained in:
parent
0719b208c7
commit
a28375c716
3 changed files with 10 additions and 4 deletions
|
@ -5,5 +5,5 @@ hosts:
|
||||||
localhost:
|
localhost:
|
||||||
paths:
|
paths:
|
||||||
/:
|
/:
|
||||||
file.dir: /srv/http
|
file.dir: /srv/www/h2o
|
||||||
access-log: /var/log/h2o/localhost.log
|
access-log: /var/log/h2o/localhost.log
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -s conf ] && . ./conf
|
||||||
|
|
||||||
|
: ${LOGDIR:=/var/log/h2o}
|
||||||
|
|
||||||
|
mkdir -p $LOGDIR
|
||||||
|
chown h2o:h2o $LOGDIR
|
||||||
|
|
||||||
exec h2o -c /etc/h2o.conf
|
exec h2o -c /etc/h2o.conf
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'h2o'
|
# Template file for 'h2o'
|
||||||
pkgname=h2o
|
pkgname=h2o
|
||||||
version=1.7.1
|
version=1.7.1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
conf_files="/etc/h2o.conf"
|
conf_files="/etc/h2o.conf"
|
||||||
system_accounts="h2o"
|
system_accounts="h2o"
|
||||||
make_dirs="/var/log/h2o 0750 root root"
|
hostmakedepends="pkg-config"
|
||||||
hostmakedepends="cmake pkg-config"
|
|
||||||
makedepends="zlib-devel libressl-devel"
|
makedepends="zlib-devel libressl-devel"
|
||||||
depends="perl"
|
depends="perl"
|
||||||
short_desc="An optimized HTTP server with support for HTTP/1.x and HTTP/2"
|
short_desc="An optimized HTTP server with support for HTTP/1.x and HTTP/2"
|
||||||
|
|
Loading…
Add table
Reference in a new issue