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 1 1 # -*- 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 $ 3 3 4 4 PortSystem 1.0 5 5 6 6 name kerberos5 7 conflicts e2fsprogsfbopenssl8 version 1. 7.27 conflicts fbopenssl 8 version 1.10.1 9 9 set branch [join [lrange [split ${version} .] 0 1] .] 10 10 categories net security 11 11 maintainers nomaintainer … … 27 27 Technology. Kerberos is available in many commercial \ 28 28 products as well. 29 29 30 checksums rmd160 decaa75d4024d598d4929bde17e440c32a736528\31 sha256 559bdcff2bdb70f68519729ca3e1bd83c3e6d784e3a8c94e0d6490442850674430 checksums rmd160 5533531668b42af9b1ceb67d95270e141ba92a03 \ 31 sha256 d57fcef50e8f113907c3bd94f33db352600bce0f9f1b6d0c15a6d67d6ad62f0a 32 32 33 33 depends_build bin:gpg:gnupg 34 34 … … 37 37 extract.cmd cat 38 38 extract.pre_args 39 39 40 patchfiles patch-pkinit_crypto_openssl.c.diff41 42 40 if {${configure.compiler} == "clang"} { 43 41 configure.compiler llvm-gcc-4.2 44 42 } 45 43 46 configure.cppflags-delete -I${prefix}/include 47 configure.ldflags-delete -L${prefix}/lib 48 configure.args --mandir=${prefix}/share/man 44 configure.args --mandir=${prefix}/share/man ac_cv_header_libintl_h=no 49 45 50 46 post-configure { 51 47 reinplace -E {s|-arch [^ ]+||g} \ … … 56 52 system "cd ${workpath} && gzip -dc ${distname}.tar.gz | tar -xf -" 57 53 } 58 54 59 livecheck.regex krb5-(\[0-9.\]+)-signed.tar 60 livecheck.type regex 61 livecheck.url http://web.mit.edu/kerberos/dist/index.html 55 post-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 82 default_variants +com_err 83 84 variant com_err description {Install the com_err libraries from Kerberos} { 85 conflicts-append e2fsprogs 86 } 87 88 variant rename description {Rename Kerberos binaries to not conflict with the system Kerberos} { 89 configure.args-append --program-prefix=mit- 90 }