diff options
author | wxs <wxs@FreeBSD.org> | 2010-11-01 01:02:26 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2010-11-01 01:02:26 +0800 |
commit | 97c305934639a28d3a5580bb8e6d6f0a48865c69 (patch) | |
tree | 6403e4c6fc1732be486adb0b7690ef6fbc72f47c /security/heimdal/Makefile | |
parent | aec9cd788133257e3fd47d4dd448771fc1194e43 (diff) | |
download | freebsd-ports-gnome-97c305934639a28d3a5580bb8e6d6f0a48865c69.tar.gz freebsd-ports-gnome-97c305934639a28d3a5580bb8e6d6f0a48865c69.tar.zst freebsd-ports-gnome-97c305934639a28d3a5580bb8e6d6f0a48865c69.zip |
Update to 1.4
PR: ports/151506
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Diffstat (limited to 'security/heimdal/Makefile')
-rw-r--r-- | security/heimdal/Makefile | 113 |
1 files changed, 96 insertions, 17 deletions
diff --git a/security/heimdal/Makefile b/security/heimdal/Makefile index 007ad0ba1fd2..0722b2cbfff9 100644 --- a/security/heimdal/Makefile +++ b/security/heimdal/Makefile @@ -6,12 +6,12 @@ # PORTNAME= heimdal -PORTVERSION= 1.0.1 -PORTREVISION= 2 +PORTVERSION= 1.4 CATEGORIES= security ipv6 -MASTER_SITES= http://ftp.pdc.kth.se/pub/heimdal/src/ \ +MASTER_SITES= http://www.h5l.org/dist/src/ \ + http://ftp.pdc.kth.se/pub/heimdal/src/ \ ftp://ftp.pdc.kth.se/pub/heimdal/src/ \ - ftp://ftp.sunet.se/pub/unix/admin/mirror-pdc/pub/heimdal/src/ \ + ftp://ftp.sunet.se/pub/unix/admin/mirror-pdc/heimdal/src/ \ ftp://ftp.ayamura.org/pub/heimdal/ MAINTAINER= ports@FreeBSD.org @@ -19,26 +19,33 @@ COMMENT= A popular BSD-licensed implementation of Kerberos 5 CONFLICTS= krb4-[0-9]* krb5-[0-9]* srp-[0-9]* -OPTIONS+= LDAP "Use OpenLDAP as the KDC backend" off -OPTIONS+= CRACKLIB "Use CrackLib for password quality checking" off -OPTIONS+= X11 "Build X11 utilies" off - -USE_AUTOTOOLS= libtool:22 +OPTIONS= IPV6 "Enable IPV6 support" on \ + KCM "Enable Kerberos Credentials Manager" on \ + BDB "Enable BerkeleyDB KDC backend support" off \ + SQLITE "Enable SQLite KDC backend support" off \ + LDAP "Enable OpenLDAP KDC backend support" off \ + PKINIT "Enable PK-INIT support" on \ + DIGEST "Enable DIGEST support" on \ + KX509 "Enable kx509 support" on \ + KRB4 "Enable krb4 support" off \ + CRACKLIB "Use CrackLib for password quality checking" off \ + X11 "Build X11 utilies" off + +USE_AUTOTOOLS= autoconf:268 autoheader:268 libtool:22 +USE_GNOME= gnomehack pkgconfig USE_OPENSSL= yes +USE_GETTEXT= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes -CONFIGURE_ENV+= CFLAGS="${CFLAGS}" -CONFIGURE_ARGS+= --enable-shared --without-krb4 +CONFIGURE_ARGS+= --with-libintl=${LOCALBASE} \ + --with-readline=${DESTDIR}/usr \ + --enable-pthread-support INFO= heimdal hx509 PLIST= ${WRKDIR}/PLIST .include <bsd.port.pre.mk> -.if ${OSVERSION} > 900007 -BROKEN= fails to build with new utmpx -.endif - .if ${ARCH} == "amd64" CFLAGS+= -fPIC .endif @@ -49,16 +56,74 @@ PLIST_SUB+= HCRYPTO="@comment " PLIST_SUB+= HCRYPTO="" .endif +.if defined(WITHOUT_IPV6) +CONFIGURE_ARGS+= --without-ipv6 +.else +CONFIGURE_ARGS+= --with-ipv6 +.endif + +.if !defined(WITHOUT_KCM) +CONFIGURE_ARGS+= --enable-kcm +PLIST_SUB+= KCM="" +.else +CONFIGURE_ARGS+= --disable-kcm +PLIST_SUB+= KCM="@comment " +.endif + +.if defined(WITH_BDB) +USE_BDB= yes +CFLAGS+= -I${BDB_INCLUDE_DIR} +LDFLAGS+= -L${BDB_LIB_DIR} +CONFIGURE_ARGS+= --with-berkeley-db=${LOCALBASE} +# --with-berkeley-db-include=${BDB_INCLUDE_DIR} +.else +CONFIGURE_ARGS+= --without-berkeley-db +.endif + +.if defined(WITH_SQLITE) +USE_SQLITE= yes +CONFIGURE_ARGS+= --with-sqlite3=${LOCALBASE} +PLIST_SUB+= SQLITE="@comment " +.else +CONFIGURE_ARGS+= --without-sqlite3 +PLIST_SUB+= SQLITE="" +.endif + .if defined(WITH_LDAP) USE_OPENLDAP= yes CONFIGURE_ARGS+= --with-openldap=${LOCALBASE} -#EXTRA_PATCHES+= ${FILESDIR}/extrapatch-lib_hdb_hdb-ldap.c . 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 +.else +CONFIGURE_ARGS+= --without-openldap +.endif + +.if defined(WITHOUT_PKINIT) +CONFIGURE_ARGS+= --disable-pk-init +.else +CONFIGURE_ARGS+= --enable-pk-init +.endif + +.if defined(WITHOUT_DIGEST) +CONFIGURE_ARGS+= --disable-digest +.else +CONFIGURE_ARGS+= --enable-digest +.endif + +.if defined(WITHOUT_KX509) +CONFIGURE_ARGS+= --disable-kx509 +.else +CONFIGURE_ARGS+= --enable-kx509 +.endif + +.if !defined(WITH_KRB4) +CONFIGURE_ARGS+= --disable-krb4 +.else +CONFIGURE_ARGS+= --enable-krb4 .endif .if defined(WITH_CRACKLIB) @@ -66,7 +131,7 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib .endif .if defined(WITH_X11) -USE_XORG= x11 +USE_XORG= x11 xt CONFIGURE_ARGS+= --with-x .else CONFIGURE_ARGS+= --without-x @@ -85,6 +150,20 @@ post-patch: .endif @${REINPLACE_CMD} -e 's|$$ac_cv_header_fnmatch_h|yes|' \ ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|@LDFLAGS@|@LDFLAGS@ \$$\(PTHREADS_LIBADD\)|g' \ + ${WRKSRC}/lib/ipc/Makefile.in + +# These will be fixed in the next release. Looks like they were forgot in this +# release. +post-configure: + @${CP} ${FILESDIR}/lib__otp__version-script.map \ + ${WRKSRC}/lib/otp/version-script.map + @${CP} ${FILESDIR}/lib__hcrypto__libtommath__tommath.h \ + ${WRKSRC}/lib/hcrypto/libtommath/tommath.h + @${CP} ${FILESDIR}/lib__hcrypto__libtommath__tommath_class.h \ + ${WRKSRC}/lib/hcrypto/libtommath/tommath_class.h + @${CP} ${FILESDIR}/lib__hcrypto__libtommath__tommath_superclass.h \ + ${WRKSRC}/lib/hcrypto/libtommath/tommath_superclass.h post-build: .if defined(WITH_CRACKLIB) |