h2o: use make_dirs for creating directories.

This commit is contained in:
maxice8 2019-01-26 20:25:57 -02:00
parent 91113b0540
commit 620e07ac2f
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 7 additions and 10 deletions

View file

@ -1,10 +1,2 @@
#!/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

View file

@ -1,10 +1,9 @@
# Template file for 'h2o' # Template file for 'h2o'
pkgname=h2o pkgname=h2o
version=2.2.5 version=2.2.5
revision=2 revision=3
build_style=cmake build_style=cmake
conf_files="/etc/h2o.conf" conf_files="/etc/h2o.conf"
system_accounts="h2o"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="libressl-devel libuv-devel zlib-devel" makedepends="libressl-devel libuv-devel zlib-devel"
depends="perl" depends="perl"
@ -15,6 +14,12 @@ homepage="https://h2o.examp1e.net/"
distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz" distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz"
checksum=eafb40aa2d93b3de1af472bb046c17b2335c3e5a894462310e1822e126c97d24 checksum=eafb40aa2d93b3de1af472bb046c17b2335c3e5a894462310e1822e126c97d24
system_accounts="h2o"
make_dirs="
/var/log/h2o 0755 h2o h2o
/srv/www/h2o 0755 h2o h2o"
post_install() { post_install() {
vsv h2o vsv h2o
vconf ${FILESDIR}/h2o.conf vconf ${FILESDIR}/h2o.conf