1
0
Fork 0
mirror of https://github.com/eosswedenorg/eth-healthcheck synced 2026-06-20 09:56:51 +02:00

Inital Commit

This commit is contained in:
Henrik Hautakoski 2021-08-13 12:59:22 +02:00
commit 0d27205c7c
15 changed files with 472 additions and 0 deletions

25
Makefile Normal file
View file

@ -0,0 +1,25 @@
GO = go
GOCCFLAGS = -v
GOLDFLAGS = -ldflags="-s -w"
PREFIX = /usr/local
PROGRAM_NAME=eth-healthcheck
SOURCES=src/cmd/main.go
all: build
build: build/$(PROGRAM_NAME)
build/$(PROGRAM_NAME) : $(SOURCES)
$(GO) build -o $@ $(GOCCFLAGS) $(GOLDFLAGS) $^
pkg_info :
echo PACKAGE_NAME=\"$(PROGRAM_NAME)\" "\n"\
PACKAGE_DESCRIPTION=\"HAproxy healthcheck program for Etherium nodes.\" "\n"\
PACKAGE_VERSION=\"0.1.0\" "\n"\
PACKAGE_PREFIX=\"$(PREFIX:/%=%)\" "\n"\
PACKAGE_PROGRAM=\"$(PROGRAM_NAME)\" > build/pkg_info
package : build pkg_info
package_deb: package
./scripts/pkg.sh deb $(realpath build)