Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/openldap/sbin/slapd build the rest of the tools.



details:   https://anonhg.NetBSD.org/src/rev/8ad7d33aa1c5
branches:  trunk
changeset: 1029279:8ad7d33aa1c5
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 29 18:13:43 2021 +0000

description:
build the rest of the tools.

diffstat:

 external/bsd/openldap/sbin/slapd/Makefile |  26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r b07507df8fd8 -r 8ad7d33aa1c5 external/bsd/openldap/sbin/slapd/Makefile
--- a/external/bsd/openldap/sbin/slapd/Makefile Wed Dec 29 12:53:38 2021 +0000
+++ b/external/bsd/openldap/sbin/slapd/Makefile Wed Dec 29 18:13:43 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2021/12/28 17:05:44 christos Exp $
+# $NetBSD: Makefile,v 1.2 2021/12/29 18:13:43 christos Exp $
 
 .include <bsd.init.mk>
 
@@ -10,6 +10,12 @@
 
 MAN=slapd.8 slapd.conf.5
 PROG = slapd
+TOOLS=slapadd slapcat slapdn slapindex slapmodify slappasswd slaptest \
+    slapauth slapacl slapschema
+.for tool in ${TOOLS}
+LINKS+= ${BINDIR}/slapd ${BINDIR}/${tool}
+MAN+=${tool}.8
+.endfor
 
 SRCS += \
        main.c globals.c bconfig.c config.c daemon.c \
@@ -42,13 +48,19 @@
 
 __makeman: .USE
        ${_MKTARGET_CREATE}
-       ${TOOL_SED} -e s@LIBEXECDIR@/usr/sbin@g \
+       ${TOOL_SED} \
+           -e s@LOCALSTATEDIR@/var@g \
+           -e s@SYSCONFDIR@/etc/openldap@g \
+           -e s@DATADIR@/usr/share@g \
+           -e s@SBINDIR@/usr/sbin@g \
+           -e s@BINDIR@/usr/bin@g \
+           -e s@LIBDIR@/usr/lib@g \
+           -e s@LIBEXECDIR@/usr/sbin@g \
+           -e s@MODULEDIR@/usr/lib/openldap@g \
            -e s@ETCDIR@/etc/openldap@g ${.ALLSRC} > ${.TARGET}
 
-slapd.8: ${LDAP_DISTDIR}/doc/man/man8/slapd.8 __makeman
-slapd.conf.5: ${LDAP_DISTDIR}/doc/man/man5/slapd.conf.5 __makeman
-
-
-CLEANFILES+= slapd.8
+.for man in ${MAN}
+${man}: ${LDAP_DISTDIR}/doc/man/man${man:E}/${man} __makeman
+.endfor
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index