2022-10-13 14:04:18 +00:00
|
|
|
out/osqtool:
|
2022-10-13 13:11:17 +00:00
|
|
|
mkdir -p out
|
2022-10-13 14:04:18 +00:00
|
|
|
GOBIN=$(CURDIR)/out go install github.com/chainguard-dev/osqtool/cmd/osqtool@latest
|
2022-10-13 13:11:17 +00:00
|
|
|
|
2022-10-13 14:04:18 +00:00
|
|
|
out/odk-detection.sql: out/osqtool
|
2022-10-14 14:25:08 +00:00
|
|
|
./out/osqtool --verify pack detection/ > out/odk-detection.conf
|
2022-10-13 13:11:17 +00:00
|
|
|
|
2022-10-13 14:04:18 +00:00
|
|
|
out/odk-policy.sql: out/osqtool
|
2022-10-14 14:25:08 +00:00
|
|
|
./out/osqtool --verify pack policy/ > out/odk-policy.conf
|
2022-10-13 14:04:18 +00:00
|
|
|
|
|
|
|
out/odk-incident_response.sql: out/osqtool
|
2022-10-14 14:25:08 +00:00
|
|
|
./out/osqtool --verify pack incident_response/ > out/odk-incident_response.conf
|
2022-10-13 13:11:17 +00:00
|
|
|
|
|
|
|
packs: out/odk-detection.sql out/odk-policy.sql out/odk-incident_response.sql
|
|
|
|
|
|
|
|
out/odk-packs.zip: packs
|
|
|
|
cd out && zip odk-packs.zip *.conf
|
|
|
|
|
2022-10-14 14:25:08 +00:00
|
|
|
all: out/odk-packs.zip
|