summaryrefslogtreecommitdiff
path: root/devel/ldapsdk
diff options
context:
space:
mode:
authorhwr <hwr>1999-05-18 21:22:26 +0000
committerhwr <hwr>1999-05-18 21:22:26 +0000
commit35ca0aa9704e7eec65b3234b388363dcfe7431a1 (patch)
treeb43beaaabf13eb51e19a0de3f6631ca9dfe86d0b /devel/ldapsdk
parent5e64eb41b3771b19b2550124d0cea421181a7a99 (diff)
downloadpkgsrc-35ca0aa9704e7eec65b3234b388363dcfe7431a1.tar.gz
The Mozilla project C-SDK for LDAP. A LDAP V3 client library.
Diffstat (limited to 'devel/ldapsdk')
-rw-r--r--devel/ldapsdk/Makefile25
-rw-r--r--devel/ldapsdk/files/md53
-rw-r--r--devel/ldapsdk/patches/patch-aa22
-rw-r--r--devel/ldapsdk/pkg/COMMENT1
-rw-r--r--devel/ldapsdk/pkg/DESCR2
-rw-r--r--devel/ldapsdk/pkg/PLIST9
-rwxr-xr-xdevel/ldapsdk/scripts/pre-build16
-rwxr-xr-xdevel/ldapsdk/scripts/pre-install22
8 files changed, 100 insertions, 0 deletions
diff --git a/devel/ldapsdk/Makefile b/devel/ldapsdk/Makefile
new file mode 100644
index 00000000000..02019b783f2
--- /dev/null
+++ b/devel/ldapsdk/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/05/18 21:22:26 hwr Exp $
+
+DISTNAME= ldapsdk_12311998
+PKGNAME= ldapsdk-12311998
+CATEGORIES= devel databases
+MASTER_SITES= ftp://ftp.mozilla.org/pub/directory/c-sdk/ldap/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.mozilla.org/directory/
+
+BUILD_DEPENDS+= gmake-3.77:../../devel/
+
+CONFLICTS+= openldap*
+
+WRKSRC= ${WRKDIR}/mozilla
+
+#
+# empty target. scripts/pre-build does the actual work
+do-build:
+
+#
+# empty target. scripts/pre-install does the actual work
+do-install:
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ldapsdk/files/md5 b/devel/ldapsdk/files/md5
new file mode 100644
index 00000000000..795c4df2889
--- /dev/null
+++ b/devel/ldapsdk/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/05/18 21:22:27 hwr Exp $
+
+MD5 (ldapsdk_12311998.tar.gz) = 7ae562daa86587a1dd608e7ee873ce60
diff --git a/devel/ldapsdk/patches/patch-aa b/devel/ldapsdk/patches/patch-aa
new file mode 100644
index 00000000000..a42b20f5ca4
--- /dev/null
+++ b/devel/ldapsdk/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/05/18 21:22:27 hwr Exp $
+
+--- directory/c-sdk/ldap/include/portable.h.orig Thu Dec 31 12:28:20 1998
++++ directory/c-sdk/ldap/include/portable.h Tue May 18 21:53:54 1999
+@@ -228,7 +228,7 @@
+ defined(UNIXWARE) || defined(SUNOS4) || defined(SNI) || defined(BSDI) || \
+ defined(NCR) || defined(OSF1) || defined(NEC) || \
+ ( defined(HPUX10) && !defined(_REENTRANT)) || defined(HPUX11) || \
+- defined(UnixWare) || defined(LINUX2_0)
++ defined(UnixWare) || defined(LINUX2_0) || defined(NETBSD)
+ #define GETHOSTBYNAME( n, r, b, l, e ) gethostbyname( n )
+ #elif defined(AIX)
+ /* Maybe this is for another version of AIX?
+@@ -250,7 +250,7 @@
+ #define GETHOSTBYNAME( n, r, b, l, e ) gethostbyname_r( n, r, b, l, e )
+ #endif
+ #if defined(HPUX9) || defined(LINUX1_2) || defined(SUNOS4) || defined(SNI) || \
+- defined(SCOOS) || defined(BSDI) || defined(NCR) || \
++ defined(SCOOS) || defined(BSDI) || defined(NCR) || defined(NETBSD) || \
+ defined(NEC) || ( defined(HPUX10) && !defined(_REENTRANT))
+ #define CTIME( c, b, l ) ctime( c )
+ #elif defined(HPUX10) && defined(_REENTRANT)
diff --git a/devel/ldapsdk/pkg/COMMENT b/devel/ldapsdk/pkg/COMMENT
new file mode 100644
index 00000000000..d4a784d21be
--- /dev/null
+++ b/devel/ldapsdk/pkg/COMMENT
@@ -0,0 +1 @@
+The LDAP C-SDK from the Mozilla projekt.
diff --git a/devel/ldapsdk/pkg/DESCR b/devel/ldapsdk/pkg/DESCR
new file mode 100644
index 00000000000..b0f594fd426
--- /dev/null
+++ b/devel/ldapsdk/pkg/DESCR
@@ -0,0 +1,2 @@
+The LDAP C-SDK from the Mozilla project. This is a complete LDAP V3
+compliant kit.
diff --git a/devel/ldapsdk/pkg/PLIST b/devel/ldapsdk/pkg/PLIST
new file mode 100644
index 00000000000..cb433ba5583
--- /dev/null
+++ b/devel/ldapsdk/pkg/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/05/18 21:22:27 hwr Exp $
+etc/ldapfilter.conf
+etc/ldapsearchprefs.conf
+etc/ldapfriendly
+etc/ldaptemplates.conf
+lib/libldap.a
+lib/liblber.a
+lib/libldap.so.1.0
+lib/liblber.so.1.0
diff --git a/devel/ldapsdk/scripts/pre-build b/devel/ldapsdk/scripts/pre-build
new file mode 100755
index 00000000000..e6d4c93b69c
--- /dev/null
+++ b/devel/ldapsdk/scripts/pre-build
@@ -0,0 +1,16 @@
+#!/bin/sh
+# $NetBSD: pre-build,v 1.1.1.1 1999/05/18 21:22:27 hwr Exp $
+
+cd ${WRKSRC}
+
+MOZILLA_CLIENT=1
+NO_MDUPDATE=1
+MOZ_LDAP_SDK=1
+export MOZILLA_CLIENT NO_MDUPDATE MOZ_LDAP_SDK
+unset MOZ_LI
+unset MOZ_LITE
+unset MOZ_MEDIUM
+unset NO_SECURITY
+
+gmake -f directory/ldapsdk.mk build
+
diff --git a/devel/ldapsdk/scripts/pre-install b/devel/ldapsdk/scripts/pre-install
new file mode 100755
index 00000000000..477bd32fba9
--- /dev/null
+++ b/devel/ldapsdk/scripts/pre-install
@@ -0,0 +1,22 @@
+#!/bin/sh
+# $NetBSD: pre-install,v 1.1.1.1 1999/05/18 21:22:27 hwr Exp $
+
+cd ${WRKSRC}
+cd dist
+for i in disptmpl.h lber.h ldap.h srchpref.h
+do
+ cp public/ldap/$i ${LOCALBASE}/include
+done
+#
+# XXX kludge
+#
+cd NetB*
+cp lib/libldap.a ${LOCALBASE}/lib/
+cp lib/liblber.a ${LOCALBASE}/lib/
+cp bin/libldap.so.1.0 ${LOCALBASE}/lib/
+cp bin/liblber.so.1.0 ${LOCALBASE}/lib/
+cp etc/ldapfilter.conf ${LOCALBASE}/etc/
+cp etc/ldapsearchprefs.conf ${LOCALBASE}/etc/
+cp etc/ldapfriendly ${LOCALBASE}/etc/
+cp etc/ldaptemplates.conf ${LOCALBASE}/etc/
+