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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6E5D915800A for ; Sat, 12 Aug 2023 19:50:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B732F2BC016; Sat, 12 Aug 2023 19:50:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B7712BC016 for ; Sat, 12 Aug 2023 19:50:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A8DEB335C20 for ; Sat, 12 Aug 2023 19:50:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC2AFF37 for ; Sat, 12 Aug 2023 19:50:51 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1691869829.0b1298773148fd5ea26a6142c8e677735442500c.mpagano@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/nginx-unit/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/nginx-unit/nginx-unit-1.29.1-r1.ebuild X-VCS-Directories: www-servers/nginx-unit/ X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 0b1298773148fd5ea26a6142c8e677735442500c X-VCS-Branch: master Date: Sat, 12 Aug 2023 19:50:51 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2072bddd-0ddc-46fa-83ce-c6de3d9b3286 X-Archives-Hash: 59186b986ce68900c239e771bb27cbd2 commit: 0b1298773148fd5ea26a6142c8e677735442500c Author: Mike Pagano gentoo org> AuthorDate: Sat Aug 12 19:50:29 2023 +0000 Commit: Mike Pagano gentoo org> CommitDate: Sat Aug 12 19:50:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b129877 www-servers/nginx-unit: Remove masked php7.4 dependency Signed-off-by: Mike Pagano gentoo.org> www-servers/nginx-unit/nginx-unit-1.29.1-r1.ebuild | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/www-servers/nginx-unit/nginx-unit-1.29.1-r1.ebuild b/www-servers/nginx-unit/nginx-unit-1.29.1-r1.ebuild new file mode 100644 index 000000000000..af289a79a2ce --- /dev/null +++ b/www-servers/nginx-unit/nginx-unit-1.29.1-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit flag-o-matic python-single-r1 systemd toolchain-funcs + +MY_P="unit-${PV}" +DESCRIPTION="Dynamic web and application server" +HOMEPAGE="https://unit.nginx.org" +SRC_URI="https://unit.nginx.org/download/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +MY_USE="perl python ruby" +MY_USE_PHP="php8-0 php8-1 " +IUSE="${MY_USE} ${MY_USE_PHP} ssl" +REQUIRED_USE="|| ( ${IUSE} ) + python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND="perl? ( dev-lang/perl:= ) + php8-0? ( dev-lang/php:8.0[embed] ) + php8-1? ( dev-lang/php:8.1[embed] ) + python? ( ${PYTHON_DEPS} ) + ruby? ( + dev-lang/ruby:= + dev-ruby/rubygems:= + ) + ssl? ( dev-libs/openssl:0= ) + virtual/libcrypt:0=" +RDEPEND="${DEPEND} + acct-user/nginx-unit + acct-group/nginx-unit" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + eapply_user + sed -i '/^CFLAGS/d' auto/make || die + default +} + +src_configure() { + local opt=( + --control=unix:/run/${PN}.sock + --log=/var/log/${PN} + --modules=$(get_libdir)/${PN} + --pid=/run/${PN}.pid + --prefix=/usr + --state=/var/lib/${PN} + --user=${PN} + --group=${PN} + ) + + use ssl && opt+=( --openssl ) + export AR="$(tc-getAR)" + export CC="$(tc-getCC)" + ./configure ${opt[@]} --ld-opt="${LDFLAGS}" || die "Core configuration failed" + + # Modules require position-independent code + append-cflags $(test-flags-CC -fPIC) + + for flag in ${MY_USE} ; do + if use ${flag} ; then + ./configure ${flag} || die "Module configuration failed: ${flag}" + fi + done + + for flag in ${MY_USE_PHP} ; do + if use ${flag} ; then + local php_slot="/usr/$(get_libdir)/${flag/-/.}" + ./configure php \ + --module=${flag} \ + --config=${php_slot}/bin/php-config \ + --lib-path=${php_slot}/$(get_libdir) || die "Module configuration failed: ${flag}" + fi + done +} + +src_install() { + default + + diropts -m 0770 + keepdir /var/lib/${PN} + newinitd "${FILESDIR}/${PN}.initd-r1" ${PN} + newconfd "${FILESDIR}"/nginx-unit.confd nginx-unit + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service +}