Add option WITHOUT_VI to not build/install vi. vi was the largest

binary without a knob to turn it off.
This commit is contained in:
Warner Losh 2014-04-24 23:17:40 +00:00
parent f6092768b1
commit d6d1ee211a
3 changed files with 7 additions and 1 deletions

View File

@ -166,6 +166,7 @@ __DEFAULT_YES_OPTIONS = \
UNBOUND \ UNBOUND \
USB \ USB \
UTMPX \ UTMPX \
VI \
WIRELESS \ WIRELESS \
WPA_SUPPLICANT_EAPOL \ WPA_SUPPLICANT_EAPOL \
ZFS \ ZFS \

View File

@ -0,0 +1,2 @@
.\" $FreeBSD$
Set to not build and install vi, view, ex and related programs.

View File

@ -182,7 +182,6 @@ SUBDIR= alias \
unvis \ unvis \
uudecode \ uudecode \
uuencode \ uuencode \
vi \
vis \ vis \
vmstat \ vmstat \
w \ w \
@ -361,6 +360,10 @@ SUBDIR+= xstr
SUBDIR+= yacc SUBDIR+= yacc
.endif .endif
.if ${MK_VI} != "no"
SUBDIR+= vi
.endif
.if ${MK_USB} != "no" .if ${MK_USB} != "no"
SUBDIR+= usbhidaction SUBDIR+= usbhidaction
SUBDIR+= usbhidctl SUBDIR+= usbhidctl