summaryrefslogtreecommitdiff
path: root/prom-exporter-mikrotik
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-08-24 12:30:00 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-08-24 12:30:00 +0200
commit0e1c2632651ed126a0516c4fed141899e9db1d77 (patch)
tree26d3d21d3150c6da44d5f8d43074b428401e8b6b /prom-exporter-mikrotik
parentupdate mikrotik exporter (diff)
make package configs more generic
Diffstat (limited to 'prom-exporter-mikrotik')
-rw-r--r--prom-exporter-mikrotik/Makefile2
-rw-r--r--prom-exporter-mikrotik/debian/install (renamed from prom-exporter-mikrotik/debian/prom-exporter-mikrotik.install)0
-rwxr-xr-xprom-exporter-mikrotik/debian/rules3
3 files changed, 3 insertions, 2 deletions
diff --git a/prom-exporter-mikrotik/Makefile b/prom-exporter-mikrotik/Makefile
index 2322721..8a70254 100644
--- a/prom-exporter-mikrotik/Makefile
+++ b/prom-exporter-mikrotik/Makefile
@@ -1,4 +1,4 @@
-VERSION := 1.0.12~git076990f
+VERSION := "invalid"
#GITHUB_BASEURL := "https://github.com/nshttpd/mikrotik-exporter/releases/download"
GITHUB_BASEURL := "https://build.spreadspace.org/pub/mikrotik-exporter"
diff --git a/prom-exporter-mikrotik/debian/prom-exporter-mikrotik.install b/prom-exporter-mikrotik/debian/install
index efdc2a2..efdc2a2 100644
--- a/prom-exporter-mikrotik/debian/prom-exporter-mikrotik.install
+++ b/prom-exporter-mikrotik/debian/install
diff --git a/prom-exporter-mikrotik/debian/rules b/prom-exporter-mikrotik/debian/rules
index dc2a824..ca84609 100755
--- a/prom-exporter-mikrotik/debian/rules
+++ b/prom-exporter-mikrotik/debian/rules
@@ -1,11 +1,12 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/pkg-info.mk
%:
dh $@
override_dh_auto_configure:
override_dh_auto_build:
- make $(DEB_BUILD_ARCH)/mikrotik_exporter
+ make VERSION=$(DEB_VERSION_UPSTREAM) $(DEB_BUILD_ARCH)/mikrotik_exporter
override_dh_auto_install:
install -d $$(pwd)/debian/tmp/usr/bin/