diff options
Diffstat (limited to 'www/h2o/Makefile')
-rw-r--r-- | www/h2o/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/www/h2o/Makefile b/www/h2o/Makefile new file mode 100644 index 000000000000..a8807482a3f8 --- /dev/null +++ b/www/h2o/Makefile @@ -0,0 +1,57 @@ +# Created by: Dave Cottlehuber <dch@skunkwerks.at> +# $FreeBSD$ + +PORTNAME= h2o +PORTVERSION= 0.9.2 +CATEGORIES= www + +MAINTAINER= dch@skunkwerks.at +COMMENT= Optimized HTTP2 server with support for HTTP/1.x + +LICENSE= MIT + +LIB_DEPENDS= libyaml.so:${PORTSDIR}/textproc/libyaml + +USE_GITHUB= yes +GH_ACCOUNT= h2o +GH_TAGNAME= v0.9.2 +GH_COMMIT= 5e20cff + +MAKE_JOBS_UNSAFE= yes +USES= cmake:outsource + +USE_OPENSSL= yes + +PORTDOCS= README.md + +SUB_FILES= ${PORTNAME} +SUB_LIST+= H2O_USER=${H2O_USER} \ + H2O_GROUP=${H2O_GROUP} \ + H2O_PIDDIR=${H2O_PIDDIR} \ + H2O_LOGDIR=${H2O_LOGDIR} + +PLIST_SUB= H2O_USER=${H2O_USER} \ + H2O_GROUP=${H2O_GROUP} \ + H2O_PIDDIR=${H2O_PIDDIR} \ + H2O_LOGDIR=${H2O_LOGDIR} + +H2O_USER?= www +H2O_GROUP?= www + +H2O_LOGDIR= /var/log/${PORTNAME}/ +H2O_PIDDIR= /var/run/${PORTNAME}/ + +USE_RC_SUBR= ${PORTNAME} + +do-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} \ + ${STAGEDIR}${ETCDIR} \ + ${STAGEDIR}${H2O_PIDDIR} \ + ${STAGEDIR}${H2O_LOGDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} \ + ${FILESDIR}/${PORTNAME}.conf.sample \ + ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample + ${INSTALL_PROGRAM} ${WRKDIR}/.build/h2o ${STAGEDIR}${PREFIX}/bin/h2o + +.include <bsd.port.mk> |