diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-28 04:02:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-28 04:02:51 +0000 |
commit | 87f37a073fb5c2e1f6ebc780e60cdbdd2c583860 (patch) | |
tree | 9872190e1841d9f126084652bf3b6b2687c6f1bb /www-servers | |
parent | a87296ad796f00f3bba27339f6efe11b9a384e23 (diff) |
gentoo auto-resync : 28:02:2023 - 04:02:51
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/Manifest.gz | bin | 4534 -> 4541 bytes | |||
-rw-r--r-- | www-servers/nginx-unit/Manifest | 2 | ||||
-rw-r--r-- | www-servers/nginx-unit/files/nginx-unit.initd-r1 | 16 | ||||
-rw-r--r-- | www-servers/nginx-unit/nginx-unit-1.29.0-r1.ebuild | 98 |
4 files changed, 116 insertions, 0 deletions
diff --git a/www-servers/Manifest.gz b/www-servers/Manifest.gz Binary files differindex 063f33693f43..b5d4c44c7b24 100644 --- a/www-servers/Manifest.gz +++ b/www-servers/Manifest.gz diff --git a/www-servers/nginx-unit/Manifest b/www-servers/nginx-unit/Manifest index 7cc3a7faa8e7..3d9cdcb5d2c1 100644 --- a/www-servers/nginx-unit/Manifest +++ b/www-servers/nginx-unit/Manifest @@ -1,5 +1,7 @@ AUX nginx-unit.initd 291 BLAKE2B e0d8b4bbdd9d57214551f4257b95271210a942fed747797f102b7932323b9bcbe871d9fd7cd0e8dee81eca2b41f21d5118a7f4f31c3fe6cbe18c1df09b164be0 SHA512 1212b49a56e4318476d051f8a3a82c6bb65f55adadd2dc51e3e91100823f6bdd8f82f162041db92fbc4f1a777cdafd22c32efce121a57f5d6eb3f5883da1abaa +AUX nginx-unit.initd-r1 358 BLAKE2B 8a7e42d830f69ea70db4e647dac6680bf1b25915f5f49e3bf1920c093ca9c93ffda6e0e3d926471cefb9fd989ca1b864715f6f10e38593cbf3975926450c363d SHA512 21719123fe61af68ee5750df71a93d5066dd82e0a2fbae7edf7a9bed1eccacb8cc56040d4a4e7496c1195ad23780df8d680177a181d68f208d0b670b6ff21f4c AUX nginx-unit.service 237 BLAKE2B 7e8b373372b7908bee80f4a57718a6b9ef7fd99872057006377284fb3bda088a0b6720b0246e5a27b6853d6351244432482f12afe5758b0f36dbdd1c04cce118 SHA512 fdf7ec12f58064c9a9fbd431fc4f56699563ff6bbf8124195810ca7a2e0ed813dbfdc41e6e1455b12960bd8d96fcf0eb2b632243d71d6a3b74d93a263c11596d DIST nginx-unit-1.29.0.tar.gz 903909 BLAKE2B d9e2544ce7ffb4f9a510afaef2ddbf54a4482558d0cd3dd526c1371413e32fc72e848c95d3866928c1accc19bc2aecdb4c26b6907bfa57c382db53cc2f9fad3e SHA512 6b0a6718be5c3312f5e17fc39ae35ca849049c97d29c63a7effda7f994274af29eed88970389bb3010a2103c431e69920c951de5004853004d1aa604d868bd9f +EBUILD nginx-unit-1.29.0-r1.ebuild 2233 BLAKE2B c83b1105382004ca6e0f3f49f2a7bad0b57bc250d27774b55c9c1826ea6494603539c7b3e62226255bac81ea4bc21086a810dde45bec1db61d15c0d26b60b5f2 SHA512 c041b12dc52c8a4040c86791e09c2c0fea378b0649444663e08054ebcad951b19d199841387e997d21fd1036411b815847926bbbc9d320a9d6c4575343ef887e EBUILD nginx-unit-1.29.0.ebuild 2084 BLAKE2B 19e9e6168c0fd1872f18970865f5ff2f3d271e7ed0dce4f82c65db3f427e36399b2bca565734e6d999106fcec423e11fa434b69afddedd694d56b7a0a6401bac SHA512 6bf62218235d83f3e8f6b0cfaff4778c30c4618acd0ba6782979ecaddc73734c8ed87355930e780f8dfce1c1cc5c59098fdbc7a1ba78f2bfbce025a3ac84e986 MISC metadata.xml 830 BLAKE2B 9ff8b1d0525b28b0310f0de99abb99f1bff74a5effbc1bc3bf991e338a3f201a947fdc1687433ab0e9b6849c14feeaed2b5fdd8ba770fafa62f00f18158bbc60 SHA512 9fc506c23c1f5031774cb74823d8a5090dc8920f0e6e7e22bb2e46ae6df4e9705fa65033b57c5452310ba342ea520757a5f14bf9d1828b47101a2d5382ea1c57 diff --git a/www-servers/nginx-unit/files/nginx-unit.initd-r1 b/www-servers/nginx-unit/files/nginx-unit.initd-r1 new file mode 100644 index 000000000000..a9ad47834899 --- /dev/null +++ b/www-servers/nginx-unit/files/nginx-unit.initd-r1 @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/unitd" +pidfile="/run/nginx-unit.pid" +user=${NXT_USER:-nginx-unit} +group=${NXT_GROUP:-nginx-unit} + +depend() { + use dns logger netmount +} + +start_pre() { + checkpath -d /var/lib/nginx-unit -o ${user}:${group} -m 0770 +} diff --git a/www-servers/nginx-unit/nginx-unit-1.29.0-r1.ebuild b/www-servers/nginx-unit/nginx-unit-1.29.0-r1.ebuild new file mode 100644 index 000000000000..2b5fa3f6a04f --- /dev/null +++ b/www-servers/nginx-unit/nginx-unit-1.29.0-r1.ebuild @@ -0,0 +1,98 @@ +# 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="php7-4 php8-0 php8-1 " +IUSE="${MY_USE} ${MY_USE_PHP} ssl" +REQUIRED_USE="|| ( ${IUSE} ) + python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND="perl? ( dev-lang/perl:= ) + php7-4? ( dev-lang/php:7.4[embed] ) + 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} + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service +} + +pkg_postinst() { + chown ${PN}:${PN} "${EROOT}"/var/lib/nginx-unit +} |