From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 00C35139083 for ; Wed, 20 Dec 2017 19:31:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF793E0F6D; Wed, 20 Dec 2017 19:31:43 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9E590E0F6D for ; Wed, 20 Dec 2017 19:31:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0D56E33BF3C for ; Wed, 20 Dec 2017 19:31:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A805AE70 for ; Wed, 20 Dec 2017 19:31:40 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1513798291.a57146b18b6129e6b45d0674784c4cf607b71fd6.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/h2o/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/h2o/Manifest www-servers/h2o/h2o-2.2.4.ebuild X-VCS-Directories: www-servers/h2o/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: a57146b18b6129e6b45d0674784c4cf607b71fd6 X-VCS-Branch: master Date: Wed, 20 Dec 2017 19:31:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9c94649c-a9b3-43ec-bcf2-9ce96664765a X-Archives-Hash: 87cc34f9f97a0f4390757c2ffbd2208c commit: a57146b18b6129e6b45d0674784c4cf607b71fd6 Author: Ian Moone chaoslab org> AuthorDate: Sat Dec 16 00:43:12 2017 +0000 Commit: Craig Andrews gentoo org> CommitDate: Wed Dec 20 19:31:31 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a57146b1 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 www-servers/h2o/Manifest | 1 + www-servers/h2o/h2o-2.2.4.ebuild | 66 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/www-servers/h2o/Manifest b/www-servers/h2o/Manifest index 731d0a20d1d..dd98073bcb8 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 00000000000..1ad16970758 --- /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 +}