]> git.sur5r.net Git - openldap/commitdiff
Modified build environment to correctly support bin,sbin,libexec,etc
authorKurt Zeilenga <kurt@openldap.org>
Wed, 19 Aug 1998 18:19:39 +0000 (18:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 19 Aug 1998 18:19:39 +0000 (18:19 +0000)
and setting of variables from Make-platform with defaults in Make-common.

27 files changed:
Make-common
build/platforms/freebsd-gcc/Make-platform
clients/fax500/Make-template
clients/finger/Make-template
clients/gopher/Make-template
clients/mail500/Make-template
clients/rcpt500/Make-template
clients/tools/Make-template
clients/ud/Make-template
contrib/saucer/Make-template
doc/man/man1/Make-template
doc/man/man3/Make-template
doc/man/man5/Make-template
doc/man/man8/Make-template
doc/man/man8/slapd.8
include/Make-template
include/ldapconfig.h.edit
include/lthread.h
libraries/liblber/Make-template
libraries/libldap/Make-template
libraries/liblthread/thread.c
servers/ldapd/Make-template
servers/slapd/Make-template
servers/slapd/daemon.c
servers/slapd/result.c
servers/slapd/tools/Make-template
servers/slurpd/Make-template

index 101086709cbb72d0c5f921f0fd28ff2c41b4796c..8fabb1169349713b9694a70967259fa985b6a8c5 100644 (file)
@@ -20,7 +20,6 @@
 #############################################################################
 ## LDAP install paths                                                      ##
 #############################################################################
-#
 # by default, everything is installed below INSTROOT
 # config files, etc. are put in ETCDIR
 # include files get put in INCLUDEDIR
 # programs end-users will run are put in BINDIR
 # programs sysadmins will run are put in SBINDIR
 # servers are put in LIBEXECDIR
+# pid/args files are put in RUNDIR
 #
-PREFIX?=/usr/local
-INSTROOT?=${PREFIX}
-ETCDIR?= $(INSTROOT)/etc/ldap
-INCLUDEDIR?= $(INSTROOT)/include
-LIBDIR?= $(INSTROOT)/lib
-MANDIR?= $(INSTROOT)/man
-BINDIR?= $(INSTROOT)/bin
-SBINDIR?=$(INSTROOT)/sbin
-LIBEXECDIR?=$(INSTROOT)/libexec
+# Per platform defaults override these.
 #
-# if you want things to run in a different directory from where they
-# are installed, set this accordingly (this path gets compiled into a
-# few binaries). otherwise, leave it alone.
-RUNTIMEETCDIR?= $(ETCDIR)
+LDAP_PREFIX?= /usr/local
+LDAP_INSTROOT?= $(LDAP_PREFIX)
+LDAP_ETCDIR?= $(LDAP_INSTROOT)/etc/ldap
+LDAP_INCDIR?= $(LDAP_INSTROOT)/include
+LDAP_LIBDIR?= $(LDAP_INSTROOT)/lib
+LDAP_MANDIR?= $(LDAP_INSTROOT)/man
+LDAP_BINDIR?= $(LDAP_INSTROOT)/bin
+LDAP_SBINDIR?=$(LDAP_INSTROOT)/sbin
+LDAP_LIBEXECDIR?= $(LDAP_INSTROOT)/libexec
+LDAP_RUNDIR?= $(LDAP_ETCDIR)
 
 #############################################################################
 ## General compiler options                                                ##
@@ -159,12 +157,16 @@ LDBMLIB?=
 #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
+LDAP_SENDMAIL?=/usr/lib/sendmail
+LDAP_EDITOR?=/usr/ucb/vi
+LDAP_FINGER?=/usr/ucb/finger
+
+# For generation of compressed man pages
+# (excepts to below are generally defined in Make-platform)
+MANCOMPRESS?=cat
+MANCOMPRESSSUFFIX?=
 
 #############################################################################
 ## The following options are used by the xax500 client.  If you haven't    ##
index dd4aabdbdff8861f30c9c53dcd131e7ced0c88db..d8ee543a6a01cada80da0b1b4c762de8a56c9c73 100644 (file)
@@ -14,6 +14,12 @@ EDITOR=/usr/bin/vi
 FINGER=/usr/bin/finger
 SENDMAIL=/usr/sbin/sendmail
 
+RUNDIR=/var/run
+
+MANCOMPRESS=gzip
+MANCOMPRESSSUFFIX=.gz
+
+
 #
 # LDAP has a problem with the idea of implicit vs. explicit yields
 # in call conversion threading packages, like the MIT pthreads
index 1714f9bdba7151a1378e750cbc601897b5f21aa1..896a969d637c35f7723accdba35df272a21317cd 100644 (file)
@@ -53,12 +53,12 @@ fax5version.c:      main.o faxtotpc.o $(LDIR)/libldap.a
        < Version.c > $@ )
 
 install:       rp500 xrpcomp fax500 FORCE
-               -$(MKDIR) -p $(ETCDIR) $(BINDIR)
-               $(INSTALL) $(INSTALLFLAGS) -m 755 rp500 $(LIBEXECDIR)
-               $(SED) -e 's%ETCDIR%$(LIBEXECDIR)%' xrpcomp > /tmp/xrpcomp.tmp
-               $(INSTALL) $(INSTALLFLAGS) -m 755 /tmp/xrpcomp.tmp $(BINDIR)/xrpcomp
+               -$(MKDIR) -p $(LDAP_ETCDIR) $(LDAP_BINDIR)
+               $(INSTALL) $(INSTALLFLAGS) -m 755 rp500 $(LDAP_LIBEXECDIR)
+               $(SED) -e 's%ETCDIR%$(LDAP_LIBEXECDIR)%' xrpcomp > /tmp/xrpcomp.tmp
+               $(INSTALL) $(INSTALLFLAGS) -m 755 /tmp/xrpcomp.tmp $(LDAP_BINDIR)/xrpcomp
                $(RM) /tmp/xrpcomp.tmp
