--- a/www-servers/nginx/nginx-1.15.5.ebuild
+++ b/www-servers/nginx/nginx-1.15.5.ebuild
@@ -195,6 +195,7 @@ SRC_URI="https://nginx.org/download/${P}.tar.gz
nginx_modules_http_vhost_traffic_status? ( ${HTTP_VHOST_TRAFFIC_STATUS_MODULE_URI} -> ${HTTP_VHOST_TRAFFIC_STATUS_MODULE_P}.tar.gz )
nginx_modules_stream_geoip2? ( ${GEOIP2_MODULE_URI} -> ${GEOIP2_MODULE_P}.tar.gz )
nginx_modules_stream_javascript? ( ${NJS_MODULE_URI} -> ${NJS_MODULE_P}.tar.gz )
+ https://www.openssl.org/source/openssl-1.1.1.tar.gz
rtmp? ( ${RTMP_MODULE_URI} -> ${RTMP_MODULE_P}.tar.gz )"
LICENSE="BSD-2 BSD SSLeay MIT GPL-2 GPL-2+
@@ -381,6 +382,8 @@ src_prepare() {
eapply "${FILESDIR}/${PN}-1.4.1-fix-perl-install-path.patch"
eapply "${FILESDIR}/${PN}-httpoxy-mitigation-r1.patch"
+ unpack openssl-1.1.1.tar.gz
+
if use nginx_modules_http_brotli; then
cd "${HTTP_BROTLI_MODULE_WD}" || die
eapply "${FILESDIR}"/http_brotli-detect-brotli-r1.patch
@@ -459,6 +462,8 @@ src_configure() {
use pcre-jit && myconf+=( --with-pcre-jit )
use threads && myconf+=( --with-threads )
+ myconf+=( --with-openssl=./openssl-1.1.1/ )
+
# HTTP modules
for mod in $NGINX_MODULES_STD; do
if use nginx_modules_http_${mod}; then