From c1c567741873e4d1bf1a5c6b6e8ee5be10fed268 Mon Sep 17 00:00:00 2001 From: Robert Cardell <114396208+bwrobc@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:58:43 +0100 Subject: [PATCH] Din 2825 Debian packaging (#14) * Initial Debian build system * Correct maintainer entry * Add Postgres 16 to the build list * Change to the standard Debian package naming scheme * Bump compat version number to silence build warnings * Add the Apache Licence boilerplate * Bump build number to ensure distinction from Kali's build * Underscores aren't allowed in Debian package names * Don't build for Postgres 16 The Postgres 16 build produces compile warnings. Remove it from the pgversions file, so that down the line we don't assume that it just works on PG16. * Add Postgres 10 to the build list I'd left it out due to misremembering what I'd read in the README * Arg... version 0.6, not 6.0 --- debian/changelog | 12 ++++++++++++ debian/compat | 1 + debian/control.in | 17 +++++++++++++++++ debian/copyright | 20 ++++++++++++++++++++ debian/pgversions | 6 ++++++ debian/rules | 27 +++++++++++++++++++++++++++ 6 files changed, 83 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control.in create mode 100644 debian/copyright create mode 100644 debian/pgversions create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3389a7d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,12 @@ +roaringbitmap (0.6.0-2) unstable; urgency=medium + + * Tidy up the debian package metadata + * Build number bump + + -- Tue, 17 Oct 2023 15:00:00 +0100 + +roaringbitmap (0.6.0-1) unstable; urgency=medium + + * Initial Debian package + + -- Thu, 12 Oct 2023 12:00:00 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control.in b/debian/control.in new file mode 100644 index 0000000..11b5499 --- /dev/null +++ b/debian/control.in @@ -0,0 +1,17 @@ +Source: roaringbitmap +Section: database +Priority: optional +Maintainer: Aidan McMurray +Build-Depends: debhelper (>= 9), postgresql-server-dev-all (>= 180) +Standards-Version: 3.9.8 +Homepage: https://github.com/BrandwatchLtd/pg_roaringbitmap +Vcs-Git: git@github.com:BrandwatchLtd/pg_roaringbitmap.git +Vcs-Browser: https://github.com/BrandwatchLtd/pg_roaringbitmap + +Package: postgresql-PGVERSION-roaringbitmap +Architecture: any +Depends: postgresql-PGVERSION, ${shlibs:Depends}, ${misc:Depends} +Description: Roaring bitmaps extension for PostgreSQL. + Compressed bitmaps for increased bitmap performance. + . + This package contains the server extension for PostgreSQL PGVERSION. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8f41624 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,20 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pg_roaringbitmap +Source: + +Files: * +Copyright: 2016-2022 The CRoaring Authors +License: Apache License 2.0 +. +License: Apache License 2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/debian/pgversions b/debian/pgversions new file mode 100644 index 0000000..7c78428 --- /dev/null +++ b/debian/pgversions @@ -0,0 +1,6 @@ +10 +11 +12 +13 +14 +15 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..57dfd2e --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +include /usr/share/postgresql-common/pgxs_debian_control.mk + +override_dh_auto_build: + +override_dh_auto_install: + +pg_buildext loop postgresql-%v-roaringbitmap + +override_dh_installdocs: + dh_installdocs --all README.md LICENSE + +%: + dh $@