summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2009-03-14 19:41:54 +0000
committermanu <manu@pkgsrc.org>2009-03-14 19:41:54 +0000
commit09df37be92d873c7dfcc56c236588a07fe7dcfb7 (patch)
tree8b1d32d532c8fed971bcf746a00120fc3e41d791 /databases
parentc9a797cd151a6647aa86d3ac00bac23700ff922b (diff)
downloadpkgsrc-09df37be92d873c7dfcc56c236588a07fe7dcfb7.tar.gz
This slapd overlay allows cloaking of selected attribute, for instance
large binary ones. Client will get the cloaked attribute only on explicit request. This should save bandwidth.
Diffstat (limited to 'databases')
-rw-r--r--databases/openldap-cloak/DESCR3
-rw-r--r--databases/openldap-cloak/MESSAGE12
-rw-r--r--databases/openldap-cloak/Makefile30
-rw-r--r--databases/openldap-cloak/PLIST5
4 files changed, 50 insertions, 0 deletions
diff --git a/databases/openldap-cloak/DESCR b/databases/openldap-cloak/DESCR
new file mode 100644
index 00000000000..5407fdf7cf2
--- /dev/null
+++ b/databases/openldap-cloak/DESCR
@@ -0,0 +1,3 @@
+This slapd overlay allows cloaking of selected attribute, for instance
+large binary ones. Client will get the cloaked attribute only on explicit
+request. This should save bandwidth.
diff --git a/databases/openldap-cloak/MESSAGE b/databases/openldap-cloak/MESSAGE
new file mode 100644
index 00000000000..6ecf20ef9d7
--- /dev/null
+++ b/databases/openldap-cloak/MESSAGE
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2009/03/14 19:41:54 manu Exp $
+
+Please note that this module require slapd to be built with dynamic
+module support. THis can be obtained by adding the following to mk.conf:
+ PKG_OPTIONS.openldap-server= dso
+
+In order to enable the use of this module, add this directive to slapd.conf:
+
+ moduleload cloak.la
+
+===========================================================================
diff --git a/databases/openldap-cloak/Makefile b/databases/openldap-cloak/Makefile
new file mode 100644
index 00000000000..0f090aa49a4
--- /dev/null
+++ b/databases/openldap-cloak/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/03/14 19:41:54 manu Exp $
+
+PKGNAME= ${DISTNAME:S/-/-cloak-/}
+COMMENT= Remove null-ops for OpenLDAP
+
+CONFLICTS+= openldap<2.3.23nb1
+
+DEPENDS+= openldap-server>=2.4.13nb1:../../databases/openldap-server
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LIBTOOL= yes
+
+BUILD_DIRS= include contrib/slapd-modules/cloak
+
+do-install:
+ ${INSTALL_LIB_DIR} ${PREFIX}/lib/openldap
+ ${INSTALL_MAN} ${WRKSRC}/contrib/slapd-modules/cloak/slapo-cloak.5\
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+ ${LIBTOOL} --mode=install \
+ ${INSTALL_DATA} \
+ ${WRKSRC}/contrib/slapd-modules/cloak/cloak.la \
+ ${DESTDIR}${PREFIX}/lib/openldap
+
+.include "../../databases/openldap/Makefile.common"
+
+.include "../../databases/db46/buildlink3.mk"
+.include "../../databases/openldap-client/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/openldap-cloak/PLIST b/databases/openldap-cloak/PLIST
new file mode 100644
index 00000000000..8054db920c6
--- /dev/null
+++ b/databases/openldap-cloak/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/03/14 19:41:54 manu Exp $
+lib/openldap/cloak.a
+lib/openldap/cloak.la
+man/man5/slapo-cloak.5
+@dirrm lib/openldap