-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from vorsel/master
Issue - (#14): PG-80 packaging for pg_stat_monitor
- Loading branch information
Showing
11 changed files
with
635 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
percona-pg-stat-monitor (1.0.0-1) unstable; urgency=medium | ||
|
||
* Initial build. | ||
|
||
-- Oleksandr Miroshnychenko <alex.miroshnychenko@percona.com> Thu, 19 Dec 2019 19:20:11 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Source: percona-pg-stat-monitor | ||
Section: database | ||
Priority: optional | ||
Maintainer: Percona Development Team <info@percona.com> | ||
Build-Depends: | ||
debhelper (>= 9), | ||
percona-postgresql-server-dev-all (>= 153~), | ||
|
||
Package: percona-pg-stat-monitor | ||
Architecture: any | ||
Depends: | ||
percona-postgresql-11, | ||
${misc:Depends}, | ||
${shlibs:Depends}, | ||
Description: The pg_stat_monitor is statistics collector tool | ||
based on PostgreSQL's contrib module "pg_stat_statements". | ||
. | ||
pg_stat_monitor is developed on the basis of pg_stat_statments | ||
as more advanced replacement for pg_stat_statment. | ||
It provides all the features of pg_stat_statment plus its own feature set. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Source: percona-pg-stat-monitor | ||
Section: database | ||
Priority: optional | ||
Maintainer: Percona Development Team <info@percona.com> | ||
Build-Depends: | ||
debhelper (>= 9), | ||
percona-postgresql-server-dev-all (>= 153~), | ||
|
||
Package: percona-pg-stat-monitor | ||
Architecture: any | ||
Depends: | ||
percona-postgresql-11, | ||
${misc:Depends}, | ||
${shlibs:Depends}, | ||
Description: The pg_stat_monitor is statistics collector tool | ||
based on PostgreSQL's contrib module "pg_stat_statements". | ||
. | ||
pg_stat_monitor is developed on the basis of pg_stat_statments | ||
as more advanced replacement for pg_stat_statment. | ||
It provides all the features of pg_stat_statment plus its own feature set. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9.3+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/make -f | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
# Using pg_buildext | ||
include /usr/share/postgresql-common/pgxs_debian_control.mk | ||
|
||
export USE_PGXS=1 | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
+pg_buildext build build-%v | ||
|
||
override_dh_auto_test: | ||
# nothing to do here | ||
|
||
override_dh_auto_install: | ||
+pg_buildext install build-%v percona-pg-stat-monitor | ||
|
||
override_dh_installdocs: | ||
dh_installdocs --all README.* | ||
|
||
override_dh_auto_clean: | ||
+pg_buildext clean build-%v | ||
rm -rf results regression.* | ||
mkdir results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# don't bug people uploading from @work | ||
source: changelog-should-mention-nmu | ||
source: source-nmu-has-incorrect-version-number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
%global sname percona-pg-stat-monitor | ||
%global pginstdir /usr/pgsql-11/ | ||
%global pgstatmonmajver 1 | ||
%global pgstatmonmidver 0 | ||
%global pgstatmonminver 0 | ||
|
||
Summary: Statistics collector for PostgreSQL | ||
Name: %{sname} | ||
Version: %{pgstatmonmajver}.%{pgstatmonmidver}.%{pgstatmonminver} | ||
Release: 1%{?dist} | ||
License: Apache 2.0 | ||
Source0: %{sname}-%{pgstatmonmajver}.%{pgstatmonmidver}.%{pgstatmonminver}.tar.gz | ||
URL: https://github.com/Percona-Lab/pg_stat_monitor | ||
BuildRequires: percona-postgresql11-devel | ||
Requires: postgresql-server | ||
|
||
|
||
%description | ||
The pg_stat_monitor is statistics collector tool | ||
based on PostgreSQL's contrib module "pg_stat_statements". | ||
. | ||
pg_stat_monitor is developed on the basis of pg_stat_statments | ||
as more advanced replacement for pg_stat_statment. | ||
It provides all the features of pg_stat_statment plus its own feature set. | ||
|
||
|
||
%prep | ||
%setup -q -n %{sname}-%{pgstatmonmajver}.%{pgstatmonmidver}.%{pgstatmonminver} | ||
|
||
|
||
%build | ||
sed -i 's:PG_CONFIG = pg_config:PG_CONFIG = /usr/pgsql-11/bin/pg_config:' Makefile | ||
%{__make} USE_PGXS=1 %{?_smp_mflags} | ||
|
||
|
||
%install | ||
%{__rm} -rf %{buildroot} | ||
%{__make} USE_PGXS=1 %{?_smp_mflags} install DESTDIR=%{buildroot} | ||
%{__install} -d %{buildroot}%{pginstdir}/share/extension | ||
%{__install} -m 755 README.md %{buildroot}%{pginstdir}/share/extension/README-pg_stat_monitor | ||
|
||
|
||
%clean | ||
%{__rm} -rf %{buildroot} | ||
|
||
|
||
%post -p /sbin/ldconfig | ||
|
||
|
||
%postun -p /sbin/ldconfig | ||
|
||
|
||
%files | ||
%defattr(755,root,root,755) | ||
%doc %{pginstdir}/share/extension/README-pg_stat_monitor | ||
%{pginstdir}/lib/pg_stat_monitor.so | ||
%{pginstdir}/share/extension/pg_stat_monitor--*.sql | ||
%{pginstdir}/share/extension/pg_stat_monitor.control | ||
%{pginstdir}/lib/bitcode/pg_stat_monitor*.bc | ||
%{pginstdir}/lib/bitcode/pg_stat_monitor/*.bc | ||
|
||
|
||
%changelog | ||
* Thu Dec 19 2019 Oleksandr Miroshnychenko <alex.miroshnychenko@percona.com> - 1.0.0-1 | ||
- Initial build |
Oops, something went wrong.