h2o: use make_dirs for creating directories.
This commit is contained in:
parent
91113b0540
commit
620e07ac2f
2 changed files with 7 additions and 10 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue