blob: b9e6162058e590325169aab7dbbbbeb52b3146fe (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/suhosin/suhosin-0.9.32.1-r1.ebuild,v 1.3 2010/11/26 16:11:23 jer Exp $
EAPI="2"
PHP_EXT_NAME="suhosin"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"
inherit php-ext-source-r1 eutils
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
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"
SLOT="0"
IUSE=""
DEPEND="dev-lang/php[unicode]"
RDEPEND="${DEPEND}"
need_php_by_category
src_unpack() {
PHP_EXT_SKIP_PHPIZE=yes php-ext-source-r1_src_unpack
}
src_prepare() {
epatch "${FILESDIR}"/${P}-libcrypt.patch
php-ext-source-r1_phpize
}
src_install() {
php-ext-source-r1_src_install
dodoc-php CREDITS
for inifile in ${PHPINIFILELIST} ; do
insinto "${inifile/${PHP_EXT_NAME}.ini/}"
insopts -m644
doins "suhosin.ini"
done
}
src_test() {
# Makefile passes a hard-coded -d extension_dir=./modules, we move the lib
# away from there in src_compile
ln -s "${WORKDIR}/${PHP_EXT_NAME}-default.so" "${S}/modules/${PHP_EXT_NAME}.so"
NO_INTERACTION="yes" emake test
}
|