#############################################################################
#
# by default, everything is installed below INSTROOT
-# servers, config files, etc. are put in ETCDIR
+# config files, etc. are put in ETCDIR
# include files get put in INCLUDEDIR
# libraries are put in LIBDIR
# man pages are put under MANDIR
# programs end-users will run are put in BINDIR
+# programs sysadmins will run are put in SBINDIR
+# servers are put in LIBEXECDIR
#
PREFIX?=/usr/local
-INSTROOT=${PREFIX}
-ETCDIR= $(INSTROOT)/etc/ldap
-INCLUDEDIR= $(INSTROOT)/include
-LIBDIR= $(INSTROOT)/lib
-MANDIR= $(INSTROOT)/man
-BINDIR= $(INSTROOT)/bin
+INSTROOT?=${PREFIX}
+ETCDIR?= $(INSTROOT)/etc/ldap
+INCLUDEDIR?= $(INSTROOT)/include
+LIBDIR?= $(INSTROOT)/lib
+MANDIR?= $(INSTROOT)/man
+BINDIR?= $(INSTROOT)/bin
+SBINDIR?=$(INSTROOT)/sbin
+LIBEXECDIR?=$(INSTROOT)/libexec
#
# if you want things to run in a different directory from where they
# are installed, set this accordingly (this path gets compiled into a
## General compiler options ##
#############################################################################
# Passed to every compile (cc or gcc). This is where you put -O or -g, etc.
-#EXTRACFLAGS=-O -g
+EXTRACFLAGS=-O -g
#EXTRACFLAGS=-O
-EXTRACFLAGS=-g
+#EXTRACFLAGS=-g
# Passed to every link (ld). Include -g here if you did in EXTRACFLAGS.
EXTRALDFLAGS=-g
MAKESLAPD= yes
#
# remove the defines for backends you don't want to enable
-SLAPD_BACKENDS= -DLDAP_LDBM # -DLDAP_SHELL -DLDAP_PASSWD
+SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
#
# If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need
# to specify which low-level database package to use. There are
LDBMBACKEND?=-DLDBM_USE_NDBM
LDBMINCLUDE?=
LDBMLIB?=
+
# if you want to use a non-default threads package change the defines below
# to one of:
# -DPOSIX_THREADS (draft 10 or standard)
#THREADS?=-DNO_THREADS
#THREADSLIB?=
+#
+# Locations of auxilary programs
+# (excepts to below are generally defined in Make-platform)
+SENDMAIL?=/usr/lib/sendmail
+EDITOR?=/usr/ucb/vi
+FINGER?=/usr/ucb/finger
+
#############################################################################
## The following options are used by the xax500 client. If you haven't ##
## retrieved the xax500 source and dropped it into the "clients" ##
LDAP_REFERRALS=-DLDAP_REFERRALS
# uncomment these lines to enable support for CRYPT passwords in LDBM.
-LDAP_CRYPT=-DLDAP_CRYPT
-LDAP_CRYPT_LIB=-lcrypt
+# LDAP_CRYPT=-DLDAP_CRYPT
+# LDAP_CRYPT_LIB?=
+# and comment this line out
+LDAP_CRYPT_LIB=
# uncomment these lines to enable support fro tcp_wrappers in servers.
# Requires tcp_wrappers.
-LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
-LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
+# LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
+# LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
# uncomment this line to use soundex for approximate matches in slapd.
# the default is to use the metaphone algorithm.
#
# add any platform-specific overrides below here
#
-PREFIX?=/usr/local
-INSTROOT=${PREFIX}
-ETCDIR= $(INSTROOT)/etc/ldap
-EXTRACFLAGS=-O
+EXTRACFLAGS=-O -g
LDBMBACKEND=-DLDBM_USE_DBBTREE
LDBMINCLUDE=-I/usr/include
+
+EDITOR=/usr/bin/vi
+FINGER=/usr/bin/finger
+SENDMAIL=/usr/sbin/sendmail
+
#
# LDAP has a problem with the idea of implicit vs. explicit yields
# in call conversion threading packages, like the MIT pthreads
install: rp500 xrpcomp fax500 FORCE
-$(MKDIR) -p $(ETCDIR) $(BINDIR)
- $(INSTALL) $(INSTALLFLAGS) -m 755 rp500 $(ETCDIR)
- $(SED) -e 's%ETCDIR%$(RUNTIMEETCDIR)%' xrpcomp > /tmp/xrpcomp.tmp
+ $(INSTALL) $(INSTALLFLAGS) -m 755 rp500 $(LIBEXECDIR)
+ $(SED) -e 's%ETCDIR%$(LIBEXECDIR)%' xrpcomp > /tmp/xrpcomp.tmp
$(INSTALL) $(INSTALLFLAGS) -m 755 /tmp/xrpcomp.tmp $(BINDIR)/xrpcomp
$(RM) /tmp/xrpcomp.tmp
- $(INSTALL) $(INSTALLFLAGS) -m 755 fax500 $(ETCDIR)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 fax500 $(LIBEXECDIR)
lint: FORCE
$(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
install: in.xfingerd FORCE
-$(MKDIR) -p $(ETCDIR)
- $(INSTALL) $(INSTALLFLAGS) -m 755 in.xfingerd $(ETCDIR)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 in.xfingerd $(LIBEXECDIR)
lint: FORCE
$(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
install: go500 go500gw go500gw.help FORCE
-$(MKDIR) -p $(ETCDIR)
- $(INSTALL) $(INSTALLFLAGS) -m 755 go500 $(ETCDIR)
- $(INSTALL) $(INSTALLFLAGS) -m 755 go500gw $(ETCDIR)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 go500 $(LIBEXECDIR)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 go500gw $(LIBEXECDIR)
-$(MV) $(ETCDIR)/go500gw.help $(ETCDIR)/go500gw.help-
$(INSTALL) $(INSTALLFLAGS) -m 644 go500gw.help $(ETCDIR)
install: mail500 FORCE
-$(MKDIR) -p $(ETCDIR)
- $(INSTALL) $(INSTALLFLAGS) -m 755 mail500 $(ETCDIR)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 mail500 $(LIBEXECDIR)
lint: FORCE
$(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
install: rcpt500 rcpt500.help FORCE
-$(MKDIR) -p $(ETCDIR)
- $(INSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(ETCDIR)
+ $(INSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(LIBEXECDIR)
$(INSTALL) $(INSTALLFLAGS) -m 644 rcpt500.help $(ETCDIR)
lint: FORCE
@TMPMAN=/tmp/ldapman.$$$$; \
VERSION=`$(CAT) $(VERSIONFILE)`; \
for page in *.$(SECT); do \
- $(SED) -e 's%ETCDIR%$(RUNTIMEETCDIR)%' -e "s%LDVERSION%$$VERSION%" \
+ $(SED) -e "s%LDVERSION%$$VERSION%" \
+ -e 's%ETCDIR%$(RUNTIMEETCDIR)%' \
+ -e 's%SBINDIR%$(SBINDIR)%' \
+ -e 's%BINDIR%$(BINDIR)%' \
+ -e 's%LIBEXECDIR%$(LIBEXECDIR)%' \
$$page > $$TMPMAN; \
echo "installing $(INSTDIR)/$$page"; \
$(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
@TMPMAN=/tmp/ldapman.$$$$; \
VERSION=`$(CAT) $(VERSIONFILE)`; \
for page in *.$(SECT); do \
- $(SED) -e 's%ETCDIR%$(RUNTIMEETCDIR)%' -e "s%LDVERSION%$$VERSION%" \
+ $(SED) -e "s%LDVERSION%$$VERSION%" \
+ -e 's%ETCDIR%$(RUNTIMEETCDIR)%' \
+ -e 's%SBINDIR%$(SBINDIR)%' \
+ -e 's%BINDIR%$(BINDIR)%' \
+ -e 's%LIBEXECDIR%$(LIBEXECDIR)%' \
$$page > $$TMPMAN; \
echo "installing $(INSTDIR)/$$page"; \
$(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
@TMPMAN=/tmp/ldapman.$$$$; \
VERSION=`$(CAT) $(VERSIONFILE)`; \
for page in *.$(SECT); do \
- $(SED) -e 's%ETCDIR%$(RUNTIMEETCDIR)%' -e "s%LDVERSION%$$VERSION%" \
+ $(SED) -e "s%LDVERSION%$$VERSION%" \
+ -e 's%ETCDIR%$(RUNTIMEETCDIR)%' \
+ -e 's%SBINDIR%$(SBINDIR)%' \
+ -e 's%BINDIR%$(BINDIR)%' \
+ -e 's%LIBEXECDIR%$(LIBEXECDIR)%' \
$$page > $$TMPMAN; \
echo "installing $(INSTDIR)/$$page"; \
$(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
@TMPMAN=/tmp/ldapman.$$$$; \
VERSION=`$(CAT) $(VERSIONFILE)`; \
for page in *.$(SECT); do \
- $(SED) -e 's%ETCDIR%$(RUNTIMEETCDIR)%' -e "s%LDVERSION%$$VERSION%" \
+ $(SED) -e "s%LDVERSION%$$VERSION%" \
+ -e 's%ETCDIR%$(RUNTIMEETCDIR)%' \
+ -e 's%SBINDIR%$(SBINDIR)%' \
+ -e 's%BINDIR%$(BINDIR)%' \
+ -e 's%LIBEXECDIR%$(LIBEXECDIR)%' \
$$page > $$TMPMAN; \
echo "installing $(INSTDIR)/$$page"; \
$(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
.SH NAME
centipede \- LDAP centroid index generation and maintenance program
.SH SYNOPSIS
-.B ETCDIR/centipede
+.B SBINDIR/centipede
.B [\-f filter]
.B [\-F] [\-R]
.B [\-f filter] [\-t directory]
.LP
.nf
.ft tt
- ETCDIR/centipede [options]
+ SBINDIR/centipede [options]
-s "ldap://[host/]subtree-to-index-dn"
-d "ldap://[host/]parent-of-index-entry-dn"
attributes
.LP
.nf
.ft tt
- ETCDIR/centipede -f '(objectclass=person)'
+ SBINDIR/centipede -f '(objectclass=person)'
-m simple -b your-rootdn -p your-rootdnpw
-s "ldap://babs.com/o=BabsCo, c=US"
-d "ldap://vertigo.rs.itd.umich.edu/c=US"
chlog2replog \- convert an X.500 DSA-style changelog to an LDAP-style
replication log
.SH SYNOPSIS
-.B ETCDIR/chlog2replog
+.B SBINDIR/chlog2replog
.B \-r hostname:port [\-r hostname:port ...]
.B \-d dn\-suffix [\-o output\-file] < input\-file
.LP
.LP
.nf
.ft tt
- ETCDIR/chlog2replog -d ", o=University of Michigan, c=US"
+ SBINDIR/chlog2replog -d ", o=University of Michigan, c=US"
-r ldapserver:389 < changelog
.ft
.fi
.LP
.nf
.ft tt
- ETCDIR/chlog2replog -d ", o=University of Michigan, c=US"
+ SBINDIR/chlog2replog -d ", o=University of Michigan, c=US"
-r ldapserver:389 -o replog < changelog
.ft
.fi
.LP
.nf
.ft tt
- tail +0f changelog | ETCDIR/chlog2replog
+ tail +0f changelog | SBINDIR/chlog2replog
-d ", o=University of Michigan, c=US"
-r ldapserver:389 -o replog < changelog
.ft
.SH NAME
edb2ldif \- QUIPU EDB file to LDIF conversion tool
.SH SYNOPSIS
-.B ETCDIR/edb2ldif
+.B SBINDIR/edb2ldif
.B [\-d] [\-v] [\-r] [\-o] [\-b basedn]
.B [\-a addvalsfile] [\-f fileattrdir]
.B [\-i ignoreattr...] [edbfile...]
.SH NAME
go500 \- Local Gopher index search to X.500 search gateway
.SH SYNOPSIS
-.B ETCDIR/go500 [\-b searchbase] [\-d level] [\-l]
+.B LIBEXECDIR/go500 [\-b searchbase] [\-d level] [\-l]
.B [\-x hostname] [\-c rdncount] [\-f filterfile]
.B [\-t templatefile]
.B [\-p port] [\-I]
.LP
.nf
.ft tt
- ETCDIR/go500
+ LIBEXECDIR/go500
.ft
.fi
.LP
.LP
.nf
.ft tt
- if [ -f ETCDIR/go500 ]; then
- ETCDIR/go500; echo ' go500'
+ if [ -f LIBEXECDIR/go500 ]; then
+ LIBEXECDIR/go500; echo ' go500'
fi
.ft
.fi
.LP
.nf
.ft tt
- go500 stream tcp nowait nobody ETCDIR/go500 go500 -I
+ go500 stream tcp nowait nobody LIBEXECDIR/go500 go500 -I
.ft
.fi
.LP
.SH NAME
go500gw \- General Gopher to X.500 gateway for browsing and searching
.SH SYNOPSIS
-.B ETCDIR/go500gw [\-a] [\-d level] [\-f filterfile]
+.B LIBEXECDIR/go500gw [\-a] [\-d level] [\-f filterfile]
.B [\-t templatefile] [\-c rdncount]
.B [\-h helpfile] [\-l] [\-p listenport]
.B [\-P ldapport] [\-x ldaphost] [\-I]
.LP
.nf
.ft tt
- ETCDIR/go500gw
+ LIBEXECDIR/go500gw
.ft
.fi
.LP
.LP
.nf
.ft tt
- if [ -f ETCDIR/go500gw ]; then
- ETCDIR/go500gw; echo ' go500gw'
+ if [ -f LIBEXECDIR/go500gw ]; then
+ LIBEXECDIR/go500gw; echo ' go500gw'
fi
.ft
.fi
.LP
.nf
.ft tt
- go500gw stream tcp nowait nobody ETCDIR/go500gw go500gw -I
+ go500gw stream tcp nowait nobody LIBEXECDIR/go500gw go500gw -I
.ft
.fi
.LP
.SH NAME
in.xfingerd \- Finger to LDAP/X.500 gateway daemon
.SH SYNOPSIS
-.B ETCDIR/in.xfingerd [\-f filterfile] [\-i]
+.B LIBEXECDIR/in.xfingerd [\-f filterfile] [\-i]
.B [\-l] [\-t templatefile] [\-c rdncount] [\-x hostname]
.B [\-p port]
.SH DESCRIPTION
.LP
.nf
.ft tt
- finger stream tcp nowait nobody ETCDIR/in.xfingerd in.xfingerd
+ finger stream tcp nowait nobody LIBEXECDIR/in.xfingerd in.xfingerd
.ft
.fi
.LP
.SH NAME
ldapd \- LDAP X.500 Protocol Daemon
.SH SYNOPSIS
-.B ETCDIR/ldapd [\-d level] [\-l] [\-c dsaname]
+.B LIBEXECDIR/ldapd [\-d level] [\-l] [\-c dsaname]
.B [\-p port] [\-t timeout] [\-r referraltimeout]
.B [\-I] [\-U]
.SH DESCRIPTION
.LP
.nf
.ft tt
- ETCDIR/ldapd
+ LIBEXECDIR/ldapd
.ft
.fi
.LP
.LP
.nf
.ft tt
- ETCDIR/ldapd -c dsanameoraddr -d 31
+ LIBEXECDIR/ldapd -c dsanameoraddr -d 31
.ft
.fi
.LP
.SH NAME
ldbmcat \- LDBM to LDIF database format conversion utility
.SH SYNOPSIS
-.B ETCDIR/ldbmcat [\-n] id2entry\-file
+.B SBINDIR/ldbmcat [\-n] id2entry\-file
.LP
.SH DESCRIPTION
.LP
.LP
.nf
.ft tt
- ETCDIR/ldbmcat -n id2entry.dbb > ldif
+ SBINDIR/ldbmcat -n id2entry.dbb > ldif
.ft
.fi
.LP
.LP
.nf
.ft tt
- ETCDIR/ldbmcat id2entry.dbb > ldif
- ETCDIR/ldif2index -i ldif -f slapd-config-file mail
+ SBINDIR/ldbmcat id2entry.dbb > ldif
+ SBINDIR/ldif2index -i ldif -f slapd-config-file mail
.ft
.fi
.LP
.SH NAME
ldif \- convert arbitrary data to LDIF format
.SH SYNOPSIS
-.B ETCDIR/ldif [\-b] attr\-name
+.B SBINDIR/ldif [\-b] attr\-name
.LP
.SH DESCRIPTION
.LP
.SH NAME
ldif2ldbm, ldif2index, ldif2id2entry, ldif2id2children \- LDIF to LDBM database format conversion utilities
.SH SYNOPSIS
-.B ETCDIR/ldif2ldbm
+.B SBINDIR/ldif2ldbm
.B \-i ldif\-input\-file
.B [\-d debug\-level] [\-f slapd\-config\-file]
.B [\-j number\-of\-jobs]
.LP
-.B ETCDIR/ldif2index
+.B SBINDIR/ldif2index
.B \-i ldif\-input\-file
.B [\-d debug\-level] [\-f slapd\-config\-file]
.B attribute\-name
.LP
-.B ETCDIR/ldif2id2entry
+.B SBINDIR/ldif2id2entry
.B \-i ldif\-input\-file
.B [\-d debug\-level] [\-f slapd\-config\-file]
.LP
-.B ETCDIR/ldif2id2children
+.B SBINDIR/ldif2id2children
.B \-i ldif\-input\-file
.B [\-d debug\-level] [\-f slapd\-config\-file]
.LP
into an LDBM database with indexes as described in the
.I slapd
config file
-.BR /usr/local/etc/slapd.conf ,
+.BR ETCDIR/slapd.conf ,
give the command:
.LP
.nf
.ft tt
- ETCDIR/ldif2index -i ldif.input -f /usr/local/etc/slapd.conf
+ SBINDIR/ldif2index -i ldif.input -f ETCDIR/slapd.conf
.ft
.fi
.LP
.LP
.nf
.ft tt
- ETCDIR/ldif2index -i ldif.input -f /usr/local/etc/slapd.conf -j 2
+ SBINDIR/ldif2index -i ldif.input -f ETCDIR/slapd.conf -j 2
.ft
.fi
.LP
.LP
fax500 \- X.500 capable fax delivery agent
.SH SYNOPSIS
-.B ETCDIR/mail500 [\-d level] [\-f mailfrom]
+.B LIBEXECDIR/mail500 [\-d level] [\-f mailfrom]
.B [\-h hostname] [\-l ldaphost]
.B [\-m address] [\-v vacationhost]
.LP
-.B ETCDIR/fax500 [\-d level] [\-f mailfrom]
+.B LIBEXECDIR/fax500 [\-d level] [\-f mailfrom]
.B [\-h hostname] [\-l ldaphost]
.B [\-m address]
.SH DESCRIPTION
sendmail.cf file:
.LP
.nf
-Mmail500, P=ETCDIR/mail500, F=DFMSmnXuh, A=mail500 -f $f -h $h -m $n@$w $u
-Mfax500, P=ETCDIR/fax500, F=DFMSmnXuh, A=fax500 -f $f -h $h -m $n@$w $u
+Mmail500, P=LIBEXECDIR/mail500, F=DFMSmnXuh, A=mail500 -f $f -h $h -m $n@$w $u
+Mfax500, P=LIBEXECDIR/fax500, F=DFMSmnXuh, A=fax500 -f $f -h $h -m $n@$w $u
.fi
.LP
This defines how mail500/fax500 will be treated by sendmail and what
.SH NAME
rcpt500 \- mail to X.500 gateway program
.SH SYNOPSIS
-.B ETCDIR/rcpt500 [\-l] [\-h ldaphost] [\-p ldapport]
+.B LIBEXECDIR/rcpt500 [\-l] [\-h ldaphost] [\-p ldapport]
.B [\-b searchbase] [\-a] [\-U] [\-z sizelimit] [\-u dapuser]
.B [\-f filterfile] [\-t templatefile] [\-c rdncount]
.SH DESCRIPTION
.nf
.fi
.ft tt
- namelookup: "|ETCDIR/rcpt500 -l"
+ namelookup: "|LIBEXECDIR/rcpt500 -l"
.ft
.fi
.SH OPTIONS
.SH NAME
slapd \- Stand-alone LDAP Daemon
.SH SYNOPSIS
-.B ETCDIR/slapd [\-d debug\-level]
+.B LIBEXECDIR/slapd [\-d debug\-level]
.B [\-f slapd\-config\-file] [\-p port\-number]
.B [\-s syslog\-level] [\-i]
.B
.LP
.nf
.ft tt
- ETCDIR/slapd -f /usr/local/slapd/slapd.conf -d 255
+ LIBEXECDIR/slapd -f ETCDIR/slapd.conf -d 255
.ft
.fi
.LP
.SH NAME
slurpd \- Standalone LDAP Update Replication Daemon
.SH SYNOPSIS
-.B ETCDIR/slurpd [\-d debug\-level]
+.B LIBEXECDIR/slurpd [\-d debug\-level]
.B [\-f slapd\-config\-file] [\-r slapd\-replog\-file]
.B [\-t temp\-dir] [\-o] [\-k srvtab\-file]
.B
.LP
.nf
.ft tt
- ETCDIR/slurpd
+ LIBEXECDIR/slurpd
.ft
.fi
.LP
.LP
.nf
.ft tt
- ETCDIR/slurpd -f /usr/local/etc/slapd.conf -d 255
+ LIBEXECDIR/slurpd -f ETCDIR/slapd.conf -d 255
.ft
.fi
.LP
echo " * INSTALL file for more information." >> $@; \
echo " */ " >> $@; \
echo "" >> $@; \
- $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' ldapconfig.h.edit >> $@; \
+ $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' \
+ -e 's;%SBINDIR%;$(SBINDIR);' \
+ -e 's;%LIBEXECDIR%;$(LIBEXECDIR);' \
+ -e 's;%EDITOR%;$(EDITOR);' \
+ -e 's;%FINGER%;$(FINGER);' \
+ -e 's;%SENDMAIL%;$(SENDMAIL);' \
+ ldapconfig.h.edit >> $@; \
$(CHMOD) 444 $@
install: all FORCE
/* 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 "/usr/ucb/finger"
+#define FINGER_CMD "%FINGER%"
/* how to treat aliases when searching */
#define FINGER_DEREF LDAP_DEREF_FINDING
/* attribute to use when sorting results */
#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"
+#define RCPT500_PIPEMAILCMD "%SENDMAIL% -t"
/* where to search */
#define RCPT500_BASE DEFAULT_BASE
/* attribute to use when sorting results */
/* timeout for all searches */
#define MAIL500_TIMEOUT 180
/* sendmail location - mail500 needs to exec this */
-#define MAIL500_SENDMAIL "/usr/lib/sendmail"
+#define MAIL500_SENDMAIL "%SENDMAIL%"
/*
* UD DEFINITIONS
/* ud configuration file */
#define UD_CONFIG_FILE "%ETCDIR%/ud.conf"
/* default editor */
-#define UD_DEFAULT_EDITOR "/usr/ucb/vi"
+#define UD_DEFAULT_EDITOR "%EDITOR%"
/* default bbasename of user config file */
#define UD_USER_CONFIG_FILE ".udrc"
/* default user to bind as */
/* maximum number of members allowed */
#define FAX_MAXMEMBERS LDAP_NO_LIMIT
/* program to send mail */
-#define FAX_SENDMAIL "/usr/lib/sendmail"
+#define FAX_SENDMAIL "%SENDMAIL%"
/*
* RP500 DEFINITIONS
echo "uncomment the HAVEISODE=yes line in the Make-common file to build and install ldapd"; \
fi
-install-ldapd: $(ETCDIR) $(ETCDIR)/ldapd
+install-ldapd: $(LIBEXECDIR) $(LIBEXECDIR)/ldapd
-$(ETCDIR)/ldapd: ldapd
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldapd $(ETCDIR)
+$(LIBEXECDIR)/ldapd: ldapd
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldapd $(LIBEXECDIR)
lint: FORCE
$(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
-e "s|%VERSION%|$${v}|" \
< Version.c > $@)
-install: all $(ETCDIR) $(ETCDIR)/slapd $(ETCDIR)/slapd.conf \
+install: all $(LIBEXECDIR) $(LIBEXECDIR)/slapd \
+ $(ETCDIR) $(ETCDIR)/slapd.conf \
$(ETCDIR)/slapd.at.conf $(ETCDIR)/slapd.oc.conf \
install-tools
-$(ETCDIR)/slapd: slapd
- $(INSTALL) $(INSTALLFLAGS) -m 755 slapd $(ETCDIR)
+$(LIBEXECDIR)/slapd: slapd
+ $(INSTALL) $(INSTALLFLAGS) -m 755 slapd $(LIBEXECDIR)
$(ETCDIR)/slapd.conf: slapd.conf
$(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' slapd.conf > /tmp/slapd.$$
../libbackends.a $(LDFLAGS) $(LIBS2)
ldif2ldbm.sed.c: ldif2ldbm.c
- $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' ldif2ldbm.c > ldif2ldbm.sed.c
+ $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' \
+ -e 's;%SBINDIR%;$(SBINDIR);' \
+ ldif2ldbm.c > ldif2ldbm.sed.c
ldif2id2entry: ldif2id2entry.o ../libbackends.a $(OBJS2)
$(CC) $(ALDFLAGS) -o $@ ldif2id2entry.o $(OBJS2) \
$(CC) $(ALDFLAGS) -o ldbmtest ldbmtest.o $(OBJS2) \
../libbackends.a $(LDFLAGS) $(LIBS2)
-install: $(ETCDIR) $(ETCDIR)/edb2ldif $(ETCDIR)/ldif2ldbm \
- $(ETCDIR)/ldif2index $(ETCDIR)/ldif2id2entry \
- $(ETCDIR)/ldif2id2children $(ETCDIR)/ldbmcat \
- $(ETCDIR)/centipede $(ETCDIR)/ldbmtest \
- $(ETCDIR)/ldif
+install: $(SBINDIR) $(SBINDIR)/edb2ldif $(SBINDIR)/ldif2ldbm \
+ $(SBINDIR)/ldif2index $(SBINDIR)/ldif2id2entry \
+ $(SBINDIR)/ldif2id2children $(SBINDIR)/ldbmcat \
+ $(SBINDIR)/centipede $(SBINDIR)/ldbmtest \
+ $(SBINDIR)/ldif
-$(ETCDIR)/edb2ldif: build-edb2ldif
+$(SBINDIR)/edb2ldif: build-edb2ldif
@if [ "$(HAVEISODE)" = "yes" ]; then \
- $(INSTALL) $(INSTALLFLAGS) -m 755 edb2ldif $(ETCDIR); \
+ $(INSTALL) $(INSTALLFLAGS) -m 755 edb2ldif $(SBINDIR); \
else \
exit 0; \
fi
-$(ETCDIR)/chlog2replog: build-chlog2replog
+$(SBINDIR)/chlog2replog: build-chlog2replog
@if [ "$(HAVEISODE)" = "yes" ]; then \
- $(INSTALL) $(INSTALLFLAGS) -m 755 chlog2replog $(ETCDIR); \
+ $(INSTALL) $(INSTALLFLAGS) -m 755 chlog2replog $(SBINDIR); \
else \
exit 0; \
fi
-$(ETCDIR)/ldif2ldbm: ldif2ldbm
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2ldbm $(ETCDIR)
+$(SBINDIR)/ldif2ldbm: ldif2ldbm
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2ldbm $(SBINDIR)
-$(ETCDIR)/ldif2index: ldif2index
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2index $(ETCDIR)
+$(SBINDIR)/ldif2index: ldif2index
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2index $(SBINDIR)
-$(ETCDIR)/ldif2id2entry: ldif2id2entry
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2entry $(ETCDIR)
+$(SBINDIR)/ldif2id2entry: ldif2id2entry
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2entry $(SBINDIR)
-$(ETCDIR)/ldif2id2children: ldif2id2children
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2children $(ETCDIR)
+$(SBINDIR)/ldif2id2children: ldif2id2children
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2children $(SBINDIR)
-$(ETCDIR)/ldbmcat: ldbmcat
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmcat $(ETCDIR)
+$(SBINDIR)/ldbmcat: ldbmcat
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmcat $(SBINDIR)
-$(ETCDIR)/ldif: ldif
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif $(ETCDIR)
+$(SBINDIR)/ldif: ldif
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldif $(SBINDIR)
-$(ETCDIR)/centipede: centipede
- $(INSTALL) $(INSTALLFLAGS) -m 755 centipede $(ETCDIR)
+$(SBINDIR)/centipede: centipede
+ $(INSTALL) $(INSTALLFLAGS) -m 755 centipede $(SBINDIR)
-$(ETCDIR)/ldbmtest: ldbmtest
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmtest $(ETCDIR)
+$(SBINDIR)/ldbmtest: ldbmtest
+ $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmtest $(SBINDIR)
lint: FORCE
$(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
#include "../back-ldbm/back-ldbm.h"
#define DEFAULT_CONFIGFILE "%ETCDIR%/slapd.conf"
-#define DEFAULT_ETCDIR "%ETCDIR%"
+#define DEFAULT_SBINDIR "%SBINDIR%"
#define INDEXCMD "ldif2index"
#define ID2ENTRYCMD "ldif2id2entry"
#define ID2CHILDRENCMD "ldif2id2children"
static void
usage( char *name )
{
- fprintf( stderr, "usage: %s -i inputfile [-d debuglevel] [-f configfile] [-j #jobs] [-n databasenumber] [-e etcdir]\n", name );
+ fprintf( stderr, "usage: %s -i inputfile [-d debuglevel] [-f configfile] [-j #jobs] [-n databasenumber] [-s sbindir]\n", name );
exit( 1 );
}
main( int argc, char **argv )
{
int i, stop, status;
- char *linep, *buf, *etcdir;
+ char *linep, *buf, *sbindir;
char *args[10];
char buf2[20], buf3[20];
char line[BUFSIZ];
Avlnode *avltypes = NULL;
extern char *optarg;
- etcdir = DEFAULT_ETCDIR;
+ sbindir = DEFAULT_SBINDIR;
tailorfile = DEFAULT_CONFIGFILE;
dbnum = -1;
- while ( (i = getopt( argc, argv, "d:e:f:i:j:n:" )) != EOF ) {
+ while ( (i = getopt( argc, argv, "d:e:s:f:i:j:n:" )) != EOF ) {
switch ( i ) {
case 'd': /* turn on debugging */
ldap_debug = atoi( optarg );
break;
- case 'e': /* alternate etcdir (index cmd location) */
- etcdir = strdup( optarg );
+ case 's': /* alternate sbindir (index cmd location) */
+ case 'e': /* accept -e for backwards compatibility */
+ sbindir = strdup( optarg );
break;
case 'f': /* specify a tailor file */
*/
i = 0;
- sprintf( cmd, "%s/%s", etcdir, ID2ENTRYCMD );
+ sprintf( cmd, "%s/%s", sbindir, ID2ENTRYCMD );
args[i++] = cmd;
args[i++] = "-i";
args[i++] = inputfile;
*/
i = 0;
- sprintf( cmd, "%s/%s", etcdir, ID2CHILDRENCMD );
+ sprintf( cmd, "%s/%s", sbindir, ID2CHILDRENCMD );
args[i++] = cmd;
args[i++] = "-i";
args[i++] = inputfile;
*/
i = 0;
- sprintf( cmd, "%s/%s", etcdir, INDEXCMD );
+ sprintf( cmd, "%s/%s", sbindir, INDEXCMD );
args[i++] = cmd;
args[i++] = "-i";
args[i++] = inputfile;
-e "s|%VERSION%|$${v}|" \
< Version.c > $@)
-install: $(ETCDIR) $(ETCDIR)/slurpd
+install: $(LIBEXECDIR) $(LIBEXECDIR)/slurpd
-$(ETCDIR)/slurpd: slurpd
- $(INSTALL) $(INSTALLFLAGS) -m 755 slurpd $(ETCDIR)
+$(LIBEXECDIR)/slurpd: slurpd
+ $(INSTALL) $(INSTALLFLAGS) -m 755 slurpd $(LIBEXECDIR)
lint: FORCE
$(LINT) $(INCLUDES) $(DEFINES) $(SRCS)