-               $(INSTALL) $(INSTALLFLAGS) -m 755 fax500 $(LIBEXECDIR)
+               $(INSTALL) $(INSTALLFLAGS) -m 755 fax500 $(LDAP_LIBEXECDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index b8d1d9432c213a072a6572d0f072861edaf1509d..3262f9c6b2c3cd25625621f8cb47d4d8bcd5e835 100644 (file)
@@ -42,8 +42,8 @@ version.c:    $(OBJS) $(LDIR)/libldap.a
        < Version.c > $@)
 
 install:       in.xfingerd FORCE
-       -$(MKDIR) -p $(ETCDIR)
-       $(INSTALL) $(INSTALLFLAGS) -m 755 in.xfingerd $(LIBEXECDIR)
+       -$(MKDIR) -p $(LDAP_LIBEXECDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 in.xfingerd $(LDAP_LIBEXECDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index 7f30c6c3009f04f77fc8d48cf869bbb06eb8de50..2c5668eeb31e58be3e2ade8b83d9ab86865e2161 100644 (file)
@@ -56,11 +56,11 @@ gwversion.c: go500gw.o detach.o setproctitle.o $(DLIBS)
        < Versiongw.c > $@)
 
 install:       go500 go500gw go500gw.help FORCE
-       -$(MKDIR) -p $(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)
+       -$(MKDIR) -p $(LDAP_ETCDIR) $(LDAP_LIBEXECDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 go500 $(LDAP_LIBEXECDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 go500gw $(LDAP_LIBEXECDIR)
+       -$(MV) $(LDAP_ETCDIR)/go500gw.help $(LDAP_ETCDIR)/go500gw.help-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 go500gw.help $(LDAP_ETCDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index deff87221b74f0dad22cd8cb888fd5e9108bbe32..959ca7cae0187c6728b5cef1039546a0271e3c37 100644 (file)
@@ -41,8 +41,8 @@ version.c: $(OBJS) $(LDIR)/libldap/libldap.a
        < Version.c > $@)
 
 install:       mail500 FORCE
-       -$(MKDIR) -p $(ETCDIR)
-       $(INSTALL) $(INSTALLFLAGS) -m 755 mail500 $(LIBEXECDIR)
+       -$(MKDIR) -p $(LDAP_LIBEXECDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 mail500 $(LDAP_LIBEXECDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index 263b9b899648058814eab88dc8202e2f77b4a333..1960d5902f579e551819d7ab06ebe23db21f9489 100644 (file)
@@ -39,9 +39,9 @@ version.c: $(OBJS) $(LDIR)/libldap.a
        < Version.c > $@)
 
 install:       rcpt500 rcpt500.help FORCE
-       -$(MKDIR) -p $(ETCDIR)
-       $(INSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(LIBEXECDIR)
-       $(INSTALL) $(INSTALLFLAGS) -m 644 rcpt500.help $(ETCDIR)
+       -$(MKDIR) -p $(LDAP_ETCDIR) $(LDAP_LIBEXECDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(LDAP_LIBEXECDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 644 rcpt500.help $(LDAP_ETCDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index 4c577dce3d7bd8de3f57250cc5f7683f250fafe2..bb2b5f54e2b8e4c407d9385769acfd974b322073 100644 (file)
@@ -79,13 +79,13 @@ ldrversion.c: ldapmodrdn.o
        < Versionldr.c > $@)
 
 install:       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
-       $(HARDLN) $(BINDIR)/ldapmodify $(BINDIR)/ldapadd
+       -$(MKDIR) -p $(LDAP_BINDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldapsearch $(LDAP_BINDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldapmodify $(LDAP_BINDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldapdelete $(LDAP_BINDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldapmodrdn $(LDAP_BINDIR)
+       $(RM) $(LDAP_BINDIR)/ldapadd
+       $(HARDLN) $(LDAP_BINDIR)/ldapmodify $(LDAP_BINDIR)/ldapadd
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index ed9d8faad8dae202f28a7384ec443ad7b8527cb3..7f448d3f9f126a4ee703e983395afeb12012f0b0 100644 (file)
@@ -29,8 +29,8 @@ OBJS= main.o find.o mod.o print.o auth.o util.o help.o\
 HDRS=  ud.h
 
 INCLUDES= -I$(HDIR) $(KRBINCLUDEFLAG)
-DEFINES= $(DEFS) -DDEBUG -DCONFIG_FILE=\"$(RUNTIMEETCDIR)/ud.conf\" \
-               -DLDAP_FRIENDLY_MAP_FILE=\"$(RUNTIMEETCDIR)/ldapfriendly\"
+DEFINES= $(DEFS) -DDEBUG -DCONFIG_FILE=\"$(LDAP_ETCDIR)/ud.conf\" \
+               -DLDAP_FRIENDLY_MAP_FILE=\"$(LDAP_ETCDIR)/ldapfriendly\"
 TERMLIB= -ltermcap
 
 CFLAGS= ${INCLUDES} ${DEFINES} ${ACFLAGS}
@@ -53,9 +53,9 @@ version.c: ${OBJS} $(LDIR)/libldap/libldap.a
            < Version.c > $@)
 
 install: ud FORCE
-       -$(MKDIR) -p $(BINDIR)
-       -mv -f ${BINDIR}/ud ${BINDIR}/ud-
-       $(INSTALL) $(INSTALLFLAGS) -m 775 ud ${BINDIR}
+       -$(MKDIR) -p $(LDAP_BINDIR)
+       -mv -f $(LDAP_BINDIR)/ud $(LDAP_BINDIR)/ud-
+       $(INSTALL) $(INSTALLFLAGS) -m 775 ud $(LDAP_BINDIR)
 
 depend: FORCE
        $(MKDEP) $(INCLUDES) $(DEFINES) $(SRCS)
index cdd9233dc53ba3ed1241455c9d866d29b8d1c7b7..96f6a6ac05856bef6171c9c947de3d1fc0be3957 100644 (file)
@@ -24,16 +24,16 @@ unprotoize: $(SRCS)
        unprotoize -c "$(CFLAGS)" $(SRCS)
 
 install:       saucer FORCE
-       -$(MKDIR) -p $(BINDIR)
-       $(INSTALL) $(INSTALLFLAGS) -m 755 saucer $(BINDIR)
-       -$(MKDIR) -p $(INSTMAN)
-       @TMPMAN=/tmp/ldapman.$$$$; \
+       -$(MKDIR) -p $(LDAP_BINDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 755 saucer $(LDAP_BINDIR)
+       -$(MKDIR) -p $(LDAP_MANDIR)
+       @TMPMAN=/tmp/ldapman.$$$$$(MANCOMPRESSSUFFIX); \
        VERSION=`$(CAT) $(VERFILE)`; \
        for page in *.$(SECT); do \
-           $(SED) -e 's%ETCDIR%$(ETCDIR)%' -e "s%LDVERSION%$$VERSION%" \
-                   $$page > $$TMPMAN; \
+           $(SED) -e 's%ETCDIR%$(LDAP_ETCDIR)%' -e "s%LDVERSION%$$VERSION%" \
+                   $$page | $(MANCOMPRESS) > $$TMPMAN; \
            echo "installing $(INSTMAN)/$$page"; \
-           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTMAN)/$$page; \
+           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(LDAP_INSTMAN)/$$page$(MANCOMPRESSSUFFIX); \
        done; \
        $(RM) $$TMPMAN
 
index e3f2fd4ea0972389402bb6781ed4c050dd791ebb..b3e63181a26d72322a59793e3c4241a9a98998e4 100644 (file)
 
 LDAPSRC= ../../..
 SECT=1
-INSTDIR=$(MANDIR)/man$(SECT)
+INSTDIR=$(LDAP_MANDIR)/man$(SECT)
 VERSIONFILE = $(LDAPSRC)/build/version
 
 all:   FORCE
 
 install:       FORCE
        -$(MKDIR) -p $(INSTDIR)
-       @TMPMAN=/tmp/ldapman.$$$$; \
+       @TMPMAN=/tmp/ldapman.$$$$$(MANCOMPRESSSUFFIX); \
        VERSION=`$(CAT) $(VERSIONFILE)`; \
        for page in *.$(SECT); do \
            $(SED) -e "s%LDVERSION%$$VERSION%" \
-                       -e 's%ETCDIR%$(RUNTIMEETCDIR)%' \
-                       -e 's%SBINDIR%$(SBINDIR)%' \
-                       -e 's%BINDIR%$(BINDIR)%' \
-                       -e 's%LIBEXECDIR%$(LIBEXECDIR)%' \
-                   $$page > $$TMPMAN; \
+                       -e 's%ETCDIR%$(LDAP_ETCDIR)%' \
+                       -e 's%SBINDIR%$(LDAP_SBINDIR)%' \
+                       -e 's%BINDIR%$(LDAP_BINDIR)%' \
+                       -e 's%LIBEXECDIR%$(LDAP_LIBEXECDIR)%' \
+                   $$page | $(MANCOMPRESS) > $$TMPMAN; \
            echo "installing $(INSTDIR)/$$page"; \
-           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
+               $(RM) $(INSTDIR)/$$page $(INSTDIR)/$$page$(MANCOMPRESSSUFFIX); \
+           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page$(MANCOMPRESSSUFFIX); \
            if [ -f "$$page.links" ]; then \
                for link in `$(CAT) $$page.links`; do \
                    echo "installing $(INSTDIR)/$$link as link to $$page"; \
-                   ln -sf $$page.gz $(INSTDIR)/$$link.gz; \
+                       $(RM) $(INSTDIR)/$$link $(INSTDIR)/$$link$(MANCOMPRESSSUFFIX); \
+                   ln -sf $$page$(MANCOMPRESSSUFFIX) $(INSTDIR)/$$link$(MANCOMPRESSSUFFIX); \
                done; \
            fi; \
        done; \
index 167861db0adcd6fff3b796cad0024abab856dea1..233699ac43dd38b30b0fa9eb78ef7f2d575ec472 100644 (file)
 
 LDAPSRC= ../../..
 SECT=3
-INSTDIR=$(MANDIR)/man$(SECT)
+INSTDIR=$(LDAP_MANDIR)/man$(SECT)
 VERSIONFILE = $(LDAPSRC)/build/version
 
 all:   FORCE
 
 install:       FORCE
        -$(MKDIR) -p $(INSTDIR)
-       @TMPMAN=/tmp/ldapman.$$$$; \
+       @TMPMAN=/tmp/ldapman.$$$$$(MANCOMPRESSSUFFIX); \
        VERSION=`$(CAT) $(VERSIONFILE)`; \
        for page in *.$(SECT); do \
            $(SED) -e "s%LDVERSION%$$VERSION%" \
-                       -e 's%ETCDIR%$(RUNTIMEETCDIR)%' \
-                       -e 's%SBINDIR%$(SBINDIR)%' \
-                       -e 's%BINDIR%$(BINDIR)%' \
-                       -e 's%LIBEXECDIR%$(LIBEXECDIR)%' \
-                   $$page > $$TMPMAN; \
+                       -e 's%ETCDIR%$(LDAP_ETCDIR)%' \
+                       -e 's%SBINDIR%$(LDAP_SBINDIR)%' \
+                       -e 's%BINDIR%$(LDAP_BINDIR)%' \
+                       -e 's%LIBEXECDIR%$(LDAP_LIBEXECDIR)%' \
+                   $$page | $(MANCOMPRESS) > $$TMPMAN; \
            echo "installing $(INSTDIR)/$$page"; \
-           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
+               $(RM) $(INSTDIR)/$$page $(INSTDIR)/$$page$(MANCOMPRESSSUFFIX); \
+           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page$(MANCOMPRESSSUFFIX); \
            if [ -f "$$page.links" ]; then \
                for link in `$(CAT) $$page.links`; do \
                    echo "installing $(INSTDIR)/$$link as link to $$page"; \
-                   ln -sf $$page.gz $(INSTDIR)/$$link.gz; \
+                       $(RM) $(INSTDIR)/$$link $(INSTDIR)/$$link$(MANCOMPRESSSUFFIX); \
+                   ln -sf $$page$(MANCOMPRESSSUFFIX) $(INSTDIR)/$$link$(MANCOMPRESSSUFFIX); \
                done; \
            fi; \
        done; \
index 679d0fb1cac428a5c8914fa30b529422851d641b..ad3000ee03761280988564654dcb05873bb552b0 100644 (file)
 
 LDAPSRC= ../../..
 SECT=5
-INSTDIR=$(MANDIR)/man$(SECT)
+INSTDIR=$(LDAP_MANDIR)/man$(SECT)
 VERSIONFILE = $(LDAPSRC)/build/version
 
 all:   FORCE
 
 install:       FORCE
        -$(MKDIR) -p $(INSTDIR)
-       @TMPMAN=/tmp/ldapman.$$$$; \
+       @TMPMAN=/tmp/ldapman.$$$$$(MANCOMPRESSSUFFIX); \
        VERSION=`$(CAT) $(VERSIONFILE)`; \
        for page in *.$(SECT); do \
            $(SED) -e "s%LDVERSION%$$VERSION%" \
-                       -e 's%ETCDIR%$(RUNTIMEETCDIR)%' \
-                       -e 's%SBINDIR%$(SBINDIR)%' \
-                       -e 's%BINDIR%$(BINDIR)%' \
-                       -e 's%LIBEXECDIR%$(LIBEXECDIR)%' \
-                   $$page > $$TMPMAN; \
+                       -e 's%ETCDIR%$(LDAP_ETCDIR)%' \
+                       -e 's%SBINDIR%$(LDAP_SBINDIR)%' \
+                       -e 's%BINDIR%$(LDAP_BINDIR)%' \
+                       -e 's%LIBEXECDIR%$(LDAP_LIBEXECDIR)%' \
+                   $$page | $(MANCOMPRESS) > $$TMPMAN; \
            echo "installing $(INSTDIR)/$$page"; \
-           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
+               $(RM) $(INSTDIR)/$$page $(INSTDIR)/$$page$(MANCOMPRESSSUFFIX); \
+           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page$(MANCOMPRESSSUFFIX); \
            if [ -f "$$page.links" ]; then \
                for link in `$(CAT) $$page.links`; do \
                    echo "installing $(INSTDIR)/$$link as link to $$page"; \
-                   ln -sf $$page.gz $(INSTDIR)/$$link.gz; \
+                       $(RM) $(INSTDIR)/$$link $(INSTDIR)/$$link$(MANCOMPRESSSUFFIX); \
+                   ln -sf $$page$(MANCOMPRESSSUFFIX) $(INSTDIR)/$$link$(MANCOMPRESSSUFFIX); \
                done; \
            fi; \
        done; \
index d8312a9532b368b395f99ab4ce22c2242cbac439..6b7f5109f8794f110cc671179287318878ed8cfd 100644 (file)
 
 LDAPSRC= ../../..
 SECT=8
-INSTDIR=$(MANDIR)/man$(SECT)
+INSTDIR=$(LDAP_MANDIR)/man$(SECT)
 VERSIONFILE = $(LDAPSRC)/build/version
 
 all:   FORCE
 
 install:       FORCE
        -$(MKDIR) -p $(INSTDIR)
-       @TMPMAN=/tmp/ldapman.$$$$; \
+       @TMPMAN=/tmp/ldapman.$$$$$(MANCOMPRESSSUFFIX); \
        VERSION=`$(CAT) $(VERSIONFILE)`; \
        for page in *.$(SECT); do \
            $(SED) -e "s%LDVERSION%$$VERSION%" \
-                       -e 's%ETCDIR%$(RUNTIMEETCDIR)%' \
-                       -e 's%SBINDIR%$(SBINDIR)%' \
-                       -e 's%BINDIR%$(BINDIR)%' \
-                       -e 's%LIBEXECDIR%$(LIBEXECDIR)%' \
-                   $$page > $$TMPMAN; \
+                       -e 's%ETCDIR%$(LDAP_ETCDIR)%' \
+                       -e 's%SBINDIR%$(LDAP_SBINDIR)%' \
+                       -e 's%BINDIR%$(LDAP_BINDIR)%' \
+                       -e 's%LIBEXECDIR%$(LDAP_LIBEXECDIR)%' \
+                       $$page | $(MANCOMPRESS) > $$TMPMAN; \
            echo "installing $(INSTDIR)/$$page"; \
-           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page; \
+               $(RM) $(INSTDIR)/$$page $(INSTDIR)/$$page$(MANCOMPRESSSUFFIX) ; \
+           $(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(INSTDIR)/$$page$(MANCOMPRESSSUFFIX); \
            if [ -f "$$page.links" ]; then \
                for link in `$(CAT) $$page.links`; do \
                    echo "installing $(INSTDIR)/$$link as link to $$page"; \
-                   ln -sf $$page.gz $(INSTDIR)/$$link.gz; \
+                       $(RM) $(INSTDIR)/$$link $(INSTDIR)/$$link$(MANCOMPRESSSUFFIX) ; \
+                   ln -sf $$page$(MANCOMPRESSSUFFIX) $(INSTDIR)/$$link$(MANCOMPRESSSUFFIX); \
                done; \
            fi; \
        done; \
index 7ebbf2677b567e74d79c6bb6ecd36c935cf4485e..989bd59c8b5d206d739d85a0ef60d55b510ea812 100644 (file)
@@ -78,7 +78,7 @@ the LDAP databases defined in the default config file, just type:
 .LP
 .nf
 .ft tt
-       ETCDIR/slapd
+       LIBEXECDIR/slapd
 .ft
 .fi
 .LP
index 4263d6ce8ac3868b30f8d6b596daed7ebc138cb0..0b7ba0c17c4c5e3958bec09157cc88887e6e93e7 100644 (file)
@@ -32,22 +32,23 @@ ldapconfig.h:       ldapconfig.h.edit Makefile
         echo " */ " >> $@; \
         echo "" >> $@; \
        $(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);' \
+                       -e 's;%SBINDIR%;$(LDAP_SBINDIR);' \
+                       -e 's;%LIBEXECDIR%;$(LDAP_LIBEXECDIR);' \
+                       -e 's;%RUNDIR%;$(LDAP_RUNDIR);' \
+                       -e 's;%EDITOR%;$(LDAP_EDITOR);' \
+                       -e 's;%FINGER%;$(LDAP_FINGER);' \
+                       -e 's;%SENDMAIL%;$(LDAP_SENDMAIL);' \
                         ldapconfig.h.edit >> $@; \
        $(CHMOD) 444 $@
 
 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)
+               $(INSTALL) $(INSTALLFLAGS) -m 644 ldap.h $(LDAP_INCDIR)
+               $(INSTALL) $(INSTALLFLAGS) -m 644 lber.h $(LDAP_INCDIR)
+               $(INSTALL) $(INSTALLFLAGS) -m 644 proto-lber.h $(LDAP_INCDIR)
+               $(INSTALL) $(INSTALLFLAGS) -m 644 proto-ldap.h $(LDAP_INCDIR)
+               $(INSTALL) $(INSTALLFLAGS) -m 644 disptmpl.h $(LDAP_INCDIR)
+               $(INSTALL) $(INSTALLFLAGS) -m 644 srchpref.h $(LDAP_INCDIR)
 
 depend:        FORCE
 
index 721c580826037d92475034cb2220e283f8ad0eeb..586f487fd91d719213e551eb536ac88c0383a8e3 100644 (file)
@@ -255,9 +255,9 @@ Please try again later.\r\n"
        /* default timelimit to spend on a search */
 #define SLAPD_DEFAULT_TIMELIMIT                3600
        /* location of the slapd pid file */
-#define SLAPD_PIDFILE                  "%ETCDIR%/slapd.pid"
+#define SLAPD_PIDFILE                  "%RUNDIR%/slapd.pid"
        /* location of the slapd args file */
-#define SLAPD_ARGSFILE                 "%ETCDIR%/slapd.args"
+#define SLAPD_ARGSFILE                 "%RUNDIR%/slapd.args"
        /* dn of the special "monitor" entry */
 #define SLAPD_MONITOR_DN               "cn=monitor"
        /* dn of the special "config" entry */
index d3fd3d0ec65b3ecb1a84b612eb3f8cbe2db03dc7..8cee54cb12904fc63673658d29384802ec672a33 100644 (file)
@@ -173,6 +173,7 @@ typedef cond_t      pthread_cond_t;
 #define _THREAD
 
 #include <pthread.h>
+#include <sched.h>
 
 #define pthread_mutexattr_default      NULL
 #define pthread_condattr_default       NULL
index 6f292127119cf5b38f75e2af24e1040d84ee8007..63c83b8784e8574457aa118f4db0846754d3e102 100644 (file)
@@ -53,10 +53,10 @@ version.c: $(OBJS)
        < Version.c > $@)
 
 install:       liblber.a FORCE
-       -$(MKDIR) -p $(LIBDIR)
-       $(INSTALL) $(INSTALLFLAGS) -m 644 liblber.a $(LIBDIR)
+       -$(MKDIR) -p $(LDAP_LIBDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 644 liblber.a $(LDAP_LIBDIR)
        @if [ ! -z "$(RANLIB)" ]; then \
-               (cd /tmp; $(RANLIB) $(LIBDIR)/liblber.a) \
+               (cd /tmp; $(RANLIB) $(LDAP_LIBDIR)/liblber.a) \
        fi
 
 lint:  FORCE
index 8d04b53b777ffa3ba56e99eddd6da69f8ffd24a3..2210efe20867e2482972bbfa515b7637fd87b28a 100644 (file)
@@ -31,8 +31,8 @@ OBJS  = bind.o open.o result.o error.o compare.o search.o \
 HDIR   = ../../include
 
 INCLUDES= -I$(HDIR) $(KRBINCLUDEFLAG)
-DEFINES        = $(DEFS) -DFILTERFILE="\"$(RUNTIMEETCDIR)/ldapfilter.conf\"" \
-       -DTEMPLATEFILE="\"$(RUNTIMEETCDIR)/ldaptemplates.conf\""
+DEFINES        = $(DEFS) -DFILTERFILE="\"$(LDAP_ETCDIR)/ldapfilter.conf\"" \
+       -DTEMPLATEFILE="\"$(LDAP_ETCDIR)/ldaptemplates.conf\""
 
 CFLAGS = $(INCLUDES) $(DEFINES) $(ACFLAGS)
 LIBS   = -L. -L../liblber -lldap -llber $(KRBLIBFLAG) $(KRBLIBS) $(ALIBS)
@@ -62,20 +62,20 @@ version.c:  $(OBJS)
        < Version.c > $@)
 
 install:       libldap.a ldapfilter.conf ldapfriendly ldaptemplates.conf ldapsearchprefs.conf FORCE
-       -$(MKDIR) -p $(LIBDIR)
-       $(INSTALL) $(INSTALLFLAGS) -m 644 libldap.a $(LIBDIR)
+       -$(MKDIR) -p $(LDAP_LIBDIR) $(LDAP_ETCDIR)
+       $(INSTALL) $(INSTALLFLAGS) -m 644 libldap.a $(LDAP_LIBDIR)
        @if [ ! -z "$(RANLIB)" ]; then \
-               (cd /tmp; $(RANLIB) $(LIBDIR)/libldap.a) \
+               (cd /tmp; $(RANLIB) $(LDAP_LIBDIR)/libldap.a) \
        fi
-       -$(MKDIR) -p $(ETCDIR)
-       -$(MV) $(ETCDIR)/ldapfriendly $(ETCDIR)/ldapfriendly-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 ldapfriendly $(ETCDIR)
-       -$(MV) $(ETCDIR)/ldapfilter.conf $(ETCDIR)/ldapfilter.conf-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 ldapfilter.conf $(ETCDIR)
-       -$(MV) $(ETCDIR)/ldaptemplates.conf $(ETCDIR)/ldaptemplates.conf-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 ldaptemplates.conf $(ETCDIR)
-       -$(MV) $(ETCDIR)/ldapsearchprefs.conf $(ETCDIR)/ldapsearchprefs.conf-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 ldapsearchprefs.conf $(ETCDIR)
+       -$(MKDIR) -p $(LDAP_ETCDIR)
+       -$(MV) $(LDAP_ETCDIR)/ldapfriendly $(LDAP_ETCDIR)/ldapfriendly-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 ldapfriendly $(LDAP_ETCDIR)
+       -$(MV) $(LDAP_ETCDIR)/ldapfilter.conf $(LDAP_ETCDIR)/ldapfilter.conf-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 ldapfilter.conf $(LDAP_ETCDIR)
+       -$(MV) $(LDAP_ETCDIR)/ldaptemplates.conf $(LDAP_ETCDIR)/ldaptemplates.conf-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 ldaptemplates.conf $(LDAP_ETCDIR)
+       -$(MV) $(LDAP_ETCDIR)/ldapsearchprefs.conf $(LDAP_ETCDIR)/ldapsearchprefs.conf-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 ldapsearchprefs.conf $(LDAP_ETCDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index ada0e435a42fedbfeb23f326e8a25d49088e5ac6..3cd526238664a8a8eae03fb31729a0f7b99f4a87 100644 (file)
@@ -491,7 +491,9 @@ pthread_kill( pthread_t tid, int sig )
 
 #if defined ( POSIX_THREADS )
 
-void p_thread_yield( void )
+#include <sched.h>
+
+void pthread_yield( void )
 {
        sched_yield();
 }
index df3e213ed728f55cc9cb1dc0695fe98ee9f61dfa..c615f24efd9211de2d0947bd1c35c194c85cb489 100644 (file)
@@ -71,10 +71,10 @@ install:    FORCE
            echo "uncomment the HAVEISODE=yes line in the Make-common file to build and install ldapd"; \
         fi
 
-install-ldapd: $(LIBEXECDIR) $(LIBEXECDIR)/ldapd
+install-ldapd: $(LDAP_LIBEXECDIR) $(LDAP_LIBEXECDIR)/ldapd
 
-$(LIBEXECDIR)/ldapd:   ldapd
-       $(INSTALL) $(INSTALLFLAGS) -m 755 ldapd $(LIBEXECDIR)
+$(LDAP_LIBEXECDIR)/ldapd:      ldapd
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldapd $(LDAP_LIBEXECDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index 3c946f58d929067f7ebcdd12bd6d19005557608c..f151019379988fb6eecfc7a5cba57e79f369f8e7 100644 (file)
@@ -100,27 +100,27 @@ version.c: libbackends.a $(OBJS) $(LDIR)/liblber/liblber.a \
        -e "s|%VERSION%|$${v}|" \
        < Version.c > $@)
 
-install: all $(LIBEXECDIR) $(LIBEXECDIR)/slapd \
-               $(ETCDIR) $(ETCDIR)/slapd.conf \
-               $(ETCDIR)/slapd.at.conf $(ETCDIR)/slapd.oc.conf \
+install: all $(LDAP_LIBEXECDIR) $(LDAP_LIBEXECDIR)/slapd \
+               $(LDAP_ETCDIR) $(LDAP_ETCDIR)/slapd.conf \
+               $(LDAP_ETCDIR)/slapd.at.conf $(LDAP_ETCDIR)/slapd.oc.conf \
                install-tools
 
-$(LIBEXECDIR)/slapd:   slapd
-       $(INSTALL) $(INSTALLFLAGS) -m 755 slapd $(LIBEXECDIR)
+$(LDAP_LIBEXECDIR)/slapd:      slapd
+       $(INSTALL) $(INSTALLFLAGS) -m 755 slapd $(LDAP_LIBEXECDIR)
 
-$(ETCDIR)/slapd.conf:  slapd.conf
-       $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' slapd.conf > /tmp/slapd.$$
-       -$(MV) $(ETCDIR)/slapd.conf $(ETCDIR)/slapd.conf-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 /tmp/slapd.$$ $(ETCDIR)/slapd.conf
+$(LDAP_ETCDIR)/slapd.conf:     slapd.conf
+       $(SED) -e 's;%ETCDIR%;$(LDAP_ETCDIR);' slapd.conf > /tmp/slapd.$$
+       -$(MV) $(LDAP_ETCDIR)/slapd.conf $(LDAP_ETCDIR)/slapd.conf-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 /tmp/slapd.$$ $(LDAP_ETCDIR)/slapd.conf
        $(RM) -f /tmp/slapd.$$
 
-$(ETCDIR)/slapd.at.conf:       slapd.at.conf
-       -$(MV) $(ETCDIR)/slapd.at.conf $(ETCDIR)/slapd.at.conf-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 slapd.at.conf $(ETCDIR)
+$(LDAP_ETCDIR)/slapd.at.conf:  slapd.at.conf
+       -$(MV) $(LDAP_ETCDIR)/slapd.at.conf $(LDAP_ETCDIR)/slapd.at.conf-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 slapd.at.conf $(LDAP_ETCDIR)
 
-$(ETCDIR)/slapd.oc.conf:       slapd.oc.conf
-       -$(MV) $(ETCDIR)/slapd.oc.conf $(ETCDIR)/slapd.oc.conf-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 slapd.oc.conf $(ETCDIR)
+$(LDAP_ETCDIR)/slapd.oc.conf:  slapd.oc.conf
+       -$(MV) $(LDAP_ETCDIR)/slapd.oc.conf $(LDAP_ETCDIR)/slapd.oc.conf-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 slapd.oc.conf $(LDAP_ETCDIR)
 
 install-tools: FORCE
        (cd tools; $(MAKE) $(MFLAGS) install)
index 5044456cb7d696d90e882edd99f2aee2c509460b..1026f45c7ea0394bbe6c418ffee77ed55d46d27c 100644 (file)
@@ -149,16 +149,17 @@ slapd_daemon(
        }
 
        (void) SIGNAL( SIGPIPE, SIG_IGN );
-#ifdef SIGSTKFLT
+#ifdef linux
+       /*
+        * LinuxThreads are implemented using SIGUSR1/USR2,
+        * so we'll use SIGSTKFLT and SIGUNUSED
+        */
        (void) SIGNAL( SIGSTKFLT, (void *) do_nothing );
-#else
-       (void) SIGNAL( SIGUSR1, (void *) do_nothing );
-#endif
-#ifdef SIGUNUSED
        (void) SIGNAL( SIGUNUSED, (void *) set_shutdown );
-#else
+#else /* !linux */
+       (void) SIGNAL( SIGUSR1, (void *) do_nothing );
        (void) SIGNAL( SIGUSR2, (void *) set_shutdown );
-#endif
+#endif /* !linux */
        (void) SIGNAL( SIGTERM, (void *) set_shutdown );
        (void) SIGNAL( SIGINT, (void *) set_shutdown );
        (void) SIGNAL( SIGHUP, (void *) set_shutdown );
@@ -420,16 +421,17 @@ set_shutdown()
 {
        Debug( LDAP_DEBUG_ANY, "slapd got shutdown signal\n", 0, 0, 0 );
        slapd_shutdown = 1;
-#ifdef SIGSTKFLT
+#ifdef linux
+       /*
+        * LinuxThreads are implemented using SIGUSR1/USR2,
+        * so we'll use SIGSTKFLT and SIGUNUSED
+        */
        pthread_kill( listener_tid, SIGSTKFLT );
-#else
-       pthread_kill( listener_tid, SIGUSR1 );
-#endif
-#ifdef SIGUNUSED
        (void) SIGNAL( SIGUNUSED, (void *) set_shutdown );
-#else
+#else /* !linux */
+       pthread_kill( listener_tid, SIGUSR1 );
        (void) SIGNAL( SIGUSR2, (void *) set_shutdown );
-#endif
+#endif /* !linux */
        (void) SIGNAL( SIGTERM, (void *) set_shutdown );
        (void) SIGNAL( SIGINT, (void *) set_shutdown );
        (void) SIGNAL( SIGHUP, (void *) set_shutdown );
@@ -439,9 +441,13 @@ static void
 do_nothing()
 {
        Debug( LDAP_DEBUG_TRACE, "slapd got do_nothing signal\n", 0, 0, 0 );
-#ifdef SIGSTKFLT
+#ifdef linux
+       /*
+        * LinuxThreads are implemented using SIGUSR1/USR2,
+        * so we'll use SIGSTKFLT and SIGUNUSED
+        */
        (void) SIGNAL( SIGSTKFLT, (void *) do_nothing );
-#else
+#else /* !linux */
        (void) SIGNAL( SIGUSR1, (void *) do_nothing );
-#endif
+#endif /* !linux */
 }
index cdac39a0ab22cd2f1e43ac8c368108c3896d042b..3ca0555cee79f870424a99d4739f230ac91944c3 100644 (file)
@@ -121,11 +121,11 @@ send_ldap_result2(
                pthread_mutex_lock( &active_threads_mutex );
                active_threads--;
                conn->c_writewaiter = 1;
-#ifdef SIGSTKFLT
+#ifdef linux
                pthread_kill( listener_tid, SIGSTKFLT );
-#else
+#else /* !linux */
                pthread_kill( listener_tid, SIGUSR1 );
-#endif
+#endif /* !linux */
                pthread_cond_wait( &conn->c_wcv, &active_threads_mutex );
                pthread_mutex_unlock( &active_threads_mutex );
 
index 8790bcbee813f71109ce3ddc719b63d11d20cb98..a0406100868cec7aad72cf365a73eda288c4a174 100644 (file)
@@ -78,8 +78,8 @@ ldif2ldbm:    ldif2ldbm.sed.o ../libbackends.a $(OBJS2)
                ../libbackends.a $(LDFLAGS) $(LIBS2)
 
 ldif2ldbm.sed.c: ldif2ldbm.c
-       $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' \
-                       -e 's;%SBINDIR%;$(SBINDIR);' \
+       $(SED) -e 's;%ETCDIR%;$(LDAP_ETCDIR);' \
+                       -e 's;%SBINDIR%;$(LDAP_SBINDIR);' \
                ldif2ldbm.c > ldif2ldbm.sed.c
 
 ldif2id2entry: ldif2id2entry.o ../libbackends.a $(OBJS2)
@@ -108,49 +108,49 @@ ldbmtest: ldbmtest.o ../libbackends.a $(OBJS2)
        $(CC) $(ALDFLAGS) -o ldbmtest ldbmtest.o $(OBJS2) \
                ../libbackends.a $(LDFLAGS) $(LIBS2)
 
-install: $(SBINDIR) $(SBINDIR)/edb2ldif $(SBINDIR)/ldif2ldbm \
-       $(SBINDIR)/ldif2index $(SBINDIR)/ldif2id2entry \
-       $(SBINDIR)/ldif2id2children $(SBINDIR)/ldbmcat \
-       $(SBINDIR)/centipede $(SBINDIR)/ldbmtest \
-       $(SBINDIR)/ldif
+install: $(LDAP_SBINDIR) $(LDAP_SBINDIR)/edb2ldif $(LDAP_SBINDIR)/ldif2ldbm \
+       $(LDAP_SBINDIR)/ldif2index $(LDAP_SBINDIR)/ldif2id2entry \
+       $(LDAP_SBINDIR)/ldif2id2children $(LDAP_SBINDIR)/ldbmcat \
+       $(LDAP_SBINDIR)/centipede $(LDAP_SBINDIR)/ldbmtest \
+       $(LDAP_SBINDIR)/ldif
 
-$(SBINDIR)/edb2ldif:   build-edb2ldif
+$(LDAP_SBINDIR)/edb2ldif:      build-edb2ldif
        @if [ "$(HAVEISODE)" = "yes" ]; then \
-               $(INSTALL) $(INSTALLFLAGS) -m 755 edb2ldif $(SBINDIR); \
+               $(INSTALL) $(INSTALLFLAGS) -m 755 edb2ldif $(LDAP_SBINDIR); \
        else \
                exit 0; \
        fi
 
-$(SBINDIR)/chlog2replog:       build-chlog2replog
+$(LDAP_SBINDIR)/chlog2replog:  build-chlog2replog
        @if [ "$(HAVEISODE)" = "yes" ]; then \
-               $(INSTALL) $(INSTALLFLAGS) -m 755 chlog2replog $(SBINDIR); \
+               $(INSTALL) $(INSTALLFLAGS) -m 755 chlog2replog $(LDAP_SBINDIR); \
        else \
                exit 0; \
        fi
 
-$(SBINDIR)/ldif2ldbm:  ldif2ldbm
-       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2ldbm $(SBINDIR)
+$(LDAP_SBINDIR)/ldif2ldbm:     ldif2ldbm
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2ldbm $(LDAP_SBINDIR)
 
-$(SBINDIR)/ldif2index: ldif2index
-       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2index $(SBINDIR)
+$(LDAP_SBINDIR)/ldif2index:    ldif2index
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2index $(LDAP_SBINDIR)
 
-$(SBINDIR)/ldif2id2entry:      ldif2id2entry
-       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2entry $(SBINDIR)
+$(LDAP_SBINDIR)/ldif2id2entry: ldif2id2entry
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2entry $(LDAP_SBINDIR)
 
-$(SBINDIR)/ldif2id2children:   ldif2id2children
-       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2children $(SBINDIR)
+$(LDAP_SBINDIR)/ldif2id2children:      ldif2id2children
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2children $(LDAP_SBINDIR)
 
-$(SBINDIR)/ldbmcat:    ldbmcat
-       $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmcat $(SBINDIR)
+$(LDAP_SBINDIR)/ldbmcat:       ldbmcat
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmcat $(LDAP_SBINDIR)
 
-$(SBINDIR)/ldif:       ldif
-       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif $(SBINDIR)
+$(LDAP_SBINDIR)/ldif:  ldif
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldif $(LDAP_SBINDIR)
 
-$(SBINDIR)/centipede:  centipede
-       $(INSTALL) $(INSTALLFLAGS) -m 755 centipede $(SBINDIR)
+$(LDAP_SBINDIR)/centipede:     centipede
+       $(INSTALL) $(INSTALLFLAGS) -m 755 centipede $(LDAP_SBINDIR)
 
-$(SBINDIR)/ldbmtest:   ldbmtest
-       $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmtest $(SBINDIR)
+$(LDAP_SBINDIR)/ldbmtest:      ldbmtest
+       $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmtest $(LDAP_SBINDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
index 17d627be35be8f6f6b54a59ea912af69e938f052..6d57327b5c57e6b2a7b3e910ab6cbd55d2dafdb6 100644 (file)
@@ -56,10 +56,10 @@ version.c: $(OBJS) $(LDIR)/liblber/liblber.a $(LDIR)/libldap/libldap.a
        -e "s|%VERSION%|$${v}|" \
        < Version.c > $@)
 
-install: $(LIBEXECDIR) $(LIBEXECDIR)/slurpd
+install: $(LDAP_LIBEXECDIR) $(LDAP_LIBEXECDIR)/slurpd
 
-$(LIBEXECDIR)/slurpd:  slurpd
-       $(INSTALL) $(INSTALLFLAGS) -m 755 slurpd $(LIBEXECDIR)
+$(LDAP_LIBEXECDIR)/slurpd:     slurpd
+       $(INSTALL) $(INSTALLFLAGS) -m 755 slurpd $(LDAP_LIBEXECDIR)
 
 lint:  FORCE
        $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)