--- pmm-client-1.17.1.orig/build/Makefile
+++ pmm-client-1.17.1/build/Makefile
@@ -0,0 +1,28 @@
+all: test
+
+PACKAGES := ./...
+
+init:
+	go get -u github.com/AlekSi/gocoverutil
+	go get -u gopkg.in/alecthomas/gometalinter.v1
+	gometalinter.v1 --install
+
+install:
+	go install -v $(PACKAGES)
+	go test -v -i $(PACKAGES)
+
+install-race:
+	go install -v -race $(PACKAGES)
+	go test -v -race -i $(PACKAGES)
+
+test:
+	go test -v $(PACKAGES)
+
+test-race: install-race
+	go test -v -race $(PACKAGES)
+
+test-race-cover: install
+	gocoverutil test -v -race $(PACKAGES)
+
+check: install
+	-gometalinter.v1 --tests --skip=api --deadline=180s ./...
--- pmm-client-1.17.1.orig/debian/changelog
+++ pmm-client-1.17.1/debian/changelog
@@ -0,0 +1,9 @@
+pmm-client (1.17.1-1) unstable; urgency=medium
+
+  * Update to new upstream release PMM-client 1.17.1-1
+
+ -- root <root@559c9a6b6585>  Mon, 18 Feb 2019 09:18:50 +0000
+
+pmm-client (1.17.1) unstable; urgency=low
+  * Initial Release.
+ -- EvgeniyPatlan <evgeniy.patlan@percona.com> Mon, 18 Feb 2019 09:18:50 +0000
--- pmm-client-1.17.1.orig/debian/compat
+++ pmm-client-1.17.1/debian/compat
@@ -0,0 +1 @@
+8
--- pmm-client-1.17.1.orig/debian/control
+++ pmm-client-1.17.1/debian/control
@@ -0,0 +1,16 @@
+Source: pmm-client
+Section: utils
+Priority: optional
+Maintainer: Percona LLC
+Version: 1.17.1-1
+Homepage: https://percona.com
+
+Package: pmm-client
+Architecture: amd64
+Description: Percona Monitoring and Management Client
+ Percona Monitoring and Management (PMM) is an open-source platform for managing and monitoring MySQL and MongoDB
+ performance. It is developed by Percona in collaboration with experts in the field of managed database services,
+ support and consulting.
+ PMM is a free and open-source solution that you can run in your own environment for maximum security and reliability.
+ It provides thorough time-based analysis for MySQL and MongoDB servers to ensure that your data works as efficiently
+ as possible.
--- pmm-client-1.17.1.orig/debian/copyright
+++ pmm-client-1.17.1/debian/copyright
@@ -0,0 +1,5 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pmm-client
+
+Files: *
+License: AGPLv3
--- pmm-client-1.17.1.orig/debian/install
+++ pmm-client-1.17.1/debian/install
@@ -0,0 +1,13 @@
+pmm-admin /usr/sbin/
+node_exporter /usr/local/percona/pmm-client/
+mysqld_exporter /usr/local/percona/pmm-client/
+postgres_exporter /usr/local/percona/pmm-client/
+mongodb_exporter /usr/local/percona/pmm-client/
+proxysql_exporter /usr/local/percona/pmm-client/
+pt-summary /usr/local/percona/qan-agent/bin/
+pt-mysql-summary /usr/local/percona/qan-agent/bin/
+pt-mongodb-summary /usr/local/percona/qan-agent/bin/
+percona-qan-agent /usr/local/percona/qan-agent/bin/
+percona-qan-agent-installer /usr/local/percona/qan-agent/bin/
+queries-mysqld.yml /usr/local/percona/pmm-client/
+example.prom /usr/local/percona/pmm-client/textfile-collector/
--- pmm-client-1.17.1.orig/debian/postinst
+++ pmm-client-1.17.1/debian/postinst
@@ -0,0 +1,39 @@
+#!/bin/bash
+if [ -d /etc/init.d ]; then
+    for file in $(find -L /etc/init.d -maxdepth 1 -name "pmm-*")
+    do
+        sed -i 's:for i in {1..10}:for i in $(seq 1 10):' "$file"
+        sed -i 's|^name=$(basename $0)|name=$(basename $(readlink -f $0))|' "$file"
+    done
+fi
+if [ -d /etc/systemd/system ]; then
+    for file in $(find -L /etc/systemd/system -maxdepth 1 -name "pmm-*")
+    do
+        network_exists=$(grep -c "network.target" "$file")
+        if [ $network_exists = 0 ]; then
+            sed -i 's/Unit]/Unit]\nAfter=network.target\nAfter=syslog.target/' "$file"
+        fi
+    done
+fi
+if [ -d /etc/init.d ]; then
+    for file in $(find -L /etc/init.d -maxdepth 1 -name "pmm-linux-metrics*")
+    do
+        sed -i  "s/,meminfo_numa/,meminfo_numa,textfile/" "$file"
+    done
+fi
+if [ -d /etc/init ]; then
+    for file in $(find -L /etc/init -maxdepth 1 -name "pmm-linux-metrics*")
+    do
+        sed -i  "s/,meminfo_numa/,meminfo_numa,textfile/" "$file"
+    done
+fi
+if [ -d /etc/systemd/system ]; then
+    for file in $(find -L /etc/systemd/system -maxdepth 1 -name "pmm-linux-metrics*")
+    do
+        sed -i  "s/,meminfo_numa/,meminfo_numa,textfile/" "$file"
+    done
+fi
+pmm-admin ping > /dev/null
+if [ $? = 0 ]; then
+    pmm-admin restart --all
+fi
--- pmm-client-1.17.1.orig/debian/postrm
+++ pmm-client-1.17.1/debian/postrm
@@ -0,0 +1,7 @@
+#!/bin/bash
+# uninstall
+if [ "$1" = "remove" ]; then
+    rm -rf /usr/local/percona/pmm-client
+    rm -rf /usr/local/percona/qan-agent
+    echo "Uninstall complete."
+fi
--- pmm-client-1.17.1.orig/debian/prerm
+++ pmm-client-1.17.1/debian/prerm
@@ -0,0 +1,5 @@
+#!/bin/bash
+# uninstall
+if [ "$1" = "remove" ]; then
+    pmm-admin uninstall
+fi
--- pmm-client-1.17.1.orig/debian/rules
+++ pmm-client-1.17.1/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+export DH_VERBOSE=1
+export CFLAGS=
+export CXXFLAGS=
+
+TMP=$(CURDIR)/debian/tmp/
+TMPD=$(CURDIR)/debian/tmp-debug/
+prefix=/usr
+ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ARCH_OS = $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
+NCPU = $(shell grep -c processor /proc/cpuinfo)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+
+DEB_SOURCE_PACKAGE ?= $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
+DEB_VERSION ?= $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
+DEB_NOEPOCH_VERSION ?= $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+DEB_UPSTREAM_VERSION ?= $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
+DEB_UPSTREAM_VERSION_MAJOR_MINOR := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r -n 's/^([0-9]+\.[0-9]+).*/\1/p')
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+DISTRIBUTION = $(shell lsb_release -i -s)
+DISTRELEASE = $(shell lsb_release -c -s)
+
+override_dh_usrlocal:
+	dh $@
+
+override_dh_auto_install:
+	@echo "RULES.$@"
+	mkdir -p $(TMP)
+	cp distro/pmm-admin $(TMP)/pmm-admin
+	cp -f distro/node_exporter $(TMP)/node_exporter
+	cp -f distro/mysqld_exporter $(TMP)/mysqld_exporter
+	cp -f distro/postgres_exporter $(TMP)/postgres_exporter
+	cp -f distro/mongodb_exporter $(TMP)/mongodb_exporter
+	cp -f distro/proxysql_exporter $(TMP)/proxysql_exporter
+	cp -f distro/percona-qan-agent $(TMP)/percona-qan-agent
+	cp -f distro/pt-summary $(TMP)/pt-summary
+	cp -f distro/pt-mysql-summary $(TMP)/pt-mysql-summary
+	cp -f distro/pt-mongodb-summary $(TMP)/pt-mongodb-summary
+	cp -f distro/percona-qan-agent-installer $(TMP)/percona-qan-agent-installer
+	install -m 0644 queries-mysqld.yml $(TMP)/queries-mysqld.yml
+	install -m 0755 example.prom $(TMP)/example.prom
