1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/www/h2o/Makefile
Dave Cottlehuber 1b58994791 www/h2o: update 2.2.4 to 2.2.5
- fix buffer overflow CVE-2018-0608 #1775 (Frederik Deweerdt)
- LibreSSL and PicoTLS changes
- see https://github.com/h2o/h2o/blob/master/Changes

PR:		228762
Submitted by:	Max Kostikov <max@kostikov.co>
Approved by:	jrm
MFH:		2018Q3
Security:	CVE-2018-0608
2018-07-02 22:47:17 +00:00

80 lines
2.0 KiB
Makefile

# Created by: Dave Cottlehuber <dch@FreeBSD.org>
# $FreeBSD$
PORTNAME= h2o
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.5
CATEGORIES= www
MAINTAINER= dch@FreeBSD.org
COMMENT= Optimized HTTP/2 server including support for TLS 1.3 and HTTP/1.x
LICENSE= MIT BSD2CLAUSE
LICENSE_COMB= multi
BROKEN_armv6= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported
BROKEN_armv7= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported
BROKEN_powerpc64= fails to link: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6'
LIB_DEPENDS= libuv.so:devel/libuv
USES= cmake:noninja compiler:c11 cpe perl5 shebangfix ssl pkgconfig
CPE_VENDOR= h2o_project
USE_GITHUB= yes
USE_PERL5= run
SHEBANG_FILES= share/h2o/start_server
PORTDOCS= README.md
SUB_FILES= ${PORTNAME} ${PORTNAME}.conf.sample
SUB_LIST+= H2O_USER=${H2O_USER} \
H2O_GROUP=${H2O_GROUP} \
H2O_LOGDIR=${H2O_LOGDIR}
PLIST_SUB= H2O_USER=${H2O_USER} \
H2O_GROUP=${H2O_GROUP} \
H2O_LOGDIR=${H2O_LOGDIR}
H2O_USER?= www
H2O_GROUP?= www
H2O_LOGDIR= /var/log/${PORTNAME}/
USE_RC_SUBR= ${PORTNAME}
OPTIONS_DEFINE= MRUBY DOCS
OPTIONS_DEFAULT= MRUBY
OPTIONS_SUB= yes
MRUBY_DESC= Build with embedded mruby handler support
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON -DWITH_BUNDLED_SSL=OFF
CMAKE_VERBOSE= yes
MRUBY_CMAKE_BOOL= WITH_MRUBY
MRUBY_USES= bison
MRUBY_USE= ruby=yes
MRUBY_VARS= RUBY_NO_RUN_DEPENDS=yes
post-patch:
@${REINPLACE_CMD} -e 's|exec perl|exec ${LOCALBASE}/bin/perl|' \
${WRKSRC}/share/h2o/annotate-backtrace-symbols \
${WRKSRC}/share/h2o/fastcgi-cgi \
${WRKSRC}/share/h2o/fetch-ocsp-response \
${WRKSRC}/share/h2o/kill-on-close \
${WRKSRC}/share/h2o/setuidgid \
${WRKSRC}/share/h2o/start_server
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR} \
${STAGEDIR}${H2O_LOGDIR}
${INSTALL_DATA} \
${WRKDIR}/${PORTNAME}.conf.sample \
${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>