summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar s0dyy <msorin@msorin.com> 2021-10-04 11:13:42 +0200
committerAvatar s0dyy <msorin@msorin.com> 2021-10-04 15:37:38 +0200
commiteea7b3c936a8300b03c19e00e6072aa28fc9fdb8 (patch)
tree79a7d824306197243ca03d67514619c9fcaa6661
parentb20c36137bfd76f3c4204009451be15c825428a4 (diff)
downloadarbor-eea7b3c936a8300b03c19e00e6072aa28fc9fdb8.tar.gz
arbor-eea7b3c936a8300b03c19e00e6072aa28fc9fdb8.tar.xz
postgresql: version bump to 14.0
-rw-r--r--packages/dev-db/postgresql/postgresql-14.0.exheres-07
-rw-r--r--packages/dev-db/postgresql/postgresql-build.exlib18
2 files changed, 22 insertions, 3 deletions
diff --git a/packages/dev-db/postgresql/postgresql-14.0.exheres-0 b/packages/dev-db/postgresql/postgresql-14.0.exheres-0
new file mode 100644
index 000000000..deb42d8c5
--- /dev/null
+++ b/packages/dev-db/postgresql/postgresql-14.0.exheres-0
@@ -0,0 +1,7 @@
+# Copyright 2008, 2009, 2011 Ingmar Vanhassel <ingmar@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require postgresql-build
+
+PLATFORMS="~amd64 ~x86"
+
diff --git a/packages/dev-db/postgresql/postgresql-build.exlib b/packages/dev-db/postgresql/postgresql-build.exlib
index 149acbac8..82d6f2c86 100644
--- a/packages/dev-db/postgresql/postgresql-build.exlib
+++ b/packages/dev-db/postgresql/postgresql-build.exlib
@@ -52,10 +52,10 @@ MYOPTIONS="
perl [[ description = [ Support for both PL/Perl and Pl/PerlU server-side programming languages ] ]]
python [[ description = [ Support for PL/Python (only the \"untrusted\" version) server-side programming language ] ]]
ssl
+ ssl? ( ( providers: libressl openssl ) [[ number-selected = exactly-one ]] )
systemd
tcl [[ description = [ Support for both PL/Tcl and PL/TclU server-side programming languages ] ]]
xml [[ description = [ Add core support for XML data type ] ]]
- ssl? ( ( providers: libressl openssl ) [[ number-selected = exactly-one ]] )
(
postgresql_extensions:
auth_delay [[ description = [ Adds a delay to failed authentication responses to make brute-force attacks on password more difficult ] ]]
@@ -83,7 +83,6 @@ MYOPTIONS="
pg_buffercache [[ description = [ Analyze what's happening in the shared buffer cache ] ]]
pg_freespacemap [[ description = [ Analyze the free space map ] ]]
pg_prewarm [[ description = [ Load relation data into buffer cache ] ]]
- pg_standby [[ description = [ pg_standby supports creation of a warm standby database server ] ]]
pg_trgm [[ description = [ Trigram support for Full-Text Search ] ]]
pgcrypto [[ description = [ Cryptographic (hashing, {de,en}cryption, (de)compression etc) functions ] ]]
pgstattuple [[ description = [ Functions for tuple-level statistics ] ]]
@@ -105,14 +104,19 @@ MYOPTIONS="
)
"
-if ever at_least 9.6; then
+if ! ever at_least 14; then
MYOPTIONS+="
(
postgresql_extensions:
bloom [[ description = [ bloom provides an index access method based on Bloom filters. ] ]]
+ pg_standby [[ description = [ pg_standby supports creation of a warm standby database server ] ]]
pg_visibility [[ description = [ The pg_visibility module provides a means for examining the visibility map (VM) and page-level visibility information of a table. ] ]]
)
"
+else
+ MYOPTIONS+="
+ lz4 [[ description = [ Allow configurable LZ4 TOAST compression ] ]]
+ "
fi
DEPENDENCIES="
@@ -132,6 +136,7 @@ DEPENDENCIES="
group/postgres
user/postgres
ldap? ( net-directory/openldap )
+ lz4? ( app-arch/lz4 )
pam? ( sys-libs/pam )
perl? ( dev-lang/perl:= )
ssl? (
@@ -154,6 +159,12 @@ DEFAULT_SRC_CONFIGURE_OPTION_WITHS=(
ldap pam perl python 'ssl openssl' systemd tcl 'xml libxml' 'xml libxslt'
)
+if ever at_least 14; then
+ DEFAULT_SRC_CONFIGURE_OPTION_WITHS+=(
+ lz4
+ )
+fi
+
DEFAULT_SRC_CONFIGURE_PARAMS=(
--enable-nls
--with-system-tzdata=/usr/share/zoneinfo
@@ -162,6 +173,7 @@ DEFAULT_SRC_CONFIGURE_PARAMS=(
--bindir=/usr/$(exhost --target)/libexec/postgresql-${SLOT}
--datadir=/usr/share/postgresql-${SLOT}
--docdir=/usr/share/doc/postgresql-${SLOT}
+ --mandir=/usr/share/postgresql-${SLOT}/man
--includedir=/usr/$(exhost --target)/include/postgresql-${SLOT}
--libdir=/usr/$(exhost --target)/lib/postgresql-${SLOT}
)