New package: php8.0-8.0.18

This commit is contained in:
Joel Beckmeyer 2022-03-15 14:15:34 -04:00 committed by Echo
parent 76a0dc9b7f
commit 562233fffd
32 changed files with 600 additions and 0 deletions

1
srcpkgs/php8.0-apache Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-cgi Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-devel Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-embed Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-enchant Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-ffi Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-fpm Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-gd Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-intl Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-ldap Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-mysql Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-odbc Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-pgsql Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-phpdbg Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-snmp Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-sodium Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-sqlite Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-tidy Symbolic link
View file

@ -0,0 +1 @@
php8.0

1
srcpkgs/php8.0-xsl Symbolic link
View file

@ -0,0 +1 @@
php8.0

View file

@ -0,0 +1,13 @@
# Required modules: dir_module, php8.0_module
<IfModule dir_module>
<IfModule php8.0_module>
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>
</IfModule>

View file

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec php-fpm8.0 --nodaemonize ${OPTS}

View file

@ -0,0 +1,15 @@
--- a/ext/standard/crypt.c 2016-04-28 14:13:00.000000000 -0400
+++ b/ext/standard/crypt.c 2016-04-28 21:45:24.340955313 -0400
@@ -267,6 +267,12 @@
}
# elif defined(HAVE_CRYPT)
crypt_res = crypt(password, salt);
+ if (!crypt_res || (salt[0] == '*' && salt[1] == '0')) {
+ return NULL;
+ } else {
+ result = zend_string_init(crypt_res, strlen(crypt_res), 0);
+ return result;
+ }
# else
# error No crypt() implementation
# endif

View file

@ -0,0 +1,41 @@
--- a/configure 2020-03-17 11:40:20.000000000 +0100
+++ b/configure 2020-04-12 19:51:57.216350534 +0200
@@ -6374,10 +6374,12 @@ IFS="- /.
as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5
fi
+ APXS_PREFIX='$(INSTALL_ROOT)'/usr
APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
if test -z `$APXS -q SYSCONFDIR`; then
INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
$APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
+ -S PREFIX='$APXS_PREFIX' \
-i -n php"
else
APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
@@ -6385,6 +6387,7 @@ IFS="- /.
\$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
$APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
-S SYSCONFDIR='$APXS_SYSCONFDIR' \
+ -S PREFIX='$APXS_PREFIX' \
-i -a -n php"
fi
@@ -57170,7 +57173,7 @@ $as_echo_n "checking for pg_config... "
fi
done
- if test -n "$PG_CONFIG"; then
+ if test -n "$PG_CONFIG" && test "x$cross_compiling" != "xyes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
$as_echo "$PG_CONFIG" >&6; }
PGSQL_INCLUDE=`$PG_CONFIG --includedir`
@@ -58821,7 +58824,7 @@ $as_echo_n "checking for pg_config... "
fi
done
- if test -n "$PG_CONFIG"; then
+ if test -n "$PG_CONFIG" && test "x$cross_compiling" != "xyes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
$as_echo "$PG_CONFIG" >&6; }
PGSQL_INCLUDE=`$PG_CONFIG --includedir`

View file

