Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (80 sloc) 3.36 KB
# -*- 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
PortSystem 1.0
PortGroup github 1.0
github.setup heimdal heimdal 7.5.0 heimdal-
revision 2
github.tarball_from releases
checksums rmd160 e056d1ce93d783fdc321ad02f373e363bce47d9e \
sha256 c5a2a0030fcc728022fa2332bad85569084d1c3b9a59587b7ebe141b0532acad
maintainers nomaintainer
categories net security
platforms darwin
license BSD
description Heimdal is a Kerberos 5 implementation.
long_description \
Heimdal is an implementation of Kerberos 5 (and some more stuff) largely \
written in Sweden (which was important when we started writing it, less so \
now). It is freely available under a three clause BSD style license.
depends_build port:pkgconfig
depends_lib port:readline \
port:gettext \
port:libtasn1 \
# Use a separate prefix to avoid conflicts with the port kerberos5
# (and openssl, if that variant is selected)
configure.pre_args --prefix=${prefix}/libexec/heimdal
configure.args \
--sysconfdir=${prefix}/etc \
--enable-shared \
--enable-static \
--enable-pthread-support \
--with-readline=${prefix} \
--without-libedit \
--with-libintl=${prefix} \
--without-x \
--without-openldap \
--without-openssl \
build.env-append LC_CTYPE=C
variant x11 description \
{Enable X11 use in libraries, and build X11-related applications} {
depends_lib-append port:xorg-libice \
port:xorg-libXau \
port:xorg-libXt \
port:xorg-libsm \
port:xorg-libX11 \
configure.args-delete --without-x
configure.args-append --with-x=${prefix}
variant openldap description \
{Enable LDAP database support for keeping track of Kerberos information} {
depends_lib-append port:openldap
configure.args-delete --without-openldap
configure.args-append --with-openldap=${prefix}
variant openssl description \
{Use OpenSSL libraries instead of internal ones for crypto and ssl related functions} {
depends_lib-append path:lib/libssl.dylib:openssl
configure.args-delete --without-openssl
configure.args-append --with-openssl=${prefix}
variant sqlite3 description \
{Enable SQlite3 database support for keeping track of Kerberos information} {
depends_lib-append port:sqlite3
configure.args-delete --without-sqlite3
configure.args-append --with-sqlite3=${prefix}
post-patch {
# older systems do not have the CommonCrypto support needed for -openssl
# evp-cc.c:103:5: error: use of undeclared identifier 'CCMode'
if {${os.platform} eq "darwin" && ${os.major} < 11} {
reinplace "s:def __APPLE__: 0:" ${worksrcpath}/lib/hcrypto/evp-cc.c
} yes check
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex "[quotemeta ${name}]-(\\d+(?:\\.\\d+)*)[quotemeta ${extract.suffix}]"
You can’t perform that action at this time.