Ravenports generated: 15 Feb 2023 23:13
[ravenports.git] / bucket_61 / php82
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php82
4 VERSION=                8.2.3
5 KEYWORDS=               lang www php
6 VARIANTS=               standard
7 SDESC[standard]=        PHP Hypertext Preprocessor version 8.2
8 HOMEPAGE=               https://php.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PHP/distributions
13 DISTFILE[1]=            php-8.2.3.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      CLI CGI FPM EMBED DEBUGGER
18 OPTIONS_STANDARD=       CLI CGI FPM EMBED DEBUGGER
19 OPTGROUP_RESTRICTED=    SAPI
20 OPTDESCR[SAPI]=         Server Application Programming Interface
21 OPTGROUP[SAPI]=         CLI CGI FPM DEBUGGER
22 OPT_ON[all]=            CLI CGI FPM EMBED DEBUGGER
23
24 BUILD_DEPENDS=          autoconf:single:standard
25 BUILDRUN_DEPENDS=       pcre2:primary:standard
26
27 USES=                   cpe gmake pkgconfig zlib
28 C_USES[darwin]=         iconv:build
29 GNOME_COMPONENTS=       libxml2
30
31 DISTNAME=               php-8.2.3
32
33 LICENSE=                CUSTOM1:single
34 LICENSE_NAME=           CUSTOM1:"PHP License v3.01"
35 LICENSE_FILE=           CUSTOM1:{{WRKSRC}}/LICENSE
36 LICENSE_SCHEME=         solo
37
38 CPE_PRODUCT=            php
39 FPC_EQUIVALENT=         lang/php82
40
41 MUST_CONFIGURE=         gnu
42 CONFIGURE_ARGS=         --with-layout=GNU
43                         --with-libxml
44                         --localstatedir=/var
45                         --with-config-file-scan-dir={{PREFIX}}/etc/php82
46                         --sysconfdir={{PREFIX}}/etc/php82
47                         --libdir={{PREFIX}}/lib/php82
48                         --datadir={{PREFIX}}/share/php82
49                         --disable-all
50                         --enable-mysqlnd
51                         --enable-maintainer-zts
52                         --program-suffix=82
53 CONFIGURE_ENV=          ac_cv_decimal_fp_supported="no"
54                         lt_cv_path_SED="sed"
55
56 DESTDIRNAME=            INSTALL_ROOT
57
58 PLIST_SUB=              SUFFIX=82
59                         SOMAJOR=8
60 RC_SUBR=                php82-fpm:single
61 SUB_LIST=               SUFFIX=82
62
63 [CLI].DESCRIPTION=                      Enable Command Line Interface SAPI
64 [CLI].CONFIGURE_ARGS_OFF=               --disable-cli
65 [CLI].MAKEFILE_ON=                      PHP_SAPI+=cli
66
67 [FPM].DESCRIPTION=                      Enable FastCGI Process Manager SAPI
68 [FPM].CONFIGURE_ARGS_ON=                --enable-fpm
69                                         --with-fpm-user={{WWWOWN}}
70                                         --with-fpm-group={{WWWGRP}}
71 [FPM].MAKEFILE_ON=                      PHP_SAPI+=fpm
72
73 [DEBUGGER].DESCRIPTION=                 Enable interactive debugger SAPI module support
74 [DEBUGGER].CONFIGURE_ENABLE_BOTH=       phpdbg
75 [DEBUGGER].MAKEFILE_ON=                 PHP_SAPI+=phpdbg
76
77 [CGI].DESCRIPTION=                      Enable Common Gateway Interface SAPI
78 [CGI].CONFIGURE_ARGS_OFF=               --disable-cgi
79 [CGI].MAKEFILE_ON=                      PHP_SAPI+=cgi
80
81 [EMBED].DESCRIPTION=                    Build embedded SAPI library
82 [EMBED].CONFIGURE_ARGS_ON=              --enable-embed
83 [EMBED].MAKEFILE_ON=                    PHP_SAPI+=embed
84
85 post-install-CLI-ON:
86         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/php82
87
88 post-patch:
89         ${TOUCH} ${WRKSRC}/ext/php_config.h
90         ${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
91         ${REINPLACE_CMD} -e "/phpincludedir =/ s|/php|/php82|" \
92                 ${WRKSRC}/scripts/Makefile.frag
93         ${REINPLACE_CMD} -e "/includedir=/ s|php|php82|" \
94                 ${WRKSRC}/scripts/phpize.in
95         ${REINPLACE_CMD} -e "/include_dir=/ s|php|php82|" \
96                 -e "/^ldflags=/ s|@PHP|-L${PREFIX}/lib/php82 @PHP|" \
97                 ${WRKSRC}/scripts/php-config.in
98         ${REINPLACE_CMD} -e "s|darwin|darwin-disable|" \
99                 ${WRKSRC}/sapi/cgi/config9.m4 \
100                 ${WRKSRC}/sapi/cli/config.m4 \
101                 ${WRKSRC}/sapi/fpm/config.m4
102
103 post-install-DEBUGGER-ON:
104         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/phpdbg82
105
106 post-patch-FPM-ON:
107         ${REINPLACE_CMD} -e "s|^;\(pid\)|\1|;s|^;\(pm\.[a-z_]*_servers\)|\1|" \
108                 ${WRKSRC}/sapi/fpm/php-fpm.conf.in
109
110 post-install:
111         @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php82
112         ${RM} -r ${STAGEDIR}/var
113         ${RM} -r ${STAGEDIR}${PREFIX}/include/php82/include
114         ${INSTALL_DATA} ${WRKSRC}/php.ini-development \
115                 ${WRKSRC}/php.ini-production \
116                 ${WRKDIR}/php.conf ${STAGEDIR}${PREFIX}/etc/php82
117
118 post-build:
119         ${ECHO_CMD} "PHP_VER=82" > ${WRKDIR}/php.conf
120         ${ECHO_CMD} "PHP_VERSION=8.2.3" >> ${WRKDIR}/php.conf
121         ${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
122         ${ECHO_CMD} "PHP_EXT_INC=hash json pcre spl" >> ${WRKDIR}/php.conf
123         ${SH} ${WRKSRC}/scripts/php-config --extension-dir | \
124                 ${SED} -ne 's,^${PREFIX}/lib/php82/,PHP_EXT_DIR=,p'\
125                 >> ${WRKDIR}/php.conf
126
127 post-install-EMBED-ON:
128         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libphp.so
129         ${MV} ${STAGEDIR}${PREFIX}/lib/libphp.so \
130                 ${STAGEDIR}${PREFIX}/lib/php82/
131
132 pre-configure:
133         (cd ${WRKSRC} && ${SETENV} MAKE=${MAKE_CMD} ./buildconf --force)
134
135 post-install-CGI-ON:
136         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/php-cgi82
137
138 post-install-FPM-ON:
139         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/php-fpm82
140
141 [FILE:679:descriptions/desc.single]
142 PHP is a widely-used open source general-purpose scripting language
143 that is especially suited for web development and can be embedded
144 into HTML. It is modular, and object-oriented. Much of its syntax
145 is borrowed from C, Java and Perl with a couple of unique PHP-specific
146 features thrown in.  The language is designed to allow web developers
147 to write dynamically generated pages quickly.
148
149 This package provides PHP version 7.3.x.  New feature added over
150 version 7.2.x include:
151
152  * Flexible Heredoc and Nowdoc Syntax
153  * PCRE2 Migration
154  * Multiple MBString Improvements
155  * LDAP Controls Support
156  * Improved FPM Logging
157  * Windows File Deletion Improvements
158  * Several Deprecations
159
160
161 [FILE:95:distinfo]
162 b9b566686e351125d67568a33291650eb8dfa26614d205d70d82e6e92613d457     12038240 php-8.2.3.tar.xz
163
164
165 [FILE:6443:manifests/plist.single]
166 %%CGI-ON%%bin/php-cgi%%SUFFIX%%
167 %%CGI-ON%%share/man/man1/php-cgi%%SUFFIX%%.1.gz
168 %%CLI-ON%%bin/php%%SUFFIX%%
169 %%CLI-ON%%include/php%%SUFFIX%%/sapi/cli/cli.h
170 %%CLI-ON%%share/man/man1/php%%SUFFIX%%.1.gz
171 %%DEBUGGER-ON%%bin/phpdbg%%SUFFIX%%
172 %%DEBUGGER-ON%%share/man/man1/phpdbg%%SUFFIX%%.1.gz
173 %%EMBED-ON%%include/php%%SUFFIX%%/sapi/embed/php_embed.h
174 %%EMBED-ON%%lib/php%%SUFFIX%%/libphp.%%SHARED_OBJECT%%
175 %%FPM-ON%%@sample etc/php%%SUFFIX%%/php-fpm.conf.default etc/php%%SUFFIX%%/php-fpm.conf
176 %%FPM-ON%%@sample etc/php%%SUFFIX%%/php-fpm.d/www.conf.default etc/php%%SUFFIX%%/php-fpm.d/www.conf
177 %%FPM-ON%%sbin/php-fpm%%SUFFIX%%
178 %%FPM-ON%%share/man/man8/php-fpm%%SUFFIX%%.8.gz
179 %%FPM-ON%%share/php%%SUFFIX%%/fpm/status.html
180 bin/
181  php-config%%SUFFIX%%
182  phpize%%SUFFIX%%
183 etc/php%%SUFFIX%%/
184  php.conf
185  php.ini-development
186  php.ini-production
187 include/php%%SUFFIX%%/TSRM/
188  TSRM.h
189  tsrm_win32.h
190 include/php%%SUFFIX%%/Zend/
191  zend.h
192  zend_API.h
193  zend_alloc.h
194  zend_alloc_sizes.h
195  zend_arena.h
196  zend_ast.h
197  zend_atomic.h
198  zend_attributes.h
199  zend_attributes_arginfo.h
200  zend_bitset.h
201  zend_build.h
202  zend_builtin_functions.h
203  zend_builtin_functions_arginfo.h
204  zend_closures.h
205  zend_closures_arginfo.h
206  zend_compile.h
207  zend_config.h
208  zend_config.w32.h
209  zend_constants.h
210  zend_constants_arginfo.h
211  zend_cpuinfo.h
212  zend_dtrace.h
213  zend_enum.h
214  zend_enum_arginfo.h
215  zend_errors.h
216  zend_exceptions.h
217  zend_exceptions_arginfo.h
218  zend_execute.h
219  zend_extensions.h
220  zend_fibers.h
221  zend_fibers_arginfo.h
222  zend_float.h
223  zend_gc.h
224  zend_gdb.h
225  zend_generators.h
226  zend_generators_arginfo.h
227  zend_globals.h
228  zend_globals_macros.h
229  zend_hash.h
230  zend_highlight.h
231  zend_inheritance.h
232  zend_ini.h
233  zend_ini_parser.h
234  zend_ini_scanner.h
235  zend_ini_scanner_defs.h
236  zend_interfaces.h
237  zend_interfaces_arginfo.h
238  zend_istdiostream.h
239  zend_iterators.h
240  zend_language_parser.h
241  zend_language_scanner.h
242  zend_language_scanner_defs.h
243  zend_list.h
244  zend_llist.h
245  zend_long.h
246  zend_map_ptr.h
247  zend_mmap.h
248  zend_modules.h
249  zend_multibyte.h
250  zend_multiply.h
251  zend_object_handlers.h
252  zend_objects.h
253  zend_objects_API.h
254  zend_observer.h
255  zend_operators.h
256  zend_portability.h
257  zend_ptr_stack.h
258  zend_range_check.h
259  zend_signal.h
260  zend_smart_str.h
261  zend_smart_str_public.h
262  zend_smart_string.h
263  zend_smart_string_public.h
264  zend_sort.h
265  zend_stack.h
266  zend_stream.h
267  zend_string.h
268  zend_strtod.h
269  zend_strtod_int.h
270  zend_system_id.h
271  zend_type_info.h
272  zend_types.h
273  zend_variables.h
274  zend_virtual_cwd.h
275  zend_vm.h
276  zend_vm_def.h
277  zend_vm_execute.h
278  zend_vm_handlers.h
279  zend_vm_opcodes.h
280  zend_vm_trace_handlers.h
281  zend_vm_trace_lines.h
282  zend_vm_trace_map.h
283  zend_weakrefs.h
284  zend_weakrefs_arginfo.h
285 include/php%%SUFFIX%%/Zend/Optimizer/
286  zend_call_graph.h
287  zend_cfg.h
288  zend_dfg.h
289  zend_dump.h
290  zend_func_info.h
291  zend_inference.h
292  zend_optimizer.h
293  zend_ssa.h
294 include/php%%SUFFIX%%/ext/date/php_date.h
295 include/php%%SUFFIX%%/ext/date/lib/
296  timelib.h
297  timelib_config.h
298 include/php%%SUFFIX%%/ext/hash/
299  php_hash.h
300  php_hash_adler32.h
301  php_hash_crc32.h
302  php_hash_fnv.h
303  php_hash_gost.h
304  php_hash_haval.h
305  php_hash_joaat.h
306  php_hash_md.h
307  php_hash_murmur.h
308  php_hash_ripemd.h
309  php_hash_sha.h
310  php_hash_sha3.h
311  php_hash_snefru.h
312  php_hash_tiger.h
313  php_hash_whirlpool.h
314  php_hash_xxhash.h
315 include/php%%SUFFIX%%/ext/json/
316  php_json.h
317  php_json_parser.h
318  php_json_scanner.h
319 include/php%%SUFFIX%%/ext/libxml/php_libxml.h
320 include/php%%SUFFIX%%/ext/mysqlnd/
321  config-win.h
322  mysql_float_to_double.h
323  mysqlnd.h
324  mysqlnd_alloc.h
325  mysqlnd_auth.h
326  mysqlnd_block_alloc.h
327  mysqlnd_charset.h
328  mysqlnd_commands.h
329  mysqlnd_connection.h
330  mysqlnd_debug.h
331  mysqlnd_enum_n_def.h
332  mysqlnd_ext_plugin.h
333  mysqlnd_libmysql_compat.h
334  mysqlnd_plugin.h
335  mysqlnd_portability.h
336  mysqlnd_priv.h
337  mysqlnd_protocol_frame_codec.h
338  mysqlnd_ps.h
339  mysqlnd_read_buffer.h
340  mysqlnd_result.h
341  mysqlnd_result_meta.h
342  mysqlnd_reverse_api.h
343  mysqlnd_statistics.h
344  mysqlnd_structs.h
345  mysqlnd_vio.h
346  mysqlnd_wireprotocol.h
347  php_mysqlnd.h
348 include/php%%SUFFIX%%/ext/pcre/php_pcre.h
349 include/php%%SUFFIX%%/ext/pcre/pcre2lib/
350  config.h
351  pcre2.h
352  pcre2_internal.h
353  pcre2_intmodedep.h
354  pcre2_jit_neon_inc.h
355  pcre2_jit_simd_inc.h
356  pcre2_ucp.h
357 include/php%%SUFFIX%%/ext/random/php_random.h
358 include/php%%SUFFIX%%/ext/spl/
359  php_spl.h
360  spl_array.h
361  spl_directory.h
362  spl_dllist.h
363  spl_engine.h
364  spl_exceptions.h
365  spl_fixedarray.h
366  spl_functions.h
367  spl_heap.h
368  spl_iterators.h
369  spl_observer.h
370 include/php%%SUFFIX%%/ext/standard/
371  base64.h
372  basic_functions.h
373  basic_functions_arginfo.h
374  crc32.h
375  crc32_x86.h
376  credits.h
377  credits_ext.h
378  credits_sapi.h
379  crypt_blowfish.h
380  crypt_freesec.h
381  css.h
382  datetime.h
383  dir_arginfo.h
384  dl.h
385  dl_arginfo.h
386  exec.h
387  file.h
388  file_arginfo.h
389  flock_compat.h
390  fsock.h
391  head.h
392  hrtime.h
393  html.h
394  html_tables.h
395  info.h
396  md5.h
397  pack.h
398  pageinfo.h
399  php_array.h
400  php_assert.h
401  php_browscap.h
402  php_crypt.h
403  php_crypt_r.h
404  php_dir.h
405  php_dns.h
406  php_ext_syslog.h
407  php_filestat.h
408  php_fopen_wrappers.h
409  php_http.h
410  php_image.h
411  php_incomplete_class.h
412  php_lcg.h
413  php_mail.h
414  php_math.h
415  php_mt_rand.h
416  php_net.h
417  php_password.h
418  php_rand.h
419  php_random.h
420  php_smart_string.h
421  php_smart_string_public.h
422  php_standard.h
423  php_string.h
424  php_uuencode.h
425  php_var.h
426  php_versioning.h
427  proc_open.h
428  quot_print.h
429  scanf.h
430  sha1.h
431  streamsfuncs.h
432  url.h
433  url_scanner_ex.h
434  user_filters_arginfo.h
435  winver.h
436 include/php%%SUFFIX%%/main/
437  SAPI.h
438  build-defs.h
439  fastcgi.h
440  fopen_wrappers.h
441  http_status_codes.h
442  php.h
443  php_compat.h
444  php_config.h
445  php_content_types.h
446  php_getopt.h
447  php_globals.h
448  php_ini.h
449  php_ini_builder.h
450  php_main.h
451  php_memory_streams.h
452  php_network.h
453  php_odbc_utils.h
454  php_open_temporary_file.h
455  php_output.h
456  php_reentrancy.h
457  php_scandir.h
458  php_streams.h
459  php_syslog.h
460  php_ticks.h
461  php_variables.h
462  php_version.h
463  rfc1867.h
464  snprintf.h
465  spprintf.h
466 include/php%%SUFFIX%%/main/streams/
467  php_stream_context.h
468  php_stream_filter_api.h
469  php_stream_glob_wrapper.h
470  php_stream_mmap.h
471  php_stream_plain_wrapper.h
472  php_stream_transport.h
473  php_stream_userspace.h
474  php_streams_int.h
475 lib/php%%SUFFIX%%/build/
476  Makefile.global
477  ax_check_compile_flag.m4
478  ax_gcc_func_attribute.m4
479  config.guess
480  config.sub
481  gen_stub.php
482  libtool.m4
483  ltmain.sh
484  php.m4
485  php_cxx_compile_stdcxx.m4
486  phpize.m4
487  pkg.m4
488  run-tests.php
489  shtool
490 share/man/man1/
491  php-config%%SUFFIX%%.1.gz
492  phpize%%SUFFIX%%.1.gz
493 @postexec touch %D/include/php%%SUFFIX%%/ext/php_config.h
494 @postunexec [ -s %D/include/php%%SUFFIX%%/ext/php_config.h ] || rm %D/include/php%%SUFFIX%%/ext/php_config.h
495
496
497 [FILE:1188:patches/patch-build_Makefile.global]
498 --- build/Makefile.global.orig  2023-01-31 13:31:55 UTC
499 +++ build/Makefile.global
500 @@ -92,14 +92,14 @@ test: all
501         @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
502                 INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
503                 if test "$$INI_FILE"; then \
504 -                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
505 +                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini || :; \
506                 else \
507                         echo > $(top_builddir)/tmp-php.ini; \
508                 fi; \
509                 INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
510                 if test "$$INI_SCANNED_PATH"; then \
511                         INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
512 -                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
513 +                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini || :; \
514                 fi; \
515                 TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
516                 TEST_PHP_SRCDIR=$(top_srcdir) \
517
518
519 [FILE:1146:patches/patch-configure.ac]
520 --- configure.ac.orig   2023-01-31 13:31:55 UTC
521 +++ configure.ac
522 @@ -55,6 +55,7 @@ AH_BOTTOM([
523  
524  #include <string.h>
525  
526 +#include <ext/php_config.h>
527  #endif /* PHP_CONFIG_H */
528  ])
529  
530 @@ -626,7 +627,7 @@ memrchr \
531  AX_FUNC_WHICH_GETHOSTBYNAME_R
532  
533  dnl Some systems (like OpenSolaris) do not have nanosleep in libc.
534 -PHP_CHECK_FUNC_LIB(nanosleep, rt)
535 +PHP_CHECK_FUNC(nanosleep, rt)
536  
537  dnl Haiku does not have network api in libc.
538  PHP_CHECK_FUNC_LIB(setsockopt, network)
539 @@ -1413,7 +1414,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfd
540  EXPANDED_DATADIR=$datadir
541  EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
542  EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
543 -INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
544 +INCLUDE_PATH=.:${prefix}/share/pear
545  
546  exec_prefix=$old_exec_prefix
547  libdir=$old_libdir
548 @@ -1638,7 +1639,7 @@ PHP_SUBST(all_targets)
549  PHP_SUBST(install_targets)
550  PHP_SUBST(install_binary_targets)
551  
552 -PHP_INSTALL_HEADERS([Zend/ TSRM/ include/ main/ main/streams/])
553 +PHP_INSTALL_HEADERS([Zend/ TSRM/ main/ main/streams/])
554  PHP_INSTALL_HEADERS([Zend/Optimizer], [ \
555      zend_call_graph.h \
556      zend_cfg.h \
557
558
559 [FILE:428:patches/patch-sapi_apache2handler_config.m4]
560 --- sapi/apache2handler/config.m4.orig  2023-01-31 13:31:55 UTC
561 +++ sapi/apache2handler/config.m4
562 @@ -64,7 +64,7 @@ if test "$PHP_APXS2" != "no"; then
563    fi
564  
565    APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
566 -  if test -z `$APXS -q SYSCONFDIR`; then
567 +  if true; then
568      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
569                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
570                         -i -n php"
571
572
573 [FILE:304:patches/patch-sapi_fpm_config.m4]
574 --- sapi/fpm/config.m4.orig     2023-01-31 13:31:55 UTC
575 +++ sapi/fpm/config.m4
576 @@ -339,7 +339,7 @@ AC_DEFUN([AC_FPM_LQ],
577      AC_MSG_RESULT([no])
578    ])
579  
580 -  if test "$have_lq" = "tcp_info"; then
581 +  if test "$have_lq" = "so_listenq"; then
582      AC_DEFINE([HAVE_LQ_TCP_INFO], 1, [do we have TCP_INFO?])
583    fi
584  
585
586
587 [FILE:470:patches/patch-sapi_fpm_fpm_fpm__unix.c]
588 --- sapi/fpm/fpm/fpm_unix.c.orig        2023-01-31 13:31:55 UTC
589 +++ sapi/fpm/fpm/fpm_unix.c
590 @@ -478,7 +478,7 @@ int fpm_unix_init_child(struct fpm_worke
591         }
592  #endif
593  
594 -#ifdef HAVE_PROCCTL
595 +#if defined(HAVE_PROCCTL) && defined(PROC_TRACE_CTL_ENABLE)
596         int dumpable = PROC_TRACE_CTL_ENABLE;
597         if (wp->config->process_dumpable && -1 == procctl(P_PID, getpid(), PROC_TRACE_CTL, &dumpable)) {
598                 zlog(ZLOG_SYSERROR, "[pool %s] failed to procctl(PROC_TRACE_CTL)", wp->config->name);
599
600
601 [FILE:954:patches/patch-sapi_fpm_www.conf.in]
602 --- sapi/fpm/www.conf.in.orig   2023-01-31 13:31:55 UTC
603 +++ sapi/fpm/www.conf.in
604 @@ -32,10 +32,14 @@ group = @php_fpm_group@
605  ; Valid syntaxes are:
606  ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
607  ;                            a specific port;
608 +;   '0.0.0.0:port'         - to listen on a TCP socket to all IPv4 addresses on
609 +;                            a specific port;
610  ;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
611  ;                            a specific port;
612  ;   'port'                 - to listen on a TCP socket to all addresses
613  ;                            (IPv6 and IPv4-mapped) on a specific port;
614 +;                            Note: IPv4-mapped addresses are disabled by-default in
615 +;                                  FreeBSD for security reasons;
616  ;   '/path/to/unix/socket' - to listen on a unix socket.
617  ; Note: This value is mandatory.
618  listen = 127.0.0.1:9000
619
620
621 [FILE:1394:files/php82-fpm.in]
622 #!/bin/sh
623 #
624
625 # PROVIDE: php%%SUFFIX%%-fpm
626 # REQUIRE: LOGIN
627 # KEYWORD: shutdown
628
629 #
630 # Add the following line to /etc/rc.conf to enable php-fpm:
631 # php%%SUFFIX%%_fpm_enable="YES"
632 #
633
634 . /etc/rc.subr
635
636 name="php%%SUFFIX%%_fpm"
637 rcvar=php%%SUFFIX%%_fpm_enable
638
639 start_precmd="php%%SUFFIX%%_fpm_prestart"
640 restart_precmd="php%%SUFFIX%%_fpm_checkconfig"
641 reload_precmd="php%%SUFFIX%%_fpm_checkconfig"
642 configtest_cmd="php%%SUFFIX%%_fpm_checkconfig"
643
644 load_rc_config "$name"
645
646 : ${php%%SUFFIX%%_fpm_enable="NO"}
647 : ${php%%SUFFIX%%_fpm_umask=""}
648
649 extra_commands="reload configtest logrotate"
650
651 command="%%PREFIX%%/sbin/php-fpm"
652 pidfile="/var/run/php-fpm.pid"
653 sig_stop="QUIT"
654 sig_reload="USR2"
655 logrotate_cmd="php%%SUFFIX%%_fpm_logrotate"
656
657 required_files="%%PREFIX%%/etc/php-fpm.conf"
658
659 php%%SUFFIX%%_fpm_logrotate() {
660         if [ -z "$rc_pid" ]; then
661                 _run_rc_notrunning
662                 return 1
663         fi
664         echo "Rotating logs $name."
665         kill -USR1 $rc_pid
666 }
667
668 php%%SUFFIX%%_fpm_checkconfig()
669 {
670         echo "Performing sanity check on php-fpm configuration:"
671         eval ${command} -t
672 }
673
674 php%%SUFFIX%%_fpm_prestart()
675 {
676         php%%SUFFIX%%_fpm_checkconfig
677         checkconfig=$?
678         if [ $checkconfig -ne 0  ]; then
679                 return $checkconfig
680         fi
681
682         if [ ! -z "$php%%SUFFIX%%_fpm_umask"  ]; then
683                 echo "Setting umask to: ${php%%SUFFIX%%_fpm_umask}"
684                 umask $php%%SUFFIX%%_fpm_umask
685         fi
686 }
687
688 run_rc_command "$1"
689