Files
blockfast/Makefile
T
Pierre Dubouilh e3211d8c8e switch to ipset-sys
it's a perf boost, but we drastically reduce portability
as it will drag a libipset and a libc dependency along.
2022-08-03 01:25:01 +02:00

29 lines
669 B
Makefile

build::
cargo build
cargo clippy
cargo fmt
run:: build
sudo target/debug/blockfast -s=/tmp/sshdtest -c=/tmp/clftest
watch::
ls src/*.rs | entr -rc -- make run
test::
cargo test
watch-test::
ls src/*.rs | entr -rc -- make test
release::
cargo build --target x86_64-unknown-linux-musl --release
ci:: test
cargo fmt --all -- --check
cargo clippy -- -D warnings
hit-sshd-bad::
echo "Sep 26 06:26:14 livecompute sshd[23292]: pam_unix(sshd:auth): authentication failure; logname= u =0 tty=ssh ruser= rhost=5.101.107.191" >> /tmp/sshdtest
hit-clftest-bad::
echo "8.8.8.8 - p [25/Sep/2021:13:49:56 +0200] \"POST /some/rpc HTTP/2.0\" 200 923" >> /tmp/clftest