From 620e07ac2ff10e2a912df5196423fc36278664d6 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 26 Jan 2019 20:25:57 -0200 Subject: [PATCH] h2o: use make_dirs for creating directories. --- srcpkgs/h2o/files/h2o/run | 8 -------- srcpkgs/h2o/template | 9 +++++++-- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/srcpkgs/h2o/files/h2o/run b/srcpkgs/h2o/files/h2o/run index 3ba20c30148..57e623ede21 100644 --- a/srcpkgs/h2o/files/h2o/run +++ b/srcpkgs/h2o/files/h2o/run @@ -1,10 +1,2 @@ #!/bin/sh - -[ -s conf ] && . ./conf - -: ${LOGDIR:=/var/log/h2o} - -mkdir -p $LOGDIR -chown h2o:h2o $LOGDIR - exec h2o -c /etc/h2o.conf diff --git a/srcpkgs/h2o/template b/srcpkgs/h2o/template index 7ce02b3f574..f14efcb0511 100644 --- a/srcpkgs/h2o/template +++ b/srcpkgs/h2o/template @@ -1,10 +1,9 @@ # Template file for 'h2o' pkgname=h2o version=2.2.5 -revision=2 +revision=3 build_style=cmake conf_files="/etc/h2o.conf" -system_accounts="h2o" hostmakedepends="pkg-config" makedepends="libressl-devel libuv-devel zlib-devel" depends="perl" @@ -15,6 +14,12 @@ homepage="https://h2o.examp1e.net/" distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz" checksum=eafb40aa2d93b3de1af472bb046c17b2335c3e5a894462310e1822e126c97d24 +system_accounts="h2o" + +make_dirs=" + /var/log/h2o 0755 h2o h2o + /srv/www/h2o 0755 h2o h2o" + post_install() { vsv h2o vconf ${FILESDIR}/h2o.conf