mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00

This exposes Broker's new WebSocket support in Zeek. To enable it, call `Broker::listen_websocket()`. Zeek will then start listening on port 9997 for incoming WebSocket connections. See the Broker documentation for a description of the message format expected over these WebSocket connections.
18 lines
534 B
Bash
Executable file
18 lines
534 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo "Preparing FreeBSD environment"
|
|
sysctl hw.model hw.machine hw.ncpu
|
|
set -e
|
|
set -x
|
|
|
|
env ASSUME_ALWAYS_YES=YES pkg bootstrap
|
|
pkg install -y bash git cmake swig bison python3 base64 flex ccache
|
|
pkg upgrade -y curl
|
|
pyver=$(python3 -c 'import sys; print(f"py{sys.version_info[0]}{sys.version_info[1]}")')
|
|
pkg install -y $pyver-sqlite3 $pyver-pip
|
|
|
|
python -m pip install websockets junit2html
|
|
|
|
# Spicy detects whether it is run from build directory via `/proc`.
|
|
echo "proc /proc procfs rw,noauto 0 0" >>/etc/fstab
|
|
mount /proc
|