Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/h2o/
Date: Fri, 27 Oct 2017 21:02:34
Message-Id: 1509138126.5a782f487ad73a23ca622332d3564a53146918b8.monsieurp@gentoo
1 commit: 5a782f487ad73a23ca622332d3564a53146918b8
2 Author: Ian Moone <csmk+gentoo <AT> chaoslab <DOT> org>
3 AuthorDate: Thu Oct 19 19:39:45 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 27 21:02:06 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a782f48
7
8 www-servers/h2o: security bump to 2.2.3.
9
10 CVE-2017-10868
11 CVE-2017-10869
12
13 Package-Manager: Portage-2.3.8, Repoman-2.3.3
14 Closes: https://github.com/gentoo/gentoo/pull/5989
15
16 www-servers/h2o/Manifest | 1 +
17 www-servers/h2o/h2o-2.2.3.ebuild | 66 ++++++++++++++++++++++++++++++++++++++++
18 2 files changed, 67 insertions(+)
19
20 diff --git a/www-servers/h2o/Manifest b/www-servers/h2o/Manifest
21 index 21a5c58c1c4..cd6850d1455 100644
22 --- a/www-servers/h2o/Manifest
23 +++ b/www-servers/h2o/Manifest
24 @@ -1 +1,2 @@
25 DIST h2o-2.2.2.tar.gz 16192602 SHA256 cf45780058566bd63d90ad0b52b1d15f8515519090753398b9bcf770162a0433 SHA512 b5cc08f2be7056bbac4370f9b6ccb1ba0ad4ea61ce67e946a4f26b8f9c0a575f603c899b1a88f17d1065e0e72e1d1094199200ed24b4f3644a3c7df34aa04b51 WHIRLPOOL d9aff2d3e7caa0334efbac86a807fe8ecd5f146ae56315a5194b8de653ae4f91d33cad754714cd38fadd1c59d87cafe30c1f5f6cb2102362a7647ebd3f18dc84
26 +DIST h2o-2.2.3.tar.gz 16207150 SHA256 d40401ca714d00ca5204e8d22148dbaa9cae3407e3b4b6b62bd208543901ea51 SHA512 f138667e8e4370102028da469e09e8b2ee2e5dc92f4513b35467aa2a2fb7b02bbda2b2d158bbf3198b26faeea48d5ec07a7ebab1d0cb3032c532d4e6323630f1 WHIRLPOOL 0a5b498c7568b07af9e475eec00fd8db0122608843c5918616857ec96479a180a89d7a4274c98107129efa784b0d3714dd687a9f1463606be65e12987dc89303
27
28 diff --git a/www-servers/h2o/h2o-2.2.3.ebuild b/www-servers/h2o/h2o-2.2.3.ebuild
29 new file mode 100644
30 index 00000000000..1ad16970758
31 --- /dev/null
32 +++ b/www-servers/h2o/h2o-2.2.3.ebuild
33 @@ -0,0 +1,66 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +USE_RUBY="ruby22 ruby23 ruby24"
40 +
41 +inherit cmake-utils ruby-single systemd user
42 +
43 +DESCRIPTION="An optimized HTTP server with support for HTTP/1.x and HTTP/2"
44 +HOMEPAGE="https://h2o.examp1e.net"
45 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="libressl +mruby"
51 +
52 +RDEPEND="
53 + !libressl? ( dev-libs/openssl:0= )
54 + libressl? ( dev-libs/libressl:0= )"
55 +DEPEND="${RDEPEND}
56 + mruby? (
57 + sys-devel/bison
58 + ${RUBY_DEPS}
59 + )"
60 +
61 +pkg_setup() {
62 + enewgroup h2o
63 + enewuser h2o -1 -1 -1 h2o
64 +}
65 +
66 +src_prepare() {
67 + # Leave optimization level to user CFLAGS
68 + sed -i 's/-O2 -g ${CC_WARNING_FLAGS} //g' ./CMakeLists.txt \
69 + || die "sed fix failed!"
70 +
71 + cmake-utils_src_prepare
72 +}
73 +
74 +src_configure() {
75 + local mycmakeargs=(
76 + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/h2o
77 + -DWITH_MRUBY="$(usex mruby)"
78 + -DWITHOUT_LIBS=ON
79 + )
80 + cmake-utils_src_configure
81 +}
82 +
83 +src_install() {
84 + cmake-utils_src_install
85 +
86 + newinitd "${FILESDIR}"/h2o.initd h2o
87 + systemd_dounit "${FILESDIR}"/h2o.service
88 +
89 + insinto /etc/h2o
90 + doins "${FILESDIR}"/h2o.conf
91 +
92 + keepdir /var/log/h2o
93 + fperms 0700 /var/log/h2o
94 +
95 + keepdir /var/www/localhost/htdocs
96 +
97 + insinto /etc/logrotate.d
98 + newins "${FILESDIR}"/h2o.logrotate h2o
99 +}