# -*- 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 105123 2013-04-11 03:40:39Z jmr@macports.org $

PortSystem 1.0

name             cracklib
version          2.8.18
categories       security
license          LGPL-2.1
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 port:zlib
depends_build    port:cracklib-words

master_sites     sourceforge:project/cracklib/cracklib/${version}

checksums        rmd160  2bfa3e8175413756079d811116a647957fa9b9e5 \
                 sha256  2b072f67f7267358459424c3ed70f7f5b70919118e6504a90d3bce37a67c1454

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
