Fixup fromcvs/togit conversion
[pkgsrcv2.git] / security / pam-ldap / Makefile
1 # $NetBSD: Makefile,v 1.31 2008/11/21 03:24:29 ahoka Exp $
2
3 DISTNAME=       pam_ldap-184
4 PKGNAME=        ${DISTNAME:S/_/-/}
5 PKGREVISION=    3
6 CATEGORIES=     security
7 MASTER_SITES=   ftp://ftp.padl.com/pub/ \
8                 http://www.padl.com/download/
9
10 MAINTAINER=     rh@NetBSD.org
11 HOMEPAGE=       http://www.padl.com/pam_ldap.html
12 COMMENT=        Pluggable authentication module for LDAP directories
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 USE_LIBTOOL=            yes
17 USE_TOOLS+=             gmake
18 GNU_CONFIGURE=          yes
19 CONFIGURE_ARGS+=        --with-ldap-lib=openldap
20 CONFIGURE_ARGS+=        --with-ldap-dir=${BUILDLINK_PREFIX.openldap-client}
21 CONFIGURE_ARGS+=        --with-ldap-conf-file=${PKG_SYSCONFDIR}/pam_ldap.conf
22 CONFIGURE_ARGS+=        --with-ldap-secret-file=${PKG_SYSCONFDIR}/pam_ldap.secret
23 CONFIGURE_ARGS+=        --sysconfdir=${PKG_SYSCONFDIR:Q}
24
25 MAKE_ENV+=              SHLIBTOOL=${SHLIBTOOL:Q}
26
27 # Fix (workaround?) a bug with openpam/NetBSD
28 # The bug is described in PR security/39313.
29 #
30 .include "../../mk/bsd.prefs.mk"
31 #
32 .if ${OPSYS} == "NetBSD"
33 CFLAGS+=                -DNO_STATIC_MODULES
34 .endif
35
36 INSTALL_MAKE_FLAGS=     ${MAKE_FLAGS} sysconfdir=${EGDIR}
37 INSTALL_TARGET=         install install-data
38
39 DOCDIR=         ${PREFIX}/share/doc/${PKGBASE}
40 EGDIR=          ${PREFIX}/share/examples/${PKGBASE}
41
42 INSTALLATION_DIRS=      ${DOCDIR}
43
44 CONF_FILES=     ${EGDIR}/pam_ldap.conf ${PKG_SYSCONFDIR}/pam_ldap.conf
45
46 .include "../../databases/openldap-client/buildlink3.mk"
47 .include "../../mk/pam.buildlink3.mk"
48
49 post-install:
50 .for file in COPYING COPYING.LIB
51         cd ${WRKSRC} && ${INSTALL_DATA} ${file} ${DESTDIR}${DOCDIR}
52 .endfor
53 .for file in ldapns.schema ns-pwd-policy.schema
54         cd ${WRKSRC} && ${INSTALL_DATA} ${file} ${DESTDIR}${EGDIR}
55 .endfor
56
57 .include "../../mk/bsd.pkg.mk"