Skip to content

Add Debian packaging #18

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

Closed
wants to merge 1 commit into from
Closed
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
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*.log
/*.substvars
/changelog
/control
/files
/pgversions
/postgresql-*-pathman/
6 changes: 6 additions & 0 deletions debian/changelog.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
postgresql-PGVERSION-pathman (0.0.1) unstable; urgency=low

* Initial

-- Oskari Saarenmaa <[email protected]> Mon, 04 Jul 2016 22:07:46 +0300

1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
12 changes: 12 additions & 0 deletions debian/control.in
Original file line number Diff line number Diff line change
@@ -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.
23 changes: 23 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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.
15 changes: 15 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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