1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= PHP Hypertext Preprocessor version 8.1
8 HOMEPAGE= https://php.net/
12 SITES[main]= PHP/distributions
13 DISTFILE[1]= php-8.1.16.tar.xz:main
15 SPKGS[standard]= single
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
24 BUILD_DEPENDS= autoconf:single:standard
26 USES= cpe gmake pkgconfig zlib pcre2
27 C_USES[darwin]= iconv:build
28 GNOME_COMPONENTS= libxml2
32 LICENSE= CUSTOM1:single
33 LICENSE_NAME= CUSTOM1:"PHP License v3.01"
34 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE
38 FPC_EQUIVALENT= lang/php81
41 CONFIGURE_ARGS= --with-layout=GNU
44 --with-config-file-scan-dir={{PREFIX}}/etc/php81
45 --sysconfdir={{PREFIX}}/etc/php81
46 --libdir={{PREFIX}}/lib/php81
47 --datadir={{PREFIX}}/share/php81
50 --enable-maintainer-zts
52 CONFIGURE_ENV= ac_cv_decimal_fp_supported="no"
55 DESTDIRNAME= INSTALL_ROOT
59 RC_SUBR= php81-fpm:single
62 [CLI].DESCRIPTION= Enable Command Line Interface SAPI
63 [CLI].CONFIGURE_ARGS_OFF= --disable-cli
64 [CLI].MAKEFILE_ON= PHP_SAPI+=cli
66 [FPM].DESCRIPTION= Enable FastCGI Process Manager SAPI
67 [FPM].CONFIGURE_ARGS_ON= --enable-fpm
68 --with-fpm-user={{WWWOWN}}
69 --with-fpm-group={{WWWGRP}}
70 [FPM].MAKEFILE_ON= PHP_SAPI+=fpm
72 [DEBUGGER].DESCRIPTION= Enable interactive debugger SAPI module support
73 [DEBUGGER].CONFIGURE_ENABLE_BOTH= phpdbg
74 [DEBUGGER].MAKEFILE_ON= PHP_SAPI+=phpdbg
76 [CGI].DESCRIPTION= Enable Common Gateway Interface SAPI
77 [CGI].CONFIGURE_ARGS_OFF= --disable-cgi
78 [CGI].MAKEFILE_ON= PHP_SAPI+=cgi
80 [EMBED].DESCRIPTION= Build embedded SAPI library
81 [EMBED].CONFIGURE_ARGS_ON= --enable-embed
82 [EMBED].MAKEFILE_ON= PHP_SAPI+=embed
85 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/php81
88 ${TOUCH} ${WRKSRC}/ext/php_config.h
89 ${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
90 ${REINPLACE_CMD} -e "/phpincludedir =/ s|/php|/php81|" \
91 ${WRKSRC}/scripts/Makefile.frag
92 ${REINPLACE_CMD} -e "/includedir=/ s|php|php81|" \
93 ${WRKSRC}/scripts/phpize.in
94 ${REINPLACE_CMD} -e "/include_dir=/ s|php|php81|" \
95 -e "/^ldflags=/ s|@PHP|-L${PREFIX}/lib/php81 @PHP|" \
96 ${WRKSRC}/scripts/php-config.in
97 ${REINPLACE_CMD} -e "s|darwin|darwin-disable|" \
98 ${WRKSRC}/sapi/cgi/config9.m4 \
99 ${WRKSRC}/sapi/cli/config.m4 \
100 ${WRKSRC}/sapi/fpm/config.m4
102 post-install-DEBUGGER-ON:
103 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/phpdbg81
106 ${REINPLACE_CMD} -e "s|^;\(pid\)|\1|;s|^;\(pm\.[a-z_]*_servers\)|\1|" \
107 ${WRKSRC}/sapi/fpm/php-fpm.conf.in
110 @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php81
111 ${RM} -r ${STAGEDIR}/var
112 ${RM} -r ${STAGEDIR}${PREFIX}/include/php81/include
113 ${INSTALL_DATA} ${WRKSRC}/php.ini-development \
114 ${WRKSRC}/php.ini-production \
115 ${WRKDIR}/php.conf ${STAGEDIR}${PREFIX}/etc/php81
118 ${ECHO_CMD} "PHP_VER=81" > ${WRKDIR}/php.conf
119 ${ECHO_CMD} "PHP_VERSION=8.1.16" >> ${WRKDIR}/php.conf
120 ${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
121 ${ECHO_CMD} "PHP_EXT_INC=hash json pcre spl" >> ${WRKDIR}/php.conf
122 ${SH} ${WRKSRC}/scripts/php-config --extension-dir | \
123 ${SED} -ne 's,^${PREFIX}/lib/php81/,PHP_EXT_DIR=,p'\
124 >> ${WRKDIR}/php.conf
126 post-install-EMBED-ON:
127 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libphp.so
128 ${MV} ${STAGEDIR}${PREFIX}/lib/libphp.so \
129 ${STAGEDIR}${PREFIX}/lib/php81/
132 (cd ${WRKSRC} && ${SETENV} MAKE=${MAKE_CMD} ./buildconf --force)
135 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/php-cgi81
138 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/php-fpm81
140 [FILE:679:descriptions/desc.single]
141 PHP is a widely-used open source general-purpose scripting language
142 that is especially suited for web development and can be embedded
143 into HTML. It is modular, and object-oriented. Much of its syntax
144 is borrowed from C, Java and Perl with a couple of unique PHP-specific
145 features thrown in. The language is designed to allow web developers
146 to write dynamically generated pages quickly.
148 This package provides PHP version 7.3.x. New feature added over
149 version 7.2.x include:
151 * Flexible Heredoc and Nowdoc Syntax
153 * Multiple MBString Improvements
154 * LDAP Controls Support
155 * Improved FPM Logging
156 * Windows File Deletion Improvements
157 * Several Deprecations
161 d61f13d96a58b93c39672b58f25e1ee4ce88500f4acb1430cb01a514875c1258 11760948 php-8.1.16.tar.xz
164 [FILE:6304:manifests/plist.single]
165 %%CGI-ON%%bin/php-cgi%%SUFFIX%%
166 %%CGI-ON%%share/man/man1/php-cgi%%SUFFIX%%.1.gz
167 %%CLI-ON%%bin/php%%SUFFIX%%
168 %%CLI-ON%%include/php%%SUFFIX%%/sapi/cli/cli.h
169 %%CLI-ON%%share/man/man1/php%%SUFFIX%%.1.gz
170 %%DEBUGGER-ON%%bin/phpdbg%%SUFFIX%%
171 %%DEBUGGER-ON%%share/man/man1/phpdbg%%SUFFIX%%.1.gz
172 %%EMBED-ON%%include/php%%SUFFIX%%/sapi/embed/php_embed.h
173 %%EMBED-ON%%lib/php%%SUFFIX%%/libphp.%%SHARED_OBJECT%%
174 %%FPM-ON%%@sample etc/php%%SUFFIX%%/php-fpm.conf.default etc/php%%SUFFIX%%/php-fpm.conf
175 %%FPM-ON%%@sample etc/php%%SUFFIX%%/php-fpm.d/www.conf.default etc/php%%SUFFIX%%/php-fpm.d/www.conf
176 %%FPM-ON%%sbin/php-fpm%%SUFFIX%%
177 %%FPM-ON%%share/man/man8/php-fpm%%SUFFIX%%.8.gz
178 %%FPM-ON%%share/php%%SUFFIX%%/fpm/status.html
186 include/php%%SUFFIX%%/TSRM/
189 include/php%%SUFFIX%%/Zend/
197 zend_attributes_arginfo.h
200 zend_builtin_functions.h
201 zend_builtin_functions_arginfo.h
203 zend_closures_arginfo.h
214 zend_exceptions_arginfo.h
218 zend_fibers_arginfo.h
223 zend_generators_arginfo.h
225 zend_globals_macros.h
232 zend_ini_scanner_defs.h
234 zend_interfaces_arginfo.h
237 zend_language_parser.h
238 zend_language_scanner.h
239 zend_language_scanner_defs.h
247 zend_object_handlers.h
257 zend_smart_str_public.h
259 zend_smart_string_public.h
276 zend_vm_trace_handlers.h
277 zend_vm_trace_lines.h
280 zend_weakrefs_arginfo.h
281 include/php%%SUFFIX%%/Zend/Optimizer/
290 include/php%%SUFFIX%%/ext/date/php_date.h
291 include/php%%SUFFIX%%/ext/date/lib/
294 include/php%%SUFFIX%%/ext/hash/
311 include/php%%SUFFIX%%/ext/json/
315 include/php%%SUFFIX%%/ext/libxml/php_libxml.h
316 include/php%%SUFFIX%%/ext/mysqlnd/
318 mysql_float_to_double.h
322 mysqlnd_block_alloc.h
329 mysqlnd_libmysql_compat.h
331 mysqlnd_portability.h
333 mysqlnd_protocol_frame_codec.h
335 mysqlnd_read_buffer.h
337 mysqlnd_result_meta.h
338 mysqlnd_reverse_api.h
342 mysqlnd_wireprotocol.h
344 include/php%%SUFFIX%%/ext/pcre/php_pcre.h
345 include/php%%SUFFIX%%/ext/pcre/pcre2lib/
353 include/php%%SUFFIX%%/ext/spl/
365 include/php%%SUFFIX%%/ext/standard/
368 basic_functions_arginfo.h
405 php_incomplete_class.h
415 php_smart_string_public.h
428 user_filters_arginfo.h
430 include/php%%SUFFIX%%/main/
446 php_open_temporary_file.h
459 include/php%%SUFFIX%%/main/streams/
461 php_stream_filter_api.h
462 php_stream_glob_wrapper.h
464 php_stream_plain_wrapper.h
465 php_stream_transport.h
466 php_stream_userspace.h
468 lib/php%%SUFFIX%%/build/
470 ax_check_compile_flag.m4
471 ax_gcc_func_attribute.m4
478 php_cxx_compile_stdcxx.m4
484 php-config%%SUFFIX%%.1.gz
485 phpize%%SUFFIX%%.1.gz
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
490 [FILE:1188:patches/patch-build_Makefile.global]
491 --- build/Makefile.global.orig 2023-01-31 15:13:17 UTC
492 +++ build/Makefile.global
493 @@ -92,14 +92,14 @@ test: all
494 @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
495 INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
496 if test "$$INI_FILE"; then \
497 - $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
498 + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini || :; \
500 echo > $(top_builddir)/tmp-php.ini; \
502 INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
503 if test "$$INI_SCANNED_PATH"; then \
504 INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
505 - $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
506 + $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini || :; \
508 TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
509 TEST_PHP_SRCDIR=$(top_srcdir) \
512 [FILE:1145:patches/patch-configure.ac]
513 --- configure.ac.orig 2023-01-31 15:13:17 UTC
515 @@ -55,6 +55,7 @@ AH_BOTTOM([
519 +#include <ext/php_config.h>
520 #endif /* PHP_CONFIG_H */
523 @@ -614,7 +615,7 @@ memmem \
524 AX_FUNC_WHICH_GETHOSTBYNAME_R
526 dnl Some systems (like OpenSolaris) do not have nanosleep in libc.
527 -PHP_CHECK_FUNC_LIB(nanosleep, rt)
528 +PHP_CHECK_FUNC(nanosleep, rt)
530 dnl Haiku does not have network api in libc.
531 PHP_CHECK_FUNC_LIB(setsockopt, network)
532 @@ -1372,7 +1373,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfd
533 EXPANDED_DATADIR=$datadir
534 EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
535 EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
536 -INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
537 +INCLUDE_PATH=.:${prefix}/share/pear
539 exec_prefix=$old_exec_prefix
541 @@ -1591,7 +1592,7 @@ PHP_SUBST(all_targets)
542 PHP_SUBST(install_targets)
543 PHP_SUBST(install_binary_targets)
545 -PHP_INSTALL_HEADERS([Zend/ TSRM/ include/ main/ main/streams/])
546 +PHP_INSTALL_HEADERS([Zend/ TSRM/ main/ main/streams/])
547 PHP_INSTALL_HEADERS([Zend/Optimizer], [ \
552 [FILE:428:patches/patch-sapi_apache2handler_config.m4]
553 --- sapi/apache2handler/config.m4.orig 2023-01-31 15:13:17 UTC
554 +++ sapi/apache2handler/config.m4
555 @@ -64,7 +64,7 @@ if test "$PHP_APXS2" != "no"; then
558 APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
559 - if test -z `$APXS -q SYSCONFDIR`; then
561 INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
562 $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
566 [FILE:304:patches/patch-sapi_fpm_config.m4]
567 --- sapi/fpm/config.m4.orig 2023-01-31 15:13:17 UTC
568 +++ sapi/fpm/config.m4
569 @@ -315,7 +315,7 @@ AC_DEFUN([AC_FPM_LQ],
573 - if test "$have_lq" = "tcp_info"; then
574 + if test "$have_lq" = "so_listenq"; then
575 AC_DEFINE([HAVE_LQ_TCP_INFO], 1, [do we have TCP_INFO?])
580 [FILE:954:patches/patch-sapi_fpm_www.conf.in]
581 --- sapi/fpm/www.conf.in.orig 2023-01-31 15:13:17 UTC
582 +++ sapi/fpm/www.conf.in
583 @@ -32,10 +32,14 @@ group = @php_fpm_group@
584 ; Valid syntaxes are:
585 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
587 +; '0.0.0.0:port' - to listen on a TCP socket to all IPv4 addresses on
589 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
591 ; 'port' - to listen on a TCP socket to all addresses
592 ; (IPv6 and IPv4-mapped) on a specific port;
593 +; Note: IPv4-mapped addresses are disabled by-default in
594 +; FreeBSD for security reasons;
595 ; '/path/to/unix/socket' - to listen on a unix socket.
596 ; Note: This value is mandatory.
597 listen = 127.0.0.1:9000
600 [FILE:1394:files/php81-fpm.in]
604 # PROVIDE: php%%SUFFIX%%-fpm
609 # Add the following line to /etc/rc.conf to enable php-fpm:
610 # php%%SUFFIX%%_fpm_enable="YES"
615 name="php%%SUFFIX%%_fpm"
616 rcvar=php%%SUFFIX%%_fpm_enable
618 start_precmd="php%%SUFFIX%%_fpm_prestart"
619 restart_precmd="php%%SUFFIX%%_fpm_checkconfig"
620 reload_precmd="php%%SUFFIX%%_fpm_checkconfig"
621 configtest_cmd="php%%SUFFIX%%_fpm_checkconfig"
623 load_rc_config "$name"
625 : ${php%%SUFFIX%%_fpm_enable="NO"}
626 : ${php%%SUFFIX%%_fpm_umask=""}
628 extra_commands="reload configtest logrotate"
630 command="%%PREFIX%%/sbin/php-fpm"
631 pidfile="/var/run/php-fpm.pid"
634 logrotate_cmd="php%%SUFFIX%%_fpm_logrotate"
636 required_files="%%PREFIX%%/etc/php-fpm.conf"
638 php%%SUFFIX%%_fpm_logrotate() {
639 if [ -z "$rc_pid" ]; then
643 echo "Rotating logs $name."
647 php%%SUFFIX%%_fpm_checkconfig()
649 echo "Performing sanity check on php-fpm configuration:"
653 php%%SUFFIX%%_fpm_prestart()
655 php%%SUFFIX%%_fpm_checkconfig
657 if [ $checkconfig -ne 0 ]; then
661 if [ ! -z "$php%%SUFFIX%%_fpm_umask" ]; then
662 echo "Setting umask to: ${php%%SUFFIX%%_fpm_umask}"
663 umask $php%%SUFFIX%%_fpm_umask