diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2011-03-21 17:29:31 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-24 19:22:35 -0500 |
commit | 2dcab5ec2b3715c85d847d34f3a0657f56dd024f (patch) | |
tree | 5505a494662bc2e83fd5b77dd6a1c181a9a297ab /libraries/php-suhosin | |
parent | b4bb23f5c0e747e03c992c1409a5b533f2294b52 (diff) | |
download | slackbuilds-2dcab5ec2b3715c85d847d34f3a0657f56dd024f.tar.gz |
libraries/php-suhosin: New maintainer.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries/php-suhosin')
-rw-r--r-- | libraries/php-suhosin/php-suhosin.SlackBuild | 30 | ||||
-rw-r--r-- | libraries/php-suhosin/php-suhosin.info | 4 | ||||
-rw-r--r-- | libraries/php-suhosin/suhosin.ini | 2 |
3 files changed, 22 insertions, 14 deletions
diff --git a/libraries/php-suhosin/php-suhosin.SlackBuild b/libraries/php-suhosin/php-suhosin.SlackBuild index 5529126ee6..2ad3baa774 100644 --- a/libraries/php-suhosin/php-suhosin.SlackBuild +++ b/libraries/php-suhosin/php-suhosin.SlackBuild @@ -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 diff --git a/libraries/php-suhosin/php-suhosin.info b/libraries/php-suhosin/php-suhosin.info index 083f7b24d2..9ec0a768c2 100644 --- a/libraries/php-suhosin/php-suhosin.info +++ b/libraries/php-suhosin/php-suhosin.info @@ -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" diff --git a/libraries/php-suhosin/suhosin.ini b/libraries/php-suhosin/suhosin.ini new file mode 100644 index 0000000000..f282dfc49d --- /dev/null +++ b/libraries/php-suhosin/suhosin.ini @@ -0,0 +1,2 @@ +; Enable suhosin extension module +; extension=suhosin.so |