summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authoradam <adam>2010-01-16 09:16:12 +0000
committeradam <adam>2010-01-16 09:16:12 +0000
commit6cb686c34a2bfce28704a33544d3d8adf30cac86 (patch)
tree9691352d6aa42f88a361363a6d2ebcceea648ed6 /databases
parent61468c65b8b1cd5ce3f4bbb625bc57536824dcfd (diff)
downloadpkgsrc-6cb686c34a2bfce28704a33544d3d8adf30cac86.tar.gz
Added LDAP authentication as an option
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql84-server/Makefile4
-rw-r--r--databases/postgresql84/options.mk10
2 files changed, 11 insertions, 3 deletions
diff --git a/databases/postgresql84-server/Makefile b/databases/postgresql84-server/Makefile
index fa875d7f703..1c550f590b2 100644
--- a/databases/postgresql84-server/Makefile
+++ b/databases/postgresql84-server/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/12/16 13:30:54 adam Exp $
+# $NetBSD: Makefile,v 1.4 2010/01/16 09:16:49 adam Exp $
PKGNAME= postgresql84-server-${BASE_VERS}
COMMENT= PostgreSQL database server programs
@@ -46,7 +46,7 @@ DL_LIBS+= -lltdl
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql84-server
-PKG_SUPPORTED_OPTIONS= pam
+PKG_SUPPORTED_OPTIONS= ldap pam
.include "../../databases/postgresql84/options.mk"
# PGUSER username of the database administrator
diff --git a/databases/postgresql84/options.mk b/databases/postgresql84/options.mk
index 60bfe3480ab..b30f68551f6 100644
--- a/databases/postgresql84/options.mk
+++ b/databases/postgresql84/options.mk
@@ -1,10 +1,18 @@
-# $NetBSD: options.mk,v 1.1.1.1 2009/07/29 06:26:17 adam Exp $
+# $NetBSD: options.mk,v 1.2 2010/01/16 09:16:12 adam Exp $
PKG_SUPPORTED_OPTIONS+= # empty
.include "../../mk/bsd.options.mk"
###
+### LDAP authentication for the PostgreSQL backend.
+###
+.if !empty(PKG_OPTIONS:Mldap)
+. include "../../databases/openldap-client/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ldap
+.endif
+
+###
### PAM authentication for the PostgreSQL backend.
###
.if !empty(PKG_OPTIONS:Mpam)