This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Linux artifact to Brim releases (#3)
The GitHub workflow for Brim releases now creates a GitHub release with two artifacts: zeek-TAG.darwin-amd64.zip and zeek-TAG.linux-amd64.zip.
- Loading branch information
Showing
3 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,30 @@ | ||
#!/bin/sh -ex | ||
|
||
brew install bison openssl | ||
case $(uname -s) in | ||
Darwin) | ||
goos=darwin | ||
logical_cpus=$(sysctl -n hw.logicalcpu) | ||
brew install bison openssl | ||
;; | ||
Linux) | ||
goos=linux | ||
logical_cpus=$(nproc) | ||
sudo apt-get -y install bison flex libpcap-dev libssl-dev | ||
;; | ||
*) | ||
echo "unknown OS" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
git submodule update --init --recursive | ||
./configure --binary-package --disable-auxtools --disable-broker-tests --disable-python --disable-zeekctl --enable-static-binpac --enable-static-broker | ||
sudo make -C build -j $(sysctl -n hw.logicalcpu) install/strip | ||
sudo make -C build/scripts -j $logical_cpus install/strip | ||
sudo make -C build/src -j $logical_cpus install/strip | ||
mkdir -p zeek/bin && cp /usr/local/zeek/bin/zeek zeek/bin | ||
mkdir -p zeek/share/zeek && cp -R /usr/local/zeek/share/zeek/{base,policy,site} zeek/share/zeek | ||
mkdir -p zeek/share/zeek | ||
for d in base policy site; do | ||
cp -R /usr/local/zeek/share/zeek/$d zeek/share/zeek | ||
done | ||
cp brim/zeek zeek | ||
zip -r zeek-$(git describe --dirty --tags).darwin-amd64.zip zeek | ||
zip -r zeek-$(git describe --dirty --tags).$goos-amd64.zip zeek |