summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2021-12-29 18:13:43 +0000
committerchristos <christos@NetBSD.org>2021-12-29 18:13:43 +0000
commit2f413a8970de7daf8d81f9f7e366c572e57a63a3 (patch)
treea78d0d964e83700384845b53416f09b36ae77a18
parente6cd7f9544e91d0f77a919e7c9afe85f1cbd4b3d (diff)
build the rest of the tools.
-rw-r--r--external/bsd/openldap/sbin/slapd/Makefile26
1 files changed, 19 insertions, 7 deletions
diff --git a/external/bsd/openldap/sbin/slapd/Makefile b/external/bsd/openldap/sbin/slapd/Makefile
index 01d4570e860..5278f70254d 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 <bsd.init.mk>
@@ -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 <bsd.prog.mk>