Ravenports generated: 17 Sep 2022 15:25
[ravenports.git] / bucket_9D / nginx-unit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               nginx-unit
4 VERSION=                1.28.0
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.28.0.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         unitd
17                         python
18                         perl
19                         php74
20                         php80
21                         php81
22
23 OPTIONS_AVAILABLE=      none
24 OPTIONS_STANDARD=       none
25
26 BUILD_DEPENDS=          php74:single:standard
27                         php81:single:standard
28                         php80:single:standard
29 EXRUN[php80]=           php80:single:standard
30 EXRUN[php81]=           php81:single:standard
31 EXRUN[php74]=           php74:single:standard
32 EXRUN[python]=          python
33 EXRUN[perl]=            perl
34
35 USES=                   cpe perl:build python:build
36
37 DISTNAME=               unit-1.28.0
38
39 LICENSE=                APACHE20:unitd
40 LICENSE_TERMS=          unitd:{{WRKSRC}}/NOTICE
41 LICENSE_FILE=           APACHE20:{{WRKSRC}}/LICENSE
42 LICENSE_SCHEME=         solo
43
44 CPE_PRODUCT=            unit
45 CPE_VENDOR=             nginx
46 FPC_EQUIVALENT=         www/unit
47
48 MUST_CONFIGURE=         yes
49 CONFIGURE_ARGS=         --prefix={{PREFIX}}
50                         --modules=libexec/unit/modules
51                         --state=libexec/unit
52                         --log=/var/log/nginx-unit/unit.log
53                         --pid=/var/run/nginx-unit/unit.pid
54                         --control=unix:/var/run/nginx-unit/control.unit.sock
55                         --ld-opt="-L{{LOCALBASE}}/lib -Wl,-rpath,{{LOCALBASE}}/lib"
56
57 SINGLE_JOB=             yes
58
59 PLIST_SUB=              PY3VER={{PYTHON_VER}}
60 RC_SUBR=                unitd:unitd
61 SUB_LIST=               UNIT_PIDFILE=/var/log/nginx-unit/unit.log
62                         UNIT_SOCK=/var/run/nginx-unit/control.unit.sock
63
64 post-patch:
65         # disable Werror
66         ${REINPLACE_CMD} -e '/Werror/d' ${WRKSRC}/auto/cc/test
67
68 post-install:
69         ${MKDIR} ${STAGEDIR}/var/log/nginx-unit
70         ${MKDIR} ${STAGEDIR}/var/run/nginx-unit
71         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/unitd
72         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/unit/modules/*.so
73
74 post-configure:
75         (cd ${CONFIGURE_WRKSRC} \
76           && ./configure python --config=python${PYTHON_VER}-config \
77           && ./configure perl --module=perl${PERL_VER} \
78           && ./configure php --module=php74\
79                         --config=php-config74\
80                         --lib-path=${PREFIX}/lib/php74 \
81           && ./configure php --module=php80\
82                         --config=php-config80\
83                         --lib-path=${PREFIX}/lib/php80 \
84           && ./configure php --module=php81\
85                         --config=php-config81\
86                         --lib-path=${PREFIX}/lib/php81 \
87         )
88
89 [FILE:337:descriptions/desc.unitd]
90 NGINX Unit is a dynamic web application server, designed to run
91 applications in multiple languages. Unit is lightweight, polyglot, and
92 dynamically configured via API. The design of the server allows
93 reconfiguration of specific application parameters as needed by the
94 engineering or operations.
95
96 This subpackage contains the Unit server.
97
98
99 [FILE:74:descriptions/desc.python]
100 This subpackage contains NGINX Unit server module for the default python.
101
102
103 [FILE:72:descriptions/desc.perl]
104 This subpackage contains NGINX Unit server module for the default perl.
105
106
107 [FILE:67:descriptions/desc.php74]
108 This subpackage contains NGINX Unit server module for the PHP 7.4.
109
110
111 [FILE:67:descriptions/desc.php80]
112 This subpackage contains NGINX Unit server module for the PHP 8.0.
113
114
115 [FILE:67:descriptions/desc.php81]
116 This subpackage contains NGINX Unit server module for the PHP 8.1.
117
118
119 [FILE:97:distinfo]
120 69779208ed2d1687b5d26f8c4e0f8460444eb285fb6ced2443652e0c584a80b0       878878 unit-1.28.0.tar.gz
121
122
123 [FILE:87:manifests/plist.unitd]
124 sbin/unitd
125 share/man/man8/unitd.8.gz
126 @dir /var/log/nginx-unit
127 @dir /var/run/nginx-unit
128
129
130 [FILE:61:manifests/plist.python]
131 libexec/unit/modules/python%%PY3VER%%.unit.%%SHARED_OBJECT%%
132
133
134 [FILE:61:manifests/plist.perl]
135 libexec/unit/modules/perl%%PERL_VER%%.unit.%%SHARED_OBJECT%%
136
137
138 [FILE:50:manifests/plist.php74]
139 libexec/unit/modules/php74.unit.%%SHARED_OBJECT%%
140
141
142 [FILE:50:manifests/plist.php80]
143 libexec/unit/modules/php80.unit.%%SHARED_OBJECT%%
144
145
146 [FILE:50:manifests/plist.php81]
147 libexec/unit/modules/php81.unit.%%SHARED_OBJECT%%
148
149
150 [FILE:401:patches/patch-auto_sendfile]
151 --- auto/sendfile.orig  2022-06-02 12:31:55 UTC
152 +++ auto/sendfile
153 @@ -43,6 +43,10 @@ if [ $nxt_found = no ]; then
154                        #include <sys/uio.h>
155                        #include <stdlib.h>
156  
157 +                      #ifdef __DragonFly__
158 +                      #define SF_NODISKIO 0
159 +                      #endif
160 +
161                        int main() {
162                            off_t  sent;
163  
164
165
166 [FILE:877:files/unitd.in]
167 #!/bin/sh
168 #
169 # PROVIDE: unitd
170 # REQUIRE: LOGIN cleanvar
171 # KEYWORD: shutdown
172
173 #
174 # Add the following lines to /etc/rc.conf to enable nginx:
175 # unitd_enable (bool):          Set to "NO" by default.
176 #                               Set it to "YES" to enable unit
177 # unitd_sockfile (str):         Set to "" by default.
178 #                               Set it to "127.0.0.1:8443" to enable the unit control
179 #                               socket on the network address
180
181 . /etc/rc.subr
182
183 name="unitd"
184 rcvar=unitd_enable
185
186 command="%%PREFIX%%/sbin/unitd"
187 start_precmd=start_precmd
188
189 start_precmd()
190 {
191     rm -f %%UNIT_SOCK%%
192 }
193
194 load_rc_config $name
195
196 # Default value
197 : ${unitd_sockfile=""}
198
199 pidfile=${unit_pidfile:-"%%UNIT_PIDFILE%%"}
200 unitd_enable=${unitd_enable:-"NO"}
201 sockfile=${unitd_sockfile}
202
203 if [ x${sockfile} != "x" ]
204 then
205     command_args="--control ${sockfile}"
206 fi
207
208 run_rc_command "$1"
209