Add debian build

Signed-off-by: pcdummy <pcdummy@ThinkPad-T410.pcdummy.lan>
master
René Jochum 4 years ago
parent 086f1c8daf
commit 904fbd948f

5
debian/changelog vendored

@ -0,0 +1,5 @@
lql-api (0.0~git20200929.ca3764e-1) UNRELEASED; urgency=medium
* Initial release (Closes: TODO)
-- Webmeisterei Support <support@webmeisterei.com> Tue, 29 Sep 2020 23:34:46 +0200

42
debian/control vendored

@ -0,0 +1,42 @@
Source: lql-api
Maintainer: Webmeisterei Support <support@webmeisterei.com>
Uploaders: Webmeisterei Support <support@webmeisterei.com>
Section: devel
Testsuite: autopkgtest-pkg-go
Priority: optional
Build-Depends: debhelper-compat (= 12),
dh-golang,
golang-any,
golang-github-abbot-go-http-auth-dev,
golang-github-gin-contrib-cors-dev,
golang-github-gin-gonic-gin-dev,
golang-github-spf13-cobra-dev,
golang-github-stretchr-testify-dev,
golang-golang-x-crypto-dev,
golang-logrus-dev
Standards-Version: 4.5.0
Vcs-Browser: https://github.com/webmeisterei/lql_api
Vcs-Git: https://github.com/webmeisterei/lql_api.git
Homepage: https://github.com/webmeisterei/lql_api
Rules-Requires-Root: no
XS-Go-Import-Path: github.com/webmeisterei/lql_api
Package: lql-api
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends}
Built-Using: ${misc:Built-Using}
Description: LQL API Server for check_mk (program)
LQL API Server for check_mk
.
See the LQL Docs (https://checkmk.com/cms_livestatus.html) for what LQL
can do for you. Commands the client supportslocalclient - Local LQL
Client requires a local lql unix socket localserver: Local LQL Server
requires a local lql unix socket sshclient: SSH LQL Client connects to
your Server by SSH opens a SSH tunnel to the server's lql Socket and
runs a query on it. sshserver: SSH LQL Server Connects to your Server
by SSH opens a SSH tunnel to the server's lql Socket and runs an API
Server for that socket. Version Prints the version OpenAPI 3.0 Support
in sshserver and localserver This support's OpenAPI 3.0 use the url
http://localhost:8080/openapi.json and browse it over an OpenAPI browser.
License MIT - Copyright 2020 by Webmeisterei GmbH

16
debian/copyright vendored

@ -0,0 +1,16 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lql_api
Upstream-Contact: support@webmeisterei.com
Source: https://github.com/webmeisterei/lql_api
Files: *
Copyright: 2020 Webmeisterei GmbH - Büro für Netzfragen
License: Expat
Files: debian/*
Copyright: 2020 Webmeisterei GmbH - Büro für Netzfragen
License: Expat
Comment: Debian packaging is licensed under the same terms as upstream
License: Expat
TODO

3
debian/gbp.conf vendored

@ -0,0 +1,3 @@
[DEFAULT]
debian-branch = debian/sid
dist = DEP14

@ -0,0 +1,26 @@
# auto-generated, DO NOT MODIFY.
# The authoritative copy of this file lives at:
# https://salsa.debian.org/go-team/ci/blob/master/config/gitlabciyml.go
image: stapelberg/ci2
test_the_archive:
artifacts:
paths:
- before-applying-commit.json
- after-applying-commit.json
script:
# Create an overlay to discard writes to /srv/gopath/src after the build:
- "rm -rf /cache/overlay/{upper,work}"
- "mkdir -p /cache/overlay/{upper,work}"
- "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src"
- "export GOPATH=/srv/gopath"
- "export GOCACHE=/cache/go"
# Build the world as-is:
- "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json"
# Copy this package into the overlay:
- "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'"
- "pgt-gopath -dsc /tmp/export/*.dsc"
# Rebuild the world:
- "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json"
- "ci-diff before-applying-commit.json after-applying-commit.json"

8
debian/rules vendored

@ -0,0 +1,8 @@
#!/usr/bin/make -f
%:
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
override_dh_auto_install:
dh_auto_install -- --no-source
dh_installsystemd no-start

@ -0,0 +1 @@
3.0 (quilt)

11
debian/watch vendored

@ -0,0 +1,11 @@
version=4
opts="mode=git, pgpmode=none" \
https://github.com/webmeisterei/lql_api.git \
HEAD debian
# Use the following when upstream starts to tag releases:
#
#version=4
#opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%lql-api-$1.tar.gz%,\
# uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/" \
# https://github.com/webmeisterei/lql_api/tags .*/v?(\d\S*)\.tar\.gz debian
Loading…
Cancel
Save