# -*- 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 62772 2010-01-17 03:17:05Z nox@macports.org $

PortSystem 1.0

name             cracklib-words
version          20080507
categories       security
maintainers      theonelab.com:june
description      Wordlists for cracklib
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.              \
                                                                      \
                 This port contains the word lists essential for      \
                 cracklib to build. There is no need to keep this     \
                 package installed, unless you feel the need to update \
                 cracklib's wordlist dictionary on occasion.

homepage         http://sourceforge.net/projects/cracklib/
platforms        darwin

master_sites     sourceforge:cracklib
checksums        md5     7fa6ba0cd50e7f9ccaf4707c810b14f1 \
                 sha1    e0cea03e505e709b15b8b950d56cb493166607da \
                 rmd160  9005c24c58feb8cdbfe958cd942293e4ff1e23be

extract.mkdir    yes
extract.suffix   .gz
extract.post_args | cat > ${worksrcpath}/${name}

use_configure    no
build     { }

destroot  {
    xinstall -d ${destroot}${prefix}/share/cracklib
    xinstall -m 644 ${worksrcpath}/${name} ${destroot}/${prefix}/share/cracklib
}

livecheck.distname  ${name}
livecheck.version   [string range ${version} 0 3]-[string range ${version} 4 5]-[string range ${version} 6 7]
