mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/php-suhosin: Removed.
This is not compatible with php 5.4 yet. Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
parent
a5b81ed181
commit
366f3ac331
7 changed files with 0 additions and 165 deletions
|
@ -1,4 +0,0 @@
|
|||
Suhosin is an advanced protection system for PHP installations.
|
||||
|
||||
It was designed to protect servers and users from known and unknown flaws
|
||||
in PHP applications and the PHP core. See also: README.SLACKWARE
|
|
@ -1,17 +0,0 @@
|
|||
Suhosin comes in two independent parts, that can be used separately or
|
||||
in combination. The first part is a small patch against the PHP core,
|
||||
that implements a few low-level protections against bufferoverflows or
|
||||
format string vulnerabilities.
|
||||
|
||||
The second part is a powerful PHP extension that implements all the other
|
||||
protections. Suhosin is binary compatible with normal PHP installations,
|
||||
which means it is compatible to 3rd party binary extensions like
|
||||
ZendOptimizer.
|
||||
|
||||
This package includes only the extention.
|
||||
|
||||
After installation the 'php -v' command should list it as loaded.
|
||||
For more info try:
|
||||
|
||||
php -i | grep suhosin
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/php/suhosin.ini.new
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for Suhosin
|
||||
|
||||
# Written by Menno Duursma <druiloor@zonnet.nl>
|
||||
# Modified by Heinz Wiesinger <pprkut@liwjatan.at>
|
||||
|
||||
# This program is free software. It comes without any warranty.
|
||||
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
|
||||
# http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
|
||||
# Modified by SlackBuilds.org
|
||||
# Re-modified by Menno Duursma to match perl-template example
|
||||
|
||||
SRCNAM=suhosin
|
||||
PRGNAM=php-$SRCNAM
|
||||
VERSION=${VERSION:-0.9.33}
|
||||
BUILD=${BUILD:-1}
|
||||
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
|
||||
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"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $SRCNAM-$VERSION
|
||||
tar xvf $CWD/$SRCNAM-$VERSION.tgz
|
||||
cd $SRCNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
/usr/bin/phpize
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--with-php-config=/usr/bin/php-config \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
|
||||
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/extensions/ \
|
||||
$PKG/etc/php
|
||||
|
||||
install -m 755 modules/suhosin.so $PKG/usr/lib$LIBDIRSUFFIX/php/extensions/
|
||||
install -m 644 $CWD/suhosin.ini $PKG/etc/php/suhosin.ini.new
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a [A-Z][A-Z]* Changelog $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -1,10 +0,0 @@
|
|||
PRGNAM="php-suhosin"
|
||||
VERSION="0.9.33"
|
||||
HOMEPAGE="http://www.hardened-php.net/suhosin/index.html"
|
||||
DOWNLOAD="http://download.suhosin.org/suhosin-0.9.33.tgz"
|
||||
MD5SUM="0ce498a02a8281e4274ea8e390c2b487"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Heinz Wiesinger"
|
||||
EMAIL="pprkut@liwjatan.at"
|
|
@ -1,19 +0,0 @@
|
|||
# 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------------------------------------------------------|
|
||||
php-suhosin: Suhosin (PHP security extension)
|
||||
php-suhosin:
|
||||
php-suhosin: Suhosin is an advanced protection system for PHP installations. It
|
||||
php-suhosin: was designed to protect servers and users from known and unknown
|
||||
php-suhosin: flaws in PHP applications and the PHP core.
|
||||
php-suhosin:
|
||||
php-suhosin: Suhosin is developed and maintained by the hardened-php project.
|
||||
php-suhosin:
|
||||
php-suhosin:
|
||||
php-suhosin:
|
||||
php-suhosin:
|
|
@ -1,2 +0,0 @@
|
|||
; Enable suhosin extension module
|
||||
; extension=suhosin.so
|
Loading…
Reference in a new issue