@ -0,0 +1,13 @@
--- a/sapi/fpm/Makefile.frag 2017-04-15 23:58:56.965737425 +0200
+++ b/sapi/fpm/Makefile.frag 2017-04-16 00:00:57.814831649 +0200
@@ -15,8 +15,8 @@ install-fpm: $(SAPI_FPM_PATH)
else \
echo "Installing PHP FPM defconfig: $(INSTALL_ROOT)$(sysconfdir)/" && \
$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d; \
- $(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default; \
- $(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf.default; \
+ $(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf; \
+ $(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf; \
fi
@echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"

View file

@ -0,0 +1,39 @@
--- a/build/ltmain.sh 2021-09-09 15:19:14.822208365 +0200
+++ b/build/ltmain.sh 2021-09-09 15:47:55.397011151 +0200
@@ -2375,6 +2375,13 @@ EOF
*) . ./$lib ;;
esac
+ newdependency_libs=
+ for deplib in $dependency_libs; do
+ deplib=$(echo "$deplib" | sed "s#^=\(.*\)#$(${CC} --print-sysroot)\1#")
+ newdependency_libs="$newdependency_libs $deplib"
+ done
+ dependency_libs=${newdependency_libs}
+
if test "$linkmode,$pass" = "lib,link" ||
test "$linkmode,$pass" = "prog,scan" ||
{ test "$linkmode" != prog && test "$linkmode" != lib; }; then
@@ -5750,6 +5757,13 @@ fi\
case $host,$output,$installed,$module,$dlname in
*cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
esac
+
+ newdependency_libs=
+ for deplib in $dependency_libs; do
+ deplib=$(echo "$deplib" | sed "s#^$(${CC} --print-sysroot)#=#")
+ newdependency_libs="$newdependency_libs $deplib"
+ done
+
$echo > $output "\
# $outputname - a libtool library file
# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
@@ -5767,7 +5781,7 @@ library_names='$library_names'
old_library='$old_library'
# Libraries that this one depends upon.
-dependency_libs='$dependency_libs'
+dependency_libs='$newdependency_libs'
# Version information for $libname.
current=$current

View file

@ -0,0 +1,14 @@
diff --git a/configure b/configure.new
index 1159224b4c..29f763aa05 100755
--- a/configure
+++ b/configure.new
@@ -51689,7 +51689,8 @@ $as_echo "$have_shm_ipc" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5
$as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; }
if test "$cross_compiling" = yes; then :
- have_shm_mmap_anon=no
+$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h
+ have_shm_mmap_anon=yes
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

View file

@ -0,0 +1,23 @@
--- a/pear/Makefile.frag 2020-03-17 11:40:21.000000000 +0100
+++ b/pear/Makefile.frag 2020-04-12 22:29:31.846943414 +0200
@@ -8,9 +8,10 @@ FETCH = `which fetch 2>/dev/null`
PEAR_PREFIX = -dp a${program_prefix}
PEAR_SUFFIX = -ds a$(program_suffix)
PEAR_INSTALLER_URL = https://pear.php.net/install-pear-nozlib.phar
+PEAR_PHP ?= $(top_builddir)/sapi/cli/php
install-pear-installer: $(SAPI_CLI_PATH)
- @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX}
+ @$(PEAR_PHP) $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX}
install-pear:
@echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
@@ -23,7 +24,7 @@ install-pear:
elif test ! -z "$(FETCH)" && test -x "$(FETCH)"; then \
"$(FETCH)" -o $(builddir)/ "${PEAR_INSTALLER_URL}"; \
else \
- $(top_builddir)/sapi/cli/php -n $(srcdir)/fetch.php "${PEAR_INSTALLER_URL}" $(builddir)/install-pear-nozlib.phar; \
+ $(PEAR_PHP) -n $(srcdir)/fetch.php "${PEAR_INSTALLER_URL}" $(builddir)/install-pear-nozlib.phar; \
fi \
fi \
fi

View file

@ -0,0 +1,29 @@
--- a/ext/phar/Makefile.frag 2020-04-13 12:18:23.998801926 +0200
+++ b/ext/phar/Makefile.frag 2020-04-13 12:20:58.031795293 +0200
@@ -8,12 +8,14 @@ $(srcdir)/phar_path_check.c: $(srcdir)/p
pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
+PHAR_PHP ?= $(top_builddir)/$(SAPI_CLI_PATH)
+PHAR_PHP_MODULES ?= $(top_builddir)/modules
PHP_PHARCMD_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0
PHP_PHARCMD_EXECUTABLE = ` \
- if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \
- $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \
+ if test -x "$(PHAR_PHP)"; then \
+ $(top_srcdir)/build/shtool echo -n -- "$(PHAR_PHP) -n"; \
if test "x$(PHP_MODULES)" != "x"; then \
- $(top_srcdir)/build/shtool echo -n -- " -d extension_dir=$(top_builddir)/modules"; \
+ $(top_srcdir)/build/shtool echo -n -- " -d extension_dir=$(PHAR_PHP_MODULES)"; \
for i in bz2 zlib phar; do \
if test -f "$(top_builddir)/modules/$$i.la"; then \
. $(top_builddir)/modules/$$i.la; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
@@ -21,7 +23,7 @@ PHP_PHARCMD_EXECUTABLE = ` \
done; \
fi; \
else \
- $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \
+ $(top_srcdir)/build/shtool echo -n -- "$(PHAR_PHP)"; \
fi;`
PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";`

