blob: e136915800d7f6d5415c95c60bdcaf4e638c82df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
%:
dh $@
override_dh_auto_configure:
override_dh_auto_build:
make VERSION=$(DEB_VERSION_UPSTREAM) $(DEB_BUILD_ARCH)/snmp_exporter
override_dh_auto_install:
install -d $$(pwd)/debian/tmp/usr/bin/
install -d $$(pwd)/debian/tmp/etc/prometheus/exporter/snmp
install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/snmp_exporter $$(pwd)/debian/tmp/usr/bin/prometheus-snmp-exporter
install -m 644 $$(pwd)/$(DEB_BUILD_ARCH)/snmp.yml $$(pwd)/debian/tmp/etc/prometheus/exporter/snmp/config-default.yml
override_dh_auto_clean:
make VERSION=$(DEB_VERSION_UPSTREAM) clean
|