2008-03-04 23:37:46 +01:00
|
|
|
# $NetBSD: Makefile,v 1.68 2008/03/04 22:37:46 jlam Exp $
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2008-02-28 09:14:41 +01:00
|
|
|
DISTNAME= heimdal-1.1
|
2004-06-25 17:42:52 +02:00
|
|
|
CATEGORIES= security
|
2008-02-28 09:14:41 +01:00
|
|
|
MASTER_SITES= http://www.h5l.org/dist/src/
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2005-04-21 16:00:36 +02:00
|
|
|
MAINTAINER= lha@NetBSD.org
|
2008-02-28 09:14:41 +01:00
|
|
|
HOMEPAGE= http://www.h5l.org/
|
2004-06-25 17:42:52 +02:00
|
|
|
COMMENT= Kerberos 5 implementation
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2006-01-24 19:55:21 +01:00
|
|
|
CONFLICTS+= arla-[0-9]*
|
2004-06-25 17:42:52 +02:00
|
|
|
CONFLICTS+= mit-krb5-[0-9]*
|
2006-01-24 19:56:23 +01:00
|
|
|
CONFLICTS+= openafs-[0-9]*
|
2006-04-01 01:44:39 +02:00
|
|
|
CONFLICTS+= gss-[0-9]*
|
2004-01-11 01:00:28 +01:00
|
|
|
|
2008-02-28 09:14:41 +01:00
|
|
|
#LICENSE= modified-bsd
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-01-10 15:56:44 +01:00
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
2006-05-06 03:05:51 +02:00
|
|
|
USE_TOOLS+= bison flex
|
2008-02-28 09:14:41 +01:00
|
|
|
PKGCONFIG_OVERRIDE+= tools/heimdal-gssapi.pc.in
|
2005-10-26 17:12:45 +02:00
|
|
|
MAKE_ENV+= INSTALL_CATPAGES=no
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2008-02-28 09:14:41 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
HEIMDAL_HDB_DIR= ${VARBASE}/heimdal
|
2004-01-10 15:56:44 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2004-01-10 15:56:44 +01:00
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/krb5
|
2008-02-28 09:14:41 +01:00
|
|
|
CONFIGURE_ARGS+= --with-hdbdir=${HEIMDAL_HDB_DIR:H:Q}
|
2004-01-10 15:56:44 +01:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
CONFIGURE_ARGS+= --without-krb4
|
2005-10-26 17:12:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-kcm
|
2008-02-28 09:14:41 +01:00
|
|
|
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
|
|
|
|
CONFIGURE_ARGS+= ${ABI:D--with-mips-abi=${ABI}}
|
|
|
|
CONFIGURE_ENV+= COMPILE_ET=no # build Heimdal's compile_et(1)
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2005-10-26 17:12:45 +02:00
|
|
|
CFLAGS.Darwin+= -DBIND_8_COMPAT
|
2005-06-01 04:49:39 +02:00
|
|
|
|
2005-10-25 03:17:57 +02:00
|
|
|
# Though Solaris has a <vis.h> header, it does something very unrelated
|
|
|
|
# to the BSD <vis.h> header.
|
2008-02-28 09:14:41 +01:00
|
|
|
#
|
2005-10-25 03:17:57 +02:00
|
|
|
OPSYSVARS+= CONFIGURE_ENV
|
|
|
|
CONFIGURE_ENV.SunOS+= ac_cv_header_vis_h=no
|
|
|
|
|
2004-01-10 15:56:44 +01:00
|
|
|
# Heimdal's configure script expects to find the readline.h header as
|
2008-03-04 23:37:46 +01:00
|
|
|
# <readline.h>.
|
2004-01-10 15:56:44 +01:00
|
|
|
#
|
2004-11-15 15:56:36 +01:00
|
|
|
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
|
2005-10-26 17:12:45 +02:00
|
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.readline}/include/readline
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2007-02-20 11:17:14 +01:00
|
|
|
.if ${OPSYS} == "IRIX"
|
|
|
|
PLIST_SUBST+= IF_IRIX=""
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= IF_IRIX="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-02-28 09:14:41 +01:00
|
|
|
OWN_DIRS_PERMS= ${HEIMDAL_HDB_DIR} ${ROOT_USER} ${ROOT_GROUP} 0700
|
|
|
|
SPECIAL_PERMS+= ${PREFIX}/bin/otp ${SETUID_ROOT_PERMS}
|
2005-10-26 17:12:45 +02:00
|
|
|
SPECIAL_PERMS= ${PREFIX}/bin/${KRB5_PREFIX}su ${SETUID_ROOT_PERMS}
|
|
|
|
RCD_SCRIPTS= kadmind kcm kdc kpasswdd
|
2006-03-30 05:44:41 +02:00
|
|
|
INFO_FILES= # PLIST
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2008-02-28 09:14:41 +01:00
|
|
|
# Dynamically determine the "replacement" headers for bits needed by
|
|
|
|
# Heimdal but are missing in the base system and add them to the PLIST.
|
2006-07-05 06:39:14 +02:00
|
|
|
#
|
|
|
|
GENERATE_PLIST+= \
|
2008-02-28 09:14:41 +01:00
|
|
|
( cd ${WRKSRC}/lib/roken && ${BUILD_MAKE_CMD} print-xheaders | \
|
2008-03-02 07:41:32 +01:00
|
|
|
${XARGS} -n 1 | ${SED} -e "s,^,include/krb5/roken/," ); \
|
2006-07-05 06:39:14 +02:00
|
|
|
${ECHO} "@dirrm include/krb5";
|
|
|
|
|
2008-02-28 09:14:41 +01:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2005-10-26 17:12:45 +02:00
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
2004-01-10 15:56:44 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|