summaryrefslogtreecommitdiff
path: root/mail/dovecot2-ldap/Makefile
blob: 852688cfc8486808a95e88759e425e60b2c56ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $NetBSD: Makefile,v 1.4 2018/11/30 18:43:09 adam Exp $

.include "../../mail/dovecot2/Makefile.common"

PKGNAME=	${DISTNAME:S/dovecot/dovecot-ldap/}
COMMENT+=	(LDAP plugin)

CONFIGURE_ARGS+=	--with-ldap=plugin

INSTALLATION_DIRS+=	include/dovecot \
			lib/dovecot/auth lib/dovecot/dict

do-install:
	cd ${WRKSRC} && \
		${LIBTOOL} --mode=install ${INSTALL_LIB} \
			src/auth/libauthdb_ldap.la \
			${DESTDIR}${PREFIX}/lib/dovecot/auth && \
		${LIBTOOL} --mode=install ${INSTALL_LIB} \
			src/lib-ldap/libdovecot-ldap.la \
			${DESTDIR}${PREFIX}/lib/dovecot && \
		${LIBTOOL} --mode=install ${INSTALL_LIB} \
			src/lib-dict-backend/libdict_ldap.la \
			${DESTDIR}${PREFIX}/lib/dovecot/dict
	${INSTALL_DATA} ${WRKSRC}/src/lib-ldap/ldap-client.h \
		${DESTDIR}${PREFIX}/include/dovecot

.include "../../databases/openldap-client/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"