From 51914aa9a07ab9581eb0db317bc0539d82a94baf Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Sat, 4 Nov 2017 22:35:55 +0000 Subject: community/php5-suhosin: restore to community * restore php5-suhosin --- community/php5-suhosin/APKBUILD | 45 ++++++++++++++++++++++++ community/php5-suhosin/fix-LOCK-undeclared.patch | 11 ++++++ 2 files changed, 56 insertions(+) create mode 100644 community/php5-suhosin/APKBUILD create mode 100644 community/php5-suhosin/fix-LOCK-undeclared.patch (limited to 'community/php5-suhosin') diff --git a/community/php5-suhosin/APKBUILD b/community/php5-suhosin/APKBUILD new file mode 100644 index 0000000000..ec69865c62 --- /dev/null +++ b/community/php5-suhosin/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Stuart Cardall +# Maintainer: Stuart Cardall +_php=php5 +_realname=suhosin +pkgname=${_php}-$_realname +pkgver=0.9.38 +pkgrel=0 +pkgdesc="SUHOSIN - 수호신 - The PHP security extension." +url="https://www.suhosin.org" +arch="all" +license="PHP 3" +depends="" +makedepends="${_php}-dev autoconf linux-headers" +source="https://download.suhosin.org/suhosin-$pkgver.tar.gz + fix-LOCK-undeclared.patch + " +builddir="$srcdir/suhosin-$pkgver" + +build() { + cd "$builddir" + phpize5 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-php-config=/usr/bin/php-config5 + make +} + +check() { + cd "$builddir" + # tests/funcs/crypt_blowfish.phpt failure reported to php + # the test asks for an email address due to this failure + # make test +} + +package() { + cd "$builddir" + make INSTALL_ROOT="$pkgdir" install + mkdir -p "$pkgdir"/etc/${_php}/conf.d + echo "extension=suhosin.so" > "$pkgdir"/etc/${_php}/conf.d/suhosin.ini +} + +sha512sums="cc4eb38b5d6673cc3f2dc395e5a8b5461d3221019ac9849b747b6d5bae423cd5bd01a75b9432414dc7c26c78bab9f2381a5414712a6906a999f3ec9dc77ebc45 suhosin-0.9.38.tar.gz +8d41d5cf3cf31c086ecc07fa786232df3e821a659dc4ff4e08f9d30f57bce453abcf16345b911b6dba683dd421c2cbe11e0966ef3bb7976d1d6627d8bc66a15e fix-LOCK-undeclared.patch" diff --git a/community/php5-suhosin/fix-LOCK-undeclared.patch b/community/php5-suhosin/fix-LOCK-undeclared.patch new file mode 100644 index 0000000000..27b3e7555b --- /dev/null +++ b/community/php5-suhosin/fix-LOCK-undeclared.patch @@ -0,0 +1,11 @@ +--- suhosin-0.9.38/log.c ++++ suhosin-0.9.38/log.c.new +@@ -27,7 +27,7 @@ + #include "php.h" + #include "php_ini.h" + #include "php_suhosin.h" +-#include ++#include + #include "SAPI.h" + #include "ext/standard/datetime.h" + #include "ext/standard/flock_compat.h" -- cgit v1.2.3