zeek/auxil/spicy/ci/prepare_freebsd.sh
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

22 lines
564 B
Bash
Executable File

#!/bin/sh
#
# Copyright (c) 2020-now by the Zeek Project. See LICENSE for details.
echo "Preparing FreeBSD environment"
sysctl hw.model hw.machine hw.ncpu
set -e
set -x
# Detection of whether we run in the build directory requires `/proc`.
echo "proc /proc procfs rw,noauto 0 0" >> /etc/fstab
mount /proc
env ASSUME_ALWAYS_YES=YES pkg bootstrap
pkg install -y bash git cmake flex bison python3 ninja base64 ccache
pyver=$(python3 -c 'import sys; print(f"py{sys.version_info[0]}{sys.version_info[1]}")')
pkg install -y "$pyver"-pip
pip install btest
locale -a