mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/php-suhosin: New maintainer.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
parent
b4bb23f5c0
commit
2dcab5ec2b
3 changed files with 22 additions and 14 deletions
|
@ -3,6 +3,7 @@
|
|||
# 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
|
||||
|
@ -44,7 +45,7 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
@ -53,28 +54,33 @@ rm -rf $SRCNAM-$VERSION
|
|||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||
cd $SRCNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . -type d | xargs chmod 0755
|
||||
find . -type f | xargs chmod a-s,go-w
|
||||
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 {} \;
|
||||
|
||||
# With PHP extentions apparently this is needed
|
||||
phpize
|
||||
/usr/bin/phpize
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
EXTENSION_DIR="$PKG/usr/lib$LIBDIRSUFFIX/php/extensions" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--with-php-config=/usr/bin/php-config \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
|
||||
install -D -m755 modules/suhosin.so $PKG/usr/lib$LIBDIRSUFFIX/php/extensions/suhosin.so
|
||||
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/extensions/ \
|
||||
$PKG/etc/php
|
||||
|
||||
# Add to the PHP config
|
||||
mkdir -p $PKG/etc/php
|
||||
echo "extension=suhosin.so" > $PKG/etc/php/suhosin.ini.new
|
||||
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
|
||||
|
|
|
@ -5,6 +5,6 @@ DOWNLOAD="http://download.suhosin.org/suhosin-0.9.32.1.tar.gz"
|
|||
MD5SUM="26a86f0f684a656c3e789e3eb4ec1db3"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Menno Duursma"
|
||||
EMAIL="druiloor@zonnet.nl"
|
||||
MAINTAINER="Heinz Wiesinger"
|
||||
EMAIL="pprkut@liwjatan.at"
|
||||
APPROVED="dsomero"
|
||||
|
|
2
libraries/php-suhosin/suhosin.ini
Normal file
2
libraries/php-suhosin/suhosin.ini
Normal file
|
@ -0,0 +1,2 @@
|
|||
; Enable suhosin extension module
|
||||
; extension=suhosin.so
|
Loading…
Reference in a new issue