Ravenports generated: 11 Dec 2022 20:15
[ravenports.git] / bucket_90 / php81
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php81
4 VERSION=                8.1.13
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.13.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 BR_DEPS[darwin]=        libiconv:static:standard
27
28 USES=                   cpe gmake pkgconfig zlib
29 GNOME_COMPONENTS=       libxml2
30
31 DISTNAME=               php-8.1.13
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/php81
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/php81
46                         --sysconfdir={{PREFIX}}/etc/php81
47                         --libdir={{PREFIX}}/lib/php81
48                         --datadir={{PREFIX}}/share/php81
49                         --disable-all
50                         --enable-mysqlnd
51                         --enable-maintainer-zts
52                         --program-suffix=81
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=81
59                         SOMAJOR=8
60 RC_SUBR=                php81-fpm:single
61 SUB_LIST=               SUFFIX=81
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/php81
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|/php81|" \
92                 ${WRKSRC}/scripts/Makefile.frag
93         ${REINPLACE_CMD} -e "/includedir=/ s|php|php81|" \
94                 ${WRKSRC}/scripts/phpize.in
95         ${REINPLACE_CMD} -e "/include_dir=/ s|php|php81|" \
96                 -e "/^ldflags=/ s|@PHP|-L${PREFIX}/lib/php81 @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/phpdbg81
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/php81
112         ${RM} -r ${STAGEDIR}/var
113         ${RM} -r ${STAGEDIR}${PREFIX}/include/php81/include
114         ${INSTALL_DATA} ${WRKSRC}/php.ini-development \
115                 ${WRKSRC}/php.ini-production \
116                 ${WRKDIR}/php.conf ${STAGEDIR}${PREFIX}/etc/php81
117
118 post-build:
119         ${ECHO_CMD} "PHP_VER=81" > ${WRKDIR}/php.conf
120         ${ECHO_CMD} "PHP_VERSION=8.1.13" >> ${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/php81/,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/php81/
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-cgi81
137
138 post-install-FPM-ON:
139         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/php-fpm81
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:96:distinfo]
162 b15ef0ccdd6760825604b3c4e3e73558dcf87c75ef1d68ef4289d8fd261ac856     11802424 php-8.1.13.tar.xz
163
164
165 [FILE:6304: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_attributes.h
198  zend_attributes_arginfo.h
199  zend_bitset.h
200  zend_build.h
201  zend_builtin_functions.h
202  zend_builtin_functions_arginfo.h
203  zend_closures.h
204  zend_closures_arginfo.h
205  zend_compile.h
206  zend_config.h
207  zend_config.w32.h
208  zend_constants.h
209  zend_cpuinfo.h
210  zend_dtrace.h
211  zend_enum.h
212  zend_enum_arginfo.h
213  zend_errors.h
214  zend_exceptions.h
215  zend_exceptions_arginfo.h
216  zend_execute.h
217  zend_extensions.h
218  zend_fibers.h
219  zend_fibers_arginfo.h
220  zend_float.h
221  zend_gc.h
222  zend_gdb.h
223  zend_generators.h
224  zend_generators_arginfo.h
225  zend_globals.h
226  zend_globals_macros.h
227  zend_hash.h
228  zend_highlight.h
229  zend_inheritance.h
230  zend_ini.h
231  zend_ini_parser.h
232  zend_ini_scanner.h
233  zend_ini_scanner_defs.h
234  zend_interfaces.h
235  zend_interfaces_arginfo.h
236  zend_istdiostream.h
237  zend_iterators.h
238  zend_language_parser.h
239  zend_language_scanner.h
240  zend_language_scanner_defs.h
241  zend_list.h
242  zend_llist.h
243  zend_long.h
244  zend_map_ptr.h
245  zend_modules.h
246  zend_multibyte.h
247  zend_multiply.h
248  zend_object_handlers.h
249  zend_objects.h
250  zend_objects_API.h
251  zend_observer.h
252  zend_operators.h
253  zend_portability.h
254  zend_ptr_stack.h
255  zend_range_check.h
256  zend_signal.h
257  zend_smart_str.h
258  zend_smart_str_public.h
259  zend_smart_string.h
260  zend_smart_string_public.h
261  zend_sort.h
262  zend_stack.h
263  zend_stream.h
264  zend_string.h
265  zend_strtod.h
266  zend_strtod_int.h
267  zend_system_id.h
268  zend_type_info.h
269  zend_types.h
270  zend_variables.h
271  zend_virtual_cwd.h
272  zend_vm.h
273  zend_vm_def.h
274  zend_vm_execute.h
275  zend_vm_handlers.h
276  zend_vm_opcodes.h
277  zend_vm_trace_handlers.h
278  zend_vm_trace_lines.h
279  zend_vm_trace_map.h
280  zend_weakrefs.h
281  zend_weakrefs_arginfo.h
282 include/php%%SUFFIX%%/Zend/Optimizer/
283  zend_call_graph.h
284  zend_cfg.h
285  zend_dfg.h
286  zend_dump.h
287  zend_func_info.h
288  zend_inference.h
289  zend_optimizer.h
290  zend_ssa.h
291 include/php%%SUFFIX%%/ext/date/php_date.h
292 include/php%%SUFFIX%%/ext/date/lib/
293  timelib.h
294  timelib_config.h
295 include/php%%SUFFIX%%/ext/hash/
296  php_hash.h
297  php_hash_adler32.h
298  php_hash_crc32.h
299  php_hash_fnv.h
300  php_hash_gost.h
301  php_hash_haval.h
302  php_hash_joaat.h
303  php_hash_md.h
304  php_hash_murmur.h
305  php_hash_ripemd.h
306  php_hash_sha.h
307  php_hash_sha3.h
308  php_hash_snefru.h
309  php_hash_tiger.h
310  php_hash_whirlpool.h
311  php_hash_xxhash.h
312 include/php%%SUFFIX%%/ext/json/
313  php_json.h
314  php_json_parser.h
315  php_json_scanner.h
316 include/php%%SUFFIX%%/ext/libxml/php_libxml.h
317 include/php%%SUFFIX%%/ext/mysqlnd/
318  config-win.h
319  mysql_float_to_double.h
320  mysqlnd.h
321  mysqlnd_alloc.h
322  mysqlnd_auth.h
323  mysqlnd_block_alloc.h
324  mysqlnd_charset.h
325  mysqlnd_commands.h
326  mysqlnd_connection.h
327  mysqlnd_debug.h
328  mysqlnd_enum_n_def.h
329  mysqlnd_ext_plugin.h
330  mysqlnd_libmysql_compat.h
331  mysqlnd_plugin.h
332  mysqlnd_portability.h
333  mysqlnd_priv.h
334  mysqlnd_protocol_frame_codec.h
335  mysqlnd_ps.h
336  mysqlnd_read_buffer.h
337  mysqlnd_result.h
338  mysqlnd_result_meta.h
339  mysqlnd_reverse_api.h
340  mysqlnd_statistics.h
341  mysqlnd_structs.h
342  mysqlnd_vio.h
343  mysqlnd_wireprotocol.h
344  php_mysqlnd.h
345 include/php%%SUFFIX%%/ext/pcre/php_pcre.h
346 include/php%%SUFFIX%%/ext/pcre/pcre2lib/
347  config.h
348  pcre2.h
349  pcre2_internal.h
350  pcre2_intmodedep.h
351  pcre2_jit_neon_inc.h
352  pcre2_jit_simd_inc.h
353  pcre2_ucp.h
354 include/php%%SUFFIX%%/ext/spl/
355  php_spl.h
356  spl_array.h
357  spl_directory.h
358  spl_dllist.h
359  spl_engine.h
360  spl_exceptions.h
361  spl_fixedarray.h
362  spl_functions.h
363  spl_heap.h
364  spl_iterators.h
365  spl_observer.h
366 include/php%%SUFFIX%%/ext/standard/
367  base64.h
368  basic_functions.h
369  basic_functions_arginfo.h
370  crc32.h
371  crc32_x86.h
372  credits.h
373  credits_ext.h
374  credits_sapi.h
375  crypt_blowfish.h
376  crypt_freesec.h
377  css.h
378  datetime.h
379  dir_arginfo.h
380  dl.h
381  dl_arginfo.h
382  exec.h
383  file.h
384  flock_compat.h
385  fsock.h
386  head.h
387  hrtime.h
388  html.h
389  html_tables.h
390  info.h
391  md5.h
392  pack.h
393  pageinfo.h
394  php_array.h
395  php_assert.h
396  php_browscap.h
397  php_crypt.h
398  php_crypt_r.h
399  php_dir.h
400  php_dns.h
401  php_ext_syslog.h
402  php_filestat.h
403  php_fopen_wrappers.h
404  php_http.h
405  php_image.h
406  php_incomplete_class.h
407  php_lcg.h
408  php_mail.h
409  php_math.h
410  php_mt_rand.h
411  php_net.h
412  php_password.h
413  php_rand.h
414  php_random.h
415  php_smart_string.h
416  php_smart_string_public.h
417  php_standard.h
418  php_string.h
419  php_uuencode.h
420  php_var.h
421  php_versioning.h
422  proc_open.h
423  quot_print.h
424  scanf.h
425  sha1.h
426  streamsfuncs.h
427  url.h
428  url_scanner_ex.h
429  user_filters_arginfo.h
430  winver.h
431 include/php%%SUFFIX%%/main/
432  SAPI.h
433  build-defs.h
434  fastcgi.h
435  fopen_wrappers.h
436  http_status_codes.h
437  php.h
438  php_compat.h
439  php_config.h
440  php_content_types.h
441  php_getopt.h
442  php_globals.h
443  php_ini.h
444  php_main.h
445  php_memory_streams.h
446  php_network.h
447  php_open_temporary_file.h
448  php_output.h
449  php_reentrancy.h
450  php_scandir.h
451  php_stdint.h
452  php_streams.h
453  php_syslog.h
454  php_ticks.h
455  php_variables.h
456  php_version.h
457  rfc1867.h
458  snprintf.h
459  spprintf.h
460 include/php%%SUFFIX%%/main/streams/
461  php_stream_context.h
462  php_stream_filter_api.h
463  php_stream_glob_wrapper.h
464  php_stream_mmap.h
465  php_stream_plain_wrapper.h
466  php_stream_transport.h
467  php_stream_userspace.h
468  php_streams_int.h
469 lib/php%%SUFFIX%%/build/
470  Makefile.global
471  ax_check_compile_flag.m4
472  ax_gcc_func_attribute.m4
473  config.guess
474  config.sub
475  gen_stub.php
476  libtool.m4
477  ltmain.sh
478  php.m4
479  php_cxx_compile_stdcxx.m4
480  phpize.m4
481  pkg.m4
482  run-tests.php
483  shtool
484 share/man/man1/
485  php-config%%SUFFIX%%.1.gz
486  phpize%%SUFFIX%%.1.gz
487 @postexec touch %D/include/php%%SUFFIX%%/ext/php_config.h
488 @postunexec [ -s %D/include/php%%SUFFIX%%/ext/php_config.h ] || rm %D/include/php%%SUFFIX%%/ext/php_config.h
489
490
491 [FILE:1188:patches/patch-build_Makefile.global]
492 --- build/Makefile.global.orig  2022-01-18 23:52:03 UTC
493 +++ build/Makefile.global
494 @@ -89,14 +89,14 @@ test: all
495         @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
496                 INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
497                 if test "$$INI_FILE"; then \
498 -                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
499 +                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini || :; \
500                 else \
501                         echo > $(top_builddir)/tmp-php.ini; \
502                 fi; \
503                 INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
504                 if test "$$INI_SCANNED_PATH"; then \
505                         INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
506 -                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
507 +                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini || :; \
508                 fi; \
509                 TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
510                 TEST_PHP_SRCDIR=$(top_srcdir) \
511
512
513 [FILE:1145:patches/patch-configure.ac]
514 --- configure.ac.orig   2022-01-18 23:52:03 UTC
515 +++ configure.ac
516 @@ -55,6 +55,7 @@ AH_BOTTOM([
517  
518  #include <string.h>
519  
520 +#include <ext/php_config.h>
521  #endif /* PHP_CONFIG_H */
522  ])
523  
524 @@ -614,7 +615,7 @@ memmem \
525  AX_FUNC_WHICH_GETHOSTBYNAME_R
526  
527  dnl Some systems (like OpenSolaris) do not have nanosleep in libc.
528 -PHP_CHECK_FUNC_LIB(nanosleep, rt)
529 +PHP_CHECK_FUNC(nanosleep, rt)
530  
531  dnl Haiku does not have network api in libc.
532  PHP_CHECK_FUNC_LIB(setsockopt, network)
533 @@ -1362,7 +1363,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfd
534  EXPANDED_DATADIR=$datadir
535  EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
536  EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
537 -INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
538 +INCLUDE_PATH=.:${prefix}/share/pear
539  
540  exec_prefix=$old_exec_prefix
541  libdir=$old_libdir
542 @@ -1581,7 +1582,7 @@ PHP_SUBST(all_targets)
543  PHP_SUBST(install_targets)
544  PHP_SUBST(install_binary_targets)
545  
546 -PHP_INSTALL_HEADERS([Zend/ TSRM/ include/ main/ main/streams/])
547 +PHP_INSTALL_HEADERS([Zend/ TSRM/ main/ main/streams/])
548  PHP_INSTALL_HEADERS([Zend/Optimizer], [ \
549      zend_call_graph.h \
550      zend_cfg.h \
551
552
553 [FILE:428:patches/patch-sapi_apache2handler_config.m4]
554 --- sapi/apache2handler/config.m4.orig  2022-01-18 23:52:03 UTC
555 +++ sapi/apache2handler/config.m4
556 @@ -64,7 +64,7 @@ if test "$PHP_APXS2" != "no"; then
557    fi
558  
559    APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
560 -  if test -z `$APXS -q SYSCONFDIR`; then
561 +  if true; then
562      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
563                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
564                         -i -n php"
565
566
567 [FILE:304:patches/patch-sapi_fpm_config.m4]
568 --- sapi/fpm/config.m4.orig     2022-01-18 23:52:03 UTC
569 +++ sapi/fpm/config.m4
570 @@ -315,7 +315,7 @@ AC_DEFUN([AC_FPM_LQ],
571      AC_MSG_RESULT([no])
572    ])
573  
574 -  if test "$have_lq" = "tcp_info"; then
575 +  if test "$have_lq" = "so_listenq"; then
576      AC_DEFINE([HAVE_LQ_TCP_INFO], 1, [do we have TCP_INFO?])
577    fi
578  
579
580
581 [FILE:954:patches/patch-sapi_fpm_www.conf.in]
582 --- sapi/fpm/www.conf.in.orig   2022-01-18 23:52:03 UTC
583 +++ sapi/fpm/www.conf.in
584 @@ -27,10 +27,14 @@ group = @php_fpm_group@
585  ; Valid syntaxes are:
586  ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
587  ;                            a specific port;
588 +;   '0.0.0.0:port'         - to listen on a TCP socket to all IPv4 addresses on
589 +;                            a specific port;
590  ;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
591  ;                            a specific port;
592  ;   'port'                 - to listen on a TCP socket to all addresses
593  ;                            (IPv6 and IPv4-mapped) on a specific port;
594 +;                            Note: IPv4-mapped addresses are disabled by-default in
595 +;                                  FreeBSD for security reasons;
596  ;   '/path/to/unix/socket' - to listen on a unix socket.
597  ; Note: This value is mandatory.
598  listen = 127.0.0.1:9000
599
600
601 [FILE:1394:files/php81-fpm.in]
602 #!/bin/sh
603 #
604
605 # PROVIDE: php%%SUFFIX%%-fpm
606 # REQUIRE: LOGIN
607 # KEYWORD: shutdown
608
609 #
610 # Add the following line to /etc/rc.conf to enable php-fpm:
611 # php%%SUFFIX%%_fpm_enable="YES"
612 #
613
614 . /etc/rc.subr
615
616 name="php%%SUFFIX%%_fpm"
617 rcvar=php%%SUFFIX%%_fpm_enable
618
619 start_precmd="php%%SUFFIX%%_fpm_prestart"
620 restart_precmd="php%%SUFFIX%%_fpm_checkconfig"
621 reload_precmd="php%%SUFFIX%%_fpm_checkconfig"
622 configtest_cmd="php%%SUFFIX%%_fpm_checkconfig"
623
624 load_rc_config "$name"
625
626 : ${php%%SUFFIX%%_fpm_enable="NO"}
627 : ${php%%SUFFIX%%_fpm_umask=""}
628
629 extra_commands="reload configtest logrotate"
630
631 command="%%PREFIX%%/sbin/php-fpm"
632 pidfile="/var/run/php-fpm.pid"
633 sig_stop="QUIT"
634 sig_reload="USR2"
635 logrotate_cmd="php%%SUFFIX%%_fpm_logrotate"
636
637 required_files="%%PREFIX%%/etc/php-fpm.conf"
638
639 php%%SUFFIX%%_fpm_logrotate() {
640         if [ -z "$rc_pid" ]; then
641                 _run_rc_notrunning
642                 return 1
643         fi
644         echo "Rotating logs $name."
645         kill -USR1 $rc_pid
646 }
647
648 php%%SUFFIX%%_fpm_checkconfig()
649 {
650         echo "Performing sanity check on php-fpm configuration:"
651         eval ${command} -t
652 }
653
654 php%%SUFFIX%%_fpm_prestart()
655 {
656         php%%SUFFIX%%_fpm_checkconfig
657         checkconfig=$?
658         if [ $checkconfig -ne 0  ]; then
659                 return $checkconfig
660         fi
661
662         if [ ! -z "$php%%SUFFIX%%_fpm_umask"  ]; then
663                 echo "Setting umask to: ${php%%SUFFIX%%_fpm_umask}"
664                 umask $php%%SUFFIX%%_fpm_umask
665         fi
666 }
667
668 run_rc_command "$1"
669