1 |
commit: 45c246558a1abfd8c5fdb2b51d00b33faf1a0d81 |
2 |
Author: Ralph Seichter <github <AT> seichter <DOT> de> |
3 |
AuthorDate: Mon Jul 16 10:57:14 2018 +0000 |
4 |
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 17 17:14:24 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45c24655 |
7 |
|
8 |
www-servers/nginx-unit: New package, by Ralph Seichter. |
9 |
|
10 |
NGINX Unit is a dynamic web and application server, designed to run |
11 |
applications in multiple languages. Unit is lightweight, polyglot, |
12 |
and dynamically configured via API. The design of the server allows |
13 |
reconfiguration of specific application parameters as needed by the |
14 |
engineering or operations. (Source: http://unit.nginx.org/) |
15 |
|
16 |
Bug: https://bugs.gentoo.org/661074 |
17 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/9249 |
19 |
Closes: https://bugs.gentoo.org/661074 |
20 |
|
21 |
www-servers/nginx-unit/Manifest | 1 + |
22 |
www-servers/nginx-unit/files/nginx-unit.initd | 14 ++++++++++ |
23 |
www-servers/nginx-unit/metadata.xml | 22 +++++++++++++++ |
24 |
www-servers/nginx-unit/nginx-unit-1.3.ebuild | 39 +++++++++++++++++++++++++++ |
25 |
4 files changed, 76 insertions(+) |
26 |
|
27 |
diff --git a/www-servers/nginx-unit/Manifest b/www-servers/nginx-unit/Manifest |
28 |
new file mode 100644 |
29 |
index 00000000000..9faa8c2bda7 |
30 |
--- /dev/null |
31 |
+++ b/www-servers/nginx-unit/Manifest |
32 |
@@ -0,0 +1 @@ |
33 |
+DIST nginx-unit-1.3.tar.gz 401670 BLAKE2B 34a0ed9631c7061d1c71f8335103b0e266ef6f949afeb8cef283a7b5dd6c9f0a4835f20fdedd091af6950cd0897cb1ab48dea9f475e1b75a2872da7ac0090d10 SHA512 63a47b920bfdae7a7e034d616f520b27b46151a299cf5854373f7f8472043de0ffc98f9d62317c46e637857e0ef24668ded99be6e058315acf25b4e1c7f1ed09 |
34 |
|
35 |
diff --git a/www-servers/nginx-unit/files/nginx-unit.initd b/www-servers/nginx-unit/files/nginx-unit.initd |
36 |
new file mode 100755 |
37 |
index 00000000000..23720abcc1e |
38 |
--- /dev/null |
39 |
+++ b/www-servers/nginx-unit/files/nginx-unit.initd |
40 |
@@ -0,0 +1,14 @@ |
41 |
+#!/sbin/openrc-run |
42 |
+# Copyright 1999-2018 Gentoo Foundation |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+command="/usr/sbin/unitd" |
46 |
+pidfile="/run/nginx-unit.pid" |
47 |
+ |
48 |
+depend() { |
49 |
+ use dns logger netmount |
50 |
+} |
51 |
+ |
52 |
+start_pre() { |
53 |
+ checkpath -d /var/lib/nginx-unit -o root:root 0770 |
54 |
+} |
55 |
|
56 |
diff --git a/www-servers/nginx-unit/metadata.xml b/www-servers/nginx-unit/metadata.xml |
57 |
new file mode 100644 |
58 |
index 00000000000..7660440b3f5 |
59 |
--- /dev/null |
60 |
+++ b/www-servers/nginx-unit/metadata.xml |
61 |
@@ -0,0 +1,22 @@ |
62 |
+<?xml version="1.0" encoding="UTF-8"?> |
63 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
64 |
+<pkgmetadata> |
65 |
+ <maintainer type="person"> |
66 |
+ <email>gentoo@××××××××.de</email> |
67 |
+ <name>Ralph Seichter</name> |
68 |
+ </maintainer> |
69 |
+ <maintainer type="project"> |
70 |
+ <email>proxy-maint@g.o</email> |
71 |
+ <name>Proxy Maintainers</name> |
72 |
+ </maintainer> |
73 |
+ <longdescription> |
74 |
+ NGINX Unit is a dynamic web and application server, designed to run |
75 |
+ applications in multiple languages. Unit is lightweight, polyglot, and |
76 |
+ dynamically configured via API. The design of the server allows |
77 |
+ reconfiguration of specific application parameters as needed by the |
78 |
+ engineering or operations. |
79 |
+ </longdescription> |
80 |
+ <upstream> |
81 |
+ <remote-id type="github">nginx/unit</remote-id> |
82 |
+ </upstream> |
83 |
+</pkgmetadata> |
84 |
|
85 |
diff --git a/www-servers/nginx-unit/nginx-unit-1.3.ebuild b/www-servers/nginx-unit/nginx-unit-1.3.ebuild |
86 |
new file mode 100644 |
87 |
index 00000000000..da3e472ba88 |
88 |
--- /dev/null |
89 |
+++ b/www-servers/nginx-unit/nginx-unit-1.3.ebuild |
90 |
@@ -0,0 +1,39 @@ |
91 |
+# Copyright 1999-2018 Gentoo Foundation |
92 |
+# Distributed under the terms of the GNU General Public License v2 |
93 |
+ |
94 |
+EAPI=7 |
95 |
+ |
96 |
+DESCRIPTION="A dynamic web and application server" |
97 |
+HOMEPAGE="https://unit.nginx.org" |
98 |
+SRC_URI="https://unit.nginx.org/download/unit-${PV}.tar.gz -> ${P}.tar.gz" |
99 |
+LICENSE="Apache-2.0" |
100 |
+SLOT="0" |
101 |
+KEYWORDS="~amd64" |
102 |
+ |
103 |
+IUSE="perl python" |
104 |
+REQUIRED_USE="|| ( ${IUSE} )" |
105 |
+DEPEND="perl? ( dev-lang/perl:= ) |
106 |
+ python? ( dev-lang/python:= )" |
107 |
+RDEPEND="${DEPEND}" |
108 |
+S="${WORKDIR}/unit-${PV}" |
109 |
+ |
110 |
+src_configure() { |
111 |
+ ./configure \ |
112 |
+ --prefix=/usr \ |
113 |
+ --log=/var/log/${PN} \ |
114 |
+ --state=/var/lib/${PN} \ |
115 |
+ --pid=/run/${PN}.pid \ |
116 |
+ --control=unix:/run/${PN}.sock || die "Core configuration failed" |
117 |
+ for flag in ${IUSE} ; do |
118 |
+ if use ${flag} ; then |
119 |
+ ./configure ${flag} || die "Module configuration failed: ${flag}" |
120 |
+ fi |
121 |
+ done |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ default |
126 |
+ keepdir /var/lib/${PN} |
127 |
+ fperms 0770 /var/lib/${PN} |
128 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
129 |
+} |