diff -Nru prometheus-mongodb-exporter-1.0.0/debian/changelog prometheus-mongodb-exporter-1.0.0/debian/changelog --- prometheus-mongodb-exporter-1.0.0/debian/changelog 2016-12-16 18:52:32.000000000 +0000 +++ prometheus-mongodb-exporter-1.0.0/debian/changelog 2018-02-10 18:55:52.000000000 +0000 @@ -1,3 +1,21 @@ +prometheus-mongodb-exporter (1.0.0-2) unstable; urgency=medium + + [ Martín Ferrari ] + * Team upload. + * Fix incorrect version on dh-golang dependency. + * debian/control: Update package name for client-golang. + * debian/control: Update Standards-Version (no changes). + * debian/control: Mark package as autopkgtest-able. + * debian/rules: Replace DH_GOPKG with XS-Go-Import-Path. + * Automatic fixes to control and copyright from cme. + * Replace dpkg-parsechangelog with /usr/share/dpkg/pkg-info.mk + + [ Michael Stapelberg ] + * gbp.conf: set debian-branch + * fix build: DEB_SOURCE instead of DEBSOURCE + + -- Michael Stapelberg Sat, 10 Feb 2018 19:55:52 +0100 + prometheus-mongodb-exporter (1.0.0-1) unstable; urgency=medium * debian/control: Fix Vcs-* fields. diff -Nru prometheus-mongodb-exporter-1.0.0/debian/control prometheus-mongodb-exporter-1.0.0/debian/control --- prometheus-mongodb-exporter-1.0.0/debian/control 2016-12-16 18:52:32.000000000 +0000 +++ prometheus-mongodb-exporter-1.0.0/debian/control 2018-02-10 18:55:52.000000000 +0000 @@ -1,20 +1,24 @@ Source: prometheus-mongodb-exporter -Section: net -Priority: extra Maintainer: Debian Go Packaging Team Uploaders: Martín Ferrari -Build-Depends: debhelper (>= 9.0.0), dh-golang (>= 0.17~), golang-any, +Section: net +Priority: extra +Build-Depends: debhelper (>= 9.0.0), + dh-golang (>= 1.17~), + golang-any, + golang-github-prometheus-client-golang-dev, golang-glog-dev, golang-gopkg-mgo.v2-dev, - golang-prometheus-client-dev, -Standards-Version: 3.9.8 -Vcs-Git: https://anonscm.debian.org/git/pkg-go/packages/prometheus-mongodb-exporter.git +Standards-Version: 4.1.0 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/prometheus-mongodb-exporter.git +Vcs-Git: https://anonscm.debian.org/git/pkg-go/packages/prometheus-mongodb-exporter.git Homepage: https://github.com/dcu/mongodb_exporter +Testsuite: autopkgtest-pkg-go +XS-Go-Import-Path: github.com/dcu/mongodb_exporter Package: prometheus-mongodb-exporter Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, daemon +Depends: daemon, ${misc:Depends}, ${shlibs:Depends} Built-Using: ${misc:Built-Using} Description: Prometheus exporter for MongoDB Prometheus exporter for MongoDB, written in Go. diff -Nru prometheus-mongodb-exporter-1.0.0/debian/copyright prometheus-mongodb-exporter-1.0.0/debian/copyright --- prometheus-mongodb-exporter-1.0.0/debian/copyright 2016-12-16 18:52:32.000000000 +0000 +++ prometheus-mongodb-exporter-1.0.0/debian/copyright 2018-02-10 18:55:52.000000000 +0000 @@ -1,16 +1,16 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: github.com/dcu/mongodb_exporter Source: https://github.com/dcu/mongodb_exporter Files: * Copyright: 2015 David Cuadrado -License: MIT +License: Expat Files: debian/* Copyright: 2015 Martín Ferrari -License: MIT +License: Expat -License: MIT +License: Expat 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 diff -Nru prometheus-mongodb-exporter-1.0.0/debian/dirs prometheus-mongodb-exporter-1.0.0/debian/dirs --- prometheus-mongodb-exporter-1.0.0/debian/dirs 2016-12-16 18:52:32.000000000 +0000 +++ prometheus-mongodb-exporter-1.0.0/debian/dirs 2018-02-10 18:55:52.000000000 +0000 @@ -1,3 +1,3 @@ +usr/bin var/lib/prometheus var/log/prometheus -usr/bin diff -Nru prometheus-mongodb-exporter-1.0.0/debian/gbp.conf prometheus-mongodb-exporter-1.0.0/debian/gbp.conf --- prometheus-mongodb-exporter-1.0.0/debian/gbp.conf 1970-01-01 00:00:00.000000000 +0000 +++ prometheus-mongodb-exporter-1.0.0/debian/gbp.conf 2018-02-10 18:55:52.000000000 +0000 @@ -0,0 +1,2 @@ +[DEFAULT] +debian-branch = debian/sid diff -Nru prometheus-mongodb-exporter-1.0.0/debian/rules prometheus-mongodb-exporter-1.0.0/debian/rules --- prometheus-mongodb-exporter-1.0.0/debian/rules 2016-12-16 18:52:32.000000000 +0000 +++ prometheus-mongodb-exporter-1.0.0/debian/rules 2018-02-10 18:55:52.000000000 +0000 @@ -1,24 +1,14 @@ #!/usr/bin/make -f +include /usr/share/dpkg/pkg-info.mk export DH_VERBOSE=1 -export DH_GOPKG := github.com/dcu/mongodb_exporter export DH_GOLANG_INSTALL_EXTRA := collector/fixtures -BUILDDIR := build - -DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') -VERSION ?= $(shell echo '$(DEBVERS)' | sed 's/^[[:digit:]]*://; s/[-].*//') -DEBPKGNAME ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Source: //p') +BUILDDIR := $(CURDIR)/build %: dh $@ --buildsystem=golang --with=golang --builddir=$(BUILDDIR) override_dh_auto_install: cp -v $(BUILDDIR)/bin/mongodb_exporter \ - debian/$(DEBPKGNAME)/usr/bin/$(DEBPKGNAME) - -gen-orig-tgz: - if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.gz ] ; then \ - git archive --format=tar.gz --prefix=$(DEBPKGNAME)-$(VERSION)/ \ - upstream/$(VERSION) >../$(DEBPKGNAME)_$(VERSION).orig.tar.gz ; \ - fi + debian/$(DEB_SOURCE)/usr/bin/$(DEB_SOURCE)