# -*- 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 94610 2012-06-25 03:31:00Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup crack 0.4 pecl
license         PHP
categories      php mail devel
platforms       darwin
maintainers     ryandesign openmaintainer
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

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}
}
