mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
MFC: r208320
Add a new build option, MAN_UTILS. This option lets you control building utilities and related support files for manual pages, which were previously controlled by MAN. For POLA, the default depends on MAN, i.e., WITHOUT_MAN implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS. Note this patch implicitly fixes a documentation bug of src.conf(5), which says WITHOUT_MAN may be used to not build manual pages while it was also disabling some utilities for manual pages. Approved by: re (kib)
This commit is contained in:
parent
f8db260873
commit
2ddf40c67d
7 changed files with 18 additions and 7 deletions
|
|
@ -59,7 +59,7 @@ BIN1+= hosts.lpd printcap
|
|||
BIN1+= ${.CURDIR}/../usr.bin/mail/misc/mail.rc
|
||||
.endif
|
||||
|
||||
.if ${MK_MAN} != "no"
|
||||
.if ${MK_MAN_UTILS} != "no"
|
||||
BIN1+= ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config
|
||||
.endif
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ FILES= 340.noid \
|
|||
FILES+= 310.locate
|
||||
.endif
|
||||
|
||||
.if ${MK_MAN} != "no"
|
||||
.if ${MK_MAN_UTILS} != "no"
|
||||
FILES+= 320.whatis 330.catman
|
||||
.endif
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ _grep= grep
|
|||
_texinfo= texinfo
|
||||
.endif
|
||||
|
||||
.if ${MK_MAN} != "no"
|
||||
.if ${MK_MAN_UTILS} != "no"
|
||||
_man= man
|
||||
.endif
|
||||
|
||||
|
|
|
|||
|
|
@ -9,10 +9,12 @@ SUBDIR= man1 man3 man4 man5 man6 man7 man8 man9
|
|||
MAKEWHATIS?= makewhatis
|
||||
|
||||
makedb:
|
||||
.if ${MK_MAN_UTILS} != "no"
|
||||
${MAKEWHATIS} ${DESTDIR}${BINDIR}/man
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
${MAKEWHATIS} ${DESTDIR}${BINDIR}/openssl/man
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
|
|||
|
|
@ -524,7 +524,8 @@ MK_${var}_SUPPORT:= yes
|
|||
# MK_* options whose default value depends on another option.
|
||||
#
|
||||
.for vv in \
|
||||
GSSAPI/KERBEROS
|
||||
GSSAPI/KERBEROS \
|
||||
MAN_UTILS/MAN
|
||||
.if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H})
|
||||
.error WITH_${vv:H} and WITHOUT_${vv:H} can't both be set.
|
||||
.endif
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ SUBDIR= alias \
|
|||
m4 \
|
||||
${_mail} \
|
||||
${_make} \
|
||||
makewhatis \
|
||||
${_makewhatis} \
|
||||
mesg \
|
||||
minigzip \
|
||||
ministat \
|
||||
|
|
@ -251,7 +251,7 @@ _at= at
|
|||
_atm= atm
|
||||
.endif
|
||||
|
||||
.if ${MK_MAN} != "no"
|
||||
.if ${MK_MAN_UTILS} != "no"
|
||||
_catman= catman
|
||||
.endif
|
||||
|
||||
|
|
@ -303,6 +303,10 @@ _msgs= msgs
|
|||
_make= make
|
||||
.endif
|
||||
|
||||
.if ${MK_MAN_UTILS} != "no"
|
||||
_makewhatis= makewhatis
|
||||
.endif
|
||||
|
||||
.if ${MK_NETCAT} != "no"
|
||||
_nc= nc
|
||||
.endif
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ SUBDIR= ${_ac} \
|
|||
mailwrapper \
|
||||
makefs \
|
||||
${_makemap} \
|
||||
manctl \
|
||||
${_manctl} \
|
||||
memcontrol \
|
||||
mergemaster \
|
||||
mfiutil \
|
||||
|
|
@ -324,6 +324,10 @@ _nscd= nscd
|
|||
_lpr= lpr
|
||||
.endif
|
||||
|
||||
.if ${MK_MAN_UTILS} != "no"
|
||||
_manctl= manctl
|
||||
.endif
|
||||
|
||||
.if ${MK_NETGRAPH} != "no"
|
||||
_flowctl= flowctl
|
||||
_lmcconfig= lmcconfig
|
||||
|
|
|
|||
Loading…
Reference in a new issue