-
Notifications
You must be signed in to change notification settings - Fork 11
/
ci-update-freebsd
executable file
·93 lines (84 loc) · 2.12 KB
/
ci-update-freebsd
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/citbash
# ENTRY POINT (old / done)
set -e
source $CITHOME/ci-update-libs
$CITHOME/ci-update-common
# stable release update
if [ -z "$1" ]; then
freebsd-update --not-running-from-cron fetch
freebsd-update --not-running-from-cron install || true
else
# devel does not have NODE_NAME set
NODE_NAME=freebsd-devel-x86-64.ci.kronosnet.org
fi
case "${NODE_NAME}" in
*13*|*14*|*devel*)
pyver=311
;;
esac
required_pkg asciidoc
required_pkg autoconf
required_pkg automake
required_pkg autotools
required_pkg bison
required_pkg byacc
required_pkg bzip2
required_pkg check
required_pkg cmocka
required_pkg curl
required_pkg dbus
required_pkg docbook-xsl
required_pkg doxygen
required_pkg e2fsprogs-libuuid
required_pkg flex
required_pkg flock
required_pkg gettext
required_pkg gettext-tools
required_pkg git
required_pkg gcc
required_pkg getopt
required_pkg glib
required_pkg gmake
required_pkg gnutls
required_pkg groff
required_pkg gsnmp
required_pkg help2man
required_pkg jq
required_pkg libgcrypt
required_pkg libltdl
required_pkg liblz4
required_pkg libqb
required_pkg libxml2
required_pkg libxslt
required_pkg lzma
required_pkg lzo2
required_pkg ncurses
required_pkg nss
required_pkg openipmi
required_pkg p5-Locale-gettext
required_pkg pkgconf
required_pkg py${pyver}-boto3
required_pkg py${pyver}-google-api-python-client
required_pkg py${pyver}-keystoneauth1
required_pkg py${pyver}-pexpect
required_pkg py${pyver}-psutil
required_pkg py${pyver}-pycurl
required_pkg py${pyver}-python-keystoneclient
required_pkg py${pyver}-python-novaclient
required_pkg py${pyver}-requests
required_pkg py${pyver}-suds
required_pkg rsync
required_pkg zstd
if [ -n "$RUSTBINDINGS" ] && [ "$RUSTBINDINGS" = yes ]; then
required_pkg rust
required_pkg rust-bindgen-cli
fi
optional_pkg net-snmp
pkg upgrade -y
pkg install -y $REQUIRED_PKGS
for PKG in $OPTIONAL_PKGS; do pkg install -y $PKG || true; done
pkg clean -a -y
pkg autoremove -y
find /var/db/freebsd-update/files -name "*.gz" -exec rm -f {} \;
getent group haclient >/dev/null || pw groupadd haclient
getent passwd hacluster >/dev/null || pw useradd hacluster -g haclient -s /nonexistent -c "cluster user"