2005-12-29 07:21:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.50 2005/12/29 06:22:09 jlam Exp $
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2005-10-26 17:12:45 +02:00
|
|
|
DISTNAME= heimdal-0.7.1
|
2005-12-21 05:17:49 +01:00
|
|
|
PKGREVISION= 2
|
2004-06-25 17:42:52 +02:00
|
|
|
CATEGORIES= security
|
2004-09-14 16:41:34 +02:00
|
|
|
MASTER_SITES= ftp://ftp.pdc.kth.se/pub/heimdal/src/ \
|
2004-11-09 20:48:52 +01:00
|
|
|
ftp://ftp.sunet.se/pub/unix/admin/mirror-pdc/heimdal/src/
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2005-04-21 16:00:36 +02:00
|
|
|
MAINTAINER= lha@NetBSD.org
|
2004-06-25 17:42:52 +02:00
|
|
|
HOMEPAGE= http://www.pdc.kth.se/heimdal/
|
|
|
|
COMMENT= Kerberos 5 implementation
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2004-06-25 17:42:52 +02:00
|
|
|
CONFLICTS+= mit-krb5-[0-9]*
|
2004-01-11 01:00:28 +01:00
|
|
|
|
2004-01-10 15:56:44 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= bison
|
2005-10-26 17:12:45 +02:00
|
|
|
MAKE_ENV+= INSTALL_CATPAGES=no
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2004-07-24 16:01:20 +02:00
|
|
|
HEIMDAL_STATEDIR?= ${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}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${HEIMDAL_STATEDIR:Q}
|
2004-01-10 15:56:44 +01:00
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/krb5
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
CONFIGURE_ARGS+= --without-krb4
|
2005-10-26 17:12:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-kcm
|
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-09-15 06:53:21 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-01-10 15:56:44 +01:00
|
|
|
# Heimdal's configure script expects to find the readline.h header as
|
2004-11-15 15:56:36 +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-11-15 15:56:36 +01:00
|
|
|
BROKEN_READLINE_DETECTION= yes
|
2004-01-10 15:56:44 +01:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.heimdal
|
2005-10-26 17:12:45 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= kerberos-prefix-cmds ldap
|
2005-05-31 12:01:36 +02:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2004-12-23 15:43:28 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
|
|
|
. include "../../databases/openldap/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-openldap=${BUILDLINK_PREFIX.openldap}
|
2005-10-26 17:12:45 +02:00
|
|
|
PLIST_SUBST+= LDAP=""
|
|
|
|
|
|
|
|
post-install: heimdal-ldap-schema
|
|
|
|
heimdal-ldap-schema:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/heimdal
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/hdb/hdb.schema \
|
|
|
|
${PREFIX}/share/examples/heimdal
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= LDAP="@comment "
|
2004-12-23 15:43:28 +01:00
|
|
|
.endif
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2004-01-15 13:48:00 +01:00
|
|
|
# Rename some of Heimdal's applications so they won't conflict with
|
|
|
|
# other packages.
|
2004-01-10 15:56:44 +01:00
|
|
|
#
|
2005-05-31 13:31:07 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mkerberos-prefix-cmds)
|
2004-03-28 03:00:11 +02:00
|
|
|
KRB5_PREFIX= k
|
|
|
|
HEIMDAL_TRANSFORM= s/^ftp/${KRB5_PREFIX}&/; \
|
|
|
|
s/^login/${KRB5_PREFIX}&/; \
|
|
|
|
s/^${KRB5_PREFIX}login.access/login.access/; \
|
|
|
|
s/^rcp/${KRB5_PREFIX}&/; \
|
|
|
|
s/^rsh/${KRB5_PREFIX}&/; \
|
|
|
|
s/^su/${KRB5_PREFIX}&/; \
|
|
|
|
s/^telnet/${KRB5_PREFIX}&/
|
2004-01-15 13:48:00 +01:00
|
|
|
.else
|
2004-03-28 03:00:11 +02:00
|
|
|
KRB5_PREFIX= # empty
|
2004-01-15 13:48:00 +01:00
|
|
|
HEIMDAL_TRANSFORM= s/^ftp/k&/
|
|
|
|
.endif
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= KRB5_PREFIX=${KRB5_PREFIX:Q}
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --program-transform-name=${HEIMDAL_TRANSFORM:Q}
|
2004-01-10 15:56:44 +01:00
|
|
|
|
|
|
|
OWN_DIRS_PERMS= ${HEIMDAL_STATEDIR} ${ROOT_USER} ${ROOT_GROUP} 0700
|
2005-10-26 17:12:45 +02:00
|
|
|
SPECIAL_PERMS= ${PREFIX}/bin/${KRB5_PREFIX}su ${SETUID_ROOT_PERMS}
|
|
|
|
RCD_SCRIPTS= kadmind kcm kdc kpasswdd
|
2004-03-29 19:22:26 +02:00
|
|
|
INFO_FILES= heimdal.info
|
2004-01-10 15:56:44 +01:00
|
|
|
|
2004-03-28 03:00:11 +02:00
|
|
|
# Fix some places in the Heimdal sources that don't point to the correct
|
|
|
|
# Kerberized binaries when exec'ing programs.
|
|
|
|
#
|
|
|
|
SUBST_CLASSES+= heimdal
|
|
|
|
SUBST_STAGE.heimdal= pre-configure
|
|
|
|
SUBST_FILES.heimdal= appl/rcp/rcp.c appl/rcp/rcp_locl.h \
|
|
|
|
appl/rsh/rsh_locl.h \
|
|
|
|
appl/telnet/telnetd/telnetd.h
|
|
|
|
SUBST_SED.heimdal= \
|
|
|
|
-e "/RSH_PROGRAM/s,rsh,${KRB5_PREFIX}rsh,g" \
|
|
|
|
-e "/PATH_RSH/s,\"/usr/bin/rsh\",BINDIR \"${KRB5_PREFIX}rsh\",g" \
|
|
|
|
-e "/PATH_RSH/s,/rsh,/${KRB5_PREFIX}rsh,g" \
|
|
|
|
-e "/PATH_LOGIN/s,/login,/${KRB5_PREFIX}login,g"
|
|
|
|
|
2005-10-26 17:12:45 +02:00
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
|
|
|
2004-01-10 15:56:44 +01:00
|
|
|
pre-configure:
|
2005-04-21 16:35:47 +02:00
|
|
|
cd ${WRKSRC}; for f in lib/hdb/hdb.h; do \
|
2004-01-10 15:56:44 +01:00
|
|
|
${SED} -e "s|/var/heimdal|${HEIMDAL_STATEDIR}|g" \
|
2005-04-21 16:35:47 +02:00
|
|
|
$$f > $$f.new; \
|
|
|
|
${MV} -f $$f.new $$f; \
|
2004-01-10 15:56:44 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|