diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..f9d46324531b0902876338b1107955fcb66d43fc --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1 @@ +include: "https://git.autistici.org/ai3/build-deb/raw/master/ci-common.yml" diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..3d3e716261fa38f471c4e47bd995fb176d39b5fd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +jitsi-prometheus-exporter (0.1) unstable; urgency=low + + * Initial Release. + + -- ale <ale@incal.net> Mon, 17 Jan 2021 13:17:23 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000000000000000000000000000000000000..ec635144f60048986bc560c5576355344005e6e7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..460437e1c8795bd9428361bfb39713f133653bed --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: jitsi-prometheus-exporter +Section: admin +Priority: optional +Maintainer: ale <ale@incal.net> +Build-Depends: debhelper (>= 9), dh-golang, golang-any +Standards-Version: 3.9.6 + +Package: jitsi-prometheus-exporter +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Jitsi prometheus exporter + Exports Jitsi usage metrics to Prometheus. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000000000000000000000000000000000..c9e1969d0ac684270a5328992668f803fe0a786d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: jitsi-prometheus-exporter +Source: <url://example.com> + +Files: * +Copyright: 2020 <ale@incal.net> +License: GPL-3.0+ + +Files: debian/* +Copyright: 2017 ale <ale@incal.net> +License: GPL-3.0+ + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/debian/jitsi-prometheus-exporter.service b/debian/jitsi-prometheus-exporter.service new file mode 100644 index 0000000000000000000000000000000000000000..23626de187f72e2aebb67c20296b4443e8e2ce33 --- /dev/null +++ b/debian/jitsi-prometheus-exporter.service @@ -0,0 +1,19 @@ +[Unit] +Description=Jitsi Prometheus exporter + +[Service] +User=nobody +ExecStart=/usr/bin/jitsi-prometheus-exporter +Restart=always +RestartSec=3 + +NoNewPrivileges=yes +PrivateTmp=yes +PrivateDevices=yes +ProtectHome=yes +ProtectSystem=full +ReadOnlyDirectories=/ + +[Install] +WantedBy=multi-user.target + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..50f07cdaaa0cb11620f9ec7d16f057223f79c80f --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +export DH_GOPKG := git.autistici.org/ai3/tools/jitsi-prometheus-exporter + +%: + dh $@ --buildsystem=golang --with=golang --with=systemd + +override_dh_auto_install: + dh_auto_install -- --no-source diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000000000000000000000000000000000..89ae9db8f88b823b6a7eabf55e203658739da122 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/go.mod b/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..aa34d24722f775722023e2d0547bba8f29512a56 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.autistici.org/ai3/tools/jitsi-prometheus-exporter + +go 1.14