8c8f18c61c
the in-tree kdc. From Jukka Salmi in PR 24489, ok'd by lukem@. Bump PKGREVISION to 1.
83 lines
2.4 KiB
Makefile
83 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2004/02/23 12:35:11 wiz Exp $
|
|
|
|
DISTNAME= heimdal-0.6
|
|
PKGREVISION= 1
|
|
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
|
|
|
|
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}
|
|
LIBS.SunOS= -ltermcap
|
|
|
|
BUILD_DEFS+= USE_DB4
|
|
.if defined(USE_DB4) && !empty(USE_DB4:M[yY][eE][sS])
|
|
.include "../../databases/db4/buildlink3.mk"
|
|
.else
|
|
USE_DB185= yes
|
|
.include "../../databases/db/buildlink3.mk"
|
|
.endif
|
|
|
|
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"
|