aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Grafton <john.grafton@runbox.com>2023-01-29 23:05:15 +0000
committerXin LI <delphij@FreeBSD.org>2023-01-29 23:05:15 +0000
commitea34aa4780e5a581732520ea579342af94684882 (patch)
tree05b2b59ec2b87b2393861ef12ec4d5477ccb3220
parent37399d5bcf67c6d68e30a34ce2df30e0964d46d9 (diff)
downloadsrc-ea34aa4780e5a581732520ea579342af94684882.tar.gz
src-ea34aa4780e5a581732520ea579342af94684882.zip
rescue: Add fetch(1) to the rescue tool.
After a failed upgrade, having fetch(1) on a system that is physically unnreachable would be very useful to download files required to get the OS back up and functional. On my system this adds 589,824 bytes (3.8%) to the binary size. PR: 266224 Reported by: Dan Mahoney MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D38193
-rw-r--r--rescue/rescue/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile
index f6ff701f4c54..6093cf6609d1 100644
--- a/rescue/rescue/Makefile
+++ b/rescue/rescue/Makefile
@@ -215,10 +215,13 @@ CRUNCH_LIBS+= ${LDADD_zstd}
CRUNCH_PROGS_usr.bin+= tar
CRUNCH_LIBS+= -larchive
.if ${MK_OPENSSL} != "no"
-CRUNCH_LIBS+= -lcrypto
+CRUNCH_LIBS+= -lcrypto -lssl
.endif
CRUNCH_LIBS+= -lmd
+CRUNCH_PROGS_usr.bin+= fetch
+CRUNCH_LIBS+= -lfetch
+
.if ${MK_NETCAT} != "no"
CRUNCH_PROGS_usr.bin+= nc
.endif