n/mod_wsgi: Upgraded mod_wsgi-3.3.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent 97ecb1841b
commit 21521b62f2
  1. 1
      n/mod_wsgi/mod_wsgi-2.5.tar.gz.sha1
  2. 1
      n/mod_wsgi/mod_wsgi-3.3.tar.gz.sha1
  3. 19
      n/mod_wsgi/mod_wsgi.SlackBuild

@ -1 +0,0 @@
a2ed3fd60b390c3a790aca1c859093ab7a7c2d9d mod_wsgi-2.5.tar.gz

@ -0,0 +1 @@
f32d38e5d3ed5de1efd5abefb52678f833dc9166 mod_wsgi-3.3.tar.gz

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
# Copyright (C) 2009,2011 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,20 +27,21 @@
# Source package infos
NAMESRC=${NAMESRC:-mod_wsgi}
VERSION=${VERSION:-2.5}
VERSION=${VERSION:-3.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://modwsgi.googlecode.com/files/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-mod_wsgi}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
NAMEPKG=${NAMEPKG:-mod_wsgi}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -86,11 +87,11 @@ CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--with-apxs=/usr/sbin/apxs
make LDFLAGS="-L/usr/lib" -j $JOBS
make -j $JOBS
make install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
@ -105,7 +106,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save