diff --git a/Makefile b/Makefile index edd745c0..eb347d30 100644 --- a/Makefile +++ b/Makefile @@ -38,3 +38,10 @@ isolationcheck: | submake-isolation --temp-config=$(top_srcdir)/$(subdir)/conf.add \ --outputdir=./isolation_output \ $(ISOLATIONCHECKS) + +deb%: + sed -e s/PGVERSION/$(subst deb,,$@)/g < debian/control.in > debian/control + sed -e s/PGVERSION/$(subst deb,,$@)/g < debian/changelog.in > debian/changelog + echo $(subst deb,,$@) > debian/pgversions + dch -v $(EXTVERSION)-git$(shell git describe --always) "Automatically built package" + PGVERSION=$(subst deb,,$@) dpkg-buildpackage -uc -us diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 00000000..c7583e1b --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,7 @@ +/*.log +/*.substvars +/changelog +/control +/files +/pgversions +/postgresql-*-pathman/ diff --git a/debian/changelog.in b/debian/changelog.in new file mode 100644 index 00000000..f1954e0f --- /dev/null +++ b/debian/changelog.in @@ -0,0 +1,6 @@ +postgresql-PGVERSION-pathman (0.0.1) unstable; urgency=low + + * Initial + + -- Oskari Saarenmaa Mon, 04 Jul 2016 22:07:46 +0300 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..45a4fb75 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control.in b/debian/control.in new file mode 100644 index 00000000..2961337e --- /dev/null +++ b/debian/control.in @@ -0,0 +1,12 @@ +Source: postgresql-PGVERSION-pathman +Section: database +Priority: extra +Maintainer: PostgresPro +Build-Depends: debhelper (>= 8), postgresql-server-dev-PGVERSION +Standards-Version: 3.9.5 +Homepage: https://github.com/postgrespro/pg_pathman + +Package: postgresql-PGVERSION-pathman +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, postgresql-PGVERSION +Description: PostgreSQL module for optimized partitioning mechanism and functions to manage partitions. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..6897fb2d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: pg_pathman +Source: https://github.com/postgrespro/pg_pathman + +Files: * +Copyright: 2016, Postgres Professional +License: PostgreSQL + 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 THE UNIVERSITY OF CALIFORNIA 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 THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + . + THE UNIVERSITY OF CALIFORNIA 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 THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO + PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..68e41992 --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export PATH := /usr/lib/postgresql/$(PGVERSION)/bin:$(PATH) + +override_dh_installdocs: + dh_installdocs --all README.md + +%: + dh $@ + +.PHONY: debian/control