View file

@ -0,0 +1,28 @@
--- a/scripts/phpize.m4 2020-03-17 11:40:21.000000000 +0100
+++ b/scripts/phpize.m4 2020-04-15 12:27:36.400466387 +0200
@@ -44,6 +44,12 @@ PHP_ARG_WITH([libdir],
[lib],
[no])
+PHP_ARG_WITH([sysroot],,
+ [AS_HELP_STRING([--with-sysroot=NAME],
+ [System sysroot])],
+ [no],
+ [no])
+
PHP_RUNPATH_SWITCH
PHP_SHLIB_SUFFIX_NAMES
@@ -58,7 +64,11 @@ dnl For BC.
PHP_CONFIG=$PHP_PHP_CONFIG
prefix=`$PHP_CONFIG --prefix 2>/dev/null`
phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
-INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
+if test "x$PHP_SYSROOT" = xno; then :
+ INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
+else
+ INCLUDES=`$PHP_CONFIG --includes 2>/dev/null | sed "s#-I#-I$PHP_SYSROOT#g"`
+fi
EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`

View file

@ -0,0 +1,24 @@
diff --git php.ini-production php.ini-production
index 794d3e8ddb..c7acf9c883 100644
--- a/php.ini-production
+++ b/php.ini-production
@@ -729,7 +729,7 @@ default_charset = "UTF-8"
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
-;include_path = ".:/php/includes"
+include_path = ".:/usr/share/pear"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
@@ -752,9 +752,7 @@ user_dir =
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
-;extension_dir = "./"
-; On windows:
-;extension_dir = "ext"
+extension_dir = "/usr/lib/php8.0/modules/"
; Directory where the temporary files should be placed.
; Defaults to the system default (see sys_get_temp_dir)

337
srcpkgs/php8.0/template Normal file
View file

@ -0,0 +1,337 @@
# Template file for 'php8.0'
pkgname=php8.0
version=8.0.18
revision=1
_php_version=8.0
wrksrc="php-${version}"
hostmakedepends="bison pkg-config apache-devel curl"
makedepends="apache-devel enchant2-devel freetds-devel freetype-devel gdbm-devel
gmp-devel libcurl-devel libjpeg-turbo-devel libmariadbclient-devel
libsodium-devel libtidy5-devel libxslt-devel libzip-devel net-snmp-devel
postgresql-libs-devel readline-devel sqlite-devel unixodbc-devel pcre2-devel
libffi-devel oniguruma-devel gd-devel"
short_desc="HTML-embedded scripting language"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="PHP-3.01"
homepage="https://www.php.net"
distfiles="https://www.php.net/distributions/php-${version}.tar.gz"
checksum=cd980f5a2f422362f8c52d314ed25140c6f472877c5442c4f3304205f54e192a
fetch_cmd="curl -O"
conf_files="/etc/php${_php_version}/php.ini"
lib32disabled=yes
if [ -n "$CROSS_BUILD" ]; then
# phar needs php to build
hostmakedepends+=" php${_php_version}"
CFLAGS+=" -DHAVE_LIBDL
-DHAVE_DLOPEN
-DHAVE_DLSYM
-DHAVE_SHM_IPC
-DHAVE_SHM_MMAP_ANON
-DHAVE_SHM_MMAP_ZERO
-DHAVE_SHM_MMAP_POSIX
-DHAVE_SHM_MMAP_FILE"
fi
do_build() {
local _phpconfig="--srcdir=.. \
--config-cache \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc/php${_php_version} \
--localstatedir=/var \
--with-layout=GNU \
--with-config-file-path=/etc/php${_php_version} \
--with-config-file-scan-dir=/etc/php${_php_version}/conf.d \
--disable-rpath \
--mandir=/usr/share/man \
--libdir=/usr/lib/php${_php_version} \
--datarootdir=/usr/share/php${_php_version} \
--datadir=/usr/share/php${_php_version} \
--program-suffix=${_php_version} \
--includedir=/usr/include/php${_php_version} \
"
local _phpextensions="--enable-bcmath=shared \
--enable-calendar=shared \
--enable-exif=shared \
--enable-ftp=shared \
--enable-intl=shared \
--enable-mbstring \
--enable-opcache \
--enable-pcntl \
--enable-phar=shared \
--enable-posix=shared \
--enable-shmop=shared \
--enable-soap=shared \
--enable-sockets=shared \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-mysqlnd \
--enable-gd=shared \
--with-external-gd \
--with-ffi=shared \
--with-bz2=shared,$XBPS_CROSS_BASE/usr/ \
--with-curl=shared \
--with-db4=$XBPS_CROSS_BASE/usr \
--with-enchant=shared,$XBPS_CROSS_BASE/usr \
--with-gdbm=$XBPS_CROSS_BASE/usr \
--with-gettext=shared \
--with-gmp=shared \
--with-iconv=shared \
--with-ldap=shared,$XBPS_CROSS_BASE/usr \
--with-ldap-sasl \
--with-sodium=shared \
--with-mhash \
--with-mysql-sock=/run/mysqld/mysqld.sock \
--with-mysqli=shared,mysqlnd \
--with-openssl=shared \
--with-external-pcre \
--without-pear \
--with-pdo-mysql=shared,mysqlnd \
--with-pdo-odbc=shared,unixODBC,$XBPS_CROSS_BASE/usr \
--with-pdo-pgsql=shared,$XBPS_CROSS_BASE/usr \
--with-pdo-sqlite=shared,$XBPS_CROSS_BASE/usr \
--with-pgsql=shared,$XBPS_CROSS_BASE/usr \
--with-readline=$XBPS_CROSS_BASE/usr \
--with-snmp=shared,$XBPS_CROSS_BASE/usr \
--with-sqlite3=shared,$XBPS_CROSS_BASE/usr \
--with-unixODBC=shared,$XBPS_CROSS_BASE/usr \
--with-xsl=shared,$XBPS_CROSS_BASE/usr \
--with-tidy=shared,$XBPS_CROSS_BASE/usr \
--with-zip=shared \
--with-zlib \
${configure_args} \
"
if [ -n "$CROSS_BUILD" ]; then
local _make_env="PHAR_PHP=/usr/bin/php${_php_version} PHAR_PHP_MODULES=/usr/lib/php${_php_version}/modules"
fi
EXTENSION_DIR="/usr/lib/php${_php_version}/modules"
export EXTENSION_DIR
PEAR_INSTALLDIR=/usr/share/pear
export PEAR_INSTALLDIR
EXTRA_LIBS="-ldl"
export EXTRA_LIBS
# cgi,cli,embed,fcgi,fpm
mkdir -p build
cd build
ln -s ${wrksrc}/configure
./configure ${_phpconfig} \
--host=${XBPS_CROSS_TRIPLET} \
--enable-cgi \
--enable-fpm \
--with-fpm-user=http \
--with-fpm-group=http \
--enable-embed=shared \
${_phpextensions}
make ${makejobs} ${_make_env}
# apache
# reuse the previous run; this will save us a lot of time
cp -a ${wrksrc}/build ${wrksrc}/build-apache
cd ${wrksrc}/build-apache
./configure ${_phpconfig} \
--host=${XBPS_CROSS_TRIPLET} \
--with-apxs2 \
${_phpextensions}
make ${makejobs} ${_make_env}
}
do_install() {
cd ${wrksrc}/build
local _env="INSTALL_ROOT=${DESTDIR}"
if [ -n "$CROSS_BUILD" ]; then
_env+=" PHAR_PHP=/usr/bin/php${_php_version}"
fi
make ${_env} install-{modules,cli,build,headers,programs,pharcmd}
# install php.ini
vinstall ${wrksrc}/php.ini-production 644 "etc/php${_php_version}" php.ini
# remove static modules
rm -f "${DESTDIR}/usr/lib/php${_php_version}/modules/*.a"
}
php8.0-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/php${_php_version}/build"
vmove "usr/bin/php-config${_php_version}"
vmove "usr/bin/phpize${_php_version}"
vmove "usr/share/man/man1/phpize${_php_version}.1"
vmove "usr/share/man/man1/php-config${_php_version}.1"
}
}
php8.0-phpdbg_package() {
short_desc+=" - interactive debugger"
depends="php${_php_version}-${version}_${revision}"
pkg_install() {
cd ${wrksrc}/build
make INSTALL_ROOT=${PKGDESTDIR} install-phpdbg
}
}
php8.0-cgi_package() {
short_desc+=' - CGI and FCGI SAPI'
depends="php${_php_version}-${version}_${revision}"
pkg_install() {
cd ${wrksrc}/build
make INSTALL_ROOT=${PKGDESTDIR} install-cgi
}
}
php8.0-apache_package() {
short_desc+=' - Apache SAPI'
depends="php${_php_version}-${version}_${revision}"
conf_files="/etc/apache/extra/php${_php_version}_module.conf"
pkg_install() {
vinstall ${wrksrc}/build-apache/libs/libphp.so 755 usr/libexec/httpd/modules "libphp${_php_version}.so"
vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra "php${_php_version}_module.conf"
}
}
php8.0-fpm_package() {
short_desc+=' - FastCGI Process Manager'
depends="php${_php_version}-${version}_${revision}"
conf_files="/etc/php${_php_version}/php-fpm.conf /etc/php${_php_version}/php-fpm.d/*"
pkg_install() {
cd ${wrksrc}/build
make INSTALL_ROOT=${PKGDESTDIR} install-fpm
vsv "php-fpm${_php_version}"
}
}
php8.0-embed_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - Embed SAPI'
pkg_install() {
cd ${wrksrc}/build
make INSTALL_ROOT=${PKGDESTDIR} PHP_SAPI=embed install-sapi
mv ${PKGDESTDIR}/usr/lib/libphp.so ${PKGDESTDIR}/usr/lib/libphp${_php_version}.so
}
}
php8.0-enchant_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - enchant module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/enchant.so"
}
}
php8.0-gd_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - gd module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/gd.so"
}
}
php8.0-intl_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - Internationalization module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/intl.so"
}
}
php8.0-ldap_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - LDAP module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/ldap.so"
}
}
php8.0-mysql_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - MySQL modules'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/*mysql*.so"
}
}
php8.0-odbc_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - ODBC modules'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/*odbc.so"
}
}
php8.0-pgsql_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - PostgreSQL modules'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/*pgsql.so"
}
}
php8.0-snmp_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - snmp module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/snmp.so"
}
}
php8.0-sqlite_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - sqlite module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/*sqlite*.so"
}
}
php8.0-tidy_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - tidy HTML module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/*tidy*.so"
}
}
php8.0-xsl_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - XSL module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/xsl.so"
}
}
php8.0-sodium_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - sodium module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/sodium.so"
}
}
php8.0-ffi_package() {
lib32disabled=yes
depends="php${_php_version}-${version}_${revision}"
short_desc+=' - FFI module'
pkg_install() {
vmove "usr/lib/php${_php_version}/modules/ffi.so"
}
}

2
srcpkgs/php8.0/update Normal file
View file

@ -0,0 +1,2 @@
pkgname=php
ignore="8.[1-9].*"