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$
|
|
|
|
#
|
|
|
|
|
2006-03-20 16:21:19 +01:00
|
|
|
PORTNAME= heimdal
|
2007-09-27 02:16:01 +02:00
|
|
|
PORTVERSION= 1.0.1
|
2010-03-11 08:49:46 +01:00
|
|
|
PORTREVISION= 2
|
2006-03-20 16:21:19 +01:00
|
|
|
CATEGORIES= security ipv6
|
2007-09-27 02:16:01 +02:00
|
|
|
MASTER_SITES= http://ftp.pdc.kth.se/pub/heimdal/src/ \
|
|
|
|
ftp://ftp.pdc.kth.se/pub/heimdal/src/ \
|
2004-06-30 09:57:04 +02:00
|
|
|
ftp://ftp.sunet.se/pub/unix/admin/mirror-pdc/pub/heimdal/src/ \
|
|
|
|
ftp://ftp.ayamura.org/pub/heimdal/
|
1999-10-31 01:38:05 +02:00
|
|
|
|
2009-07-22 04:07:05 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-10-05 18:07:39 +02:00
|
|
|
COMMENT= A popular BSD-licensed implementation of Kerberos 5
|
1999-10-31 01:38:05 +02:00
|
|
|
|
2006-11-14 03:06:07 +01:00
|
|
|
CONFLICTS= krb4-[0-9]* krb5-[0-9]* srp-[0-9]*
|
2005-10-08 21:59:37 +02:00
|
|
|
|
2006-10-05 18:07:39 +02:00
|
|
|
OPTIONS+= LDAP "Use OpenLDAP as the KDC backend" off
|
|
|
|
OPTIONS+= CRACKLIB "Use CrackLib for password quality checking" off
|
|
|
|
OPTIONS+= X11 "Build X11 utilies" off
|
2001-10-29 14:02:43 +01:00
|
|
|
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2006-03-20 16:21:19 +01:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2006-08-15 03:04:55 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-03-20 16:21:19 +01:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
|
2004-01-25 16:11:28 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-shared --without-krb4
|
2004-04-03 01:06:44 +02:00
|
|
|
|
2007-09-27 02:16:01 +02:00
|
|
|
INFO= heimdal hx509
|
2006-03-20 16:21:19 +01:00
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
|
2004-04-03 01:06:44 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-03-20 16:45:21 +01:00
|
|
|
.if ${OSVERSION} > 900007
|
|
|
|
BROKEN= fails to build with new utmpx
|
|
|
|
.endif
|
|
|
|
|
2006-03-20 16:21:19 +01:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2007-11-13 00:27:08 +01:00
|
|
|
.if ${OSVERSION} >= 700000
|
|
|
|
PLIST_SUB+= HCRYPTO="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HCRYPTO=""
|
|
|
|
.endif
|
|
|
|
|
2000-10-31 18:26:41 +01:00
|
|
|
.if defined(WITH_LDAP)
|
2004-04-03 01:06:44 +02:00
|
|
|
USE_OPENLDAP= yes
|
2000-10-31 18:26:41 +01:00
|
|
|
CONFIGURE_ARGS+= --with-openldap=${LOCALBASE}
|
2007-09-27 02:16:01 +02:00
|
|
|
#EXTRA_PATCHES+= ${FILESDIR}/extrapatch-lib_hdb_hdb-ldap.c
|
2006-10-07 02:42:57 +02:00
|
|
|
. if defined(LDAP_SOCKET_PATH)
|
|
|
|
_SOCK= ${LDAP_SOCKET_PATH:C|/|%2f|g}
|
|
|
|
. else
|
|
|
|
LDAP_RUN_DIR?= /var/run/openldap
|
|
|
|
_SOCK= ${LDAP_RUN_DIR:C|/|%2f|g}%2fldapi
|
|
|
|
. endif
|
2000-10-31 18:26:41 +01:00
|
|
|
.endif
|
2006-03-20 16:21:19 +01:00
|
|
|
|
2004-04-03 01:06:44 +02:00
|
|
|
.if defined(WITH_CRACKLIB)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
|
2000-01-17 21:07:39 +01:00
|
|
|
.endif
|
2006-03-20 16:21:19 +01:00
|
|
|
|
2004-04-03 01:06:44 +02:00
|
|
|
.if defined(WITH_X11)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2000-01-17 21:07:39 +01:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.endif
|
|
|
|
|
2004-04-03 01:06:44 +02:00
|
|
|
.if defined(HEIMDAL_HOME)
|
2006-03-20 16:21:19 +01:00
|
|
|
PREFIX= ${HEIMDAL_HOME}
|
2005-01-18 21:55:05 +01:00
|
|
|
.else
|
2006-03-20 16:21:19 +01:00
|
|
|
CONFLICTS+= wu-ftpd-[0-9]* wu-ftpd+ipv6-[0-9]*
|
2004-04-03 01:06:44 +02:00
|
|
|
.endif
|
|
|
|
|
2005-07-12 19:07:46 +02:00
|
|
|
post-patch:
|
2006-10-07 02:42:57 +02:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LDAP_SOCKET%%|${_SOCK:Q}|g' \
|
|
|
|
${WRKSRC}/lib/hdb/hdb-ldap.c
|
|
|
|
.endif
|
2005-07-12 19:07:46 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$ac_cv_header_fnmatch_h|yes|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2001-10-29 14:02:43 +01:00
|
|
|
post-build:
|
|
|
|
.if defined(WITH_CRACKLIB)
|
2003-02-25 20:11:35 +01:00
|
|
|
${SED} -e "s;%%LOCALBASE%%;${LOCALBASE};g" \
|
2006-03-20 16:21:19 +01:00
|
|
|
${FILESDIR}/kpasswdd-cracklib.c.in > ${WRKSRC}/kpasswdd-cracklib.c
|
2001-10-29 14:02:43 +01:00
|
|
|
(cd ${WRKSRC} && \
|
2006-03-20 16:21:19 +01:00
|
|
|
${CC} ${CFLAGS} -fPIC -shared -I${LOCALBASE}/include -I./include \
|
|
|
|
-L${LOCALBASE}/lib -o ./kpasswdd-cracklib.so ./kpasswdd-cracklib.c -lcrack)
|
2001-10-29 14:02:43 +01:00
|
|
|
.endif
|
|
|
|
|
2000-01-17 21:07:39 +01:00
|
|
|
pre-install:
|
2000-10-08 07:57:33 +02:00
|
|
|
@${CP} ${PKGDIR}/pkg-plist ${PLIST}
|
2005-07-12 19:07:46 +02:00
|
|
|
@if [ -f ${WRKSRC}/lib/com_err/.libs/compile_et ]; then \
|
|
|
|
${CAT} ${PKGDIR}/pkg-plist.com_err >> ${PLIST}; \
|
|
|
|
fi
|
2004-04-03 01:06:44 +02:00
|
|
|
.if defined(WITH_X11)
|
2000-10-08 07:57:33 +02:00
|
|
|
@${CAT} ${PKGDIR}/pkg-plist.x11 >> ${PLIST}
|
2000-01-17 21:07:39 +01:00
|
|
|
.endif
|
2001-02-21 13:43:20 +01:00
|
|
|
.if !exists(/usr/include/ifaddrs.h)
|
2002-01-29 12:58:52 +01:00
|
|
|
@${ECHO_CMD} include/ifaddrs.h >> ${PLIST}
|
2001-02-21 13:43:20 +01:00
|
|
|
.endif
|
2001-10-29 14:02:43 +01:00
|
|
|
.if defined(WITH_CRACKLIB)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/kpasswdd-cracklib.so ${PREFIX}/lib/
|
2002-01-29 12:58:52 +01:00
|
|
|
@${ECHO_CMD} lib/kpasswdd-cracklib.so >> ${PLIST}
|
2001-10-29 14:02:43 +01:00
|
|
|
.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:
|
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
|
|
|
|
2004-02-23 14:23:58 +01:00
|
|
|
.include <bsd.port.post.mk>
|