From a6c661cadfb5621b67839966bb7e276add13a1a2 Mon Sep 17 00:00:00 2001 From: ngie Date: Fri, 13 Feb 2015 21:19:54 +0000 Subject: [PATCH] MFC r277676: r277676: Add MK_TALK knob for building the talk and talkd Sponsored by: EMC / Isilon Storage Division git-svn-id: svn://svn.freebsd.org/base/stable/10@278710 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- libexec/Makefile | 5 ++++- share/mk/bsd.own.mk | 1 + tools/build/mk/OptionalObsoleteFiles.inc | 7 +++++++ tools/build/options/WITHOUT_TALK | 5 +++++ usr.bin/Makefile | 5 ++++- 5 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 tools/build/options/WITHOUT_TALK diff --git a/libexec/Makefile b/libexec/Makefile index 66e24261e..69bcd77bd 100644 --- a/libexec/Makefile +++ b/libexec/Makefile @@ -26,7 +26,6 @@ SUBDIR= ${_atf} \ ${_rtld-elf} \ save-entropy \ ${_smrsh} \ - talkd \ tcpd \ ${_telnetd} \ ${_tests} \ @@ -74,6 +73,10 @@ _mail.local= mail.local _smrsh= smrsh .endif +.if ${MK_TALK} != "no" +SUBDIR+= talkd +.endif + .if ${MK_TELNET} != "no" _telnetd= telnetd .endif diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 340cd27fc..f016aa8cd 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -357,6 +357,7 @@ __DEFAULT_YES_OPTIONS = \ SYMVER \ SYSCONS \ SYSINSTALL \ + TALK \ TCSH \ TELNET \ TEXTPROC \ diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index b2cc2ae68..a0c69619c 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -4221,6 +4221,13 @@ OLD_DIRS+=usr/share/doc/pjdfstest # to be filled in #.endif +.if ${MK_TALK} == no +OLD_FILES+=usr/bin/talk +OLD_FILES+=usr/libexec/ntalkd +OLD_FILES+=usr/share/man/man1/talk.1.gz +OLD_FILES+=usr/share/man/man8/talkd.8.gz +.endif + .if ${MK_TCSH} == no OLD_FILES+=bin/csh OLD_FILES+=bin/tcsh diff --git a/tools/build/options/WITHOUT_TALK b/tools/build/options/WITHOUT_TALK new file mode 100644 index 000000000..33d416750 --- /dev/null +++ b/tools/build/options/WITHOUT_TALK @@ -0,0 +1,5 @@ +.\" $FreeBSD$ +Set to not build or install +.Xr talk 1 +and +.Xr talkd 8 . diff --git a/usr.bin/Makefile b/usr.bin/Makefile index 3ac348c7d..d15f32a58 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -155,7 +155,6 @@ SUBDIR= alias \ systat \ tabs \ tail \ - talk \ tar \ tcopy \ tee \ @@ -336,6 +335,10 @@ SUBDIR+= rwho SUBDIR+= vacation .endif +.if ${MK_TALK} != "no" +SUBDIR+= talk +.endif + .if ${MK_TELNET} != "no" SUBDIR+= telnet .endif -- 2.42.0