Ticket #14167: cracklib.diff

File cracklib.diff, 1.7 KB (added by june@…, 17 years ago)
  • dports/security/cracklib/Portfile

    diff --git a/dports/security/cracklib/Portfile b/dports/security/cracklib/Portfile
    index f0cd1a5..330b52d 100644
    a b name cracklib 
    88version          2.8.12
    99categories       security
    1010maintainers      theonelab.com:june
     11revision         1
    1112description      A ProActive Password Sanity Library
    1213long_description CrackLib is a library containing a C function (well, \
    1314                 lots of functions really, but you only need to use   \
    long_description CrackLib is a library containing a C function (well, \ 
    1920homepage         http://sourceforge.net/projects/cracklib/
    2021platforms        darwin
    2122depends_lib      port:gettext
    22 default_variants +largedict
     23depends_build    port:cracklib-words
    2324
    2425master_sites     sourceforge
    2526checksums        md5 580346fa1012f9d9769192f49d3801fa \
    extract.suffix .tar.gz 
    3031
    3132configure.args-append --without-python
    3233
    33 variant largedict {
    34     depends_build port:cracklib-words
    35     destroot.target-append dict-local
     34variant nolargedict {
     35    depends_build-delete port:cracklib-words
    3636}
    3737
    3838post-build {
    39     if {[variant_isset largedict]} {
    40         file copy /opt/local/share/cracklib/cracklib-words ${worksrcpath}/dicts
     39    if {![variant_isset nolargedict]} {
     40        file copy ${prefix}/share/dict/cracklib-words ${worksrcpath}/dicts
    4141    }
    4242
    4343    file attributes ${worksrcpath}/util/cracklib-format -permissions 0755
    4444}
    4545
     46destroot.target-append dict-local
     47
     48post-destroot {
     49    xinstall -d -m 0755 ${destroot}${prefix}/share/dict
     50    file rename ${destroot}${prefix}/share/cracklib/cracklib-small ${destroot}${prefix}/share/dict
     51}
     52
    4653test.run        yes
    4754test.cmd        make
    4855test.target     check