-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathnetbsd.sh
37 lines (32 loc) · 824 Bytes
/
netbsd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
# https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.3/All/
provision() {
pkgin -y update && \
pkgin -y upgrade && \
pkgin -y install autoconf \
automake \
boost \
clang \
git \
gmake \
libevent \
libtool \
mozilla-rootcerts \
pkg-config \
python311 \
sqlite3 \
zeromq
touch /etc/openssl/openssl.cnf
/usr/pkg/sbin/mozilla-rootcerts install
git clone https://github.com/bitcoin/bitcoin
echo "export LC_CTYPE=en_US.UTF-8" >> .bash_profile
echo "echo --with-boost-libdir=/usr/pkg/lib --with-gui=no CPPFLAGS=\"-I/usr/pkg/include\" LDFLAGS=\"-L/usr/pkg/lib\"" >> .bash_profile
}
case $1 in
provision)
provision
;;
*)
echo "Usage: netbsd.sh provision"
;;
esac