Ticket #34230: kerberos5-1.10.1.diff

File kerberos5-1.10.1.diff, 3.5 KB (added by quentinmit (Quentin Smith), 12 years ago)
  • Portfile

    old new  
    11# -*- 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
    2 # $Id: Portfile 91998 2012-04-15 18:12:51Z mk@macports.org $
     2# $Id: Portfile 86379 2011-10-24 23:35:20Z ryandesign@macports.org $
    33
    44PortSystem                  1.0
    55
    66name                        kerberos5
    7 conflicts                   e2fsprogs fbopenssl
    8 version                     1.7.2
     7conflicts                   fbopenssl
     8version                     1.10.1
    99set branch                  [join [lrange [split ${version} .] 0 1] .]
    1010categories                  net security
    1111maintainers                 nomaintainer
     
    2727                            Technology. Kerberos is available in many commercial \
    2828                            products as well.
    2929
    30 checksums           rmd160  decaa75d4024d598d4929bde17e440c32a736528 \
    31                     sha256  559bdcff2bdb70f68519729ca3e1bd83c3e6d784e3a8c94e0d64904428506744
     30checksums           rmd160  5533531668b42af9b1ceb67d95270e141ba92a03 \
     31                    sha256  d57fcef50e8f113907c3bd94f33db352600bce0f9f1b6d0c15a6d67d6ad62f0a
    3232
    3333depends_build               bin:gpg:gnupg
    3434
     
    3737extract.cmd                 cat
    3838extract.pre_args
    3939
    40 patchfiles                  patch-pkinit_crypto_openssl.c.diff
    41 
    4240if {${configure.compiler} == "clang"} {
    4341    configure.compiler llvm-gcc-4.2
    4442}
    4543
    46 configure.cppflags-delete   -I${prefix}/include
    47 configure.ldflags-delete    -L${prefix}/lib
    48 configure.args              --mandir=${prefix}/share/man
     44configure.args              --mandir=${prefix}/share/man ac_cv_header_libintl_h=no
    4945
    5046post-configure {
    5147    reinplace -E {s|-arch [^ ]+||g} \
     
    5652    system "cd ${workpath} && gzip -dc ${distname}.tar.gz | tar -xf -"
    5753}
    5854
    59 livecheck.regex krb5-(\[0-9.\]+)-signed.tar
    60 livecheck.type  regex
    61 livecheck.url   http://web.mit.edu/kerberos/dist/index.html
     55post-destroot {
     56    if {![variant_isset com_err]} {
     57        file delete "${destroot}${prefix}/include/com_err.h"
     58        file delete "${destroot}${prefix}/bin/compile_et"
     59        delete "${destroot}${prefix}/share/et"
     60    }
     61    if {[variant_isset rename]} {
     62        # add a prefix of 'mit-' to all executables to avoid file conflicts
     63        # Note that some already have the prefix, thanks to the configure args above
     64        foreach dir {bin sbin} {
     65            foreach bin [glob -directory "${destroot}${prefix}/${dir}" -type f *] {
     66                if {![string match */mit-* ${bin}]} {
     67                    file rename "${bin}" "[file dirname "${bin}"]/mit-[file tail "${bin}"]"
     68                }
     69            }
     70        }
     71        # ..and also to the manpages
     72        foreach dir [glob -directory "${destroot}${prefix}/share/man" "man\[158\]"] {
     73            foreach man [glob -directory "${dir}" -type f *] {
     74                if {![string match */mit-* ${man}]} {
     75                    file rename "${man}" "[file dirname "${man}"]/mit-[file tail "${man}"]"
     76                }
     77            }
     78        }
     79    }
     80}
     81
     82default_variants +com_err
     83
     84variant com_err description {Install the com_err libraries from Kerberos} {
     85    conflicts-append        e2fsprogs
     86}
     87
     88variant rename description {Rename Kerberos binaries to not conflict with the system Kerberos} {
     89    configure.args-append   --program-prefix=mit-
     90}