mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-23 17:18:44 +00:00
Add debian packaging
This commit is contained in:
parent
89cbea7050
commit
9ecc075a82
13 changed files with 153 additions and 0 deletions
8
Makefile
8
Makefile
|
|
@ -27,3 +27,11 @@ release-zip: all
|
|||
DATA = $(wildcard *--*.sql)
|
||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS)
|
||||
|
||||
DEBUILD_ROOT = /tmp/$(EXTENSION)
|
||||
|
||||
deb: release-zip
|
||||
mkdir -p $(DEBUILD_ROOT) && rm -rf $(DEBUILD_ROOT)/*
|
||||
unzip ./${EXTENSION}-$(EXTVERSION).zip -d $(DEBUILD_ROOT)
|
||||
cd $(DEBUILD_ROOT)/${EXTENSION}-$(EXTVERSION) && make -f debian/rules orig
|
||||
cd $(DEBUILD_ROOT)/${EXTENSION}-$(EXTVERSION) && debuild -us -uc -sa
|
||||
|
|
|
|||
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
hypopg (1.1.1-1) UNRELEASED; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Julien Rouhaud <rjuju123@gmail.com> Sat, 24 Mar 2018 10:27:33 +0100
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
9
|
||||
60
debian/control
vendored
Normal file
60
debian/control
vendored
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
Source: hypopg
|
||||
Section: database
|
||||
Priority: optional
|
||||
Maintainer: Julien Rouhaud <rjuju123@gmail.com>
|
||||
Standards-Version: 4.1.3
|
||||
Build-Depends: debhelper (>=9~), postgresql-server-dev-all (>= 141~)
|
||||
Homepage: https://hypopg.readthedocs.io/
|
||||
Vcs-Browser: https://github.com/hypopg/hypopg
|
||||
Vcs-Git: https://github.com/hypopg/hypopg.git
|
||||
|
||||
Package: postgresql-9.3-hypopg
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.3
|
||||
Description: PostgreSQL extension adding support for hypothetical indexes.
|
||||
An hypothetical, or virtual, index is an index that doesn't really exists, and
|
||||
thus doesn't cost CPU, disk or any resource to create. They're useful to know
|
||||
if specific indexes can increase performance for problematic queries, since
|
||||
you can know if PostgreSQL will use these indexes or not without having to
|
||||
spend resources to create them.
|
||||
|
||||
Package: postgresql-9.4-hypopg
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.4
|
||||
Description: PostgreSQL extension adding support for hypothetical indexes.
|
||||
An hypothetical, or virtual, index is an index that doesn't really exists, and
|
||||
thus doesn't cost CPU, disk or any resource to create. They're useful to know
|
||||
if specific indexes can increase performance for problematic queries, since
|
||||
you can know if PostgreSQL will use these indexes or not without having to
|
||||
spend resources to create them.
|
||||
|
||||
Package: postgresql-9.5-hypopg
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.5
|
||||
Description: PostgreSQL extension adding support for hypothetical indexes.
|
||||
An hypothetical, or virtual, index is an index that doesn't really exists, and
|
||||
thus doesn't cost CPU, disk or any resource to create. They're useful to know
|
||||
if specific indexes can increase performance for problematic queries, since
|
||||
you can know if PostgreSQL will use these indexes or not without having to
|
||||
spend resources to create them.
|
||||
|
||||
Package: postgresql-9.6-hypopg
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.6
|
||||
Description: PostgreSQL extension adding support for hypothetical indexes.
|
||||
An hypothetical, or virtual, index is an index that doesn't really exists, and
|
||||
thus doesn't cost CPU, disk or any resource to create. They're useful to know
|
||||
if specific indexes can increase performance for problematic queries, since
|
||||
you can know if PostgreSQL will use these indexes or not without having to
|
||||
spend resources to create them.
|
||||
|
||||
Package: postgresql-10-hypopg
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-10
|
||||
Description: PostgreSQL extension adding support for hypothetical indexes.
|
||||
An hypothetical, or virtual, index is an index that doesn't really exists, and
|
||||
thus doesn't cost CPU, disk or any resource to create. They're useful to know
|
||||
if specific indexes can increase performance for problematic queries, since
|
||||
you can know if PostgreSQL will use these indexes or not without having to
|
||||
spend resources to create them.
|
||||
|
||||
19
debian/control.in
vendored
Normal file
19
debian/control.in
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
Source: hypopg
|
||||
Section: database
|
||||
Priority: optional
|
||||
Maintainer: Julien Rouhaud <rjuju123@gmail.com>
|
||||
Standards-Version: 4.1.3
|
||||
Build-Depends: debhelper (>=9~), postgresql-server-dev-all (>= 141~)
|
||||
Homepage: https://hypopg.readthedocs.io/
|
||||
Vcs-Browser: https://github.com/hypopg/hypopg
|
||||
Vcs-Git: https://github.com/hypopg/hypopg.git
|
||||
|
||||
Package: postgresql-PGVERSION-hypopg
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-PGVERSION
|
||||
Description: PostgreSQL extension adding support for hypothetical indexes.
|
||||
An hypothetical, or virtual, index is an index that doesn't really exists, and
|
||||
thus doesn't cost CPU, disk or any resource to create. They're useful to know
|
||||
if specific indexes can increase performance for problematic queries, since
|
||||
you can know if PostgreSQL will use these indexes or not without having to
|
||||
spend resources to create them.
|
||||
17
debian/copyright
vendored
Normal file
17
debian/copyright
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Copyright (c) 2015-2018, Julien Rouhaud
|
||||
|
||||
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 Julien Rouhaud 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 Julien Rouhaud
|
||||
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
Julien Rouhaud 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
|
||||
Julien Rouhaud HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
|
||||
ENHANCEMENTS, OR MODIFICATIONS.
|
||||
1
debian/pgversions
vendored
Normal file
1
debian/pgversions
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
9.2+
|
||||
28
debian/rules
vendored
Executable file
28
debian/rules
vendored
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/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-hypopg
|
||||
|
||||
override_dh_installdocs:
|
||||
dh_installdocs --all CONTRIBUTORS.md README.md
|
||||
rm -rvf debian/*/usr/share/doc/postgresql-doc-*
|
||||
|
||||
override_dh_installchangelogs:
|
||||
dh_installchangelogs CHANGELOG.md upstream
|
||||
|
||||
orig: debian/control clean
|
||||
cd .. && tar czf hypopg_$(PKGVER).orig.tar.gz $(EXCLUDE) hypopg-$(PKGVER)
|
||||
%:
|
||||
dh $@
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
1.0
|
||||
3
debian/tests/control
vendored
Normal file
3
debian/tests/control
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Depends: @, postgresql-server-dev-all, postgresql-contrib-9.3, postgresql-contrib-9.4, postgresql-contrib-9.5, postgresql-contrib-9.6, postgresql-contrib-10
|
||||
Tests: installcheck
|
||||
Restrictions: allow-stderr
|
||||
3
debian/tests/control.in
vendored
Normal file
3
debian/tests/control.in
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Depends: @, postgresql-server-dev-all, postgresql-contrib-PGVERSION
|
||||
Tests: installcheck
|
||||
Restrictions: allow-stderr
|
||||
5
debian/tests/installcheck
vendored
Executable file
5
debian/tests/installcheck
vendored
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
pg_buildext installcheck
|
||||
2
debian/watch
vendored
Normal file
2
debian/watch
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
version=3
|
||||
https://github.com/hypopg/hypopg/releases .*/archive/(.*).tar.gz
|
||||
Loading…
Reference in a new issue