diff options
author | Eugene Lamskoy | 2022-02-18 14:02:15 +0200 |
---|---|---|
committer | Eugene Lamskoy | 2022-02-18 14:02:15 +0200 |
commit | 9b2747c1cd3ec04c1a68b96b4d615196b94031ee (patch) | |
tree | 565c2f4bd2f6f65aaea6d6896e8be8f1d6976886 /PKGBUILD | |
parent | 022812fa41ddc6e6a2c665f7961eade3c4ffe846 (diff) | |
download | aur-9b2747c1cd3ec04c1a68b96b4d615196b94031ee.tar.gz |
Test environment vars patch. Litespeed
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 51 insertions, 3 deletions
@@ -1,16 +1,17 @@ ############################################################################### # Generated by arch-phpbs: https://github.com/lamskoy/arch-phpbs # -# My packages on AUR: php81 php74 php72 php55 php54 -# Co-maintaining on AUR: php73 php71 php70 +# Maintaining/co-maintaining on AUR: php81 php80 php74 php73 php72 php71 php70 php55 php54 php53 # # Thanks to: # +# AUR php80 Co-maintainer: Timo Sarawinski # AUR php70 and php71 Co-maintainer: William Gathoye <william@gathoye.be> # AUR php74 Co-maintainer: Tomasz Gruszka <tompear79@gmail.com> # AUR php73 Co-maintainer: Matt Harrison <matt@harrison.us.com> # AUR php73 Contirubutor: Pierre Schmitz <pierre@archlinux.de> # AUR php55 Original maintainer: Raphaƫl Doursenaud <rdoursenaud@gmail.com> +# AUR php53 Original maintainer: Felix Yan <felixonmars@archlinux.org> ############################################################################### _phpbase="71" _suffix="" @@ -36,7 +37,9 @@ _build_sapi_ini_cgi="etc/php71" _build_sapi_ini_cli="etc/php71" _build_sapi_ini_embed="etc/php71" _build_sapi_ini_fpm="etc/php71" +_build_sapi_ini_litespeed="etc/php71" _build_sapi_ini_phpdbg="etc/php71" +_build_sapi_litespeed="--with-litespeed" _build_shared_gd="1" _build_shared_json="1" _build_shared_libedit="0" @@ -66,6 +69,7 @@ pkgname=( "php71-fpm" "php71-embed" "php71-apache" + "php71-litespeed" "php71-pear" "php71-pecl" "php71-phpdbg" @@ -123,6 +127,7 @@ pkgname=( "php71-opcache" ) source=( + "make-tests.patch" "pear-config-patcher.php" "php-makefile-patcher.php" "php-apache.conf" @@ -499,6 +504,7 @@ _build_sapi() { pushd "build-${_sapi}" ./configure ${_phpconfig} ${_commands} + patch -p1 -i "${srcdir}/make-tests.patch" if (($_sapi != "cli")); then make clean @@ -611,6 +617,22 @@ build() { --disable-phpdbg \ " + # litespeed + _cflags="${CFLAGS}" + export CFLAGS="${CFLAGS} -Wno-error=format-security" + _build_sapi "litespeed" "\ + --sysconfdir=/${_build_sapi_ini_litespeed} \ + --with-config-file-path=/${_build_sapi_ini_litespeed} \ + --disable-all \ + --disable-cgi \ + --disable-cli \ + --disable-fpm \ + --disable-embed \ + --disable-phpdbg \ + ${_build_sapi_litespeed} \ + " + export CFLAGS="${_cflags}" + # fpm _build_sapi "fpm" "\ --sysconfdir=/${_build_sapi_ini_fpm} \ @@ -640,6 +662,7 @@ build() { --enable-embed=shared \ --enable-fpm \ ${_phpextensions_fpm} \ + ${_build_sapi_litespeed} \ " fi @@ -947,6 +970,30 @@ package_php71-phpdbg() { } # phpdbg sapi end +# litespeed sapi +package_php71-litespeed() { + _sapi="litespeed" + pkgdesc="LiteSpeed SAPI for ${pkgbase}" + depends=("${pkgbase}=${pkgver}") + depends+=("${_sapi_depends[@]}") + if ((_build_ini_per_sapi || _build_per_sapi)); then + pushd "build-${_sapi}" + else + pushd "build-cli" + fi + if ((_build_ini_per_sapi)); then + install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_cgi}/php.ini" + backup=("${_build_sapi_ini_cgi}/php.ini") + fi + case "${_phpbase}" in + *) + install -D -m755 sapi/litespeed/php "${pkgdir}/usr/bin/ls${pkgbase}" + ;; + esac + popd +} +# litespeed sapi end + ############################################################################### # PEAR + PECL ############################################################################### @@ -1491,7 +1538,8 @@ package_php71-readline() { } -sha256sums=('0b7e98dca9c996ec10cb9b3f6296bb7547c68797fd5f35006fdfd3e97700672d' +sha256sums=('e6b8530d747000eebb0089249ec70a3b14add7b501337046700544883f62b17b' + '0b7e98dca9c996ec10cb9b3f6296bb7547c68797fd5f35006fdfd3e97700672d' 'ba72fc64f77822755a469314160d5889d5298f4eb5758dd7939dac9b811afe52' '6d0ad9becb5470ce8e5929d7d45660b0f32579038978496317544c5310281a91' 'bd7c0a9bd5433289ee01fd440af3715309faf583f75832b64fe169c100d52968' |