pkgsrc/security/heimdal/Makefile
jlam 83532f92f6 Support a new yes/no variable "KERBEROS_PREFIX_CMDS" that can be used by
Kerberos implementation packages to decide whether to prefix certain
commands with a "k" to differentiate it from system tools with similar
names.  KERBEROS_PREFIX_CMDS defaults to "no".
2004-01-15 12:48:00 +00:00

77 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2004/01/15 12:48:00 jlam Exp $
DISTNAME= heimdal-0.6
CATEGORIES= security
MASTER_SITES= ftp://ftp.pdc.kth.se/pub/heimdal/src/ \
ftp://ftp.pdc.kth.se/pub/heimdal/src/old/ \
ftp://ftp.pdc.kth.se/pub/heimdal/src/snapshots/
MAINTAINER= jlam@NetBSD.org
HOMEPAGE= http://www.pdc.kth.se/heimdal/
COMMENT= Kerberos 5 implementation
CONFLICTS+= mit-krb5-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
HEIMDAL_STATEDIR?= /var/heimdal
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=${HEIMDAL_STATEDIR}
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/krb5
CONFIGURE_ARGS+= --without-x
CONFIGURE_ARGS+= --without-krb4
# Heimdal's configure script expects to find the readline.h header as
# <readline.h>.
#
BUILDLINK_INCDIRS.readline= include/readline
.include "../../devel/readline/buildlink3.mk"
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
USE_DB185= yes
.include "../../databases/db/buildlink3.mk"
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
.include "../../security/openssl/buildlink3.mk"
# XXX Using Heimdal with an LDAP backend isn't supported yet.
#BUILD_DEFS+= HEIMDAL_USE_LDAP
#.if defined(HEIMDAL_USE_LDAP) && !empty(HEIMDAL_USE_LDAP:M[yY][eE][sS])
#. include "../../databases/openldap/buildlink3.mk"
#CONFIGURE_ARGS+= --with-openldap=${BUILDLINK_PREFIX.openldap}
#.endif
# Rename some of Heimdal's applications so they won't conflict with
# other packages.
#
BUILD_DEFS+= KERBEROS_PREFIX_CMDS
.if !empty(KERBEROS_PREFIX_CMDS:M[yY][eE][sS])
HEIMDAL_TRANSFORM= s/^ftp/k&/; \
s/^login/k&/;s/^klogin.access/login.access/; \
s/^rcp/k&/;s/^rsh/k&/; \
s/^su/k&/;s/^telnet/k&/
PLIST_SUBST+= KRB5_PREFIX=k
.else
HEIMDAL_TRANSFORM= s/^ftp/k&/
PLIST_SUBST+= KRB5_PREFIX=
.endif
CONFIGURE_ARGS+= --program-transform-name="${HEIMDAL_TRANSFORM}"
USE_PKGINSTALL= yes
OWN_DIRS_PERMS= ${HEIMDAL_STATEDIR} ${ROOT_USER} ${ROOT_GROUP} 0700
RCD_SCRIPTS= kdc
pre-configure:
cd ${WRKSRC}; for file in lib/hdb/hdb.h; do \
${SED} -e "s|/var/heimdal|${HEIMDAL_STATEDIR}|g" \
$$file > $$file.new; \
${MV} -f $$file.new $$file; \
done
.include "../../mk/bsd.pkg.mk"