pkgsrc/databases/openldap-smbk5pwd/Makefile
dholland 54c64744cc Move the inclusion of openldap-server/options.mk to *before* krb5.bl3.mk.
Otherwise, with non-native kerberos, bdb.buildlink3.mk is included by
heimdal's bl3.mk before BDB_ACCEPTED is set, we get the wrong answer out,
and the package fails to build.

It's a good thing heimdal doesn't also need to set BDB_ACCEPTED I guess...
2012-03-08 05:01:03 +00:00

42 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2012/03/08 05:01:03 dholland Exp $
PKGNAME= ${DISTNAME:S/-/-smbk5pwd-/}
COMMENT= Samba and Kerberos password sync for OpenLDAP
CONFLICTS+= openldap<2.3.23nb1
DEPENDS+= openldap-server>=2.4.13nb1:../../databases/openldap-server
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= yes
BUILD_DIRS= include contrib/slapd-modules/smbk5pwd
INSTALLATION_DIRS+= lib/openldap
do-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/contrib/slapd-modules/smbk5pwd/smbk5pwd.la \
${DESTDIR}${PREFIX}/lib/openldap
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
LIBS+= -ldes
.endif
.include "../../databases/openldap-server/options.mk"
.include "../../mk/krb5.buildlink3.mk"
.if ${KRB5_TYPE} == "heimdal"
CPPFLAGS+= -DDO_SAMBA -DDO_KRB5
LIBS+= -lkrb5 -lkadm5srv
.else
CPPFLAGS+= -DDO_SAMBA
.endif
MAKE_ENV+= LIBS=${LIBS:M*:Q}
.include "../../databases/openldap/Makefile.common"
.include "../../databases/openldap-client/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"