summaryrefslogtreecommitdiffstats
path: root/network/uwsgi
diff options
context:
space:
mode:
Diffstat (limited to 'network/uwsgi')
-rw-r--r--network/uwsgi/README3
-rw-r--r--network/uwsgi/uwsgi.SlackBuild45
-rw-r--r--network/uwsgi/uwsgi.info6
3 files changed, 34 insertions, 20 deletions
diff --git a/network/uwsgi/README b/network/uwsgi/README
index 237dee5845..1f418583da 100644
--- a/network/uwsgi/README
+++ b/network/uwsgi/README
@@ -10,6 +10,5 @@ uWSGI is designed to be fully modular. This means that different
plugins can be used in order to add compatibility with tons of different
technology on top of the same core.
-This script builds plugins for Python 2.x, Python 3.x (optional, pass
-PYTHON3=yes to enable; requires python3 to be installed), Perl PSGI, and
+This script builds plugins for Python 2.x, Python 3.x, Perl PSGI, and
Ruby Rack.
diff --git a/network/uwsgi/uwsgi.SlackBuild b/network/uwsgi/uwsgi.SlackBuild
index 1fb3e662f3..90795bf5ca 100644
--- a/network/uwsgi/uwsgi.SlackBuild
+++ b/network/uwsgi/uwsgi.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for uwsgi
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=uwsgi
-VERSION=${VERSION:-2.0.15}
+VERSION=${VERSION:-2.0.25.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -49,17 +59,19 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
-# Build Python 2.x plugin.
-PYTHON=${PYTHON:-yes}
+# Python2 plugin.
+PYTHON2=${PYTHON2:-yes}
-# Set this to "yes" if you want to build a plugin for Python 3.x. Requires
-# python3 to be installed.
-PYTHON3=${PYTHON3:-no}
+# Python3 plugin.
+PYTHON3=${PYTHON3:-yes}
# Perl PSGI plugin.
PSGI=${PSGI:-yes}
@@ -92,7 +104,7 @@ EOF
# Build uWSGI core.
CFLAGS="$SLKCFLAGS" \
-python uwsgiconfig.py --build package
+python3 uwsgiconfig.py --build package
install -D -m 0755 uwsgi $PKG/usr/bin/uwsgi
# Create directory for plugins.
@@ -105,17 +117,20 @@ sed -i "s|= /usr|= $PKG/usr|" buildconf/package.ini
PLUGINS="cache ping rpc corerouter fastrouter http ugreen signal syslog"
# Decide which language plugins to build.
-[ "$PYTHON" = "yes" ] && PLUGINS="$PLUGINS python"
[ "$PSGI" = "yes" ] && PLUGINS="$PLUGINS psgi"
[ "$RACK" = "yes" ] && PLUGINS="$PLUGINS rack"
# Build plugins.
for PLUGIN in $PLUGINS ; do
CFLAGS="$SLKCFLAGS" \
- python uwsgiconfig.py --plugin plugins/$PLUGIN package
+ python3 uwsgiconfig.py --plugin plugins/$PLUGIN package
done
-
-# Use python3 to build plugin for it.
+# Use python2 to build python2 plugin
+if [ "$PYTHON2" = "yes" ]; then
+ CFLAGS="$SLKCFLAGS" \
+ python2 uwsgiconfig.py --plugin plugins/python package python
+fi
+# Use python3 to build python3 plugin
if [ "$PYTHON3" = "yes" ]; then
CFLAGS="$SLKCFLAGS" \
python3 uwsgiconfig.py --plugin plugins/python package python3
@@ -123,7 +138,7 @@ fi
# Create a few symlinks for automatic plugin loading.
( cd $PKG/usr/bin
- [ "$PYTHON" = "yes" ] && ln -sf uwsgi uwsgi_python || true
+ [ "$PYTHON2" = "yes" ] && ln -sf uwsgi uwsgi_python || true
[ "$PYTHON3" = "yes" ] && ln -sf uwsgi uwsgi_python3 || true
[ "$PSGI" = "yes" ] && ln -sf uwsgi uwsgi_psgi || true
[ "$RACK" = "yes" ] && ln -sf uwsgi uwsgi_rack || true
@@ -140,4 +155,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/uwsgi/uwsgi.info b/network/uwsgi/uwsgi.info
index 99428dd085..b77f7f8f47 100644
--- a/network/uwsgi/uwsgi.info
+++ b/network/uwsgi/uwsgi.info
@@ -1,8 +1,8 @@
PRGNAM="uwsgi"
-VERSION="2.0.15"
+VERSION="2.0.25.1"
HOMEPAGE="https://uwsgi-docs.readthedocs.io/"
-DOWNLOAD="https://projects.unbit.it/downloads/uwsgi-2.0.15.tar.gz"
-MD5SUM="fc50bd9e83b7602fa474b032167010a7"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/u/uwsgi/uwsgi-2.0.25.1.tar.gz"
+MD5SUM="920deefc852522a0563b2a1351b12b5b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""