mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-06 23:47:10 +00:00
community/uwsgi to 2.0.9-3
This commit is contained in:
parent
4d07627c9f
commit
71203dcc38
2 changed files with 33 additions and 24 deletions
|
@ -21,9 +21,10 @@ pkgname=(uwsgi
|
|||
uwsgi-plugin-lua51
|
||||
uwsgi-plugin-jvm
|
||||
uwsgi-plugin-mono
|
||||
uwsgi-plugin-webdav
|
||||
mod_proxy_uwsgi)
|
||||
pkgver=2.0.9
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
arch=(i686 x86_64)
|
||||
url="http://projects.unbit.it/$pkgbase"
|
||||
license=(GPL2)
|
||||
|
@ -45,7 +46,7 @@ source=(http://projects.unbit.it/downloads/$pkgbase-$pkgver.tar.gz
|
|||
emperor.uwsgi.socket)
|
||||
|
||||
md5sums=('44a5b044ea8416e7af310df0dea9caf8'
|
||||
'30d101f1190ef83b4cc79a2cc079be7e'
|
||||
'9aced0faffc5fc04afccf946e8a2a886'
|
||||
'752475ee32286acfbafa49b898616817'
|
||||
'feaf107977aec047101acdbf06810f30'
|
||||
'ea381549fe65a5d72fa1abb5ceb7d3ef'
|
||||
|
@ -56,7 +57,7 @@ md5sums=('44a5b044ea8416e7af310df0dea9caf8'
|
|||
'25dfcc365241f16d7ea16f7143698b53'
|
||||
'3ab4486e02f5c217566fb6c8d469c246')
|
||||
|
||||
prepare(){
|
||||
prepare() {
|
||||
cd $srcdir/$pkgbase-$pkgver
|
||||
cp $srcdir/archlinux.ini buildconf/archlinux.ini
|
||||
#sed -i 's/LIBS .*-lphp5.*/LIBS = []/' plugins/php/uwsgiplugin.py
|
||||
|
@ -69,31 +70,32 @@ prepare(){
|
|||
|
||||
}
|
||||
build() {
|
||||
pushd $srcdir/$pkgbase-$pkgver
|
||||
pushd $srcdir/$pkgbase-$pkgver
|
||||
|
||||
python uwsgiconfig.py --build archlinux
|
||||
python uwsgiconfig.py --plugin plugins/python archlinux python
|
||||
python uwsgiconfig.py --plugin plugins/greenlet archlinux greenlet
|
||||
python2 uwsgiconfig.py --plugin plugins/python archlinux python2
|
||||
python2 uwsgiconfig.py --plugin plugins/greenlet archlinux greenlet2
|
||||
python2 uwsgiconfig.py --plugin plugins/gevent archlinux gevent2
|
||||
python uwsgiconfig.py --build archlinux
|
||||
python uwsgiconfig.py --plugin plugins/python archlinux python
|
||||
python uwsgiconfig.py --plugin plugins/greenlet archlinux greenlet
|
||||
python uwsgiconfig.py --plugin plugins/asyncio archlinux asyncio
|
||||
python2 uwsgiconfig.py --plugin plugins/python archlinux python2
|
||||
python2 uwsgiconfig.py --plugin plugins/greenlet archlinux greenlet2
|
||||
python2 uwsgiconfig.py --plugin plugins/gevent archlinux gevent2
|
||||
|
||||
pushd $srcdir/$pkgbase-$pkgver/apache2
|
||||
/usr/bin/apxs -c mod_proxy_uwsgi.c
|
||||
pushd $srcdir/$pkgbase-$pkgver/apache2
|
||||
/usr/bin/apxs -c mod_proxy_uwsgi.c
|
||||
}
|
||||
|
||||
package_uwsgi() {
|
||||
pkgdesc="A fast, self-healing and developer/sysadmin-friendly application container server coded in pure C"
|
||||
depends=(python2 libxml2 jansson libyaml systemd)
|
||||
install=uwsgi.install
|
||||
cd $srcdir/$pkgbase-$pkgver
|
||||
install -Dm755 uwsgi $pkgdir/usr/bin/uwsgi
|
||||
install -Dm644 $srcdir/uwsgi_at.service $pkgdir/usr/lib/systemd/system/uwsgi@.service
|
||||
install -Dm644 $srcdir/uwsgi_at.socket $pkgdir/usr/lib/systemd/system/uwsgi@.socket
|
||||
install -Dm644 $srcdir/emperor.uwsgi.service $pkgdir/usr/lib/systemd/system/emperor.uwsgi.service
|
||||
install -Dm644 $srcdir/emperor.uwsgi.socket $pkgdir/usr/lib/systemd/system/emperor.uwsgi.socket
|
||||
install -Dm644 $srcdir/emperor.ini $pkgdir/etc/uwsgi/emperor.ini
|
||||
install -Dm644 $srcdir/tmpfilesd $pkgdir/usr/lib/tmpfiles.d/uwsgi.conf
|
||||
pkgdesc="A fast, self-healing and developer/sysadmin-friendly application container server coded in pure C"
|
||||
depends=(python2 libxml2 jansson libyaml systemd)
|
||||
install=uwsgi.install
|
||||
cd $srcdir/$pkgbase-$pkgver
|
||||
install -Dm755 uwsgi $pkgdir/usr/bin/uwsgi
|
||||
install -Dm644 $srcdir/uwsgi_at.service $pkgdir/usr/lib/systemd/system/uwsgi@.service
|
||||
install -Dm644 $srcdir/uwsgi_at.socket $pkgdir/usr/lib/systemd/system/uwsgi@.socket
|
||||
install -Dm644 $srcdir/emperor.uwsgi.service $pkgdir/usr/lib/systemd/system/emperor.uwsgi.service
|
||||
install -Dm644 $srcdir/emperor.uwsgi.socket $pkgdir/usr/lib/systemd/system/emperor.uwsgi.socket
|
||||
install -Dm644 $srcdir/emperor.ini $pkgdir/etc/uwsgi/emperor.ini
|
||||
install -Dm644 $srcdir/tmpfilesd $pkgdir/usr/lib/tmpfiles.d/uwsgi.conf
|
||||
}
|
||||
|
||||
package_uwsgi-plugin-cgi() {
|
||||
|
@ -132,6 +134,7 @@ package_uwsgi-plugin-python() {
|
|||
pkgdesc="Plugin for Python support"
|
||||
install -Dm755 $pkgbase-$pkgver/python_plugin.so $pkgdir/usr/lib/uwsgi/python_plugin.so
|
||||
install -Dm755 $pkgbase-$pkgver/greenlet_plugin.so $pkgdir/usr/lib/uwsgi/greenlet_plugin.so
|
||||
install -Dm755 $pkgbase-$pkgver/asyncio_plugin.so $pkgdir/usr/lib/uwsgi/asyncio_plugin.so
|
||||
install -Dm644 $pkgbase-$pkgver/uwsgidecorators.py $pkgdir/usr/lib/python3.4/site-packages/uwsgidecorators.py
|
||||
python -m compileall $pkgdir/usr/lib/python3.4/site-packages/
|
||||
python -O -m compileall $pkgdir/usr/lib/python3.4/site-packages/
|
||||
|
@ -163,6 +166,12 @@ package_uwsgi-plugin-mono() {
|
|||
install -Dm755 $pkgbase-$pkgver/mono_plugin.so $pkgdir/usr/lib/uwsgi/mono_plugin.so
|
||||
}
|
||||
|
||||
package_uwsgi-plugin-webdav() {
|
||||
depends=(uwsgi)
|
||||
pkgdesc="Plugin for webdav support"
|
||||
install -Dm755 $pkgbase-$pkgver/webdav_plugin.so $pkgdir/usr/lib/uwsgi/webdav_plugin.so
|
||||
}
|
||||
|
||||
package_mod_proxy_uwsgi(){
|
||||
depends=(uwsgi apache)
|
||||
pkgdesc="Apache uWSGI proxy module"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[uwsgi]
|
||||
plugin_dir = /usr/lib/uwsgi
|
||||
plugins = rack, rbthreads, fiber, psgi, lua, php, jvm, mono, cgi
|
||||
plugins = rack, rbthreads, fiber, psgi, lua, php, jvm, mono, cgi, webdav
|
||||
main_plugin = systemd_logger,pam
|
||||
inherit = base
|
||||
|
|
Loading…
Reference in a new issue