main/uwsgi: add missing decorators for uwsgi and enable configuring of an external logger

This commit is contained in:
Noel Kuntze 2024-05-14 22:12:48 +02:00 committed by Natanael Copa
parent 638cbeab45
commit ed0ff940d3
2 changed files with 9 additions and 3 deletions

View file

@ -4,7 +4,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=uwsgi
pkgver=2.0.25.1
pkgrel=0
pkgrel=1
pkgdesc="uWSGI application container server"
url="https://projects.unbit.it/uwsgi/"
arch="all"
@ -189,6 +189,8 @@ _plugin() {
provides="uwsgi-python=$pkgver-r$pkgrel"
replaces="uwsgi-python"
ln -s python3_plugin.so "$subpkgdir"/usr/lib/uwsgi/python_plugin.so
local python_libpath=$(python3 -c "import sysconfig; print(sysconfig.get_path('purelib'))")
install -Dm644 uwsgidecorators.py -t "$subpkgdir/$python_libpath/"
;;
# Mitigate breakages caused by injudicious rename in v3.11.
gevent3)
@ -196,13 +198,15 @@ _plugin() {
provides="uwsgi-gevent=$pkgver-r$pkgrel"
replaces="uwsgi-gevent"
ln -s gevent3_plugin.so "$subpkgdir"/usr/lib/uwsgi/gevent_plugin.so
local python_libpath=$(python3 -c "import sysconfig; print(sysconfig.get_path('purelib'))")
install -Dm644 uwsgidecorators.py -t "$subpkgdir/$python_libpath/"
;;
esac
}
sha512sums="
3b2a78917b129f5a2f38f3538e30b132e4cd6e270df55365ccc0dc6b94641a262af1484c62b252d0a24121eb68417cb061210e89e2b7885992ab4ffa07092119 uwsgi-2.0.25.1.tar.gz
1fef8a30e8e20b0322cf464a2adf744a4b46a35f4c9e104acacab4c99b913c5a0b537783bdfedf8900a4e7397e08079b675be2414beb571fd0b330985ac676cc uwsgi.initd
8389c5bc34f3b6eb038baeb91269af0e6ba885399bcc094f86caad74befddcb04c2e36ba7399c2722ac0de74b5fafc1f284f83dbfec82d367f3451a3a01f9118 uwsgi.initd
370202e143d0e041a2e36905346080d3ca592c9a74705a8c4e142a1307d22b921c10e673d683ca284ea27d184474ed86edd7723a6e590d35a562ad7cf6afa529 uwsgi.ini
2798c9d2e49e29292ffe6a5a29b866301c78d5f322fc5d07dfa9569efdaa5220237a5f6744652fbdd957be29311ddaff190541333f042cbf0e907dfa98ce3e2a readme.emperor
f3cff00926929a5bb40afafb65fd5228582af35fbf524562282020c4c4ae9c659231b2381f4b3cceb18e8f3f6c888c21bdd8ed4ddcd81e92fbc6a0891800ce38 alpine.buildconf

View file

@ -44,7 +44,9 @@ start_pre() {
--user $user
$(optif --group "$group")
$(optif --stdout "$logfile")
$(optif --stderr "$logfile")"
$(optif --stderr "$logfile")
$(optif --stdout-logger "$output_logger")
$(optif --stderr-logger "$error_logger")"
if [ -z "$uwsgi_conf" ]; then
case "$RC_SVCNAME" in