Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (49 sloc) 2.51 KB
# -*- 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
PortSystem 1.0
PortGroup github 1.0
github.setup cracklib cracklib 2.9.6 v
categories security
license LGPL-2.1
maintainers nomaintainer
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.
platforms darwin
depends_build port:autoconf \
port:automake \
port:libtool \
depends_lib port:gettext \
port:libiconv \
checksums rmd160 d8657a70a2068dbb275ef4487cdbe798884f8618 \
sha256 7b253ce2c2307d9383aa88e0199b67d2e0eed6baf8b651a7bd8eb265f79ca3ce
worksrcdir ${distname}/src
configure.cmd ./ && ./configure
configure.args --without-python
# generate updated version of cracklib-words file
# previously provided by port cracklib-words
# now part of the cracklib github distribution
post-build {
system -W ${workpath}/${distname} \
"${prefix}/bin/bzcat `/usr/bin/find words/files -type f` | LC_CTYPE=C /usr/bin/tr ':upper:' ':lower:' | LC_CTYPE=C /usr/bin/sort -u > src/dicts/cracklib-words"
# replace installed default words file cracklib-small with generated cracklib-words
# and generate corresponding pw_dict database using cracklib-packer
post-destroot {
delete ${destroot}${prefix}/share/cracklib/cracklib-small
copy ${worksrcpath}/dicts/cracklib-words ${destroot}${prefix}/share/cracklib
system "DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/sbin/cracklib-packer ${destroot}${prefix}/share/cracklib/pw_dict < ${destroot}${prefix}/share/cracklib/cracklib-words"
# deactivate conflicting port cracklib-words, if active, before activation
pre-activate {
set pname cracklib-words
if {![catch {set installed [lindex [registry_active $pname] 0]}]} {
registry_deactivate_composite $pname "" [list ports_nodepcheck 1]
You can’t perform that action at this time.