mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-02 11:43:40 +02:00
Merge branch 'deb-pkg'
This commit is contained in:
commit
5bfd73d5a5
9 changed files with 93 additions and 3 deletions
15
Makefile
15
Makefile
|
|
@ -1,12 +1,21 @@
|
||||||
|
|
||||||
GO=go
|
GO=go
|
||||||
PROGRAM=build/thalos-server
|
PROGRAM=thalos-server
|
||||||
|
PREFIX=/usr/local
|
||||||
|
BINDIR=$(PREFIX)/bin
|
||||||
|
CFGDIR=$(PREFIX)/etc
|
||||||
|
|
||||||
.PHONY: $(PROGRAM) test
|
.PHONY: build test
|
||||||
|
|
||||||
$(PROGRAM) :
|
build: build/$(PROGRAM)
|
||||||
|
|
||||||
|
build/$(PROGRAM) :
|
||||||
$(GO) build -o $@ cmd/main/main.go
|
$(GO) build -o $@ cmd/main/main.go
|
||||||
|
|
||||||
|
install: build
|
||||||
|
install -D build/$(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)
|
||||||
|
install -m 644 -D config.example.yml $(DESTDIR)$(CFGDIR)/thalos/config.yml
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(GO) test -v ./...
|
$(GO) test -v ./...
|
||||||
|
|
||||||
|
|
|
||||||
7
debian/.gitignore
vendored
Normal file
7
debian/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
.debhelper/*
|
||||||
|
*.debhelper
|
||||||
|
*.log
|
||||||
|
*-stamp
|
||||||
|
*.substvars
|
||||||
|
files
|
||||||
|
pkgroot/*
|
||||||
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
thalos-server (0.1.0) bionic focal jammy; urgency=medium
|
||||||
|
|
||||||
|
Initial release.
|
||||||
|
|
||||||
|
-- Henrik Hautakoski <henrik@eossweden.org> Fri, 28 Apr 2023 18:45:10 +0200
|
||||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
10
|
||||||
17
debian/control
vendored
Normal file
17
debian/control
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
Source: thalos-server
|
||||||
|
Section: utils
|
||||||
|
Build-Depends:
|
||||||
|
debhelper (>= 11)
|
||||||
|
Standards-Version: 4.5.0
|
||||||
|
Vcs-Git: https://github.com/eosswedenorg/thalos.git
|
||||||
|
Vcs-Browser: https://github.com/eosswedenorg/thalos
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Henrik Hautakoski <henrik@eossweden.org>
|
||||||
|
|
||||||
|
Package: thalos-server
|
||||||
|
Section: utils
|
||||||
|
Priority: optional
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: redis-server, ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Homepage: https://github.com/eosswedenorg/thalos
|
||||||
|
Description: Stream blockchain data from an Antelope SHIP node with ease.
|
||||||
27
debian/copyright
vendored
Normal file
27
debian/copyright
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: thalos
|
||||||
|
Upstream-Contact: Henrik Hautakoski <henrik@eossweden.org>
|
||||||
|
Source: https://github.com/eosswedenorg/thalos.git
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2020-2022 Sw/eden
|
||||||
|
License: MIT
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
to deal in the Software without restriction, including without limitation
|
||||||
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following conditions:
|
||||||
|
.
|
||||||
|
The above copyright notice and this permission notice shall be included
|
||||||
|
in all copies or substantial portions of the Software.
|
||||||
|
.
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
11
debian/rules
vendored
Executable file
11
debian/rules
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ -P debian/pkgroot
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
dh_auto_build -- GOOS=linux GOBUILDFLAGS="-v --buildmode=pie -ldflags=\"-v -s -w -X main.VersionString=$(DEB_VERSION)\""
|
||||||
|
override_dh_auto_install:
|
||||||
|
dh_auto_install -- PREFIX=/usr CFGDIR=/etc
|
||||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
||||||
12
debian/thalos-server.service
vendored
Normal file
12
debian/thalos-server.service
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Stream blockchain data from an Antelope SHIP node with ease.
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/thalos-server -c /etc/thalos/config.yml
|
||||||
|
ExecReload=kill -HUP $MAINPID
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue