aboutsummaryrefslogtreecommitdiff
path: root/rescue
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2021-12-31 01:11:31 +0000
committerEd Maste <emaste@FreeBSD.org>2021-12-31 18:16:30 +0000
commitdaf481f3d508e7497b456e8df7db17c90b623ee0 (patch)
tree57cc10535c2c662d026a8c0f4718b8288d7d45e9 /rescue
parent881059955a5d83fc173f40f266d93ddd91255291 (diff)
downloadsrc-daf481f3d508e7497b456e8df7db17c90b623ee0.tar.gz
src-daf481f3d508e7497b456e8df7db17c90b623ee0.zip
rescue: include ping iff at least one of INET & INET6 is enabled
Ping does not build (and serves no purpose) if neither is enabled (i.e., building WITHOUT_INET and WITHOUT_INET6). This is equvalent to a4ef9e58bc0c but for rescue/. PR: 260082 Fixes: a4ef9e58bc0c ("sbin: build ping if at least one of...") Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'rescue')
-rw-r--r--rescue/rescue/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile
index 783b5bbd7721..938712371061 100644
--- a/rescue/rescue/Makefile
+++ b/rescue/rescue/Makefile
@@ -99,7 +99,7 @@ CRUNCH_PROGS_sbin= \
md5 mdconfig mdmfs mknod mount mount_cd9660 \
mount_msdosfs mount_nfs mount_nullfs \
mount_udf mount_unionfs newfs \
- newfs_msdos nos-tun ping reboot \
+ newfs_msdos nos-tun reboot \
restore rcorder route savecore \
shutdown swapon sysctl tunefs umount
@@ -107,6 +107,10 @@ CRUNCH_PROGS_sbin= \
CRUNCH_PROGS_sbin+= ccdconfig
.endif
+.if ${MK_INET} != "no" || ${MK_INET6} != "no"
+CRUNCH_PROGS_sbin+= ping
+.endif
+
.if ${MK_INET6_SUPPORT} != "no"
CRUNCH_ALIAS_ping= ping6
CRUNCH_PROGS_sbin+= rtsol