ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / stdenv / freebsd / trivial-bootstrap.sh
blob34b4dbabc2bb306d78d551c3e7d5bb60502175b1
1 set -e
2 set -o nounset
3 set -o pipefail
5 echo Building the trivial bootstrap environment...
6 #echo
7 #echo Needed FreeBSD packages:
8 #echo findutils gcpio gawk gnugrep coreutils bash gsed gtar gmake xar binutils gpatch lbzip2 diffutils
10 $mkdir -p $out/bin
12 ln () {
13 if [ ! -z "${2:-}" ]; then
14 if [ -f "$out/bin/$2" ]; then
15 echo "$2 exists"
16 exit 1
19 if test ! -f "$1"; then
20 echo Target "$2" does not exist
21 exit 1
23 # TODO: check that destination directory exists
24 if [ ! -z "${2:-}" ]; then
25 $ln -s "$1" "$out/bin/$2"
26 else
27 $ln -s "$1" "$out/bin/"
31 ln $bash/bin/bash
32 ln $make/bin/make
34 ln /bin/sh
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"
48 done
50 for i in find xargs; do
51 ln "$findutils/bin/$i" "$i"
52 done
54 for i in diff diff3 sdiff; do
55 ln "$diffutils/bin/$i" "$i"
56 done
58 for i in grep egrep fgrep; do
59 ln "$grep/bin/$i" "$i"
60 done
62 ln /usr/bin/locale
64 ln /usr/bin/more
66 ln /usr/bin/hexdump # for bitcoin
68 ln /usr/bin/bzip2
69 ln /usr/bin/bunzip2
70 ln /usr/bin/bzip2recover
72 ln /usr/bin/xz
73 ln /usr/bin/unxz
74 ln /usr/bin/lzma
75 ln /usr/bin/unlzma
77 ln /bin/ps
78 ln /bin/hostname
79 ln /usr/bin/cmp
80 ln $sed/bin/sed
81 ln /usr/bin/tar tar
82 ln $gawk/bin/gawk
83 ln $gawk/bin/gawk awk
84 ln $cpio/bin/cpio
85 ln $curl/bin/curl curl
86 ln /usr/bin/gzip
87 ln /usr/bin/gunzip
88 ln /usr/bin/tail tail # note that we are not using gtail!!!
89 ln /usr/bin/less less
90 ln $patch/bin/patch patch
91 ln /usr/bin/which which
93 ## binutils
94 # pkg info -l binutils | grep usr/local/bin
95 ln /usr/bin/addr2line
96 ln /usr/bin/ar
97 ln /usr/bin/as
98 ln /usr/bin/c++filt
99 #ln /usr/bin/dwp
100 #ln /usr/bin/elfedit
101 ln /usr/bin/gprof
102 ln /usr/bin/ld
103 #ln /usr/bin/ld.bfd
104 #ln /usr/bin/ld.gold
105 ln /usr/bin/nm
106 ln /usr/bin/objcopy
107 ln /usr/bin/objdump
108 ln /usr/bin/ranlib
109 ln /usr/bin/readelf
110 ln /usr/bin/size
111 ln /usr/bin/strings
112 ln /usr/bin/strip
114 ln /usr/bin/cc
115 ln /usr/bin/cpp
116 ln /usr/bin/c++
118 #pkg info -l llvm37 | grep usr/local/bin