# $Id: Portfile 44573 2008-12-31 00:31:21Z blb@macports.org $

PortSystem 1.0
name                krbafs
version             1.2
revision            0
categories          sysutils security
maintainers         nomaintainer
description         AFS library
long_description \
   krbafs provides a set of AFS client utility functions for managing \
   the AFS client and user's tokens for MIT Kerberos and Kerberos for \
   Macintosh, the Kerberos implementation included with Mac OS X 10.1. \
   It also provides afs_string_to_key() and the Kerberos 4 lifetime \
   functions if they are not available in the local Kerberos \
   implementation.
homepage            http://web.mit.edu/openafs/krbafs/
platforms           darwin
master_sites        http://web.mit.edu/openafs/krbafs/
use_autoconf        yes
checksums           md5 7c08f2ece4a0a7140932e825ee62906a
distname            ${name}-${version}-nocrypto
worksrcdir          ${name}-${version}
patchfiles          patch-Makefile.in.diff
depends_build       port:libtool
pre-configure {
    if {[file exists ${prefix}/share/libtool/config/config.guess]} {
        copy -force ${prefix}/share/libtool/config/config.guess ${worksrcpath}
    } else {
        copy -force ${prefix}/share/libtool/config.guess ${worksrcpath}
    }
}
post-patch {
   reinplace "s|@install_prefix@|${destroot}|g" "${worksrcpath}/Makefile.in"
}

