diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..397ab0e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +pg-wait-sampling (1.1.1-1) unstable; urgency=medium + + * Release 1.1.1 + + -- Adrien Nayrat Wed, 17 Jun 2020 12:26:59 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3341707 --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: pg-wait-sampling +Section: database +Priority: optional +Maintainer: Adrien Nayrat +Standards-Version: 4.5.0 +Build-Depends: debhelper (>=9~), postgresql-server-dev-all (>= 141~) +Homepage: https://github.com/postgrespro/pg_wait-sampling +Vcs-Browser: https://github.com/postgrespro/pg_wait-sampling +Vcs-Git: https://github.com/postgrespro/pg_wait-sampling.git + +Package: postgresql-9.6-pg-wait-sampling +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.6, +Description: pg_wait-sampling provides functions for detailed per backend + and per query statistics about PostgreSQL wait events + +Package: postgresql-10-pg-wait-sampling +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-10, +Description: pg_wait-sampling provides functions for detailed per backend + and per query statistics about PostgreSQL wait events + +Package: postgresql-11-pg-wait-sampling +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-11, +Description: pg_wait-sampling provides functions for detailed per backend + and per query statistics about PostgreSQL wait events + +Package: postgresql-12-pg-wait-sampling +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-12, +Description: pg_wait-sampling provides functions for detailed per backend + and per query statistics about PostgreSQL wait events diff --git a/debian/control.in b/debian/control.in new file mode 100644 index 0000000..3dc1b57 --- /dev/null +++ b/debian/control.in @@ -0,0 +1,15 @@ +Source: pg-wait-sampling +Section: database +Priority: optional +Maintainer: Adrien Nayrat +Standards-Version: 4.5.0 +Build-Depends: debhelper (>=9~), postgresql-server-dev-all (>= 141~) +Homepage: https://github.com/postgrespro/pg_wait-sampling +Vcs-Browser: https://github.com/postgrespro/pg_wait-sampling +Vcs-Git: https://github.com/postgrespro/pg_wait-sampling.git + +Package: postgresql-PGVERSION-pg-wait-sampling +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-PGVERSION, +Description: pg_wait-sampling provides functions for detailed per backend + and per query statistics about PostgreSQL wait events diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c68d0d1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,11 @@ +pg_wait_sampling is released under the PostgreSQL License, a liberal Open Source license, similar to the BSD or MIT licenses. + +Copyright (c) 2015-2017, Postgres Professional +Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group +Portions Copyright (c) 1994, The Regents of the University of California + +Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. + +IN NO EVENT SHALL POSTGRES PROFESSIONAL BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF POSTGRES PROFESSIONAL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +POSTGRES PROFESSIONAL SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND POSTGRES PROFESSIONAL HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. diff --git a/debian/pgversions b/debian/pgversions new file mode 100644 index 0000000..7e9cdc1 --- /dev/null +++ b/debian/pgversions @@ -0,0 +1 @@ +9.6+ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..da410f6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +PKGVER = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Version:/ { print substr($$2, 2) }') +EXCLUDE = --exclude-vcs --exclude=debian + +include /usr/share/postgresql-common/pgxs_debian_control.mk + +override_dh_auto_build: + # do nothing + +override_dh_auto_test: + # nothing to do here, upstream tests used, see debian/tests/* + +override_dh_auto_install: + # build all supported versions + +pg_buildext loop postgresql-%v-pg-wait-sampling + +override_dh_installdocs: + dh_installdocs --all README.md + +override_dh_auto_clean: + $(MAKE) clean USE_PGXS=1 PG_CONFIG=/usr/bin/pg_config + +orig: debian/control clean + cd .. && tar czf pg-wait-sampling_$(PKGVER).orig.tar.gz $(EXCLUDE) pg_wait_sampling-$(PKGVER) +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..b0dc4e8 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Depends: @, postgresql-server-dev-all +Tests: installcheck +Restrictions: allow-stderr diff --git a/debian/tests/installcheck b/debian/tests/installcheck new file mode 100755 index 0000000..432cb15 --- /dev/null +++ b/debian/tests/installcheck @@ -0,0 +1,5 @@ +#!/bin/sh + +set -eu + +pg_buildext -o "shared_preload_libraries=pg_wait_sampling" installcheck diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..38c54ed --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/_/./g" \ + https://github.com/postgrespro/pg_wait_sampling/releases .*/archive/v(.*).tar.gz