2012-04-27 14:31:32 +02:00
|
|
|
# $NetBSD: Makefile,v 1.90 2012/04/27 12:32:02 obache Exp $
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2012-02-27 13:39:11 +01:00
|
|
|
DISTNAME= heimdal-1.5.2
|
2012-04-27 14:31:32 +02:00
|
|
|
PKGREVISION= 2
|
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
|
|
|
|
2010-03-23 16:37:56 +01:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= modified-bsd
|
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
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2009-06-30 02:07:09 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
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-10-26 17:12:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-kcm
|
2011-07-08 11:49:21 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-pthread-support
|
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/krb5
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2012-03-11 12:30:06 +01:00
|
|
|
CONFIGURE_ARGS+= --with-hdbdir=${HEIMDAL_HDB_DIR}
|
2008-02-28 09:14:41 +01:00
|
|
|
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
|
2011-07-08 11:49:21 +02:00
|
|
|
CONFIGURE_ARGS+= --with-sqlite3=${BUILDLINK_PREFIX.sqlite3}
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
2008-02-28 09:14:41 +01:00
|
|
|
CONFIGURE_ARGS+= ${ABI:D--with-mips-abi=${ABI}}
|
|
|
|
CONFIGURE_ENV+= COMPILE_ET=no # build Heimdal's compile_et(1)
|
2011-07-08 11:49:21 +02:00
|
|
|
# XXX Grand Central Dispatch is broken in 1.4
|
|
|
|
CONFIGURE_ENV+= ac_cv_funclib_dispatch_async_f=no
|
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.
|
|
|
|
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-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
|
|
|
|
2008-05-14 20:01:26 +02:00
|
|
|
PLIST_VARS+= afskauth hcrypto
|
2007-02-20 11:17:14 +01:00
|
|
|
.if ${OPSYS} == "IRIX"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.afskauth= yes
|
2007-02-20 11:17:14 +01:00
|
|
|
.endif
|
2012-03-13 10:04:49 +01:00
|
|
|
|
|
|
|
.include "../../security/openssl/builtin.mk"
|
|
|
|
|
2011-09-14 19:33:00 +02:00
|
|
|
.if ${MACHINE_PLATFORM:MNetBSD-[1-3]*} != "" || \
|
2012-03-13 10:04:49 +01:00
|
|
|
(${OPSYS} == "SunOS" && !empty(USE_BUILTIN.openssl:Myes))
|
2008-05-14 20:01:26 +02:00
|
|
|
PLIST.hcrypto= yes
|
|
|
|
.endif
|
2007-02-20 11:17:14 +01:00
|
|
|
|
2011-12-09 02:53:11 +01:00
|
|
|
OWN_DIRS_PERMS= ${HEIMDAL_HDB_DIR} ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
|
2008-02-28 09:14:41 +01:00
|
|
|
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
|
2009-02-01 22:39:43 +01:00
|
|
|
INFO_FILES= yes
|
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 | \
|
2009-06-15 00:57:58 +02:00
|
|
|
${XARGS} -n 1 | ${SED} -e "s,^,include/krb5/roken/," );
|
2006-07-05 06:39:14 +02:00
|
|
|
|
2012-02-15 23:39:54 +01:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2011-07-08 11:49:21 +02:00
|
|
|
# remove manpages conficting with OpenSSL keeping only the important ones
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}/doc/doxyout/hcrypto && \
|
|
|
|
${GREP} -e /hcrypto_ -e /page_ manpages > manpages.new && \
|
|
|
|
mv manpages.new manpages
|
|
|
|
|
|
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
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"
|
2012-02-27 13:39:11 +01:00
|
|
|
.include "../../mk/curses.buildlink3.mk"
|
2011-07-08 11:49:21 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2004-01-10 15:56:44 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|