Ravenports generated: 16 Apr 2024 22:24
[ravenports.git] / bucket_9D / nginx-unit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               nginx-unit
4 VERSION=                1.32.1
5 KEYWORDS=               www
6 VARIANTS=               standard
7 SDESC[standard]=        Dynamic web application server
8 HOMEPAGE=               https://unit.nginx.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://unit.nginx.org/download/
13 DISTFILE[1]=            unit-1.32.1.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         unitd
17                         unitpython
18                         unitperl
19                         php81
20                         php82
21                         php83
22
23 OPTIONS_AVAILABLE=      none
24 OPTIONS_STANDARD=       none
25
26 BUILD_DEPENDS=          php82:primary:standard
27                         php81:primary:standard
28                         php83:primary:standard
29                         php82:dev:standard
30                         php81:dev:standard
31                         php83:dev:standard
32 EXRUN[php81]=           php81:primary:standard
33 EXRUN[php82]=           php82:primary:standard
34 EXRUN[php83]=           php83:primary:standard
35 EXRUN[unitpython]=      python
36 EXRUN[unitperl]=        perl
37
38 USES=                   cpe pcre2 gettext perl:build python:build
39
40 DISTNAME=               unit-1.32.1
41
42 LICENSE=                APACHE20:unitd
43 LICENSE_TERMS=          unitd:{{WRKSRC}}/NOTICE
44 LICENSE_FILE=           APACHE20:{{WRKSRC}}/LICENSE
45 LICENSE_SCHEME=         solo
46
47 CPE_PRODUCT=            unit
48 CPE_VENDOR=             nginx
49 FPC_EQUIVALENT=         www/unit
50
51 MUST_CONFIGURE=         yes
52 CONFIGURE_ARGS=         --prefix={{PREFIX}}
53                         --modulesdir={{PREFIX}}/libexec/unit/modules
54                         --statedir={{PREFIX}}/libexec/unit
55                         --localstatedir=/var
56                         --runstatedir=/var/run/nginx-unit
57                         --logdir=/var/log/nginx-unit
58                         --control=unix:/var/run/nginx-unit/control.unit.sock
59                         --ld-opt="-L{{LOCALBASE}}/lib -Wl,-rpath,{{LOCALBASE}}/lib"
60
61 SINGLE_JOB=             yes
62
63 PLIST_SUB=              PY3VER={{PYTHON_VER}}
64 RC_SUBR=                unitd:unitd
65 SUB_LIST=               UNIT_PIDFILE=/var/log/nginx-unit/unit.log
66                         UNIT_SOCK=/var/run/nginx-unit/control.unit.sock
67
68 post-patch:
69         # disable Werror
70         ${REINPLACE_CMD} -e '/Werror/d' ${WRKSRC}/auto/cc/test
71
72 post-install:
73         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/unitd
74         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/unit/modules/*.so
75
76 post-configure:
77         (cd ${CONFIGURE_WRKSRC} \
78           && ./configure python --config=python${PYTHON_VER}-config \
79           && ./configure perl --module=perl${PERL_VER} \
80           && ./configure php --module=php82\
81                         --config=php-config82\
82                         --lib-path=${PREFIX}/lib/php82 \
83           && ./configure php --module=php83\
84                         --config=php-config83\
85                         --lib-path=${PREFIX}/lib/php83 \
86           && ./configure php --module=php81\
87                         --config=php-config81\
88                         --lib-path=${PREFIX}/lib/php81 \
89         )
90
91 [FILE:337:descriptions/desc.unitd]
92 NGINX Unit is a dynamic web application server, designed to run
93 applications in multiple languages. Unit is lightweight, polyglot, and
94 dynamically configured via API. The design of the server allows
95 reconfiguration of specific application parameters as needed by the
96 engineering or operations.
97
98 This subpackage contains the Unit server.
99
100
101 [FILE:74:descriptions/desc.unitpython]
102 This subpackage contains NGINX Unit server module for the default python.
103
104
105 [FILE:72:descriptions/desc.unitperl]
106 This subpackage contains NGINX Unit server module for the default perl.
107
108
109 [FILE:67:descriptions/desc.php81]
110 This subpackage contains NGINX Unit server module for the PHP 8.1.
111
112
113 [FILE:67:descriptions/desc.php82]
114 This subpackage contains NGINX Unit server module for the PHP 8.2.
115
116
117 [FILE:67:descriptions/desc.php83]
118 This subpackage contains NGINX Unit server module for the PHP 8.3.
119
120
121 [FILE:97:distinfo]
122 0e440ef63a3adf9400db978a64fc84e1eb8887f61a04ccff284c3f682fb83ea2       937669 unit-1.32.1.tar.gz
123
124
125 [FILE:87:manifests/plist.unitd]
126 sbin/unitd
127 share/man/man8/unitd.8.gz
128 @dir /var/log/nginx-unit
129 @dir /var/run/nginx-unit
130
131
132 [FILE:61:manifests/plist.unitpython]
133 libexec/unit/modules/python%%PY3VER%%.unit.%%SHARED_OBJECT%%
134
135
136 [FILE:61:manifests/plist.unitperl]
137 libexec/unit/modules/perl%%PERL_VER%%.unit.%%SHARED_OBJECT%%
138
139
140 [FILE:50:manifests/plist.php81]
141 libexec/unit/modules/php81.unit.%%SHARED_OBJECT%%
142
143
144 [FILE:50:manifests/plist.php82]
145 libexec/unit/modules/php82.unit.%%SHARED_OBJECT%%
146
147
148 [FILE:50:manifests/plist.php83]
149 libexec/unit/modules/php83.unit.%%SHARED_OBJECT%%
150
151
152 [FILE:405:patches/patch-auto_sendfile]
153 --- auto/sendfile.orig  2024-03-21 13:47:41 UTC
154 +++ auto/sendfile
155 @@ -43,6 +43,10 @@ if [ $nxt_found = no ]; then
156                        #include <sys/uio.h>
157                        #include <stdlib.h>
158  
159 +                      #ifdef __DragonFly__
160 +                      #define SF_NODISKIO 0
161 +                      #endif
162 +
163                        int main(void) {
164                            off_t  sent;
165  
166
167
168 [FILE:467:patches/patch-auto_shmem]
169 $NetBSD: patch-auto_shmem,v 1.1 2021/12/13 23:10:22 gutteridge Exp $
170
171 Fix sandboxed builds on NetBSD, where /var/shm typically doesn't exist.
172
173 --- auto/shmem.orig     2024-03-21 13:47:41 UTC
174 +++ auto/shmem
175 @@ -9,7 +9,11 @@ NXT_SHM_PREFIX="/"
176  
177  nxt_feature="shm_open()"
178  nxt_feature_name=NXT_HAVE_SHM_OPEN
179 +if [ $NXT_SYSTEM = NetBSD ]; then
180 +nxt_feature_run=no
181 +else
182  nxt_feature_run=yes
183 +fi
184  nxt_feature_incs=
185  nxt_feature_libs=
186  nxt_feature_test="#include <sys/mman.h>
187
188
189 [FILE:877:files/unitd.in]
190 #!/bin/sh
191 #
192 # PROVIDE: unitd
193 # REQUIRE: LOGIN cleanvar
194 # KEYWORD: shutdown
195
196 #
197 # Add the following lines to /etc/rc.conf to enable nginx:
198 # unitd_enable (bool):          Set to "NO" by default.
199 #                               Set it to "YES" to enable unit
200 # unitd_sockfile (str):         Set to "" by default.
201 #                               Set it to "127.0.0.1:8443" to enable the unit control
202 #                               socket on the network address
203
204 . /etc/rc.subr
205
206 name="unitd"
207 rcvar=unitd_enable
208
209 command="%%PREFIX%%/sbin/unitd"
210 start_precmd=start_precmd
211
212 start_precmd()
213 {
214     rm -f %%UNIT_SOCK%%
215 }
216
217 load_rc_config $name
218
219 # Default value
220 : ${unitd_sockfile=""}
221
222 pidfile=${unit_pidfile:-"%%UNIT_PIDFILE%%"}
223 unitd_enable=${unitd_enable:-"NO"}
224 sockfile=${unitd_sockfile}
225
226 if [ x${sockfile} != "x" ]
227 then
228     command_args="--control ${sockfile}"
229 fi
230
231 run_rc_command "$1"
232