From 806440bdde034ff5c7a56caee8ff5ec4b2c7f300 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 13 Feb 2011 17:36:45 -0600 Subject: network/mod_wsgi: Install config file in /etc/httpd/extra/ (instead of toplevel /etc/httpd/ directory) Signed-off-by: Robby Workman --- network/mod_wsgi/mod_wsgi.SlackBuild | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'network/mod_wsgi/mod_wsgi.SlackBuild') 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/ -- cgit v1.2.3