summaryrefslogtreecommitdiff
path: root/network/mod_wsgi/mod_wsgi.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/mod_wsgi/mod_wsgi.SlackBuild')
-rw-r--r--network/mod_wsgi/mod_wsgi.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/network/mod_wsgi/mod_wsgi.SlackBuild b/network/mod_wsgi/mod_wsgi.SlackBuild
index 208e6548f1..922ecc64fd 100644
--- a/network/mod_wsgi/mod_wsgi.SlackBuild
+++ b/network/mod_wsgi/mod_wsgi.SlackBuild
@@ -7,10 +7,17 @@
PRGNAM=mod_wsgi
VERSION=3.1
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -46,9 +53,9 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-mkdir -p $PKG/etc/httpd
+mkdir -p $PKG/etc/httpd/extra
sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%" $CWD/mod_wsgi.conf > \
- $PKG/etc/httpd/mod_wsgi.conf.new
+ $PKG/etc/httpd/extra/mod_wsgi.conf.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENCE README $PKG/usr/doc/$PRGNAM-$VERSION/