Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
OS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
ARCH = $(shell uname -m)
VERSION = $(shell cat RMD_VERSION)
RMD_VERSION = $(shell cat RMD_VERSION | sed -e 's/^v//')
OUTPUT_DIR=build/$(OS)/$(ARCH)
RMD_DIR = rmd-$(RMD_VERSION)
Expand Down Expand Up @@ -35,16 +36,6 @@ install: build
cp $(OUTPUT_DIR)/rmd $(DESTDIR)/usr/bin/rmd
cp $(OUTPUT_DIR)/gen_conf $(DESTDIR)/usr/bin/gen_conf
bash -c "./scripts/install.sh --skip-pam-userdb"
package:
mkdir -p RMD_DIR
rsync -avr --exclude=$(RMD_DIR),.git,build * $(RMD_DIR)
tar -zcvf $(RMD_DIR).tar.gz $(RMD_DIR)/
rm -rf $(RMD_DIR)/
rpmdev-setuptree
cp packaging/rmd.spec $(HOME)/rpmbuild/SPECS
mv $(RMD_DIR).tar.gz $(HOME)/rpmbuild/SOURCES
bash -c "./packaging/download_extra_packages.sh $(PWD)/packages/ $(HOME)/rpmbuild/SOURCES"
rpmbuild -ba $(HOME)/rpmbuild/SPECS/rmd.spec
docker:
@docker build -t rmd .
clean:
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ require (
github.com/smartystreets/goconvey v1.6.4
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.7.0
github.com/streadway/amqp v1.0.0
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v0.0.0-20170721134547-ae643c872d2c // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
Expand All @@ -40,4 +41,5 @@ require (
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/gavv/httpexpect.v1 v1.0.0-20170328075429-d852bb8255b6
gopkg.in/yaml.v2 v2.3.0
)
Loading