1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Dynamic web application server
8 HOMEPAGE= https://unit.nginx.org/
12 SITES[main]= https://unit.nginx.org/download/
13 DISTFILE[1]= unit-1.32.1.tar.gz:main
15 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= none
24 OPTIONS_STANDARD= none
26 BUILD_DEPENDS= php82:primary:standard
27 php81:primary:standard
28 php83:primary:standard
32 EXRUN[php81]= php81:primary:standard
33 EXRUN[php82]= php82:primary:standard
34 EXRUN[php83]= php83:primary:standard
35 EXRUN[unitpython]= python
38 USES= cpe pcre2 gettext perl:build python:build
42 LICENSE= APACHE20:unitd
43 LICENSE_TERMS= unitd:{{WRKSRC}}/NOTICE
44 LICENSE_FILE= APACHE20:{{WRKSRC}}/LICENSE
49 FPC_EQUIVALENT= www/unit
52 CONFIGURE_ARGS= --prefix={{PREFIX}}
53 --modulesdir={{PREFIX}}/libexec/unit/modules
54 --statedir={{PREFIX}}/libexec/unit
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"
63 PLIST_SUB= PY3VER={{PYTHON_VER}}
65 SUB_LIST= UNIT_PIDFILE=/var/log/nginx-unit/unit.log
66 UNIT_SOCK=/var/run/nginx-unit/control.unit.sock
70 ${REINPLACE_CMD} -e '/Werror/d' ${WRKSRC}/auto/cc/test
73 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/unitd
74 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/unit/modules/*.so
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 \
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.
98 This subpackage contains the Unit server.
101 [FILE:74:descriptions/desc.unitpython]
102 This subpackage contains NGINX Unit server module for the default python.
105 [FILE:72:descriptions/desc.unitperl]
106 This subpackage contains NGINX Unit server module for the default perl.
109 [FILE:67:descriptions/desc.php81]
110 This subpackage contains NGINX Unit server module for the PHP 8.1.
113 [FILE:67:descriptions/desc.php82]
114 This subpackage contains NGINX Unit server module for the PHP 8.2.
117 [FILE:67:descriptions/desc.php83]
118 This subpackage contains NGINX Unit server module for the PHP 8.3.
122 0e440ef63a3adf9400db978a64fc84e1eb8887f61a04ccff284c3f682fb83ea2 937669 unit-1.32.1.tar.gz
125 [FILE:87:manifests/plist.unitd]
127 share/man/man8/unitd.8.gz
128 @dir /var/log/nginx-unit
129 @dir /var/run/nginx-unit
132 [FILE:61:manifests/plist.unitpython]
133 libexec/unit/modules/python%%PY3VER%%.unit.%%SHARED_OBJECT%%
136 [FILE:61:manifests/plist.unitperl]
137 libexec/unit/modules/perl%%PERL_VER%%.unit.%%SHARED_OBJECT%%
140 [FILE:50:manifests/plist.php81]
141 libexec/unit/modules/php81.unit.%%SHARED_OBJECT%%
144 [FILE:50:manifests/plist.php82]
145 libexec/unit/modules/php82.unit.%%SHARED_OBJECT%%
148 [FILE:50:manifests/plist.php83]
149 libexec/unit/modules/php83.unit.%%SHARED_OBJECT%%
152 [FILE:405:patches/patch-auto_sendfile]
153 --- auto/sendfile.orig 2024-03-21 13:47:41 UTC
155 @@ -43,6 +43,10 @@ if [ $nxt_found = no ]; then
159 + #ifdef __DragonFly__
160 + #define SF_NODISKIO 0
168 [FILE:467:patches/patch-auto_shmem]
169 $NetBSD: patch-auto_shmem,v 1.1 2021/12/13 23:10:22 gutteridge Exp $
171 Fix sandboxed builds on NetBSD, where /var/shm typically doesn't exist.
173 --- auto/shmem.orig 2024-03-21 13:47:41 UTC
175 @@ -9,7 +9,11 @@ NXT_SHM_PREFIX="/"
177 nxt_feature="shm_open()"
178 nxt_feature_name=NXT_HAVE_SHM_OPEN
179 +if [ $NXT_SYSTEM = NetBSD ]; then
186 nxt_feature_test="#include <sys/mman.h>
189 [FILE:877:files/unitd.in]
193 # REQUIRE: LOGIN cleanvar
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
209 command="%%PREFIX%%/sbin/unitd"
210 start_precmd=start_precmd
220 : ${unitd_sockfile=""}
222 pidfile=${unit_pidfile:-"%%UNIT_PIDFILE%%"}
223 unitd_enable=${unitd_enable:-"NO"}
224 sockfile=${unitd_sockfile}
226 if [ x${sockfile} != "x" ]
228 command_args="--control ${sockfile}"