2012-09-28 14:28:53 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2012/09/28 12:28:53 manu Exp $
|
2009-01-31 17:00:55 +01:00
|
|
|
|
2010-06-02 14:16:37 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/-/-smbk5pwd-/}
|
|
|
|
COMMENT= Samba and Kerberos password sync for OpenLDAP
|
2009-01-31 17:00:55 +01:00
|
|
|
|
2010-06-02 14:16:37 +02:00
|
|
|
CONFLICTS+= openldap<2.3.23nb1
|
|
|
|
DEPENDS+= openldap-server>=2.4.13nb1:../../databases/openldap-server
|
2009-01-31 17:00:55 +01:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
|
|
|
|
BUILD_DIRS= include contrib/slapd-modules/smbk5pwd
|
2010-12-17 11:20:51 +01:00
|
|
|
INSTALLATION_DIRS+= lib/openldap
|
2009-01-31 17:00:55 +01:00
|
|
|
|
|
|
|
do-install:
|
2010-12-17 11:20:51 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2009-01-31 17:00:55 +01:00
|
|
|
${WRKSRC}/contrib/slapd-modules/smbk5pwd/smbk5pwd.la \
|
2009-01-31 18:01:23 +01:00
|
|
|
${DESTDIR}${PREFIX}/lib/openldap
|
2009-01-31 17:00:55 +01:00
|
|
|
|
2010-12-17 11:20:51 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
LIBS+= -ldes
|
|
|
|
.endif
|
|
|
|
|
2012-03-08 06:01:03 +01:00
|
|
|
.include "../../databases/openldap-server/options.mk"
|
|
|
|
|
2010-12-17 11:20:51 +01:00
|
|
|
.include "../../mk/krb5.buildlink3.mk"
|
|
|
|
|
|
|
|
.if ${KRB5_TYPE} == "heimdal"
|
|
|
|
CPPFLAGS+= -DDO_SAMBA -DDO_KRB5
|
|
|
|
LIBS+= -lkrb5 -lkadm5srv
|
|
|
|
.else
|
|
|
|
CPPFLAGS+= -DDO_SAMBA
|
|
|
|
.endif
|
|
|
|
|
2012-09-28 14:28:53 +02:00
|
|
|
MAKE_ENV+= EXTRA_LIBS=${LIBS:M*:Q}
|
2010-12-17 11:20:51 +01:00
|
|
|
|
2009-01-31 17:00:55 +01:00
|
|
|
.include "../../databases/openldap/Makefile.common"
|
|
|
|
.include "../../databases/openldap-client/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|