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.28.0.tar.gz:main
15 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= none
24 OPTIONS_STANDARD= none
26 BUILD_DEPENDS= php74:single:standard
29 EXRUN[php80]= php80:single:standard
30 EXRUN[php81]= php81:single:standard
31 EXRUN[php74]= php74:single:standard
35 USES= cpe perl:build python:build
39 LICENSE= APACHE20:unitd
40 LICENSE_TERMS= unitd:{{WRKSRC}}/NOTICE
41 LICENSE_FILE= APACHE20:{{WRKSRC}}/LICENSE
46 FPC_EQUIVALENT= www/unit
49 CONFIGURE_ARGS= --prefix={{PREFIX}}
50 --modules=libexec/unit/modules
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"
59 PLIST_SUB= PY3VER={{PYTHON_VER}}
61 SUB_LIST= UNIT_PIDFILE=/var/log/nginx-unit/unit.log
62 UNIT_SOCK=/var/run/nginx-unit/control.unit.sock
66 ${REINPLACE_CMD} -e '/Werror/d' ${WRKSRC}/auto/cc/test
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
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 \
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.
96 This subpackage contains the Unit server.
99 [FILE:74:descriptions/desc.python]
100 This subpackage contains NGINX Unit server module for the default python.
103 [FILE:72:descriptions/desc.perl]
104 This subpackage contains NGINX Unit server module for the default perl.
107 [FILE:67:descriptions/desc.php74]
108 This subpackage contains NGINX Unit server module for the PHP 7.4.
111 [FILE:67:descriptions/desc.php80]
112 This subpackage contains NGINX Unit server module for the PHP 8.0.
115 [FILE:67:descriptions/desc.php81]
116 This subpackage contains NGINX Unit server module for the PHP 8.1.
120 69779208ed2d1687b5d26f8c4e0f8460444eb285fb6ced2443652e0c584a80b0 878878 unit-1.28.0.tar.gz
123 [FILE:87:manifests/plist.unitd]
125 share/man/man8/unitd.8.gz
126 @dir /var/log/nginx-unit
127 @dir /var/run/nginx-unit
130 [FILE:61:manifests/plist.python]
131 libexec/unit/modules/python%%PY3VER%%.unit.%%SHARED_OBJECT%%
134 [FILE:61:manifests/plist.perl]
135 libexec/unit/modules/perl%%PERL_VER%%.unit.%%SHARED_OBJECT%%
138 [FILE:50:manifests/plist.php74]
139 libexec/unit/modules/php74.unit.%%SHARED_OBJECT%%
142 [FILE:50:manifests/plist.php80]
143 libexec/unit/modules/php80.unit.%%SHARED_OBJECT%%
146 [FILE:50:manifests/plist.php81]
147 libexec/unit/modules/php81.unit.%%SHARED_OBJECT%%
150 [FILE:401:patches/patch-auto_sendfile]
151 --- auto/sendfile.orig 2022-06-02 12:31:55 UTC
153 @@ -43,6 +43,10 @@ if [ $nxt_found = no ]; then
157 + #ifdef __DragonFly__
158 + #define SF_NODISKIO 0
166 [FILE:877:files/unitd.in]
170 # REQUIRE: LOGIN cleanvar
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
186 command="%%PREFIX%%/sbin/unitd"
187 start_precmd=start_precmd
197 : ${unitd_sockfile=""}
199 pidfile=${unit_pidfile:-"%%UNIT_PIDFILE%%"}
200 unitd_enable=${unitd_enable:-"NO"}
201 sockfile=${unitd_sockfile}
203 if [ x${sockfile} != "x" ]
205 command_args="--control ${sockfile}"