# $Id: Portfile 74826 2011-01-03 10:28:48Z nox@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0
PortGroup       php5extension 1.0

php5extension.setup crack 0.4 pecl
license         PHP
categories      php mail devel
platforms       darwin
maintainers     nomaintainer
description     \"Good Password\" Checking Utility

long_description \
    This package provides an interface to the cracklib (libcrack) libraries \
    that come standard on most unix-like distributions. This allows you to \
    check passwords against dictionaries of words to ensure some minimal level \
    of password security.

checksums       md5     7cfe9df99f546cf6bd55b535d71e3b1f \
                sha1    aa1554747ef2d1c96e4a47fdb0057828661a918a \
                rmd160  335b1cecb0ccd958fa01c499a636e0e22a5a46ea

depends_lib-append \
    port:cracklib

archcheck.files \
    lib/libcrack.dylib

use_parallel_build yes

test.run        yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} CREDITS \
        ${destroot}${docdir}
}
