-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4998 from dlorenc/postgres
Add postgres 16 RC1
- Loading branch information
Showing
2 changed files
with
447 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.