blob: d6446e80bdecb34783a122274c00f304066f40b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $Id: PKGBUILD 146960 2012-01-19 17:53:37Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
pkgname=php-suhosin
pkgver=0.9.38
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='An advanced protection system for PHP installations'
url='http://suhosin.org/'
license=('PHP')
source=("https://download.suhosin.org/suhosin-${pkgver}.tar.gz"
"https://download.suhosin.org/suhosin-${pkgver}.tar.gz.sig")
depends=('php')
checkdepends=('php-cgi')
backup=('etc/php/conf.d/suhosin.ini')
sha1sums=('20af6379c0ff9879c5ed69452a6c38b7b3e76748'
'SKIP')
validpgpkeys=('E027452AFAB2A52F18AB6363B12D0447319F1ADB')
build() {
cd ${srcdir}/suhosin-${pkgver}
phpize
./configure --prefix=/usr --enable-suhosin
make
}
check() {
cd ${srcdir}/suhosin-${pkgver}
export NO_INTERACTION=1
export REPORT_EXIT_STATUS=1
make test
}
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
}
|