summaryrefslogtreecommitdiff
path: root/testing/php-suhosin/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/php-suhosin/PKGBUILD')
-rw-r--r--testing/php-suhosin/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/php-suhosin/PKGBUILD b/testing/php-suhosin/PKGBUILD
new file mode 100644
index 000000000..5d1106c38
--- /dev/null
+++ b/testing/php-suhosin/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 135740 2011-08-18 09:08:36Z pierre $
+# Maintainer: Pierre Schmitz <pierre@archlinux.de>
+
+pkgname=php-suhosin
+pkgver=0.9.32.1
+pkgrel=2
+arch=('i686' 'x86_64')
+pkgdesc='An advanced protection system for PHP installations'
+url='http://www.hardened-php.net/suhosin/'
+license='PHP'
+source=("http://download.suhosin.org/suhosin-${pkgver}.tar.gz")
+depends=('php')
+conflicts=('php-suhosin-extension')
+replaces=('php-suhosin-extension')
+backup=('etc/php/conf.d/suhosin.ini')
+md5sums=('26a86f0f684a656c3e789e3eb4ec1db3')
+
+build() {
+ cd ${srcdir}/suhosin-${pkgver}
+ phpize
+ ./configure --prefix=/usr --enable-suhosin
+ make
+}
+
+package() {
+ cd ${srcdir}/suhosin-${pkgver}
+ make INSTALL_ROOT=${pkgdir} install
+ # disable by default
+ sed -i 's|extension = suhosin.so|;extension=suhosin.so|g' suhosin.ini
+ install -D -m644 suhosin.ini ${pkgdir}/etc/php/conf.d/suhosin.ini
+}