summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moone <csmk+gentoo@chaoslab.org>2017-12-16 09:43:12 +0900
committerCraig Andrews <candrews@gentoo.org>2017-12-20 14:31:31 -0500
commita57146b18b6129e6b45d0674784c4cf607b71fd6 (patch)
treea77df75ee51df4fab326ad7104db7cd80ef95f59 /www-servers
parentnet-irc/quassel: add LDAP support (diff)
downloadgentoo-a57146b18b6129e6b45d0674784c4cf607b71fd6.tar.gz
gentoo-a57146b18b6129e6b45d0674784c4cf607b71fd6.tar.bz2
gentoo-a57146b18b6129e6b45d0674784c4cf607b71fd6.zip
www-servers/h2o: security bump to 2.2.4
CVE-2017-10872 CVE-2017-10908 Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/h2o/Manifest1
-rw-r--r--www-servers/h2o/h2o-2.2.4.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/www-servers/h2o/Manifest b/www-servers/h2o/Manifest
index 731d0a20d1d0..dd98073bcb8f 100644
--- a/www-servers/h2o/Manifest
+++ b/www-servers/h2o/Manifest
@@ -1 +1,2 @@
DIST h2o-2.2.3.tar.gz 16207150 BLAKE2B 847f515efe0b73b49502cad64ac8f02316c35bfb84f3613180a7747a0ae61d7ad45f166200e7d603c1a3016389aa290410d3475bf248f65014e7eadba8c1d43c SHA512 f138667e8e4370102028da469e09e8b2ee2e5dc92f4513b35467aa2a2fb7b02bbda2b2d158bbf3198b26faeea48d5ec07a7ebab1d0cb3032c532d4e6323630f1
+DIST h2o-2.2.4.tar.gz 16212596 BLAKE2B 0c2702fb3c7e85e7eae107294794f80cee02b6b2488bbc2e880ea356d8362f0de8f08c3c3d686512cbf9ae1558aed23354f44e27edaf449e43d5876940248296 SHA512 508ebe93b890f573e735d9b1f9c91a669144be3523e34fb7455227fd10b38e04a5db73e706fe8d05849fea3019e792754097871c073715c9eef4eae7c33560b5
diff --git a/www-servers/h2o/h2o-2.2.4.ebuild b/www-servers/h2o/h2o-2.2.4.ebuild
new file mode 100644
index 000000000000..1ad169707581
--- /dev/null
+++ b/www-servers/h2o/h2o-2.2.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby22 ruby23 ruby24"
+
+inherit cmake-utils ruby-single systemd user
+
+DESCRIPTION="An optimized HTTP server with support for HTTP/1.x and HTTP/2"
+HOMEPAGE="https://h2o.examp1e.net"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="libressl +mruby"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )"
+DEPEND="${RDEPEND}
+ mruby? (
+ sys-devel/bison
+ ${RUBY_DEPS}
+ )"
+
+pkg_setup() {
+ enewgroup h2o
+ enewuser h2o -1 -1 -1 h2o
+}
+
+src_prepare() {
+ # Leave optimization level to user CFLAGS
+ sed -i 's/-O2 -g ${CC_WARNING_FLAGS} //g' ./CMakeLists.txt \
+ || die "sed fix failed!"
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/h2o
+ -DWITH_MRUBY="$(usex mruby)"
+ -DWITHOUT_LIBS=ON
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ newinitd "${FILESDIR}"/h2o.initd h2o
+ systemd_dounit "${FILESDIR}"/h2o.service
+
+ insinto /etc/h2o
+ doins "${FILESDIR}"/h2o.conf
+
+ keepdir /var/log/h2o
+ fperms 0700 /var/log/h2o
+
+ keepdir /var/www/localhost/htdocs
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/h2o.logrotate h2o
+}