mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
network/mod_python: Added to 12.2 repository
This commit is contained in:
parent
d3791abea0
commit
284338088e
5 changed files with 107 additions and 0 deletions
1
network/mod_python/README
Normal file
1
network/mod_python/README
Normal file
|
@ -0,0 +1 @@
|
|||
mod_python is a Python module for Apache.
|
68
network/mod_python/mod_python.SlackBuild
Normal file
68
network/mod_python/mod_python.SlackBuild
Normal file
|
@ -0,0 +1,68 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for mod_python
|
||||
|
||||
# Writen by Ben-Richard Ebbesvik (brebbesvik@yahoo.no)
|
||||
|
||||
PRGNAM=mod_python
|
||||
VERSION=3.3.1
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xzvf $CWD/$PRGNAM-$VERSION.tgz || exit 1
|
||||
cd $PRGNAM-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
patch -p0 < $CWD/patch-2009-05-13.diff
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--with-apxs=/usr/sbin/apxs \
|
||||
|| exit 1
|
||||
|
||||
make || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a README NOTICE doc-html $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
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
|
8
network/mod_python/mod_python.info
Normal file
8
network/mod_python/mod_python.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="mod_python"
|
||||
VERSION="3.3.1"
|
||||
HOMEPAGE="http://www.modpython.org/"
|
||||
DOWNLOAD="http://www.powertech.no/apache/dist/httpd/modpython/mod_python-3.3.1.tgz"
|
||||
MD5SUM="a3b0150176b726bd2833dac3a7837dc5"
|
||||
MAINTAINER="Ben-Richard Ebbesvik"
|
||||
EMAIL="brebbesvik@yahoo.no"
|
||||
APPROVED="dsomero"
|
11
network/mod_python/patch-2009-05-13.diff
Normal file
11
network/mod_python/patch-2009-05-13.diff
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/connobject.c 2006-12-03 05:36:37.000000000 +0100
|
||||
+++ src/connobject.c 2009-05-13 20:05:21.002672988 +0200
|
||||
@@ -139,7 +139,7 @@
|
||||
bytes_read = 0;
|
||||
|
||||
while ((bytes_read < len || len == 0) &&
|
||||
- !(b == APR_BRIGADE_SENTINEL(b) ||
|
||||
+ !(b == APR_BRIGADE_SENTINEL(bb) ||
|
||||
APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {
|
||||
|
||||
const char *data;
|
19
network/mod_python/slack-desc
Normal file
19
network/mod_python/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
mod_python: mod_python (Python module for Apache)
|
||||
mod_python:
|
||||
mod_python: Python module for Apache.
|
||||
mod_python:
|
||||
mod_python: http://httpd.apache.org/modules/python-download.cgi
|
||||
mod_python:
|
||||
mod_python:
|
||||
mod_python:
|
||||
mod_python:
|
||||
mod_python:
|
||||
mod_python:
|
Loading…
Reference in a new issue