diff options
Diffstat (limited to 'unmaintained/php-suhosin/APKBUILD')
-rw-r--r-- | unmaintained/php-suhosin/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/unmaintained/php-suhosin/APKBUILD b/unmaintained/php-suhosin/APKBUILD new file mode 100644 index 0000000000..dbbcac4b6d --- /dev/null +++ b/unmaintained/php-suhosin/APKBUILD @@ -0,0 +1,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" |