# Ports collection Makefile for: heimdal # Date created: 10/23/1999 # Whom: nectar@FreeBSD.ORG # # $FreeBSD$ # PORTNAME= heimdal PORTVERSION= 0.4d CATEGORIES= security ipv6 MASTER_SITES= ftp://ftp.pdc.kth.se/pub/heimdal/src/ \ ftp://ftp.replay.com/pub/replay/crypto/APPS/kerberos/heimdal/ \ ftp://ftp.tuniv.szczecin.pl/dsk4/ftp.replay.com/pub/crypto/APPS/kerberos/heimdal/ \ ftp://ftp.hacktic.nl/pub/replay/crypto/APPS/kerberos/heimdal/ MAINTAINER= nectar@FreeBSD.ORG .if defined(WITH_LDAP) LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap2 .endif RESTRICTED= "Crypto; export-controlled" # must use supplied ltconfig et. al. for now #USE_LIBTOOL= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}--freebsd${OSREL} INSTALLS_SHLIB= yes CONFIGURE_ARGS= --prefix=${PREFIX} --enable-shared .if defined(WITH_LDAP) CONFIGURE_ARGS+= --with-openldap=${LOCALBASE} .endif .if defined(HEIMDAL_HOME) PREFIX= ${HEIMDAL_HOME} .endif .if exists(${X11BASE}/lib/libX11.a) && !defined(WITHOUT_X11) USE_XLIB= yes .endif .if defined(USE_XLIB) CONFIGURE_ARGS+= --with-x .else CONFIGURE_ARGS+= --without-x .endif .if exists(/usr/lib/libkrb.a) && !defined(WITHOUT_KRB4) CONFIGURE_ARGS+= --with-krb4-include=/usr/include --with-krb4-lib=/usr/lib .elif !defined(KRB5_KRB4_COMPAT) CONFIGURE_ARGS+= --without-krb4 .endif # OpenSSL 0.9.6 and later have MD4 and can be used in the build .if exists(/usr/include/openssl/md4.h) && exists(/usr/lib/libcrypto.a) OPENSSL_IN_BASE= YES .endif PLIST:= ${WRKDIR}/PLIST # Nuke com_err stuff, it is in the base system. pre-configure: @(set -e; \ cd ${CONFIGURE_WRKSRC}; \ find . -type f -name 'Makefile.in' -print | xargs perl -i -p \ -e 's,\$$\(top_builddir\)/lib/com_err/compile_et,compile_et,;' \ -e 's,../com_err/libcom_err.la,,;';) pre-install: @${CP} ${PKGDIR}/pkg-plist ${PLIST} .if exists(/usr/lib/libkrb.a) && !defined(WITHOUT_KRB4) @${CAT} ${PKGDIR}/pkg-plist.krb4 >> ${PLIST} .endif .if defined(USE_XLIB) @${CAT} ${PKGDIR}/pkg-plist.x11 >> ${PLIST} .endif .if !defined(OPENSSL_IN_BASE) @${CAT} ${PKGDIR}/pkg-plist.des >> ${PLIST} .endif .if !exists(/usr/include/ifaddrs.h) @${ECHO} include/ifaddrs.h >> ${PLIST} .endif .include "Makefile.man" # awful hack to avoid running automake after patching configure pre-configure: @find ${WRKSRC} -name Makefile.in -exec ${TOUCH} {} \; @${TOUCH} ${WRKSRC}/include/stamp-h.in @${TOUCH} ${WRKSRC}/include/config.h.in post-install: install-info ${PREFIX}/info/heimdal.info ${PREFIX}/info/dir ${SED} 's;%%PREFIX%%;${PREFIX};g' ${FILESDIR}/kdc.sh > \ ${PREFIX}/etc/rc.d/kdc.sh.sample .include