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