diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..2365a55 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,7 @@ +.debhelper/* +*.debhelper +*.log +*-stamp +*.substvars +files +pkgroot/* \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5f91fe8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +thalos-server (0.1.0) bionic focal jammy; urgency=medium + + Initial release. + + -- Henrik Hautakoski Fri, 28 Apr 2023 18:45:10 +0200 \ No newline at end of file diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..9a03714 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 \ No newline at end of file diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2ae865f --- /dev/null +++ b/debian/control @@ -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 + +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. \ No newline at end of file diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e4476cf --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: thalos +Upstream-Contact: Henrik Hautakoski +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. \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7310bc1 --- /dev/null +++ b/debian/rules @@ -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 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..9f67427 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) \ No newline at end of file diff --git a/debian/thalos-server.service b/debian/thalos-server.service new file mode 100644 index 0000000..68e0bb1 --- /dev/null +++ b/debian/thalos-server.service @@ -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 \ No newline at end of file