# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 62773 2010-01-17 03:17:16Z nox@macports.org $

PortSystem 1.0
PortGroup archcheck 1.0

name             cracklib
version          2.8.15
categories       security
maintainers      theonelab.com:june
description      A ProActive Password Sanity Library
long_description CrackLib is a library containing a C function (well, \
                 lots of functions really, but you only need to use   \
                 one of them) which may be used in a passwd-like      \
                 program.  The idea is simple: try to prevent users   \
                 from choosing passwords that could be guessed by     \
                 Crack by filtering them out, at source.

homepage         http://sourceforge.net/projects/cracklib/
platforms        darwin
depends_lib      port:gettext
depends_build    port:cracklib-words

master_sites     sourceforge
checksums        md5     dd745f3daad5d4efa9b0c89d32042c33 \
                 sha1    2535a49da92bfece48639d23ada6964d122cc9ac \
                 rmd160  835425d5266ec0eb909430e755cbcb11a6074e9c

archcheck.files \
    lib/libintl.dylib

configure.args-append --without-python

post-build {
    ln -s ${prefix}/share/cracklib/cracklib-words ${worksrcpath}/dicts
    file attributes ${worksrcpath}/util/cracklib-format -permissions 755
}

destroot.target-append dict-local

test.run        yes
test.target     check

livecheck.type  regex
livecheck.url   ${homepage}files/
livecheck.regex {cracklib-(\d+(?:\.\d+)*)}
