summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorghen <ghen>2008-02-04 15:29:28 +0000
committerghen <ghen>2008-02-04 15:29:28 +0000
commitf6e8322760b3c21a26764458406498d141bd49bc (patch)
tree2ae79ed921dfef1599c59dc34bf57012a7bfcb68 /databases
parent347951ebfebd5aa20871627f9563cd208110c940 (diff)
downloadpkgsrc-f6e8322760b3c21a26764458406498d141bd49bc.tar.gz
Add an option for LDAP authentication as explained on
http://www.postgresql.org/docs/8.3/static/auth-methods.html#AUTH-LDAP
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql82-server/Makefile4
-rw-r--r--databases/postgresql82/options.mk10
2 files changed, 11 insertions, 3 deletions
diff --git a/databases/postgresql82-server/Makefile b/databases/postgresql82-server/Makefile
index 3a7a52b49fe..a1ae11c1139 100644
--- a/databases/postgresql82-server/Makefile
+++ b/databases/postgresql82-server/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/01/18 05:06:31 tnn Exp $
+# $NetBSD: Makefile,v 1.4 2008/02/04 15:29:28 ghen Exp $
PKGNAME= postgresql82-server-${BASE_VERS}
PKGREVISION= 1
@@ -46,7 +46,7 @@ DL_LIBS+= -lltdl
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql82-server
-PKG_SUPPORTED_OPTIONS= pam
+PKG_SUPPORTED_OPTIONS= pam ldap
.include "../../databases/postgresql82/options.mk"
# PGUSER username of the database administrator
diff --git a/databases/postgresql82/options.mk b/databases/postgresql82/options.mk
index d540b779953..047fc88e519 100644
--- a/databases/postgresql82/options.mk
+++ b/databases/postgresql82/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1.1.1 2006/12/09 15:34:13 adam Exp $
+# $NetBSD: options.mk,v 1.2 2008/02/04 15:29:28 ghen Exp $
PKG_SUPPORTED_OPTIONS+= # empty
@@ -11,3 +11,11 @@ PKG_SUPPORTED_OPTIONS+= # empty
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --with-pam
.endif
+
+###
+### LDAP authentication for the PostgreSQL backend.
+###
+.if !empty(PKG_OPTIONS:Mldap)
+. include "../../databases/openldap-client/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ldap
+.endif