From ee157e9d6625376d047969fc871e0fdd9221e047 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 29 Dec 2021 18:13:43 +0000 Subject: [PATCH] build the rest of the tools. --- external/bsd/openldap/sbin/slapd/Makefile | 26 +++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/external/bsd/openldap/sbin/slapd/Makefile b/external/bsd/openldap/sbin/slapd/Makefile index 01d4570e860f..5278f70254d3 100644 --- a/external/bsd/openldap/sbin/slapd/Makefile +++ b/external/bsd/openldap/sbin/slapd/Makefile @@ -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 @@ -10,6 +10,12 @@ CPPFLAGS+=-I${SLAPD} -I${SLAPD}/back-monitor 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 @@ PROGDPLIBS+= \ __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