summaryrefslogtreecommitdiff
path: root/network/mod_wsgi/mod_wsgi.SlackBuild
diff options
context:
space:
mode:
authorAdis Nezirovic <adis_at_linux.org.ba>2010-05-11 22:54:56 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:54:56 +0200
commit1dc81fa8fd86473426976958d01a9d8ed2afa3ea (patch)
tree70e150b593e5fbc118286de05fb9bb52d94b4c88 /network/mod_wsgi/mod_wsgi.SlackBuild
parent3b4c071bc72e00ece7d848be706753da735a438a (diff)
downloadslackbuilds-1dc81fa8fd86473426976958d01a9d8ed2afa3ea.tar.gz
network/mod_wsgi: Added to 12.1 repository
Diffstat (limited to 'network/mod_wsgi/mod_wsgi.SlackBuild')
-rw-r--r--network/mod_wsgi/mod_wsgi.SlackBuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/network/mod_wsgi/mod_wsgi.SlackBuild b/network/mod_wsgi/mod_wsgi.SlackBuild
new file mode 100644
index 0000000000..04d4721c58
--- /dev/null
+++ b/network/mod_wsgi/mod_wsgi.SlackBuild
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+## Slackware build script for mod_wsgi
+##
+## Copyright 2008 Adis Nezirovic <adis _at_ linux.org.ba>
+## Licensed under GNU GPL v2
+
+PRGNAM=mod_wsgi
+VERSION=2.0
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+# CFLAGS are automatically picked from Python
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+./configure
+
+# libtool can't find shared Python library;
+# there should be symlink to libpython in /usr/lib/python2.5/config
+# see http://code.google.com/p/modwsgi/wiki/InstallationIssues
+make LDFLAGS="-L/usr/lib"
+make install DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENCE README $PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.Slackware
+
+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.tgz