From 36ca809e4a5cbbf27f377fb4c8346d4022765bd5 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Tue, 2 Apr 2019 10:21:26 +0700 Subject: [PATCH] Add commands to generate rpm/deb --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile b/Makefile index 20c9538..a663ea9 100644 --- a/Makefile +++ b/Makefile @@ -93,3 +93,20 @@ replay: bash: $(RUN) /bin/bash + + +FPMCOMMON= \ + --name goreplay \ + --description "GoReplay is an open-source network monitoring tool which can record your live traffic, and use it for shadowing, load testing, monitoring and detailed analysis." \ + -v $(VERSION) \ + --vendor "Leonid Bugaev" \ + -m "" \ + --url "https://goreplay.org" \ + -s dir \ + -C /tmp/gor-build \ + +build_packages: + mkdir -p /tmp/gor-build + go build -i -o /tmp/gor-build/gor + fpm $(FPMCOMMON) -a amd64 -t deb ./=/usr/local/bin + fpm $(FPMCOMMON) -a amd64 -t rpm ./=/usr/local/bin