Skip to content

Debian packaging #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pg-wait-sampling (1.1.1-1) unstable; urgency=medium

* Release 1.1.1

-- Adrien Nayrat <[email protected]> Wed, 17 Jun 2020 12:26:59 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
33 changes: 33 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Source: pg-wait-sampling
Section: database
Priority: optional
Maintainer: Adrien Nayrat <[email protected]>
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
15 changes: 15 additions & 0 deletions debian/control.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Source: pg-wait-sampling
Section: database
Priority: optional
Maintainer: Adrien Nayrat <[email protected]>
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
11 changes: 11 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions debian/pgversions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9.6+
27 changes: 27 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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 $@
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
3 changes: 3 additions & 0 deletions debian/tests/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Depends: @, postgresql-server-dev-all
Tests: installcheck
Restrictions: allow-stderr
5 changes: 5 additions & 0 deletions debian/tests/installcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -eu

pg_buildext -o "shared_preload_libraries=pg_wait_sampling" installcheck
3 changes: 3 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version=3
opts="uversionmangle=s/_/./g" \
https://github.com/postgrespro/pg_wait_sampling/releases .*/archive/v(.*).tar.gz