Skip to content

Commit

Permalink
Din 2825 Debian packaging (#14)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bwrobc authored Oct 17, 2023
1 parent 8812a41 commit c1c5677
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 0 deletions.
12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
roaringbitmap (0.6.0-2) unstable; urgency=medium

* Tidy up the debian package metadata
* Build number bump

-- <[email protected]> Tue, 17 Oct 2023 15:00:00 +0100

roaringbitmap (0.6.0-1) unstable; urgency=medium

* Initial Debian package

-- <[email protected]> Thu, 12 Oct 2023 12:00:00 +0100
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
17 changes: 17 additions & 0 deletions debian/control.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: roaringbitmap
Section: database
Priority: optional
Maintainer: Aidan McMurray <[email protected]>
Build-Depends: debhelper (>= 9), postgresql-server-dev-all (>= 180)
Standards-Version: 3.9.8
Homepage: https://github.com/BrandwatchLtd/pg_roaringbitmap
Vcs-Git: [email protected]: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.
20 changes: 20 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pg_roaringbitmap
Source: <https://github.com/BrandwatchLtd/pg_roaringbitmap/>

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.
6 changes: 6 additions & 0 deletions debian/pgversions
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
10
11
12
13
14
15
27 changes: 27 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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 $@

0 comments on commit c1c5677

Please sign in to comment.