diff --git a/share/man/Makefile b/share/man/Makefile --- a/share/man/Makefile +++ b/share/man/Makefile @@ -10,8 +10,16 @@ makedb: .if ${MK_MAN_UTILS} != "no" ${MAKEWHATIS} ${DESTDIR}${BINDIR}/man +.if defined(NO_ROOT) && defined(METALOG) + echo ".${DISTBASE}${BINDIR}/man/mandoc.db type=file mode=0644 uname=root gname=wheel" | \ + cat -l >> ${METALOG} +.endif .if ${MK_OPENSSL} != "no" ${MAKEWHATIS} ${DESTDIR}${BINDIR}/openssl/man +.if defined(NO_ROOT) && defined(METALOG) + echo ".${DISTBASE}${BINDIR}/openssl/man/mandoc.db type=file mode=0644 uname=root gname=wheel" | \ + cat -l >> ${METALOG} +.endif .endif .endif