Ticket #14100: cracklib.diff

File cracklib.diff, 3.4 KB (added by june@…, 16 years ago)

Patch to update the cracklib portfile.

  • Portfile

    diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/ports/security/cracklib/Portfile ./Portfile
    old new  
    1 # $Id: Portfile 30793 2007-11-07 08:53:40Z ryandesign@macports.org $
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     2# vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
     3# $Id$
    24
    35PortSystem 1.0
    46
    5 name                    cracklib
    6 version                 2.7
    7 categories              security
    8 maintainers             nomaintainer
    9 description             A ProActive Password Sanity Library
    10 long_description        CrackLib is a library containing a C function (well, \
    11                                         lots of functions really, but you only need to use \
    12                                         one of them) which may be used in a passwd-like \
    13                                         program.  The idea is simple: try to prevent users \
    14                                         from choosing passwords that could be guessed by \
    15                                         Crack by filtering them out, at source.
    16 homepage                http://www.crypticide.com/users/alecm/
    17 master_sites    http://www.crypticide.com/users/alecm/security/
    18 distname                ${name},${version}
    19 checksums               md5 0c84ad7413d9dd3e5c2eaa5f97d53c4a
    20 platforms               darwin
    21 
    22 patchfiles              patch-Makefile.diff \
    23                                 patch-cracklib-Makefile.diff \
    24                                 patch-util-Makefile.diff \
    25                                 patch-util-mkdict.diff
    26 post-patch {
    27         file copy ${filespath}/cracklib.3 ${worksrcpath}/cracklib
    28         file copy ${filespath}/mkdict.1 ${worksrcpath}/util
    29         file copy ${filespath}/teststr.1 ${worksrcpath}/util
     7name             cracklib
     8version          2.8.12
     9categories       security
     10maintainers      theonelab.com:june
     11description      A ProActive Password Sanity Library
     12long_description CrackLib is a library containing a C function (well, \
     13                 lots of functions really, but you only need to use   \
     14                 one of them) which may be used in a passwd-like      \
     15                 program.  The idea is simple: try to prevent users   \
     16                 from choosing passwords that could be guessed by     \
     17                 Crack by filtering them out, at source.
     18
     19homepage         http://sourceforge.net/projects/cracklib/
     20platforms        darwin
     21depends_lib      port:gettext
     22default_variants +largedict
     23
     24master_sites     sourceforge
     25checksums        md5 580346fa1012f9d9769192f49d3801fa \
     26                 sha1 0a77b21366cfbad675e6e44642026c89b87f41ce \
     27                 rmd160 91649e66c3ce491b2ebea6135eaa6ba4705ffb58 \
     28
     29extract.suffix  .tar.gz
     30
     31configure.args-append --without-python
     32
     33variant largedict {
     34    depends_build port:cracklib-words
     35    destroot.target-append dict-local
    3036}
    3137
    32 configure {
    33         reinplace "s|@PREFIX@|${prefix}|g" \
    34                 ${worksrcpath}/util/mkdict.1 \
    35                 ${worksrcpath}/util/teststr.1
    36 }
     38post-build {
     39    if {[variant_isset largedict]} {
     40        file copy /opt/local/share/cracklib/cracklib-words ${worksrcpath}/dicts
     41    }
    3742
    38 build.args              PREFIX=${prefix} VERSION=${version}
    39 destroot.args   PREFIX=${prefix} VERSION=${version}
    40 post-destroot {
    41         set docPath "${prefix}/share/doc/${name}"
    42         xinstall -d -m 0755 ${destroot}${docPath}
    43         xinstall -m 0644 ${worksrcpath}/README ${destroot}${docPath}
     43    file attributes ${worksrcpath}/util/cracklib-format -permissions 0755
    4444}
    4545
     46test.run        yes
     47test.cmd        make
     48test.target     check