pkgsrc/databases/openldap-smbk5pwd/Makefile
manu 90b4b82d7c Use OpenSSL libcrypto instead of libdes on NetBSD
All recent NetBSD releases now have an OpenSSL recent enough so
that the DES symbols required by slapo-smbk5pwd can be found in
OpenSSL's libcrypto. We therefore do not need to link with -ldes
anymore, especialy since it now causes a build failure.
2015-08-10 12:47:50 +00:00

36 lines
944 B
Makefile

# $NetBSD: Makefile,v 1.18 2015/08/10 12:47:50 manu 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
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"
.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+= EXTRA_LIBS=${LIBS:M*:Q}
.include "../../databases/openldap/Makefile.common"
.include "../../databases/openldap-client/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"