From: "Akinori Hattori" <hattya@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/h2o/
Date: Thu, 3 Oct 2019 12:19:10 +0000 (UTC) [thread overview]
Message-ID: <1570104757.bc673827475cbd91f15b5700e1c7f16a86fdd9b1.hattya@gentoo> (raw)
commit: bc673827475cbd91f15b5700e1c7f16a86fdd9b1
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 3 12:12:37 2019 +0000
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Thu Oct 3 12:12:37 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc673827
www-servers/h2o: new upstream release
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
www-servers/h2o/Manifest | 1 +
www-servers/h2o/h2o-2.2.6.ebuild | 103 +++++++++++++++++++++++++++++++++++++++
2 files changed, 104 insertions(+)
diff --git a/www-servers/h2o/Manifest b/www-servers/h2o/Manifest
index ddfd2ff20f2..b6f7c241492 100644
--- a/www-servers/h2o/Manifest
+++ b/www-servers/h2o/Manifest
@@ -1 +1,2 @@
DIST h2o-2.2.5.tar.gz 16257295 BLAKE2B 3c13796eaf9a0aca29bbff7c35fb36d0b5ef47da91f39f71614a89f2d4fea5b1ebbc8f4e3e50bf37a02a84c0fcd96d5ac0be20c83add274157af966134b2d185 SHA512 24b07140d24fbb7796038aab44f44be5ffabc6f2841954273e2ad9f1a864e5482051dd7abfa6446297a46b6868763114695fa4f123ee3175bdac53b4c1868bc2
+DIST h2o-2.2.6.tar.gz 16257760 BLAKE2B 8474751ca9832ddae2022710654ca58a93ebf9ca01afe934950209b04357b7548b05c598c49fe92684b2910fd6309d6fc3923a0b01cdeeb4b0dc65b08842255f SHA512 f2f28905c01782a0432c9dfdb2f21054e0a4741ac4c5f26802d4b439d0172840aa215aba5dc7c9af62275dcc24de105674a3819384dc38246e43ce3e8263eb20
diff --git a/www-servers/h2o/h2o-2.2.6.ebuild b/www-servers/h2o/h2o-2.2.6.ebuild
new file mode 100644
index 00000000000..58660077497
--- /dev/null
+++ b/www-servers/h2o/h2o-2.2.6.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+CMAKE_MAKEFILE_GENERATOR="emake"
+SSL_DEPS_SKIP=1
+USE_RUBY="ruby24 ruby25 ruby26"
+
+inherit cmake-utils ruby-single ssl-cert systemd toolchain-funcs user
+
+DESCRIPTION="H2O - the optimized HTTP/1, HTTP/2 server"
+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="dev-lang/perl
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )"
+DEPEND="${RDEPEND}
+ mruby? (
+ ${RUBY_DEPS}
+ || (
+ dev-libs/onigmo
+ dev-libs/oniguruma
+ )
+ sys-devel/bison
+ virtual/pkgconfig
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.2-libressl-2.7.patch
+ "${FILESDIR}"/${PN}-2.2-mruby.patch
+)
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ local ruby="ruby"
+ if use mruby; then
+ for ruby in ${RUBY_TARGETS_PREFERENCE}; do
+ if has_version dev-lang/ruby:${ruby:4:1}.${ruby:5}; then
+ break
+ fi
+ ruby=
+ done
+ [[ -z ${ruby} ]] && die "no suitable ruby version found"
+ fi
+
+ sed -i \
+ -e "/INSTALL/s:\(/doc/${PN}\) :\1/html :" \
+ -e "/INSTALL/s:\(/doc\)/${PN}:\1/${PF}:" \
+ -e "s: ruby: ${ruby}:" \
+ CMakeLists.txt
+
+ sed -i "s:pkg-config:$(tc-getPKG_CONFIG):g" deps/mruby/lib/mruby/gem.rb
+ tc-export CC
+ export LD="$(tc-getCC)"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/${PN}
+ -DWITH_MRUBY=$(usex mruby)
+ -DWITHOUT_LIBS=ON
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ keepdir /var/www/localhost/htdocs
+
+ insinto /etc/${PN}
+ doins "${FILESDIR}"/${PN}.conf
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotate ${PN}
+
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ fperms 0750 /var/log/${PN}
+}
+
+pkg_postinst() {
+ if [[ ! -f "${EROOT}"etc/ssl/${PN}/server.key ]]; then
+ install_cert /etc/ssl/${PN}/server
+ chown ${PN}:${PN} "${EROOT}"etc/ssl/${PN}/server.*
+ fi
+}
next reply other threads:[~2019-10-03 12:19 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-03 12:19 Akinori Hattori [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-28 12:23 [gentoo-commits] repo/gentoo:master commit in: www-servers/h2o/ Arthur Zamarin
2025-05-28 12:23 Arthur Zamarin
2025-02-16 17:49 Arthur Zamarin
2025-02-16 9:37 Sam James
2025-02-16 8:54 Akinori Hattori
2024-11-16 14:02 Akinori Hattori
2024-11-16 14:02 Akinori Hattori
2024-11-16 14:02 Akinori Hattori
2024-06-05 19:59 Arthur Zamarin
2024-06-05 19:59 Arthur Zamarin
2024-01-08 12:28 Sam James
2023-10-22 13:44 Akinori Hattori
2023-03-18 2:21 Akinori Hattori
2022-12-07 17:57 Hans de Graaff
2022-08-06 0:45 Akinori Hattori
2021-10-30 7:16 Akinori Hattori
2021-10-30 7:16 Akinori Hattori
2021-07-23 20:37 Conrad Kostecki
2021-07-23 20:37 Conrad Kostecki
2021-05-02 20:26 Mikle Kolyada
2020-09-20 8:35 Michał Górny
2020-04-30 13:07 Akinori Hattori
2020-04-30 13:07 Akinori Hattori
2020-01-09 13:16 Akinori Hattori
2019-10-03 12:19 Akinori Hattori
2019-10-03 12:19 Akinori Hattori
2018-07-13 14:14 Akinori Hattori
2018-07-11 13:24 Akinori Hattori
2018-07-04 13:24 Akinori Hattori
2018-07-04 13:24 Akinori Hattori
2018-06-30 2:36 Akinori Hattori
2018-06-27 21:59 Patrice Clement
2018-05-24 5:20 Michał Górny
2018-04-29 7:35 Michał Górny
2017-12-20 19:31 Craig Andrews
2017-12-20 19:31 Craig Andrews
2017-10-27 21:02 Patrice Clement
2017-10-27 21:02 Patrice Clement
2017-10-27 21:02 Patrice Clement
2017-10-16 3:34 David Seifert
2017-08-27 15:36 Michael Palimaka
2017-07-30 9:44 Michał Górny
2017-07-20 21:43 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1570104757.bc673827475cbd91f15b5700e1c7f16a86fdd9b1.hattya@gentoo \
--to=hattya@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox