Skip to content

Commit

Permalink
Merge pull request #4998 from dlorenc/postgres
Browse files Browse the repository at this point in the history
Add postgres 16 RC1
  • Loading branch information
kaniini authored Sep 1, 2023
2 parents 96e0e82 + e6cefed commit 64a3129
Show file tree
Hide file tree
Showing 2 changed files with 447 additions and 0 deletions.
104 changes: 104 additions & 0 deletions postgresql-16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
package:
name: postgresql-16
version: "16.0_rc1"
epoch: 0
description: A sophisticated object-relational DBMS
copyright:
- license: BSD

environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- build-base
- automake
- autoconf
- openssl-dev
- libedit-dev
- zlib-dev
- libxml2-dev
- bison
- flex
- execline-dev
- util-linux-dev
- icu-dev

pipeline:
- uses: fetch
with:
expected-sha256: ce97b3f4199a702a19ced11f86d0b93bb1fa55e869129e1435210ed8d505fa84
uri: https://ftp.postgresql.org/pub/source/v16rc1/postgresql-16rc1.tar.bz2

- uses: autoconf/configure
with:
opts: |
--mandir=/usr/share/man \
--with-openssl \
--with-libedit-preferred \
--with-uuid=e2fs
- uses: autoconf/make

- uses: autoconf/make-install

# the official postgres image listens on all interfaces by default, let's do the same for consistency
- runs: |
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" ${{targets.destdir}}/usr/share/postgresql/postgresql.conf.sample
grep -F "listen_addresses = '*'" ${{targets.destdir}}/usr/share/postgresql/postgresql.conf.sample
- uses: strip

subpackages:
- name: postgresql-16-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- postgresql-16
- openssl-dev
- postgresql-16-client
- libpq-16
description: postgresql dev

- name: postgresql-16-client
description: PostgreSQL client
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/psql ${{targets.subpkgdir}}/usr/bin/
- name: postgresql-16-contrib
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}
make DESTDIR=${{targets.subpkgdir}} -C contrib install
description: Extension modules distributed with PostgreSQL

- name: libpq-16
description: PostgreSQL libraries
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/lib
mv ${{targets.destdir}}/usr/lib/libpq.so* ${{targets.subpkgdir}}/usr/lib/
- name: postgresql-16-oci-entrypoint
description: Entrypoint for using PostgreSQL in OCI containers
dependencies:
runtime:
- bash
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/var/lib/postgres/initdb
cp postgresql-entrypoint.sh ${{targets.subpkgdir}}/var/lib/postgres/initdb/
chmod +x ${{targets.subpkgdir}}/var/lib/postgres/initdb/postgresql-entrypoint.sh
update:
# Enable later when the real release comes out
enabled: false
version-separator: _
github:
identifier: postgres/postgres
strip-prefix: REL_
tag-filter: REL_16
use-tag: true
Loading

0 comments on commit 64a3129

Please sign in to comment.