source: trunk/dports/net/heimdal/Portfile

Last change on this file was 142698, checked in by landonf@…, 22 months ago

Drop maintainership of (almost) all my ports, as I'm no longer using Mac OS X as my desktop OS.

The dict port here dates back to ~2002; it was the first port used as a test case when we were developing MacPorts.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
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 142698 2015-11-20 16:55:09Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                heimdal
7version             1.5.3
8checksums           rmd160  834660b4c0fe81a3aac4ffd9d8d37d74add1fa70 \
9                    sha256  aac27bedb33c341b6aed202af07ccc816146a893148721f8123abbbf93bbfea5
10
11maintainers         nomaintainer
12categories          net security
13platforms           darwin
14
15license             BSD MIT Permissive
16homepage            http://www.h5l.org/
17description         Kerberos is a network authentication protocol.
18long_description    \
19    Kerberos provides a means of verifying the identities of principals, (e.g., \
20    a workstation user or a network server) on an open (unprotected) network. \
21    This is accomplished without relying on authentication by the host \
22    operating system, without basing trust on host addresses, without requiring \
23    physical security of all the hosts on the network, and under the assumption \
24    that packets traveling along the network can be read, modified, and \
25    inserted at will.
26
27master_sites        ${homepage}dist/src/
28
29depends_lib         port:readline \
30                    port:gettext
31
32# See https://trac.macports.org/ticket/44738, drop when integrated upstream
33# Patch from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711221
34patch.pre_args      -p1
35patchfiles          heimdal-texi.diff
36
37# Use a separate prefix to avoid conflicts with the port kerberos5
38# (and openssl, if that variant is selected)
39configure.pre_args  --prefix=${prefix}/libexec/heimdal
40configure.args      \
41    --sysconfdir=${prefix}/etc \
42    --enable-shared            \
43    --enable-static            \
44    --enable-pthread-support   \
45    --with-readline=${prefix}  \
46    --with-libintl=${prefix}   \
47    --without-x                \
48    --without-openldap         \
49    --without-openssl          \
50    --without-sqlite3
51
52build.env-append    LC_CTYPE=C
53
54# ./kadm5_locl.h:77:10: fatal error: 'kadm5_err.h' file not found
55use_parallel_build  no
56
57variant x11 description \
58    {Enable X11 use in libraries, and build X11-related applications} {
59    depends_lib-append      port:xorg-libice \
60                            port:xorg-libXau \
61                            port:xorg-libXt \
62                            port:xorg-libsm \
63                            port:xorg-libX11 \
64                            port:xorg-libXdmcp
65    configure.args-delete   --without-x
66    configure.args-append   --with-x=${prefix}
67}
68
69variant openldap description \
70    {Enable LDAP database support for keeping track of Kerberos information} {
71    depends_lib-append      port:openldap
72    configure.args-delete   --without-openldap
73    configure.args-append   --with-openldap=${prefix}
74}
75
76# heimdal fails with openssl-1.0.0a due to removal of md2
77#variant openssl description \
78#    {Use OpenSSL libraries instead of internal ones for crypto and ssl related functions} {
79#    depends_lib-append     path:lib/libssl.dylib:openssl
80#    configure.args-delete  --without-openssl
81#    configure.args-append  --with-openssl=${prefix}
82#}
83
84variant sqlite3 description \
85    {Enable SQlite3 database support for keeping track of Kerberos information} {
86    depends_lib-append      port:sqlite3
87    configure.args-delete   --without-sqlite3
88    configure.args-append   --with-sqlite3=${prefix}
89}
90
91post-patch {
92    # Tiger does not have the CommonCrypto support needed for -openssl
93    if {${os.platform} eq "darwin" && ${os.major} < 9} {
94        reinplace "s:def __APPLE__: 0:" ${worksrcpath}/lib/hcrypto/evp-cc.c
95    }
96}
97
98test.run            yes
99test.target         check
100
101livecheck.type      regex
102livecheck.url       ${master_sites}
103livecheck.regex     "[quotemeta ${name}]-(\\d+(?:\\.\\d+)*)[quotemeta ${extract.suffix}]"
Note: See TracBrowser for help on using the repository browser.