1999-10-31 01:38:05 +02:00
|
|
|
# Ports collection Makefile for: heimdal
|
2000-12-14 17:32:22 +01:00
|
|
|
# Date created: 10/23/1999
|
|
|
|
# Whom: nectar@FreeBSD.ORG
|
1999-10-31 01:38:05 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 20:34:06 +02:00
|
|
|
PORTNAME= heimdal
|
2001-09-07 21:45:46 +02:00
|
|
|
PORTVERSION= 0.4e
|
2001-10-31 20:58:05 +01:00
|
|
|
PORTREVISION= 2
|
2000-01-18 13:54:55 +01:00
|
|
|
CATEGORIES= security ipv6
|
2000-12-14 17:32:22 +01:00
|
|
|
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/
|
1999-10-31 01:38:05 +02:00
|
|
|
|
|
|
|
MAINTAINER= nectar@FreeBSD.ORG
|
|
|
|
|
2000-10-31 18:26:41 +01:00
|
|
|
.if defined(WITH_LDAP)
|
2001-10-29 14:02:43 +01:00
|
|
|
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
|
2000-10-31 18:26:41 +01:00
|
|
|
.endif
|
2001-10-29 14:02:43 +01:00
|
|
|
.if defined(WITH_CRACKLIB)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
|
|
|
|
.endif
|
|
|
|
|
2000-10-31 18:26:41 +01:00
|
|
|
|
2000-04-21 10:19:33 +02:00
|
|
|
RESTRICTED= "Crypto; export-controlled"
|
1999-10-31 01:38:05 +02:00
|
|
|
|
2000-08-30 15:59:56 +02:00
|
|
|
# must use supplied ltconfig et. al. for now
|
|
|
|
#USE_LIBTOOL= yes
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2000-11-10 00:35:03 +01:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}--freebsd${OSREL}
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-11-07 10:58:40 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --enable-shared
|
2000-10-31 18:26:41 +01:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
CONFIGURE_ARGS+= --with-openldap=${LOCALBASE}
|
|
|
|
.endif
|
1999-10-31 01:38:05 +02:00
|
|
|
|
2000-01-17 21:07:39 +01:00
|
|
|
.if defined(HEIMDAL_HOME)
|
2000-12-14 17:32:22 +01:00
|
|
|
PREFIX= ${HEIMDAL_HOME}
|
2000-01-17 21:07:39 +01:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 02:19:02 +02:00
|
|
|
.if exists(${X11BASE}/lib/libX11.a) && !defined(WITHOUT_X11)
|
2000-12-14 17:32:22 +01:00
|
|
|
USE_XLIB= yes
|
2000-04-18 04:17:25 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_XLIB)
|
2000-01-17 21:07:39 +01:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.endif
|
|
|
|
|
2000-04-17 02:19:02 +02:00
|
|
|
.if exists(/usr/lib/libkrb.a) && !defined(WITHOUT_KRB4)
|
2001-09-07 21:45:46 +02:00
|
|
|
CONFIGURE_ENV+= LIBS="-lcom_err"
|
2001-04-24 20:55:17 +02:00
|
|
|
CONFIGURE_ARGS+= --with-krb4-include=/usr/include --with-krb4-lib=/usr/lib
|
2000-04-17 02:19:02 +02:00
|
|
|
.elif !defined(KRB5_KRB4_COMPAT)
|
2000-01-17 21:07:39 +01:00
|
|
|
CONFIGURE_ARGS+= --without-krb4
|
|
|
|
.endif
|
|
|
|
|
2001-01-04 17:30:04 +01:00
|
|
|
# OpenSSL 0.9.6 and later have MD4 and can be used in the build
|
2001-02-05 16:50:26 +01:00
|
|
|
.if exists(/usr/include/openssl/md4.h) && exists(/usr/lib/libcrypto.a)
|
2001-01-04 17:30:04 +01:00
|
|
|
OPENSSL_IN_BASE= YES
|
|
|
|
.endif
|
|
|
|
|
2000-12-14 17:32:22 +01:00
|
|
|
PLIST:= ${WRKDIR}/PLIST
|
2000-01-17 21:07:39 +01:00
|
|
|
|
2001-10-29 14:02:43 +01:00
|
|
|
pre-configure:
|
|
|
|
.if !defined(WITH_CRACKLIB)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} You can utilize CrackLib for the kpasswdd by defining
|
|
|
|
@${ECHO_MSG} WITH_CRACKLIB and uncommenting the appropriate lines in
|
|
|
|
@${ECHO_MSG} ${PREFIX}/etc/rc.d/kdc.sh.
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if defined(WITH_CRACKLIB)
|
|
|
|
sed -e "s;%%LOCALBASE%%;${LOCALBASE};g" \
|
|
|
|
${FILESDIR}/kpasswdd-cracklib.c.in > ${WRKSRC}/kpasswdd-cracklib.c
|
|
|
|
(cd ${WRKSRC} && \
|
|
|
|
${CC} ${CFLAGS} -fPIC -shared -I${LOCALBASE}/include -I./include \
|
|
|
|
-L${LOCALBASE}/lib -o ./kpasswdd-cracklib.so ./kpasswdd-cracklib.c -lcrack)
|
|
|
|
.endif
|
|
|
|
|
2000-01-17 21:07:39 +01:00
|
|
|
pre-install:
|
2000-10-08 07:57:33 +02:00
|
|
|
@${CP} ${PKGDIR}/pkg-plist ${PLIST}
|
2000-04-17 02:19:02 +02:00
|
|
|
.if exists(/usr/lib/libkrb.a) && !defined(WITHOUT_KRB4)
|
2000-10-08 07:57:33 +02:00
|
|
|
@${CAT} ${PKGDIR}/pkg-plist.krb4 >> ${PLIST}
|
2000-01-17 21:07:39 +01:00
|
|
|
.endif
|
|
|
|
.if defined(USE_XLIB)
|
2000-10-08 07:57:33 +02:00
|
|
|
@${CAT} ${PKGDIR}/pkg-plist.x11 >> ${PLIST}
|
2000-01-17 21:07:39 +01:00
|
|
|
.endif
|
2001-01-04 17:30:04 +01:00
|
|
|
.if !defined(OPENSSL_IN_BASE)
|
|
|
|
@${CAT} ${PKGDIR}/pkg-plist.des >> ${PLIST}
|
|
|
|
.endif
|
2001-02-21 13:43:20 +01:00
|
|
|
.if !exists(/usr/include/ifaddrs.h)
|
|
|
|
@${ECHO} include/ifaddrs.h >> ${PLIST}
|
|
|
|
.endif
|
2001-10-29 14:02:43 +01:00
|
|
|
.if defined(WITH_CRACKLIB)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/kpasswdd-cracklib.so ${PREFIX}/lib/
|
|
|
|
@${ECHO} lib/kpasswdd-cracklib.so >> ${PLIST}
|
|
|
|
.endif
|
2000-01-17 21:07:39 +01:00
|
|
|
|
2001-08-17 22:28:05 +02:00
|
|
|
.include "Makefile.man"
|
|
|
|
|
1999-11-06 19:03:56 +01:00
|
|
|
post-install:
|
2000-01-17 21:07:39 +01:00
|
|
|
install-info ${PREFIX}/info/heimdal.info ${PREFIX}/info/dir
|
2001-04-17 18:25:13 +02:00
|
|
|
${SED} 's;%%PREFIX%%;${PREFIX};g' ${FILESDIR}/kdc.sh > \
|
|
|
|
${PREFIX}/etc/rc.d/kdc.sh.sample
|
1999-10-31 01:56:19 +02:00
|
|
|
|
1999-10-31 01:38:05 +02:00
|
|
|
.include <bsd.port.mk>
|