]> git.sur5r.net Git - openldap/commitdiff
Merge OpenBSD support from -devel (main) branch.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 31 Aug 1998 21:11:18 +0000 (21:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 31 Aug 1998 21:11:18 +0000 (21:11 +0000)
Changes provided by djg@gregor.com.

Makefile
build/platforms/openbsd-cc/Make-platform [new file with mode: 0644]
build/platforms/openbsd-gcc/Make-platform [new file with mode: 0644]
clients/ud/string_to_key.c
include/portable.h

index 888b30a507c9276e8a36dabceaaa8714d8ac2c85..ccc67028bb8989d3819793d2fdc91375f964aff4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -295,6 +295,9 @@ makeconfig: .makefiles buildtools
            NetBSD) \
                PLATFORM="netbsd" \
                ;; \
+           OpenBSD) \
+               PLATFORM="openbsd" \
+               ;; \
            FreeBSD) \
                MAJRELEASE=`echo $$OSRELEASE | sed 's/\..*//'` ; \
                if [ $$MAJRELEASE -lt 3 ]; then \
diff --git a/build/platforms/openbsd-cc/Make-platform b/build/platforms/openbsd-cc/Make-platform
new file mode 100644 (file)
index 0000000..6de18ca
--- /dev/null
@@ -0,0 +1,38 @@
+# LDAP OpenBSD cc Make-platform file
+# on OpenBSD, cc is gcc
+#
+
+
+#
+# add any platform-specific overrides below here
+#
+
+#
+# -------------------------------------------------------------------------
+# you will probably not need to edit anything below this point
+# -------------------------------------------------------------------------
+CC     = gcc
+
+PLATFORMCFLAGS=        -Dopenbsd
+
+.include <bsd.own.mk>
+
+.if (${KERBEROS} == "yes")
+KERBEROS=-DKERBEROS 
+KRBINCLUDEFLAG = -I/usr/include/kerberosIV
+KRBLIBS                = -lkrb -ldes
+.endif
+
+LDBMBACKEND=-DLDBM_USE_DBBTREE
+
+THREADS=-DNO_THREADS
+
+LDAP_SENDMAIL=/usr/sbin/sendmail                
+LDAP_EDITOR=/usr/bin/vi
+LDAP_FINGER=/usr/bin/finger                                          
+
+LDAP_CRYPT=-DLDAP_CRYPT -DLDAP_SHA
+
+LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS
+LDAP_TCP_WRAPPERS_LIB=-lwrap
+
diff --git a/build/platforms/openbsd-gcc/Make-platform b/build/platforms/openbsd-gcc/Make-platform
new file mode 100644 (file)
index 0000000..d23e5fb
--- /dev/null
@@ -0,0 +1,39 @@
+#
+# LDAP OpenBSD GNU C Make-platform file
+#
+
+
+#
+# add any platform-specific overrides below here
+#
+
+#
+# -------------------------------------------------------------------------
+# you will probably not need to edit anything below this point
+# -------------------------------------------------------------------------
+CC     = gcc
+
+PLATFORMCFLAGS=        -Dopenbsd
+
+.include <bsd.own.mk>
+
+.if (${KERBEROS} == "yes")
+KERBEROS=-DKERBEROS
+KRBINCLUDEFLAG = -I/usr/include/kerberosIV
+KRBLIBS                = -lkrb -ldes
+.endif
+
+# Use DB BTREE
+LDBMBACKEND=-DLDBM_USE_DBBTREE
+
+THREADS=-DNO_THREADS
+
+LDAP_SENDMAIL=/usr/sbin/sendmail                
+LDAP_EDITOR=/usr/bin/vi
+LDAP_FINGER=/usr/bin/finger                                          
+
+LDAP_CRYPT=-DLDAP_CRYPT -DLDAP_SHA
+
+LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS
+LDAP_TCP_WRAPPERS_LIB=-lwrap
+
index 1d6649c0645a457de92c20b471dbcb7c220d340f..bc07d9dd1c39b769002dbbe790fb85eac77308e5 100644 (file)
@@ -1,7 +1,7 @@
-#ifdef KERBEROS
+#if defined(KERBEROS) && !defined(openbsd)
 /*
- * $Source: /usr/local/src/ldap/clients/ud/RCS/string_to_key.c,v $
- * $Author: lsloan $
+ * $Source: /repo/OpenLDAP/pkg/ldap/clients/ud/string_to_key.c,v $
+ * $Author: kurt $
  *
  * Copyright 1985, 1986, 1987, 1988, 1989 by the Massachusetts Institute
  * of Technology.
  *     spm     8/85    MIT project athena
  */
 
-#ifndef        lint
-static char rcsid_string_to_key_c[] =
-"$Id: string_to_key.c,v 1.5 1995/11/09 20:29:55 lsloan Exp $";
-#endif
-
 #include <mit-copyright.h>
 #include <stdio.h>
 #include <des.h>
index 1f082a4f9b746d9a5fc15f2662b1197cc150c0f5..8456f25a61be98a85aebe2f5a5df2cadb609e53d 100644 (file)
  * Are sys_errlist and sys_nerr declared in stdio.h?
  */
 #ifndef SYSERRLIST_IN_STDIO
-#if defined( freebsd ) || defined( netbsd ) || \
+#if defined( freebsd ) || defined( netbsd ) || defined( openbsd ) || \
        defined( __GLIBC__ ) && ( __GLIBC__ > 1 )
 #define SYSERRLIST_IN_STDIO
 #endif