| @@ -1,39 +1,48 @@ | | | @@ -1,39 +1,48 @@ |
1 | # $NetBSD: Makefile,v 1.30 2008/06/12 02:14:44 joerg Exp $ | | 1 | # $NetBSD: Makefile,v 1.31 2008/11/21 03:24:29 ahoka Exp $ |
2 | | | 2 | |
3 | DISTNAME= pam_ldap-184 | | 3 | DISTNAME= pam_ldap-184 |
4 | PKGNAME= ${DISTNAME:S/_/-/} | | 4 | PKGNAME= ${DISTNAME:S/_/-/} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= security | | 6 | CATEGORIES= security |
7 | MASTER_SITES= ftp://ftp.padl.com/pub/ \ | | 7 | MASTER_SITES= ftp://ftp.padl.com/pub/ \ |
8 | http://www.padl.com/download/ | | 8 | http://www.padl.com/download/ |
9 | | | 9 | |
10 | MAINTAINER= rh@NetBSD.org | | 10 | MAINTAINER= rh@NetBSD.org |
11 | HOMEPAGE= http://www.padl.com/pam_ldap.html | | 11 | HOMEPAGE= http://www.padl.com/pam_ldap.html |
12 | COMMENT= Pluggable authentication module for LDAP directories | | 12 | COMMENT= Pluggable authentication module for LDAP directories |
13 | | | 13 | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
15 | | | 15 | |
16 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
17 | USE_TOOLS+= gmake | | 17 | USE_TOOLS+= gmake |
18 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
19 | CONFIGURE_ARGS+= --with-ldap-lib=openldap | | 19 | CONFIGURE_ARGS+= --with-ldap-lib=openldap |
20 | CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap-client} | | 20 | CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap-client} |
21 | CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/pam_ldap.conf | | 21 | CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/pam_ldap.conf |
22 | CONFIGURE_ARGS+= --with-ldap-secret-file=${PKG_SYSCONFDIR}/pam_ldap.secret | | 22 | CONFIGURE_ARGS+= --with-ldap-secret-file=${PKG_SYSCONFDIR}/pam_ldap.secret |
23 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 23 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
24 | | | 24 | |
25 | MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q} | | 25 | MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q} |
26 | | | 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 | |
27 | INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR} | | 36 | INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR} |
28 | INSTALL_TARGET= install install-data | | 37 | INSTALL_TARGET= install install-data |
29 | | | 38 | |
30 | DOCDIR= ${PREFIX}/share/doc/${PKGBASE} | | 39 | DOCDIR= ${PREFIX}/share/doc/${PKGBASE} |
31 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | | 40 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} |
32 | | | 41 | |
33 | INSTALLATION_DIRS= ${DOCDIR} | | 42 | INSTALLATION_DIRS= ${DOCDIR} |
34 | | | 43 | |
35 | CONF_FILES= ${EGDIR}/pam_ldap.conf ${PKG_SYSCONFDIR}/pam_ldap.conf | | 44 | CONF_FILES= ${EGDIR}/pam_ldap.conf ${PKG_SYSCONFDIR}/pam_ldap.conf |
36 | | | 45 | |
37 | .include "../../databases/openldap-client/buildlink3.mk" | | 46 | .include "../../databases/openldap-client/buildlink3.mk" |
38 | .include "../../mk/pam.buildlink3.mk" | | 47 | .include "../../mk/pam.buildlink3.mk" |
39 | | | 48 | |