summaryrefslogtreecommitdiff
path: root/dev-php/suhosin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/suhosin
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/suhosin')
-rw-r--r--dev-php/suhosin/Manifest6
-rw-r--r--dev-php/suhosin/files/suhosin-0.9.38-libcrypt.patch12
-rw-r--r--dev-php/suhosin/metadata.xml8
-rw-r--r--dev-php/suhosin/suhosin-0.9.38-r1.ebuild56
4 files changed, 82 insertions, 0 deletions
diff --git a/dev-php/suhosin/Manifest b/dev-php/suhosin/Manifest
new file mode 100644
index 000000000000..4ba9509859d0
--- /dev/null
+++ b/dev-php/suhosin/Manifest
@@ -0,0 +1,6 @@
+AUX suhosin-0.9.38-libcrypt.patch 590 SHA256 9b78548c47ab4bca789935b98a66ade831f0765dae591e4b0bebf06a59d07e48 SHA512 fa834f26803e2f623a269bc1cc81e305e081397717e0058315cac8087f04c33ff7f2eeee2052dada75559e5b35dc85c55499d74635dacd0f08fcc226ec3d0de3 WHIRLPOOL 20c64ad7e2013b7b7ed9c1b1f4927e32e9431374d787f5bcbf064fd066b4048fcc5b3c84e7a434080f4ad8060ad3a533297b6df8debcab20594aedae3a34d30f
+DIST suhosin-0.9.38.tar.gz 122800 SHA256 c02d76c4e7ce777910a37c18181cb67fd9e90efe0107feab3de3131b5f89bcea SHA512 cc4eb38b5d6673cc3f2dc395e5a8b5461d3221019ac9849b747b6d5bae423cd5bd01a75b9432414dc7c26c78bab9f2381a5414712a6906a999f3ec9dc77ebc45 WHIRLPOOL db10d0cda4d161440c8dd53f5bbfdcb7da5bdf7e294975a0a3b6f6b69575e16eb43d7fc0aaf3bd9497a8065282b8403e480bc699ee9100574bc212f47f763933
+EBUILD suhosin-0.9.38-r1.ebuild 1328 SHA256 1ec87cebc2ade074d97fd96d6f05be96d9f6cc57142cb6e33b4a236d1a7ff512 SHA512 1c52f907a7653564ee353c7aa942a3583208205f174bd802c54bbac5976569a6090c5c796c34ca10fef99f3f6206ff3ae4958e9d33df18840ae5d4e50c21909c WHIRLPOOL 97af080678558391ef345210d3a997a94ec5b4e70eb202a117e168b6cc3f0aefb500a4420ce013c8b939e1a3b34dcb517d1280c2716fbb3db57dd1363c9fb07f
+MISC ChangeLog 2991 SHA256 1347066a5179afa27c8a941ec43396b23cb464f27028fcba096c2898ce13b1dc SHA512 89c665f72d2a7f682ec1d5dc767a72ac8b0ea56ec1cb17464f9331b94c71ee4d708772973ee445d6f117c4c3230b484fc61f52fe6b8cc5aef8ff43ee9df6ee9d WHIRLPOOL 870b92e6c4bf05799143dce3617a5b162d82ed0d697e75d0e62e20b0cdf869a2b4fec6bd306621377339f986964f5d5e5c14166d43e0f17aa05e4eb095c237f0
+MISC ChangeLog-2015 12661 SHA256 5495bb413dc8e2afe835a452e266b6232820ef57bfab12d72510c590d7a72558 SHA512 f98e423f30e41d0dfeb9d92619ecd322eda59de85a78426d327379d567519a6e49f832ab4c16f0b1e2f0acd6b4209913039cdaa994455bfcc4b9aec14544d2d2 WHIRLPOOL 6ec87e43b6da9f6bf7fcb21f1db85f19348e68c3f1e8c48e540f4d70347a57d19124b9b991b3f9210ebb77f69e1fa8b015735887b527a473dfbc67220004e3cb
+MISC metadata.xml 239 SHA256 b54aca642ac424532264a97d14931720ed288cf387dbdef6a10b34ffed6689f1 SHA512 2181b874bfe8cd31e7730d8207e26cfd2f272eaf2d1b57ae0faff126347a5298fa1c506d9107e1da9736c8a0ed9c8c339e4d9509a8726b79dbe86e073c12dee0 WHIRLPOOL 80ab9605bb31ce3310bf524de4705c67ca85cf8f2346b7e13274595598b9fe92c9b119beb865ef214ad33ef172b880e318d18ff8c8d2026cb7319f0524d8a7aa
diff --git a/dev-php/suhosin/files/suhosin-0.9.38-libcrypt.patch b/dev-php/suhosin/files/suhosin-0.9.38-libcrypt.patch
new file mode 100644
index 000000000000..691f70c1b4c5
--- /dev/null
+++ b/dev-php/suhosin/files/suhosin-0.9.38-libcrypt.patch
@@ -0,0 +1,12 @@
+Index: suhosin-0.9.32.1/config.m4
+===================================================================
+--- suhosin-0.9.33.orig/config.m4
++++ suhosin-0.9.33/config.m4
+@@ -6,4 +6,7 @@ PHP_ARG_ENABLE(suhosin, whether to enabl
+
+ if test "$PHP_SUHOSIN" != "no"; then
+ PHP_NEW_EXTENSION(suhosin, suhosin.c sha256.c memory_limit.c treat_data.c ifilter.c post_handler.c ufilter.c rfc1867_new.c log.c header.c execute.c ex_imp.c session.c aes.c crypt.c, $ext_shared)
++ PHP_CHECK_LIBRARY(crypt, crypt,
++ [PHP_ADD_LIBRARY(crypt,, SUHOSIN_SHARED_LIBADD)])
++ PHP_SUBST(SUHOSIN_SHARED_LIBADD)
+ fi
diff --git a/dev-php/suhosin/metadata.xml b/dev-php/suhosin/metadata.xml
new file mode 100644
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/suhosin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>php-bugs@gentoo.org</email>
+ <name>PHP</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-php/suhosin/suhosin-0.9.38-r1.ebuild b/dev-php/suhosin/suhosin-0.9.38-r1.ebuild
new file mode 100644
index 000000000000..226549ab6ffe
--- /dev/null
+++ b/dev-php/suhosin/suhosin-0.9.38-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PHP_EXT_NAME="suhosin"
+PHP_EXT_INI="no"
+PHP_EXT_ZENDEXT="no"
+USE_PHP="php5-6"
+
+inherit php-ext-source-r3
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+DESCRIPTION="Suhosin is an advanced protection system for PHP installations"
+HOMEPAGE="http://www.suhosin.org/"
+SRC_URI="http://download.suhosin.org/${P}.tar.gz"
+LICENSE="PHP-3.01"
+SLOT="0"
+IUSE=""
+
+for target in ${USE_PHP}; do
+ slot=${target/php}
+ slot=${slot/-/.}
+ PHPUSEDEPEND="${PHPUSEDEPEND}
+ php_targets_${target}? ( dev-lang/php:${slot}[unicode] )"
+done
+
+DEPEND="${PHPUSEDEPEND}"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-libcrypt.patch )
+DOCS=( CREDITS )
+
+src_install() {
+ php-ext-source-r3_src_install
+
+ local slot inifile
+ for slot in $(php_get_slots); do
+ php_init_slot_env ${slot}
+ for inifile in $(php_slot_ini_files "${slot}") ; do
+ insinto "${inifile/${PHP_EXT_NAME}.ini/}"
+ insopts -m644
+ doins "suhosin.ini"
+ done
+ done
+}
+
+src_test() {
+ # Makefile passes a hard-coded -d extension_dir=./modules, we move the lib
+ # away from there in src_compile
+ for slot in `php_get_slots`; do
+ php_init_slot_env ${slot}
+ NO_INTERACTION="yes" emake test || die "emake test failed for slot ${slot}"
+ done
+}