community/uwsgi to 2.0.21-5

This commit is contained in:
Kevin Mihelich 2023-01-16 19:44:52 +00:00
parent 0f77acafbd
commit 1cc4c5acea
2 changed files with 8 additions and 8 deletions

View file

@ -26,7 +26,7 @@ pkgname=(
uwsgi-plugin-notfound
)
pkgver=2.0.21
pkgrel=3
pkgrel=5
pkgdesc="A full stack for building hosting services"
arch=(x86_64)
url="https://uwsgi-docs.readthedocs.io/en/latest/"
@ -50,7 +50,6 @@ makedepends=(
util-linux
zlib
)
options=(debug)
source=(
$pkgbase-$pkgver.tar.gz::https://github.com/unbit/$pkgbase/archive/refs/tags/$pkgver.tar.gz
archlinux.ini
@ -66,7 +65,7 @@ source=(
$pkgbase-2.0.22-php8.2.patch
)
sha512sums=('36a9c1b87a4c3d08482b9045d2227f56b006acb53f38ddf1b510880ae5fc24c0177a077338ec8af3ef0b8f8e220bc4fc7f8311dab8066e13cbcbb616f736c795'
'51c474a5ae025c0fae17dec309bea29550a8ca39815b7495189394ae5ce30eb264f77a45f48f9f7529c59d907baf139cdf7c488d1b13fcb862cc7b9bdc268804'
'912b2d85cee0907454f2b1eee79fdeb7d7205c7b6a9f2a05cef969205fd4f3ccb9f3260e71a1c19cc910f6408e1e94da93fcca9978e8432273659b7caed34d9a'
'd54c84838ddb2f389e115ebb81aa2583705c9e330f020e6583b496f9c271ed236b6820c2a065f2b55a79adbf13e262b9ff2428124a8044b8fa20ca29ca4930ac'
'068ada6281fdeb504fed7e47dae2729d047ed810bb596e5268c1821ad275cd32110e801e93e7ba0ee2d92dbc39e1954180cf43d88d2990d42b802ceb54b50a9e'
'592c85270f43b37e9c51aae126533830515b96fff9fcae969ee865fe173bd0550c7729530d5ff1e44ffee43cd5c78c96688ce091c677a4196379e24983c0180e'
@ -78,7 +77,7 @@ sha512sums=('36a9c1b87a4c3d08482b9045d2227f56b006acb53f38ddf1b510880ae5fc24c0177
'162ca1be96282b32e8e6be919b6315bfd08954c491056958985bf99e7f5bdad3511665f059329d6cb6ef5d222f9aa11d4dc43c72e6a963ab941ada959fe8d964'
'd62db75b0e27bbc014ec5e69c360de79f523f33bc1ab15fe7957bf8531635be1bb77200d1ad6d50184eba18c6d56bcdd284082c042792ef7822233128bc22fbc')
b2sums=('3c5fc3ce3a6a7f8f915bb302c0b775a75227f859dd2b141034e8b1aa5cb867b447ed532b3e8b537db80acc908fc26121b752e35ebc0bf9a542678843fd02ff54'
'46f833e5d179d950bcbab51b539e6431959c9e3618c0d66b791a4b4d866b6195707704b394224b4fea97e1f65188b8b474499d70e5c2bb44da32c60447b80806'
'41a9213d55665c905f71f07c752a74fc7685b2f191381d24f3e1d9691a8dae538aa4344ebe771ffd77ba3c9cd7c52fd9eff54ff876bc399d92256cb86f5b7d53'
'835a1036422e9821cd52ffdf5a6053bdd59fc700d473600bda60b6730746f6c0750c30c85f4139d3ea81c6b6dd10d6849f9406decee3179861c51aca90da6161'
'80aa3c4d3f0310f5029ac01690d2ba718d8c86fa49cd1b4f3fc1bd5ae9eadaed6562bf0a48a0fd611e92f100a8594e08fb4bae58e25765fc2eb648cdf1c60b35'
'b6838c0c91811d4b677bf0f558134c69015708c308ef7080df328f12b0b0d58ae6cdebe277c29b6d11c20cfeb0847a4934e3a8924323e57ed661d6e9f6656a34'
@ -108,16 +107,17 @@ prepare() {
patch -p1 -i "$srcdir/$pkgbase-2.0.22-php8.2.patch"
# duplicate the php plugin, so that we can modify it
cp -av plugins/php{,_legacy}
# link the php_legacy plugin against libphp-legacy.so
sed -e 's/lphp/lphp-legacy/g; s/UWSGICONFIG_PHPPATH/UWSGICONFIG_PHP_LEGACY_PATH/g; s/NAME=.*/NAME="php_legacy"/g' -i plugins/php_legacy/uwsgiplugin.py
sed -e 's/php_plugin/php_legacy_plugin/g' -i plugins/php_legacy/php_plugin.c
# copy our custom build profile into place
cp -v ../archlinux.ini buildconf/
}
build() {
cd $pkgbase-$pkgver
export UWSGICONFIG_PHP_LEGACY_PATH='php-config-legacy'
python uwsgiconfig.py --verbose --build archlinux
# build php-legacy plugin separately and override php-config in use
UWSGICONFIG_PHPPATH='php-config-legacy' \
python uwsgiconfig.py --verbose --plugin plugins/php_legacy archlinux php_legacy
}
package_uwsgi() {

View file

@ -1,6 +1,6 @@
[uwsgi]
plugin_build_dir = .
plugin_dir = /usr/lib/uwsgi
plugins = asyncio, cgi, fiber, gevent, greenlet, php, lua, notfound, psgi, python, rack, rbthreads, webdav, zabbix
plugins = asyncio, cgi, fiber, gevent, greenlet, php, php_legacy, lua, mono, notfound, psgi, pypy, python, rack, rbthreads, webdav, zabbix
main_plugin = systemd_logger,pam
inherit = base