# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 90794 2012-03-14 19:17:54Z snc@macports.org $

PortSystem          1.0
PortGroup           php5extension 1.0

php5extension.setup suhosin 0.9.33
categories-append   security www
license             PHP-3.01
maintainers         snc openmaintainer
description         Advanced protection extension for PHP
homepage            http://www.hardened-php.net/suhosin/
long_description    Suhosin is an advanced protection system for PHP\
                    installations. It was designed to protect servers and users\
                    from known and unknown flaws in PHP applications and the\
                    PHP core. Suhosin is binary compatible to normal PHP\
                    installations, which means it is compatible to 3rd party\
                    binary extensions like ZendOptimizer.

platforms           darwin freebsd

master_sites        http://download.suhosin.org/
extract.suffix      .tgz

checksums           rmd160  9c60b695b226ddcbe5562b1576228780123eb372 \
                    sha256  865b1c72bae9a5a710fe0b07a0635556ce6c838653ec364d2a2a6e6f594529c5

if {${configure.compiler} == "clang"} {
    configure.compiler  llvm-gcc-4.2
}
test.run            yes

livecheck.type      regex
livecheck.url       http://www.hardened-php.net/suhosin/download.html
livecheck.regex     suhosin-(\\d+(\\.\\d+)+)
