Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jun 23, 2023
1 parent 19a8df6 commit 127ec6b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ mkdir -p plugins/osquery
wget https://github.com/osquery/osquery/releases/download/5.8.2/osquery-5.8.2.windows_x86_64.zip
unzip osquery-5.8.2.windows_x86_64.zip
cp "osquery-5.8.2.windows_x86_64/Program Files/osquery/osqueryi.exe" plugins/osquery/osqueryi-windows-amd64.exe
upx -1 plugins/osquery/osqueryi-windows-amd64.exe
upx -9 plugins/osquery/osqueryi-windows-amd64.exe
sha256sum plugins/osquery/osqueryi-windows-amd64.exe > plugins/osquery/osqueryi-windows-amd64.exe.sha256
rm -rf osquery-5.8.2.windows_x86_64
rm osquery-5.8.2.windows_x86_64.zip

wget https://github.com/osquery/osquery/releases/download/5.8.2/osquery-5.8.2_1.linux_x86_64.tar.gz
tar -xvf osquery-5.8.2_1.linux_x86_64.tar.gz
cp opt/osquery/bin/osqueryd plugins/osquery/osqueryi-linux-amd64
upx -1 plugins/osquery/osqueryi-linux-amd64
upx -9 plugins/osquery/osqueryi-linux-amd64
sha256sum plugins/osquery/osqueryi-linux-amd64 > plugins/osquery/osqueryi-linux-amd64.sha256
rm -rf etc usr var opt
rm osquery-5.8.2_1.linux_x86_64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/cargo-auditable/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH := $(PATH):/usr/local/go/bin:$HOME/go/bin:
appname := cargo-auditable-cdxgen
sources := main.go

build = CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro" -o build/$(appname)-$(1)-$(2)$(3) && upx -1 build/$(appname)-$(1)-$(2)$(3)
build = CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro" -o build/$(appname)-$(1)-$(2)$(3) && upx -9 build/$(appname)-$(1)-$(2)$(3)
sha = cd build && sha256sum $(appname)-$(1)-$(2)$(3) > $(appname)-$(1)-$(2)$(3).sha256

.PHONY: all windows darwin linux clean
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/goversion/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH := $(PATH):/usr/local/go/bin:$HOME/go/bin:
appname := goversion
sources := version.go exe.go xcoff.go file.go

build = CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro" -o build/$(appname)-$(1)-$(2)$(3) && upx -1 build/$(appname)-$(1)-$(2)$(3)
build = CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro" -o build/$(appname)-$(1)-$(2)$(3) && upx -9 build/$(appname)-$(1)-$(2)$(3)
sha = cd build && sha256sum $(appname)-$(1)-$(2)$(3) > $(appname)-$(1)-$(2)$(3).sha256

.PHONY: all windows darwin linux clean
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/trivy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH := $(PATH):/usr/local/go/bin:$HOME/go/bin:
appname := trivy-cdxgen
sources := main.go

build = CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro" -o build/$(appname)-$(1)-$(2)$(3) && upx -1 build/$(appname)-$(1)-$(2)$(3)
build = CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro" -o build/$(appname)-$(1)-$(2)$(3) && upx -9 build/$(appname)-$(1)-$(2)$(3)
sha = cd build && sha256sum $(appname)-$(1)-$(2)$(3) > $(appname)-$(1)-$(2)$(3).sha256

.PHONY: all windows darwin linux clean
Expand Down

0 comments on commit 127ec6b

Please sign in to comment.