1 |
commit: cc3b9307cf79b2fad271ab018564f3a7af9eca26 |
2 |
Author: Ralph Seichter <github <AT> seichter <DOT> de> |
3 |
AuthorDate: Sat Oct 10 22:49:35 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 09:29:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc3b9307 |
7 |
|
8 |
www-servers/nginx-unit: Bump to version 1.20.0 |
9 |
|
10 |
NGINX Unit feature release 1.20.0. |
11 |
|
12 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
13 |
Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/17880 |
15 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
16 |
|
17 |
www-servers/nginx-unit/Manifest | 1 + |
18 |
www-servers/nginx-unit/nginx-unit-1.20.0.ebuild | 79 +++++++++++++++++++++++++ |
19 |
2 files changed, 80 insertions(+) |
20 |
|
21 |
diff --git a/www-servers/nginx-unit/Manifest b/www-servers/nginx-unit/Manifest |
22 |
index fe905a146f0..fb922e75b9e 100644 |
23 |
--- a/www-servers/nginx-unit/Manifest |
24 |
+++ b/www-servers/nginx-unit/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST nginx-unit-1.17.0.tar.gz 726928 BLAKE2B d171f2f818302cb0f491ccc3ca93596ee52817647cf1f2f176ebed075cb1dd5772f133d9e925075fe72d826a63b4c4debddace8784612196ebe6b6655d70571b SHA512 4175fc6dd84ad8a3bbdc117d3ce0c7a11c708a7a204ade0bb40f5606f6923e351bb1a8f1f8394c09cdf12fdc20bc927920412dc4b41d3141f76482db047c4bed |
27 |
DIST nginx-unit-1.18.0.tar.gz 742273 BLAKE2B d856aadb07286acb944a7bd486fc8c548db0412f8e4e2bec0382aa719d743ee22208c20ccf50466e3d592e29690abfacbfd6d4c44b1369bdc5a61ca2765bd3d2 SHA512 2beac69caeb09278a6c2cdafe20a8040e589f9ad6e302c896cd396ae7d576f563dd6a480f815b4a26d22e15592b5abcd927a8ba436517bd9b9bbb78bff3176ff |
28 |
+DIST nginx-unit-1.20.0.tar.gz 787607 BLAKE2B 7ef0ea98b0fa2b5af591763ed67c1a92c7309c8ea91b29bfb3d3e309149f9d563ff8a3cb0f19f52d9d53f05a56c2a6f0e3c07e7b8315106911a87bc01f9d3af3 SHA512 dd68103795acbdcd87a951c92c72f3cb74b5e622eca4e687194508b55a592ac4312de3a8ff7ddb9a5df9750363b24dca9e1b48c7ef42c78aca3a18aca6a51f42 |
29 |
|
30 |
diff --git a/www-servers/nginx-unit/nginx-unit-1.20.0.ebuild b/www-servers/nginx-unit/nginx-unit-1.20.0.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..ac0c6c8fc95 |
33 |
--- /dev/null |
34 |
+++ b/www-servers/nginx-unit/nginx-unit-1.20.0.ebuild |
35 |
@@ -0,0 +1,79 @@ |
36 |
+# Copyright 1999-2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+PYTHON_COMPAT=(python3_{6,7,8}) |
42 |
+ |
43 |
+inherit flag-o-matic python-single-r1 toolchain-funcs |
44 |
+ |
45 |
+MY_P="unit-${PV}" |
46 |
+DESCRIPTION="Dynamic web and application server" |
47 |
+HOMEPAGE="https://unit.nginx.org" |
48 |
+SRC_URI="https://unit.nginx.org/download/${MY_P}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+MY_USE="perl python ruby" |
54 |
+MY_USE_PHP="php7-2 php7-3 php7-4" |
55 |
+IUSE="${MY_USE} ${MY_USE_PHP} ssl" |
56 |
+REQUIRED_USE="|| ( ${IUSE} ) |
57 |
+ python? ( ${PYTHON_REQUIRED_USE} )" |
58 |
+ |
59 |
+DEPEND="perl? ( dev-lang/perl:= ) |
60 |
+ php7-2? ( dev-lang/php:7.2[embed] ) |
61 |
+ php7-3? ( dev-lang/php:7.3[embed] ) |
62 |
+ php7-4? ( dev-lang/php:7.4[embed] ) |
63 |
+ python? ( ${PYTHON_DEPS} ) |
64 |
+ ruby? ( dev-lang/ruby:* ) |
65 |
+ ssl? ( dev-libs/openssl:0 )" |
66 |
+RDEPEND="${DEPEND}" |
67 |
+S="${WORKDIR}/${MY_P}" |
68 |
+ |
69 |
+pkg_setup() { |
70 |
+ use python && python-single-r1_pkg_setup |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ eapply_user |
75 |
+ sed -i '/^CFLAGS/d' auto/make || die |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ local opt=( |
80 |
+ --control=unix:/run/${PN}.sock |
81 |
+ --log=/var/log/${PN} |
82 |
+ --modules=$(get_libdir)/${PN} |
83 |
+ --pid=/run/${PN}.pid |
84 |
+ --prefix=/usr |
85 |
+ --state=/var/lib/${PN} |
86 |
+ ) |
87 |
+ use ssl && opt+=( --openssl ) |
88 |
+ export AR="$(tc-getAR)" |
89 |
+ export CC="$(tc-getCC)" |
90 |
+ ./configure ${opt[@]} --ld-opt="${LDFLAGS}" || die "Core configuration failed" |
91 |
+ # Modules require position-independent code |
92 |
+ append-cflags $(test-flags-CC -fPIC) |
93 |
+ for flag in ${MY_USE} ; do |
94 |
+ if use ${flag} ; then |
95 |
+ ./configure ${flag} || die "Module configuration failed: ${flag}" |
96 |
+ fi |
97 |
+ done |
98 |
+ for flag in ${MY_USE_PHP} ; do |
99 |
+ if use ${flag} ; then |
100 |
+ local php_slot="/usr/$(get_libdir)/${flag/-/.}" |
101 |
+ ./configure php \ |
102 |
+ --module=${flag} \ |
103 |
+ --config=${php_slot}/bin/php-config \ |
104 |
+ --lib-path=${php_slot}/$(get_libdir) || die "Module configuration failed: ${flag}" |
105 |
+ fi |
106 |
+ done |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ default |
111 |
+ diropts -m 0770 |
112 |
+ keepdir /var/lib/${PN} |
113 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
114 |
+} |