aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/php-suhosin/APKBUILD
blob: dbbcac4b6d174c9662a24aa8a028cfe28c129037 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-suhosin
_pkgreal=suhosin
pkgver=0.9.38 
_pkgver=${pkgver/_rc/RC}
pkgrel=1
pkgdesc="PHP extension SUHOSIN, An advanced protection system for PHP installations"
url="http://suhosin.org"
arch="all"
license="PHP"
depends=
pecldepends="php-dev autoconf"
makedepends="$pecldepends re2c"
install=""
subpackages=""
source="https://download.suhosin.org/$_pkgreal-$_pkgver.tar.gz
        0001-php_flock-undefined-variable-fix.patch
        "

_srcdir="${srcdir}/$_pkgreal-$_pkgver"
_builddir="${srcdir}"/$_pkgreal-$_pkgver
prepare() {
        cd "$_srcdir"
        for i in $source; do
                case $i in
                *.patch)
                        msg "Applying $i"
                        patch -p1 -i "$srcdir"/$i || return 1
                        ;;
                esac
        done
}

build() {
	cd "$_builddir"
	phpize || return 1
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir"/ install || return 1
	install -d "$pkgdir"/etc/php/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php/conf.d/$_pkgreal.ini
}

md5sums="0c26402752b0aff69e4b891f062a52bf  suhosin-0.9.38.tar.gz
c7b5679b138f3605f20a4c4b5742b759  0001-php_flock-undefined-variable-fix.patch"
sha256sums="c02d76c4e7ce777910a37c18181cb67fd9e90efe0107feab3de3131b5f89bcea  suhosin-0.9.38.tar.gz
aeaf1969d67b954a155fc3eb303c47be66a447768ef90712c0efd887fa4c3c68  0001-php_flock-undefined-variable-fix.patch"
sha512sums="cc4eb38b5d6673cc3f2dc395e5a8b5461d3221019ac9849b747b6d5bae423cd5bd01a75b9432414dc7c26c78bab9f2381a5414712a6906a999f3ec9dc77ebc45  suhosin-0.9.38.tar.gz
d9bd1df73d33014d8e35e5094072e7b4aae2347f83154c0162880bbb2a2463e10d18709aa0fe685342831efdfe06a67886e25db9a9f059d1e0747e8b83781df4  0001-php_flock-undefined-variable-fix.patch"