--- /dev/null
+# Master Makefile for Net Boolean LDAP
+# Copyright 1998 Net Boolean Incorporated
+# COPYING RESTRICTIONS APPLY, See COPYING file
+
+SUBDIRS= tools ud finger gopher mail500 fax500 rcpt500
--- /dev/null
+SRCS= main.c faxtotpc.c rp500.c
+XSRCS=fax5version.c rpversion.c
+FAX5OBJS = main.o faxtotpc.o
+RPOBJS = rp500.o faxtotpc.o
+PROGRAMS= rp500 fax500
+
+
+rp500 : rpversion.o
+ $(CC) $(LDFLAGS) -o $@ $(RPOBJS) rpversion.o $(LIBS)
+
+fax500 : fax5version.o
+ $(CC) $(LDFLAGS) -o $@ $(RPOBJS) fax5version.o $(LIBS)
+
+rpversion.c: ${RPOBJS} $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Versionrp.c > $@)
+
+fax5version.c: ${FAX5OBJS} $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+install: $(PROGRAMS) xrpcomp FORCE
+ -$(MKDIR) -p $(bindir) $(libexecdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 rp500 $(libexecdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 fax500 $(libexecdir)
+ $(SED) -e 's%ETCDIR%$(libexecdir)%' xrpcomp > /tmp/xrpcomp.tmp
+ $(INSTALL) $(INSTALLFLAGS) -m 755 /tmp/xrpcomp.tmp $(libexecdir)/xrpcomp
+ $(RM) /tmp/xrpcomp.tmp
--- /dev/null
+SRCS= main.c
+XSRVS= version.c
+OBJS= main.o
+PROGRAMS= in.xfingerd
+
+in.xfingerd : version.o
+ $(CC) $(LDFLAGS) -o $@ version.o $(OBJS) $(LIBS)
+
+version.c: ${OBJS} $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+install: $(PROGRAMS) FORCE
+ -$(MKDIR) -p $(libexecdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 in.xfingerd $(libexecdir)
--- /dev/null
+##
+## Makefile for gopher clients
+##
+PROGRAMS= go500gw go500
+
+SRCS= detach.c go500.c go500gw.c setproctitle.c
+XSRCS= gwversion.o goversion.o
+GOOBJS = go500.o detach.o setproctitle.o
+GWOBJS = go500gw.o detach.o setproctitle.o
+
+go500 : goversion.o
+ $(CC) $(LDFLAGS) -o $@ $(GOOBJS) goversion.o $(LIBS)
+
+go500gw : gwversion.o
+ $(CC) $(LDFLAGS) -o $@ $(GWOBJS) gwversion.o $(LIBS)
+
+goversion.c: ${GOOBJS} $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+gwversion.c: ${GWOBJS} $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Versiongw.c > $@)
+
+install: $(PROGRAMS) go500gw.help FORCE
+ -$(MKDIR) -p $(libexecdir) $(sysconfdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 go500 $(libexecdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 go500gw $(libexecdir)
+ -$(MV) $(sysconfdir)/go500gw.help $(sysconfdir)/go500gw.help-
+ $(INSTALL) $(INSTALLFLAGS) -m 644 go500gw.help $(sysconfdir)
--- /dev/null
+PROGRAMS= mail500
+
+SRCS= main.c
+XSRCS= version.c
+OBJS= main.o
+
+mail500 : version.o
+ $(CC) $(LDFLAGS) -o $@ version.o $(OBJS) $(LIBS)
+
+version.c: ${OBJS} $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+install: $(PROGRAMS) FORCE
+ -$(MKDIR) -p $(libexecdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 mail500 $(libexecdir)
--- /dev/null
+PROGRAMS= rcpt500
+SRCS= main.c cmds.c help.c query.c
+XSRCS= version.c
+OBJS= main.o cmds.o help.o query.o
+HDRS= rcpt500.h
+
+rcpt500 : version.o
+ $(CC) $(LDFLAGS) -o $@ version.o $(OBJS) $(LIBS)
+
+version.c: ${OBJS} $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+install: $(PROGRAMS) rcpt500.help FORCE
+ -$(MKDIR) -p $(libexecdir) $(sysconfdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(libexecdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 rcpt500.help $(sysconfdir)
--- /dev/null
+##
+## Makefile for LDAP tools
+##
+SRCS = ldapsearch.c ldapmodify.c ldapdelete.c ldapmodrdn.c
+OBJS = ldapsearch.o ldapmodify.o ldapdelete.o ldapmodrdn.o
+XLIBS = -llber -lldap
+
+XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c
+
+PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn ldapadd
+
+ldapsearch: ldsversion.o
+ $(CC) $(LDFLAGS) -o $@ ldapsearch.o ldsversion.o $(LIBS)
+
+ldapmodify: ldmversion.o
+ $(CC) $(LDFLAGS) -o $@ ldapmodify.o ldmversion.o $(LIBS)
+
+ldapdelete: lddversion.o
+ $(CC) $(LDFLAGS) -o $@ ldapdelete.o lddversion.o $(LIBS)
+
+ldapmodrdn: ldrversion.o
+ $(CC) $(LDFLAGS) -o $@ ldapmodrdn.o ldrversion.o $(LIBS)
+
+ldapadd: ldapmodify
+ $(RM) $@
+ $(LN) ldapmodify ldapadd
+
+ldsversion.c: ldapsearch.o $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Versionlds.c > $@)
+
+ldmversion.c: ldapmodify.o $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Versionldm.c > $@)
+
+lddversion.c: ldapdelete.o $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Versionldd.c > $@)
+
+ldrversion.c: ldapmodrdn.o $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Versionldr.c > $@)
+
+installlocal: ldapsearch ldapmodify ldapdelete ldapmodrdn ldapadd FORCE
+ -$(MKDIR) -p $(bindir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldapsearch $(bindir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldapmodify $(bindir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldapdelete $(bindir)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldapmodrdn $(bindir)
+ $(RM) $(BINDIR)/ldapadd
+ $(LN) $(BINDIR)/ldapmodify $(bindir)/ldapadd
--- /dev/null
+SRCS= main.c find.c mod.c print.c auth.c util.c help.c \
+ string_to_key.c group.c edit.c globals.c
+XSRCS= version.c
+OBJS= main.o find.o mod.o print.o auth.o util.o help.o \
+ string_to_key.o group.o globals.o edit.o
+HDRS= ud.h
+PROGRAMS= ud
+
+XLIBS = $(LIBTERMCAP)
+
+DEFINES= -DCONFIG_FILE=\"$(sysconfdir)/ud.conf\" \
+ -DLDAP_FRIENDLY_MAP_FILE=\"$(sysconfdir)/ldapfriendly\"
+
+ud : version.o
+ $(CC) $(LDFLAGS) -o $@ version.o $(OBJS) $(LIBS)
+
+version.c: ${OBJS} $(LDAP_LIBDEPEND)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+install: $(PROGRAMS) FORCE
+ -$(MKDIR) -p $(bindir)
+ -mv -f $(bindir)/ud $(bindir)/ud-
+ $(INSTALL) $(INSTALLFLAGS) -m 775 ud $(bindir)
--- /dev/null
+
+install: all FORCE
+ -$(MKDIR) -p $(includedir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 ldap.h $(includedir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 lber.h $(includedir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 proto-lber.h $(includedir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 proto-ldap.h $(includedir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 disptmpl.h $(includedir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 srchpref.h $(includedir)
+
+all: FORCE
+clean: FORCE
+veryclean: FORCE
+depend: FORCE
+
--- /dev/null
+/*
+ * Copyright (c) 1994 Regents of the University of Michigan.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and that due credit is given
+ * to the University of Michigan at Ann Arbor. The name of the University
+ * may not be used to endorse or promote products derived from this
+ * software without specific prior written permission. This software
+ * is provided ``as is'' without express or implied warranty.
+ */
+
+#ifndef _LDAPCLIENT_H
+#define _LDAPCLIENT_H
+
+/*
+ * config.h for LDAP -- edit this file to customize LDAP client behavior.
+ * NO platform-specific definitions should be placed in this file.
+ * Note that this is NOT used by the LDAP or LBER libraries.
+ */
+
+/*
+ * SHARED DEFINITIONS - things you should change
+ */
+ /* default ldap host */
+#define LDAPHOST "localhost"
+ /* default place to start searching */
+#define DEFAULT_BASE "o=Your Organization Name, c=US"
+
+/*********************************************************************
+ * *
+ * You probably do not need to edit anything below this point *
+ * *
+ *********************************************************************/
+
+/*
+ * SHARED DEFINITIONS - other things you can change
+ */
+ /* default attribute to use when sorting entries, NULL => sort by DN */
+#define SORT_ATTR NULL
+ /* default count of DN components to show in entry displays */
+#define DEFAULT_RDNCOUNT 2
+ /* default config file locations */
+#define FILTERFILE "@libexecdir@/ldap/ldapfilter.conf"
+#define TEMPLATEFILE "@libexecdir@/ldap/ldaptemplates.conf"
+#define SEARCHFILE "@libexecdir@/ldap/ldapsearchprefs.conf"
+#define FRIENDLYFILE "@libexecdir@/ldap/ldapfriendly"
+
+/*
+ * FINGER DEFINITIONS
+ */
+ /* who to bind as */
+#define FINGER_BINDDN NULL
+ /* where to search */
+#define FINGER_BASE DEFAULT_BASE
+ /* banner to print */
+#define FINGER_BANNER "X.500 Finger Service...\r\n"
+ /* who to report errors to */
+#define FINGER_ERRORS "your local system administrator"
+ /* what to say if no matches are found */
+#define FINGER_NOMATCH "Search failed to find anything.\r\n"
+ /* what to say if the service may be unavailable */
+#define FINGER_UNAVAILABLE \
+"The X.500 service may be temporarily unavailable.\r\n\
+Please try again later.\r\n"
+ /* printed if a match has no email address - for disptmp default */
+#define FINGER_NOEMAIL1 "None registered in this service."
+#define FINGER_NOEMAIL2 NULL
+#define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
+ /* maximum number of matches returned */
+#define FINGER_SIZELIMIT 50
+ /* max number of hits displayed in full before a list is presented */
+#define FINGER_LISTLIMIT 1
+ /* what to exec for "finger @host" */
+#define FINGER_CMD "@FINGER@"
+ /* how to treat aliases when searching */
+#define FINGER_DEREF LDAP_DEREF_FINDING
+ /* attribute to use when sorting results */
+#define FINGER_SORT_ATTR SORT_ATTR
+ /* enable ufn support */
+#define FINGER_UFN
+ /* timeout for searches */
+#define FINGER_TIMEOUT 60
+ /* number of DN components to show in entry displays */
+#define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
+
+/*
+ * GO500 GOPHER GATEWAY DEFINITIONS
+ */
+ /* who to bind as */
+#define GO500_BINDDN NULL
+ /* where to search */
+#define GO500_BASE DEFAULT_BASE
+ /* port on which to listen */
+#define GO500_PORT 5555
+ /* how to handle aliases */
+#define GO500_DEREF LDAP_DEREF_FINDING
+ /* attribute to use when sorting results */
+#define GO500_SORT_ATTR SORT_ATTR
+ /* timeout for searches */
+#define GO500_TIMEOUT 180
+ /* enable ufn support */
+#define GO500_UFN
+ /*
+ * only set and uncomment this if your hostname() does not return
+ * a fully qualified hostname
+ */
+/* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
+ /* number of DN components to show in entry displays */
+#define GO500_RDNCOUNT DEFAULT_RDNCOUNT
+
+/*
+ * GO500GW GOPHER GATEWAY DEFINITIONS
+ */
+ /* who to bind as */
+#define GO500GW_BINDDN NULL
+ /* where the helpfile lives */
+#define GO500GW_HELPFILE "@libexecdir@/ldap/go500gw.help"
+ /* port on which to listen */
+#define GO500GW_PORT 7777
+ /* timeout on all searches */
+#define GO500GW_TIMEOUT 180
+ /* enable ufn support */
+#define GO500GW_UFN
+ /* attribute to use when sorting results */
+#define GO500GW_SORT_ATTR SORT_ATTR
+ /*
+ * only set and uncomment this if your hostname() does not return
+ * a fully qualified hostname
+ */
+/* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
+ /* number of DN components to show in entry displays */
+#define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
+
+/*
+ * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
+ */
+ /* who to bind as */
+#define RCPT500_BINDDN NULL
+ /* where the helpfile lives */
+#define RCPT500_HELPFILE "@libexecdir@/ldap/rcpt500.help"
+ /* maximum number of matches returned */
+#define RCPT500_SIZELIMIT 50
+ /* address replies will appear to come from */
+#define RCPT500_FROM "\"X.500 Query Program\" <X500-Query>"
+ /* command that will accept an RFC822 message text on standard
+ input, and send it. sendmail -t does this nicely. */
+#define RCPT500_PIPEMAILCMD "/usr/lib/sendmail -t"
+ /* where to search */
+#define RCPT500_BASE DEFAULT_BASE
+ /* attribute to use when sorting results */
+#define RCPT500_SORT_ATTR SORT_ATTR
+ /* max number of hits displayed in full before a list is presented */
+#define RCPT500_LISTLIMIT 1
+ /* enable ufn support */
+#define RCPT500_UFN
+ /* number of DN components to show in entry displays */
+#define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
+
+/*
+ * LDAPSEARCH TOOL
+ */
+ /* who to bind as */
+#define LDAPSEARCH_BINDDN NULL
+ /* search base */
+#define LDAPSEARCH_BASE DEFAULT_BASE
+
+/*
+ * LDAPMODIFY TOOL
+ */
+ /* who to bind as */
+#define LDAPMODIFY_BINDDN NULL
+ /* search base */
+#define LDAPMODIFY_BASE DEFAULT_BASE
+
+/*
+ * LDAPDELETE TOOL
+ */
+ /* who to bind as */
+#define LDAPDELETE_BINDDN NULL
+ /* search base */
+#define LDAPDELETE_BASE DEFAULT_BASE
+
+/*
+ * LDAPMODRDN TOOL
+ */
+ /* who to bind as */
+#define LDAPMODRDN_BINDDN NULL
+ /* search base */
+#define LDAPMODRDN_BASE DEFAULT_BASE
+
+/*
+ * MAIL500 MAILER DEFINITIONS
+ */
+ /* who to bind as */
+#define MAIL500_BINDDN NULL
+ /* max number of ambiguous matches reported */
+#define MAIL500_MAXAMBIGUOUS 10
+ /* max subscribers allowed (size limit when searching for them ) */
+#define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
+ /* timeout for all searches */
+#define MAIL500_TIMEOUT 180
+ /* sendmail location - mail500 needs to exec this */
+#define MAIL500_SENDMAIL "@SENDMAIL@"
+
+/*
+ * UD DEFINITIONS
+ */
+ /* ud configuration file */
+#define UD_CONFIG_FILE "@libexecdir@/ldap/ud.conf"
+ /* default editor */
+#define UD_DEFAULT_EDITOR "@EDITOR@"
+ /* default bbasename of user config file */
+#define UD_USER_CONFIG_FILE ".udrc"
+ /* default user to bind as */
+#define UD_BINDDN NULL
+ /* default password to bind with */
+#define UD_PASSWD NULL
+ /* default search base */
+#define UD_BASE DEFAULT_BASE
+ /* default base where groups are created */
+#define UD_WHERE_GROUPS_ARE_CREATED ""
+ /* default base below which all groups live */
+#define UD_WHERE_ALL_GROUPS_LIVE ""
+
+/*
+ * FAX500 DEFINITIONS
+ */
+ /* what to bind as */
+#define FAX_BINDDN NULL
+ /* how long to wait for searches */
+#define FAX_TIMEOUT 180
+ /* maximum number of ambiguous matches reported */
+#define FAX_MAXAMBIGUOUS 10
+ /* maximum number of members allowed */
+#define FAX_MAXMEMBERS LDAP_NO_LIMIT
+ /* program to send mail */
+#define FAX_SENDMAIL "@SENDMAIL@"
+
+/*
+ * RP500 DEFINITIONS
+ */
+ /* what to bind as */
+#define RP_BINDDN NULL
+ /* prefix to add to non-fully-qualified numbers */
+#define RP_PHONEPREFIX ""
+
+/*
+ * SLAPD DEFINITIONS
+ */
+ /* location of the default slapd config file */
+#define SLAPD_DEFAULT_CONFIGFILE "@libexecdir@/ldap/slapd.conf"
+ /* default sizelimit on number of entries from a search */
+#define SLAPD_DEFAULT_SIZELIMIT 500
+ /* default timelimit to spend on a search */
+#define SLAPD_DEFAULT_TIMELIMIT 3600
+ /* location of the slapd pid file */
+#define SLAPD_PIDFILE "@libexecdir@/ldap/slapd.pid"
+ /* location of the slapd args file */
+#define SLAPD_ARGSFILE "@libexecdir@/ldap/slapd.args"
+ /* dn of the special "monitor" entry */
+#define SLAPD_MONITOR_DN "cn=monitor"
+ /* dn of the special "config" entry */
+#define SLAPD_CONFIG_DN "cn=config"
+ /* minimum max ids that a single index entry can map to in ldbm */
+#define SLAPD_LDBM_MIN_MAXIDS 4000
+
+#endif /* _LDAPCLIENT_H */
--- /dev/null
+
+
+#include "bridge.h"
+#endif /* _LDAP_PORTABLE_H */
--- /dev/null
+/* include/portable.h.in. Generated automatically from configure.in by autoheader. */
+/*
+ * Copyright (c) 1994 Regents of the University of Michigan.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and that due credit is given
+ * to the University of Michigan at Ann Arbor. The name of the University
+ * may not be used to endorse or promote products derived from this
+ * software without specific prior written permission. This software
+ * is provided ``as is'' without express or implied warranty.
+ */
+
+#ifndef _LDAP_PORTABLE_H
+#define _LDAP_PORTABLE_H
+
+
+/* Define to empty if the keyword does not work. */
+#undef const
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+#undef gid_t
+
+/* Define if you don't have vprintf but do have _doprnt. */
+#undef HAVE_DOPRNT
+
+/* Define if your struct stat has st_blksize. */
+#undef HAVE_ST_BLKSIZE
+
+/* Define if you have the strftime function. */
+#undef HAVE_STRFTIME
+
+/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
+#undef HAVE_SYS_WAIT_H
+
+/* Define if you have the vprintf function. */
+#undef HAVE_VPRINTF
+
+/* Define if you have the wait3 system call. */
+#undef HAVE_WAIT3
+
+/* Define to `long' if <sys/types.h> doesn't define. */
+#undef off_t
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+#undef pid_t
+
+/* Define as the return type of signal handlers (int or void). */
+#undef RETSIGTYPE
+
+/* Define to `unsigned' if <sys/types.h> doesn't define. */
+#undef size_t
+
+/* Define if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Define if you can safely include both <sys/time.h> and <time.h>. */
+#undef TIME_WITH_SYS_TIME
+
+/* Define if your <sys/time.h> declares struct tm. */
+#undef TM_IN_SYS_TIME
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+#undef uid_t
+
+/* define this if sys_errlist is not defined in stdio.h or errno.h */
+#undef DECL_SYS_ERRLIST
+
+/* define this to use DB BTREES */
+#undef LDBM_USE_DBBTREE
+
+/* define this to use DB HASH */
+#undef LDBM_USE_DBHASH
+
+/* define this to use GNU DBM */
+#undef LDBM_USE_GDBM
+
+/* define this to use NDBM */
+#undef LDBM_USE_NDBM
+
+/* Define if you have the gethostname function. */
+#undef HAVE_GETHOSTNAME
+
+/* Define if you have the gettimeofday function. */
+#undef HAVE_GETTIMEOFDAY
+
+/* Define if you have the mktime function. */
+#undef HAVE_MKTIME
+
+/* Define if you have the select function. */
+#undef HAVE_SELECT
+
+/* Define if you have the socket function. */
+#undef HAVE_SOCKET
+
+/* Define if you have the strdup function. */
+#undef HAVE_STRDUP
+
+/* Define if you have the strerror function. */
+#undef HAVE_STRERROR
+
+/* Define if you have the strstr function. */
+#undef HAVE_STRSTR
+
+/* Define if you have the strtod function. */
+#undef HAVE_STRTOD
+
+/* Define if you have the strtol function. */
+#undef HAVE_STRTOL
+
+/* Define if you have the strtoul function. */
+#undef HAVE_STRTOUL
+
+/* Define if you have the <dirent.h> header file. */
+#undef HAVE_DIRENT_H
+
+/* Define if you have the <fcntl.h> header file. */
+#undef HAVE_FCNTL_H
+
+/* Define if you have the <limits.h> header file. */
+#undef HAVE_LIMITS_H
+
+/* Define if you have the <malloc.h> header file. */
+#undef HAVE_MALLOC_H
+
+/* Define if you have the <ndir.h> header file. */
+#undef HAVE_NDIR_H
+
+/* Define if you have the <sgtty.h> header file. */
+#undef HAVE_SGTTY_H
+
+/* Define if you have the <sys/dir.h> header file. */
+#undef HAVE_SYS_DIR_H
+
+/* Define if you have the <sys/file.h> header file. */
+#undef HAVE_SYS_FILE_H
+
+/* Define if you have the <sys/ioctl.h> header file. */
+#undef HAVE_SYS_IOCTL_H
+
+/* Define if you have the <sys/ndir.h> header file. */
+#undef HAVE_SYS_NDIR_H
+
+/* Define if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define if you have the <syslog.h> header file. */
+#undef HAVE_SYSLOG_H
+
+/* Define if you have the <termio.h> header file. */
+#undef HAVE_TERMIO_H
+
+/* Define if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define if you have the compat library (-lcompat). */
+#undef HAVE_LIBCOMPAT
+
+/* Define if you have the crypt library (-lcrypt). */
+#undef HAVE_LIBCRYPT
+
+
+#include "bridge.h"
+#endif /* _LDAP_PORTABLE_H */
--- /dev/null
+/*
+ * Copyright (c) 1994 Regents of the University of Michigan.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and that due credit is given
+ * to the University of Michigan at Ann Arbor. The name of the University
+ * may not be used to endorse or promote products derived from this
+ * software without specific prior written permission. This software
+ * is provided ``as is'' without express or implied warranty.
+ */
+
+#ifndef _LDAP_PORTABLE_H
+#define _LDAP_PORTABLE_H
+
--- /dev/null
+# Master Makefile for Net Boolean LDAP
+# Copyright 1998 Net Boolean Incorporated
+# COPYING RESTRICTIONS APPLY, See COPYING file
+
+SUBDIRS= libavl liblber libldap libldif libldbm liblthread
+
--- /dev/null
+##
+## LIBAVL
+##
+
+SRCS = avl.c testavl.c
+XSRCS = version.c
+OBJS = avl.o
+
+LIBRARY = libavl.a
+XPROGRAMS = testavl
+
+testavl: $(LIBRARY) testavl.o
--- /dev/null
+##
+## LIBLBER
+##
+
+SRCS = decode.c encode.c io.c bprint.c
+OBJS = decode.o encode.o io.o bprint.o
+XSRCS = version.c
+
+LIBRARY = liblber.a
+
+install: $(LIBRARY) FORCE
+ -$(MKDIR) -p $(libdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)
+ @(cd /tmp; $(RANLIB) $(libdir)/$(LIBRARY))
+
--- /dev/null
+##
+## Makefile.in for LDAP -lldap
+##
+LIBRARY = libldap.a
+PROGRAMS = ltest ttest
+
+SRCS = bind.c open.c result.c error.c compare.c search.c \
+ modify.c add.c modrdn.c delete.c abandon.c ufn.c cache.c \
+ getfilter.c regex.c sbind.c kbind.c unbind.c friendly.c cldap.c \
+ free.c disptmpl.c srchpref.c dsparse.c tmplout.c sort.c \
+ getdn.c getentry.c getattr.c getvalues.c addentry.c \
+ request.c getdxbyname.c os-ip.c url.c charset.c
+OBJS = bind.o open.o result.o error.o compare.o search.o \
+ modify.o add.o modrdn.o delete.o abandon.o ufn.o cache.o \
+ getfilter.o regex.o sbind.o kbind.o unbind.o friendly.o cldap.o \
+ free.o disptmpl.o srchpref.o dsparse.o tmplout.o sort.o \
+ getdn.o getentry.o getattr.o getvalues.o addentry.o \
+ request.o getdxbyname.o os-ip.o url.o charset.o
+
+DEFINES = -DFILTERFILE="\"$(sysconfdir)/ldapfilter.conf\"" \
+ -DTEMPLATEFILE="\"$(sysconfdir)/ldaptemplates.conf\""
+
+LIBS = -L. -L../liblber -lldap -llber $(AC_LIBS)
+LIBLBER = ../liblber/liblber.a
+
+ltest: $(LIBRARY) test.o $(LIBLBER)
+ $(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
+ttest: $(LIBRARY) tmpltest.o $(LIBLBER)
+ $(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
+
+CFFILES= ldapfilter.conf ldapfriendly ldaptemplates.conf ldapsearchprefs.conf
+install: $(LIBRARY) $(CFFILES) FORCE
+ -$(MKDIR) -p $(libdir)
+ $(INSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)
+ @(cd /tmp; $(RANLIB) $(libdir)/$(LIBRARY))
+ -$(MKDIR) -p $(sysconfdir)
+ @for i in $(CFFILES); do \
+ echo "installing $$i in $(sysconfdir)"; \
+ $(MV) $(sysconfdir)/$$i $(sysconfdir)/$$i- ; \
+ $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir) ; \
+ done
--- /dev/null
+##
+## Makefile for -lldbm
+##
+LIBRARY = libldbm.a
+XPROGRAMS = testldbm
+SRCS = ldbm.c
+OBJS = ldbm.o
+
+LIBS = -L$(LDAP_LIBDIR) -lavl $(AC_LIBS)
+testldbm: libldbm.a testldbm.o
+ $(CC) $(LDFLAGS) -o $@ testldbm.o $(LIBS)
--- /dev/null
+##
+## Makefile for -lldif
+##
+LIBRARY = libldif.a
+SRCS = line64.c
+OBJS = line64.o
--- /dev/null
+##
+## Makefile for -llthread
+##
+LIBRARY = liblthread.a
+XSRCS = version.c
+SRCS = thread.c stack.c
+OBJS = thread.o stack.o
--- /dev/null
+# Master Makefile for Net Boolean LDAP
+# Copyright 1998 Net Boolean Incorporated
+# COPYING RESTRICTIONS APPLY, See COPYING file
+
+SUBDIRS= ldapd slapd slurpd
+
--- /dev/null
+##
+## Makefile.in for ldapd
+##
+PROGRAMS=ldapd sldapd
+XSRCS=version.c LDAP*
+SRCS = main.c detach.c setproctitle.c request.c bind.c result.c error.c \
+ search.c util.c compare.c message.c add.c delete.c modrdn.c modify.c \
+ abandon.c syntax.c association.c kerberos.c certificate.c
+OBJS = main.o detach.o setproctitle.o request.o bind.o result.o error.o \
+ search.o util.o compare.o message.o add.o delete.o modrdn.o modify.o \
+ abandon.o syntax.o association.o kerberos.o LDAP_tables.o \
+ certificate.o
+
+BUILD_OPT = "--enable-ldapd"
+BUILD_SRV = @BUILD_LDAPD@
+
+ldapd: version.o
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) version.o $(LIBS)
+
+sldapd: version.o
+ $(CC) $(LDFLAGS) -static -o $@ $(OBJS) version.o $(LDFLAGS) $(LIBS) -lresolv
+
+version.c: $(OBJS) $(LDIR)/liblber/liblber.a
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+request.o: LDAP-types.h
+
+LDAP_tables.c: ldap.py
+ @if [ ! -z "$(PEPSY)" ]; then \
+ $(PEPSY) -A ldap.py; \
+ else \
+ touch LDAP_tables.c LDAP-types.h; \
+ fi
+
+LDAP-types.h: LDAP_tables.c
--- /dev/null
+##
+## Makefile.in for slapd
+##
+PROGRAMS=slapd
+SRCS = main.c daemon.c connection.c search.c filter.c add.c charray.c \
+ attr.c entry.c config.c backend.c result.c operation.c \
+ dn.c compare.c modify.c delete.c modrdn.c ch_malloc.c \
+ value.c ava.c bind.c unbind.c abandon.c filterentry.c \
+ phonetic.c regex.c acl.c str2filter.c aclparse.c init.c \
+ detach.c strdup.c tempnam.c repl.c lock.c \
+ schema.c schemaparse.c monitor.c configinfo.c
+OBJS = main.o daemon.o connection.o search.o filter.o add.o charray.o \
+ attr.o entry.o config.o backend.o result.o operation.o \
+ dn.o compare.o modify.o delete.o modrdn.o ch_malloc.o \
+ value.o ava.o bind.o unbind.o abandon.o filterentry.o \
+ phonetic.o regex.o acl.o str2filter.o aclparse.o init.o \
+ detach.o strdup.o tempnam.o repl.o lock.o \
+ schema.o schemaparse.o monitor.o configinfo.o
+
+BUILD_OPT = "--enable-slapd"
+BUILD_SRV = @BUILD_SLAPD@
+
+srv-all: FORCE
+ $(MAKE) $(MFLAGS) backendslib
+ $(MAKE) $(MFLAGS) slapd
+ (cd tools; $(MAKE) $(MFLAGS) all)
+
+backendslib: FORCE
+ @for i in back-*; do \
+ if [ -d $$i ]; then \
+ echo; echo " cd $$i; $(MAKE) $(MFLAGS) all"; \
+ ( cd $$i; $(MAKE) $(MFLAGS) all ); \
+ fi; \
+ done; \
+ echo; \
+ $(MAKE) $(MFLAGS) libbackends.a
+
+libbackends.a: .backend
+ @$(RM) -r tmp
+ @$(MKDIR) tmp
+ @-for i in back-*/*.a; do \
+ ( \
+ cd tmp; \
+ $(AR) x ../$$i; \
+ pre=`echo $$i | sed -e 's/\/.*$$//' -e 's/back-//'`; \
+ for j in *.o; do \
+ mv $$j $${pre}$$j; \
+ done; \
+ $(AR) ruv libbackends.a *.o 2>&1 | grep -v truncated; \
+ $(RM) *.o __.SYMDEF; \
+ echo "added backend library $$i"; \
+ ); \
+ done
+ @mv -f tmp/libbackends.a ./libbackends.a
+ @$(RM) -r tmp
+ @if [ ! -z "$(RANLIB)" ]; then \
+ $(RANLIB) libbackends.a; \
+ fi
+ @ls -l libbackends.a
+
+LDAP_LIBS = -llber -lldbm -lavl -llthread -lldif
+slapd: version.o
+ $(CC) $(LDFLAGS) -o slapd $(OBJS) version.o libbackends.a $(LIBS)
+
+version.c: libbackends.a $(OBJS) \
+ $(LDAP_LIBDIR)/liblber.a \
+ $(LDAP_LIBDIR)/liblldbm.a \
+ $(LDAP_LIBDIR)/liblavl.a \
+ $(LDAP_LIBDIR)/liblldif.a \
+ $(LDAP_LIBDIR)/liblthread.a
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
--- /dev/null
+SRCS = idl.c add.c search.c cache.c dbcache.c dn2id.c id2entry.c \
+ index.c id2children.c nextid.c abandon.c compare.c \
+ modify.c modrdn.c delete.c init.c config.c bind.c attr.c \
+ filterindex.c unbind.c kerberos.c close.c
+OBJS = idl.o add.o search.o cache.o dbcache.o dn2id.o id2entry.o \
+ index.o id2children.o nextid.o abandon.o compare.o \
+ modify.o modrdn.o delete.o init.o config.o bind.o attr.o \
+ filterindex.o unbind.o kerberos.o close.o
+
+XINCLUDEDIR = -I..
+XPROGRAMS = libback-ldbm.a
+
+all: FORCE
+ -@echo "$(SLAPD_BACKENDS)" | grep LDAP_LDBM 2>&1 > /dev/null; \
+ if [ $$? = 0 ]; then \
+ $(MAKE) $(MFLAGS) libback-ldbm.a; \
+ else \
+ echo "Include -DLDAP_LDBM in SLAPD_BACKENDS in the"; \
+ echo "Make-common file to build the ldbm backend"; \
+ fi
+
+libback-ldbm.a: version.o
+ $(AR) ruv $@ $(OBJS) version.o
+ @$(RANLIB) $@
+ @touch ../.backend
+
+version.c: $(OBJS)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` \
+ h=`$(HOSTNAME)` t=`$(DATE)`; \
+ $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
--- /dev/null
+SRCS = search.c config.c
+OBJS = search.o config.o
+
+XPROGRAMS= libback-passwd.a
+XINCLUDEDIR= -I..
+
+all: FORCE
+ -@echo "$(SLAPD_BACKENDS)" | grep LDAP_PASSWD 2>&1 > /dev/null; \
+ if [ $$? = 0 ]; then \
+ $(MAKE) $(MFLAGS) CC=$(CC) libback-passwd.a; \
+ else \
+ echo "Include -DLDAP_PASSWD in SLAPD_BACKENDS in the"; \
+ echo "Make-common file to build the passwd backend"; \
+ fi
+
+libback-passwd.a: version.o
+ $(AR) ruv $@ $(OBJS) version.o
+ @$(RANLIB) $@
+ @touch ../.backend
+
+version.c: $(OBJS)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
--- /dev/null
+SRCS = init.c config.c fork.c search.c bind.c unbind.c add.c delete.c \
+ modify.c modrdn.c compare.c abandon.c result.c
+OBJS = init.o config.o fork.o search.o bind.o unbind.o add.o delete.o \
+ modify.o modrdn.o compare.o abandon.o result.o
+
+XPROGRAMS = libback-shell.a
+XINCLUDEDIR = -I..
+
+all: FORCE
+ -@echo "$(SLAPD_BACKENDS)" | grep LDAP_SHELL 2>&1 > /dev/null; \
+ if [ $$? = 0 ]; then \
+ $(MAKE) $(MFLAGS) CC=$(CC) libback-shell.a; \
+ else \
+ echo "Include -DLDAP_SHELL in SLAPD_BACKENDS in the"; \
+ echo "Make-common file to build the shell backend"; \
+ fi
+
+
+libback-shell.a: version.o
+ $(AR) ruv $@ $(OBJS) version.o
+ @$(RANLIB) $@
+ @touch ../.backend
+
+version.c: $(OBJS)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
--- /dev/null
+PROGRAMS = passwd-shell
+
+SRCS = passwd-shell.c shellutil.c
+XSRCS = pwd-version.c
+OBJS = passwd-shell.o shellutil.o
+
+passwd-shell: pwd-version.o
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) pwd-version.o $(LIBS)
+
+pwd-version.c: $(OBJS)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < pwd-Version.c > $@)
--- /dev/null
+PROGRAMS = ldif2index ldif2ldbm ldbmcat ldif2id2entry \
+ ldif2id2children centipede ldbmtest ldif
+
+XPROGRAMS = edb2ldif
+XSRCS = Vers-edb2.c
+EDB2LDIFSRCS = edb2ldif.c ldapsyntax.c
+EDB2LDIFOBJS = edb2ldif.o ldapsyntax.o
+
+OBJS2 = ../config.o ../ch_malloc.o ../backend.o ../charray.o \
+ ../aclparse.o ../schema.o ../result.o ../filterentry.o \
+ ../acl.o ../phonetic.o ../attr.o ../value.o ../entry.o \
+ ../dn.o ../filter.o ../str2filter.o ../ava.o ../init.o \
+ ../schemaparse.o
+
+#LIBS = -L$(LDAP_LIBDIR) -lldif -lldap -llber -lldbm -lavl \
+# $(LDBMLIB) $(EXLIBS) $(AC_LIBS)
+#LIBS2 = -L$(LDAP_LIBDIR) -lldif -lldbm -lavl $(LDBMLIB) -llber \
+# $(KRBLIBFLAG) $(KRBLIBS) -llthread $(THREADSLIB) $(AC_LIBS)
+LDAP_LIBS = -lldif -lldap -llber -lldbm -lavl
+LIBS2 = $(LIBS) -llthread $(THREADLIB)
+
+all: build-edb2ldif $(PROGRAMS)
+
+build-edb2ldif: FORCE
+ @if [ "$(HAVEISODE)" = "yes" ]; then \
+ $(MAKE) $(MFLAGS) CC=$(CC) EXINCLUDES="$(ISODEINCLUDEFLAG)" \
+ EXLDFLAGS="$(ISODELIBFLAG)" EXLIBS="$(ISODELIBS)" edb2ldif; \
+ else \
+ echo "uncomment the HAVEISODE=yes line in the Make-common file to build edb2ldif"; \
+ fi
+
+edb2ldif: edb2-vers.o
+ $(CC) $(ALDFLAGS) -o $@ $(EDB2LDIFOBJS) edb2-vers.o \
+ $(LDFLAGS) $(LIBS)
+
+edb2-vers.c: $(EDB2LDIFOBJS)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Vers-edb2.c > $@)
+
+build-chlog2replog: FORCE
+ @if [ "$(HAVEISODE)" = "yes" ]; then \
+ $(MAKE) $(MFLAGS) CC=$(CC) EXINCLUDES="$(ISODEINCLUDEFLAG)" \
+ EXLDFLAGS="$(ISODELIBFLAG)" EXLIBS="$(ISODELIBS)" chlog2replog; \
+ else \
+ echo "uncomment the HAVEISODE=yes line in the Make-common file to build chlog2replog"; \
+ fi
+
+chlog2replog: chlog2replog.o ../lock.o ../ch_malloc.o
+ $(CC) $(ALDFLAGS) -o $@ chlog2replog.o ../lock.o ../ch_malloc.o \
+ $(LDFLAGS) $(LIBS)
+
+ldif2index: ldif2index.o ../libbackends.a $(OBJS2)
+ $(CC) $(LDFLAGS) -o $@ ldif2index.o $(OBJS2) ../libbackends.a $(LIBS2)
+
+ldif2ldbm: ldif2ldbm.sed.o ../libbackends.a $(OBJS2)
+ $(CC) $(LDFLAGS) -o $@ ldif2ldbm.sed.o $(OBJS2) ../libbackends.a $(LIBS2)
+
+ldif2ldbm.sed.c: ldif2ldbm.c
+ $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' ldif2ldbm.c > ldif2ldbm.sed.c
+
+ldif2id2entry: ldif2id2entry.o ../libbackends.a $(OBJS2)
+ $(CC) $(LDFLAGS) -o $@ ldif2id2entry.o $(OBJS2) ../libbackends.a $(LIBS2)
+
+ldif2id2children: ldif2id2children.o ../libbackends.a $(OBJS2)
+ $(CC) $(LDFLAGS) -o $@ ldif2id2children.o $(OBJS2) ../libbackends.a $(LIBS2)
+
+ldbmcat: ldbmcat.o
+ $(CC) $(LDFLAGS) -o $@ ldbmcat.o $(LIBS)
+
+ldif: ldif.o
+ $(CC) $(LDFLAGS) -o $@ ldif.o $(LIBS2)
+
+centipede: centipede.o
+ $(CC) $(LDFLAGS) -o $@ centipede.o $(LIBS) $(KRBLIBFLAG) $(KRBLIBS)
+
+sizecount: sizecount.o ../phonetic.o ../ch_malloc.o
+ $(CC) $(LDFLAGS) -o $@ sizecount.o ../phonetic.o ../ch_malloc.o \
+ $(LIBS) $(KRBLIBFLAG) $(KRBLIBS)
+
+ldbmtest: ldbmtest.o ../libbackends.a $(OBJS2)
+ $(CC) $(ALDFLAGS) -o ldbmtest ldbmtest.o $(OBJS2) \
+ ../libbackends.a $(LIBS2)
+
+install: $(ETCDIR) $(ETCDIR)/edb2ldif $(ETCDIR)/ldif2ldbm \
+ $(ETCDIR)/ldif2index $(ETCDIR)/ldif2id2entry \
+ $(ETCDIR)/ldif2id2children $(ETCDIR)/ldbmcat \
+ $(ETCDIR)/centipede $(ETCDIR)/ldbmtest \
+ $(ETCDIR)/ldif
+
+$(ETCDIR)/edb2ldif: build-edb2ldif
+ @if [ "$(HAVEISODE)" = "yes" ]; then \
+ $(INSTALL) $(INSTALLFLAGS) -m 755 edb2ldif $(ETCDIR); \
+ else \
+ exit 0; \
+ fi
+
+$(ETCDIR)/chlog2replog: build-chlog2replog
+ @if [ "$(HAVEISODE)" = "yes" ]; then \
+ $(INSTALL) $(INSTALLFLAGS) -m 755 chlog2replog $(ETCDIR); \
+ else \
+ exit 0; \
+ fi
+
+$(ETCDIR)/ldif2ldbm: ldif2ldbm
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2ldbm $(ETCDIR)
+
+$(ETCDIR)/ldif2index: ldif2index
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2index $(ETCDIR)
+
+$(ETCDIR)/ldif2id2entry: ldif2id2entry
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2entry $(ETCDIR)
+
+$(ETCDIR)/ldif2id2children: ldif2id2children
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2children $(ETCDIR)
+
+$(ETCDIR)/ldbmcat: ldbmcat
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmcat $(ETCDIR)
+
+$(ETCDIR)/ldif: ldif
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif $(ETCDIR)
+
+$(ETCDIR)/centipede: centipede
+ $(INSTALL) $(INSTALLFLAGS) -m 755 centipede $(ETCDIR)
+
+$(ETCDIR)/ldbmtest: ldbmtest
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmtest $(ETCDIR)
--- /dev/null
+##
+## Makefile.in for slurpd
+##
+
+PROGRAMS = slurpd
+SRCS = admin.c args.c ch_malloc.c config.c detach.c \
+ fm.c globals.c ldap_op.c lock.c main.c re.c \
+ reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
+ tsleep.c
+OBJS = admin.o args.o ch_malloc.o config.o detach.o \
+ fm.o globals.o ldap_op.o lock.o main.o re.o \
+ reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
+ tsleep.o
+
+BUILD_OPT = "--enable-slurpd"
+BUILD_SRV = @BUILD_SLURPD@
+
+all-srv: slurpd
+
+XLIBS = -llthread
+slurpd: version.o
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) version.o $(LIBS)
+
+version.c: $(OBJS) $(LDAP_LIBDIR)/liblber.a $(LDAP_LIBDIR)/libldap.a
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
+ t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)