From 30cd82dcfa7031d3717acd34b06d02734126eedb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 2 Jan 2024 20:42:26 +0700 Subject: [PATCH] php8.2: for apache config --- srcpkgs/php8.2/files/apache.conf | 4 ++-- srcpkgs/php8.2/template | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/srcpkgs/php8.2/files/apache.conf b/srcpkgs/php8.2/files/apache.conf index 1c5e4e4e58c..bc57ba73dbc 100644 --- a/srcpkgs/php8.2/files/apache.conf +++ b/srcpkgs/php8.2/files/apache.conf @@ -1,7 +1,7 @@ -# Required modules: dir_module, php8.2_module +# Required modules: dir_module, php_module - + DirectoryIndex index.php index.html SetHandler application/x-httpd-php diff --git a/srcpkgs/php8.2/template b/srcpkgs/php8.2/template index 913d7f0f7e0..a997219becf 100644 --- a/srcpkgs/php8.2/template +++ b/srcpkgs/php8.2/template @@ -1,7 +1,7 @@ # Template file for 'php8.2' pkgname=php8.2 version=8.2.13 -revision=2 +revision=3 _php_version=8.2 hostmakedepends="bison pkg-config apache-devel" makedepends="apache-devel enchant2-devel freetds-devel freetype-devel gdbm-devel @@ -200,6 +200,9 @@ php8.2-apache_package() { short_desc+=' - Apache SAPI' depends="php${_php_version}>=${version}_${revision}" conf_files="/etc/apache/extra/php${_php_version}_module.conf" + alternatives=" + php-apache:libphp.so:/usr/libexec/httpd/modules/libphp${_php_version}.so + php-apache:php_module.conf:/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"