Commit 76b6abf3 authored by jvoisin's avatar jvoisin Committed by Andy Postnikov
Browse files

testing/php7-snuffleupagus: new aport

https://snuffleupagus.rtdf.io
Security module for PHP7+
parent e64b601e
Pipeline #51621 failed with stages
in 45 seconds
# Maintainer: Julien (jvoisin) Voisin <julien.voisin+snuffleupagus@dustri.org>
pkgname=php7-snuffleupagus
_pkgreal=snuffleupagus
pkgver=0.5.1
pkgrel=0
pkgdesc="Security module for PHP7+"
url="https://snuffleupagus.readthedocs.io"
arch="all"
license="LGPL-3.0-only"
depends="php7-common"
builddir="$srcdir/$_pkgreal-$pkgver/src"
makedepends="php7-dev pcre-dev php7-cgi" # TODO: remove pcre-dev for the next release, since it'll use pcre2 by default.
source="$pkgname-$pkgver.tar.gz::https://github.com/jvoisin/snuffleupagus/archive/v$pkgver.tar.gz"
build() {
phpize7
./configure \
--prefix=/usr \
--enable-snuffleupagus \
--with-php-config=php-config7
make
}
check() {
TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test TESTS="tests/cookies_encryption tests/deny_writable"
TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test TESTS="tests/global_strict"
TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test TESTS="tests/harden_rand tests/sloppy_comparison tests/unserialize"
# TODO re-enable these tests
#TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test TESTS="tests/disable_function"
#TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test TESTS="tests/xxe"
#TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test TESTS="tests/eval_blacklist"
#TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make test TESTS="tests/dump_request"
}
package() {
make INSTALL_ROOT="$pkgdir" install
install -d "$pkgdir"/etc/php7/conf.d/
install -m644 ../config/$_pkgreal.ini "$pkgdir"/etc/php7/conf.d/$pkgname.ini
install -m644 ../config/default.rules "$pkgdir"/etc/php7/conf.d/$_pkgreal.rules
}
sha512sums="439993885453cd840d9be3e56d2e28ffe711a647db266c2848b5d5248017a139ca101b4c447b1c2a5a322ac77ccc15af5010d6d633207163350c26cb0de8ada3 php7-snuffleupagus-0.5.1.tar.gz"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment