2014-10-07 18:47:10 +02:00
|
|
|
# $NetBSD: Makefile,v 1.114 2014/10/07 16:47:14 adam Exp $
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2013-08-16 10:30:14 +02:00
|
|
|
DISTNAME= heimdal-1.5.3
|
2014-10-07 18:47:10 +02:00
|
|
|
PKGREVISION= 8
|
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]*
|
2012-09-09 11:23:06 +02:00
|
|
|
CONFLICTS+= kth-krb4-[0-9]*
|
2004-01-11 01:00:28 +01:00
|
|
|
|
2013-08-22 23:17:00 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2004-01-10 15:56:44 +01:00
|
|
|
USE_LIBTOOL= yes
|
2014-07-30 13:05:04 +02:00
|
|
|
USE_TOOLS+= bison flex:run
|
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
|
|
|
|
2013-08-16 10:30:14 +02:00
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
|
|
|
|
|
|
# XXX Don't detect db1 when a newer version is available; otherwise build fails
|
|
|
|
.if ${BDB_TYPE} != "db1"
|
|
|
|
CONFIGURE_ENV+= ac_cv_funclib_dbopen=no
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
|
2013-08-15 13:15:11 +02:00
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
|
|
|
|
|
|
.if ${READLINE_TYPE} == "readline"
|
2013-07-15 04:02:17 +02:00
|
|
|
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.editlinereadline}
|
2013-08-15 13:15:11 +02:00
|
|
|
.elif ${READLINE_TYPE} == "editline"
|
|
|
|
CONFIGURE_ARGS+= --with-libedit=${BUILDLINK_PREFIX.editlinereadline}
|
|
|
|
.endif
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2013-08-22 23:17:00 +02:00
|
|
|
PLIST_VARS+= glob vis
|
2013-08-24 18:45:08 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
PLIST.vis= yes
|
|
|
|
PLIST.glob= yes
|
|
|
|
.endif
|
2013-08-22 23:17:00 +02:00
|
|
|
|
2013-10-14 11:55:52 +02:00
|
|
|
# Linux does not have include/vis.h and expected include/glob.h.
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
PLIST.vis= yes
|
|
|
|
PLIST.glob= yes
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
2012-07-18 11:48:10 +02:00
|
|
|
# Avoid 'cat: cannot open ./localefiles: No such file or directory'
|
|
|
|
pre-build:
|
|
|
|
${TOUCH} ${WRKSRC}/po/localefiles
|
|
|
|
|
2011-07-08 11:49:21 +02:00
|
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
2008-02-28 09:14:41 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2014-02-20 09:19:43 +01:00
|
|
|
CHECK_BUILTIN.openssl:= yes
|
|
|
|
.include "../../security/openssl/builtin.mk"
|
|
|
|
CHECK_BUILTIN.openssl:=no
|
|
|
|
.if ${MACHINE_PLATFORM:MNetBSD-[1-3]*} != "" || \
|
|
|
|
(${OPSYS} == "SunOS" && !empty(USE_BUILTIN.openssl:Myes) && \
|
|
|
|
!empty(BUILTIN_LIB_FOUND.crypto:M[Nn][Oo]))
|
|
|
|
PLIST.hcrypto= yes
|
|
|
|
.endif
|
|
|
|
|
2014-03-22 10:05:24 +01:00
|
|
|
.if ${OPSYS} == "MirBSD"
|
|
|
|
.if !empty(USE_BUILTIN.openssl:Myes)
|
|
|
|
PLIST.hcrypto= yes
|
|
|
|
.endif
|
|
|
|
PLIST.vis= yes
|
|
|
|
# all of the tools need to link against pthread, force it.
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
.endif
|
|
|
|
|
2013-10-11 18:21:40 +02:00
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
2011-07-08 11:49:21 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2013-08-16 10:30:14 +02:00
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
2004-01-10 15:56:44 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|