aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author(@cassandra) <(@cassandra)>2017-12-12 11:56:41 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-12-15 13:03:05 +0000
commit355691c6eb4953693e385a5bb83f9896295ca020 (patch)
tree6728673442212dc48735752fa6f32188cefaa7f3
parenta07614e21ddeabc11100c670a2d2eea4da04c421 (diff)
downloadaports-355691c6eb4953693e385a5bb83f9896295ca020.tar.gz
aports-355691c6eb4953693e385a5bb83f9896295ca020.tar.bz2
aports-355691c6eb4953693e385a5bb83f9896295ca020.tar.xz
main/uwsgi: add php plugin support
Fixes #6602 #7061 There are 2 package requests open and i thould i could fullfill them: https://bugs.alpinelinux.org/issues/6602 https://bugs.alpinelinux.org/issues/7061 The changes extend the uwsgi with two new packages: * uwsgi-php5 * uwsgi-php7
-rw-r--r--main/uwsgi/APKBUILD18
1 files changed, 17 insertions, 1 deletions
diff --git a/main/uwsgi/APKBUILD b/main/uwsgi/APKBUILD
index 062144f2b1..f651663d1a 100644
--- a/main/uwsgi/APKBUILD
+++ b/main/uwsgi/APKBUILD
@@ -4,7 +4,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=uwsgi
pkgver=2.0.15
-pkgrel=1
+pkgrel=2
pkgdesc="uWSGI application container server"
url="http://projects.unbit.it/uwsgi/"
arch="all"
@@ -19,17 +19,24 @@ makedepends="
geoip-dev
jansson-dev
libcap-dev
+ libedit-dev
linux-headers
linux-pam-dev
libxml2-dev
libxslt-dev
lua5.2-dev
+ ncurses-dev
paxmark
pcre-dev
+ php5-dev
+ php5-embed
+ php7-dev
+ php7-embed
postgresql-dev
python
python2-dev
python3-dev
+ readline-dev
zeromq-dev
zlib-dev
"
@@ -76,6 +83,8 @@ _plugins="
nagios
notfound
pam
+ php:php5
+ php:php7
ping
pty
python
@@ -160,8 +169,15 @@ _build() {
local plugin="${2%:*}"
local myname="${2#*:}"
+ if [ "${myname}" = "php5" ]; then
+ export UWSGICONFIG_PHPPATH="/usr/bin/php-config5"
+ elif [ "${myname}" = "php7" ]; then
+ export UWSGICONFIG_PHPPATH="/usr/bin/php-config7"
+ fi
+
msg "Building $plugin plugin ($myname)"
$python uwsgiconfig.py --plugin plugins/$plugin alpine $myname
+ unset UWSGICONFIG_PHPPATH
}
package() {