summaryrefslogtreecommitdiff
path: root/tools/build-on-openbsd
blob: ca028606f9561d9fedeba29da0c0ab6ae16521e0 (plain)
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
#!/bin/sh

fail() { echo "FAILED:" "$@" 1>&2; exit 1; }

# Check dependencies:
depschecked=/tmp/c-i.dependencieschecked
pkgs="
   bash
   dmidecode
   py3-configobj
   py3-jinja2
   py3-jsonschema
   py3-oauthlib
   py3-requests
   py3-setuptools
   py3-six
   py3-yaml
   sudo--
"
[ -f "$depschecked" ] || pkg_add ${pkgs} || fail "install packages"

touch $depschecked

python3 setup.py build
python3 setup.py install -O1 --distro openbsd --skip-build

echo "Installation completed."