5 echo Building the trivial bootstrap environment...
7 #echo Needed FreeBSD packages:
8 #echo findutils gcpio gawk gnugrep coreutils bash gsed gtar gmake xar binutils gpatch lbzip2 diffutils
13 if [ ! -z "${2:-}" ]; then
14 if [ -f "$out/bin/$2" ]; then
19 if test ! -f "$1"; then
20 echo Target
"$2" does not exist
23 # TODO: check that destination directory exists
24 if [ ! -z "${2:-}" ]; then
25 $ln -s "$1" "$out/bin/$2"
27 $ln -s "$1" "$out/bin/"
36 for i
in b2sum base32 base64
basename basenc
cat chcon chgrp
chmod \
37 chown chroot
cksum comm cp csplit cut
date dd df dir dircolors \
38 dirname du
echo env
expand expr factor false
fmt fold install \
39 groups
head hostid id
join kill link
ln logname
ls md5sum mkdir \
40 mkfifo mknod mktemp
mv nice
nl nohup nproc numfmt
od paste pathchk \
41 pinky
pr printenv printf ptx pwd readlink realpath
rm rmdir runcon \
42 seq sha1sum sha224sum sha256sum sha384sum sha512sum
shred shuf \
43 sleep sort split stat stdbuf stty
sum sync
tac tee test timeout \
44 touch tr true truncate
tsort tty uname
unexpand uniq unlink uptime \
45 users
vdir wc who whoami
yes
47 ln "$coreutils/bin/$i" "$i"
50 for i
in find xargs; do
51 ln "$findutils/bin/$i" "$i"
54 for i
in diff diff3 sdiff; do
55 ln "$diffutils/bin/$i" "$i"
58 for i
in grep egrep fgrep
; do
59 ln "$grep/bin/$i" "$i"
66 ln /usr
/bin
/hexdump # for bitcoin
70 ln /usr
/bin
/bzip2recover
85 ln $curl/bin
/curl curl
88 ln /usr
/bin
/tail tail # note that we are not using gtail!!!
90 ln $patch/bin
/patch patch
91 ln /usr
/bin
/which which
94 # pkg info -l binutils | grep usr/local/bin
118 #pkg info -l llvm37 | grep usr/local/bin