From a3f6a5b2abee70036b7bb6a8797c8cf7a83afcf0 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Wed, 29 Nov 2017 22:43:54 +0000 Subject: [PATCH] Add Debian packaging metadata --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 13 +++++++++++++ debian/copyright | 31 +++++++++++++++++++++++++++++++ debian/rules | 13 +++++++++++++ debian/source/format | 1 + 7 files changed, 101 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f2a019a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,37 @@ + +stages: + - build_src + - build_pkg + - upload + +build:src: + stage: build_src + image: "ai/build:stretch" + script: "build-dsc" + artifacts: + paths: + - build-deb/ + only: + - master + +build:pkg: + stage: build_pkg + image: "ai/build:stretch" + script: "build-deb" + dependencies: + - build:src + artifacts: + paths: + - output-deb/ + only: + - master + +upload:pkg: + stage: upload + image: "ai/pkg:base" + script: "upload-packages -r stretch-ai" + dependencies: + - build:pkg + only: + - master + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..943d7f2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +apache-exporter (0.5.0) unstable; urgency=medium + + * Initial Release. + + -- Autistici/Inventati <debian@autistici.org> Wed, 29 Nov 2017 22:37:11 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c0cbec7 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: apache-exporter +Section: admin +Priority: optional +Maintainer: Autistici/Inventati <debian@autistici.org> +Build-Depends: debhelper (>=9), golang-go, dh-golang +Standards-Version: 3.9.6 + +Package: apache-exporter +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Apache2 Prometheus exporter. + Exports Prometheus metrics from an Apache2 instance. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..75c06b1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: apache_exporter +Source: <https://github.com/Lusitaniae/apache_exporter> + +Files: debian/* +Copyright: 2017 Autistici/Inventati <info@autistici.org> +License: MIT + +Files: * +Copyright: 2015 neezgee +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. + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6d76bc1 --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DH_GOPKG = github.com/Lusitaniae/apache_exporter +export DH_GOLANG_EXCLUDES = vendor + + +%: + dh $@ --with golang --buildsystem golang + +override_dh_install: + rm -fr $(CURDIR)/debian/tmp/usr/share/gocode + dh_install + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- GitLab