postgresql12: added version 12.0

Release 12:

General performance improvements, including:
* Optimizations to space utilization and read/write performance for B-tree indexes
* Partitioning performance enhancements, including improved query performance on tables with thousands of partitions, improved insertion performance with INSERT and COPY, and the ability to execute ALTER TABLE ATTACH PARTITION without blocking queries
* Automatic (but overridable) inlining of common table expressions (CTEs)
* Reduction of WAL overhead for creation of GiST, GIN, and SP-GiST indexes
* Support for covering GiST indexes, via the INCLUDE clause
* Multi-column most-common-value (MCV) statistics can be defined via CREATE STATISTICS, to support better plans for queries that test several non-uniformly-distributed columns

Enhancements to administrative functionality, including:
* REINDEX CONCURRENTLY can rebuild an index without blocking writes to its table
* pg_checksums can enable/disable page checksums (used for detecting data corruption) in an offline cluster
* Progress reporting statistics for CREATE INDEX, REINDEX, CLUSTER, VACUUM FULL, and pg_checksums

Support for the SQL/JSON path language

Stored generated columns

Nondeterministic ICU collations, enabling case-insensitive and accent-insensitive grouping and ordering

New authentication features, including:
* Encryption of TCP/IP connections when using GSSAPI authentication
* Discovery of LDAP servers using DNS SRV records
* Multi-factor authentication, using the clientcert=verify-full option combined with an additional authentication method in pg_hba.conf
This commit is contained in:
adam 2019-10-07 19:21:48 +00:00
parent 49d73c0970
commit 6c545580f8
48 changed files with 5506 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.583 2019/07/07 09:30:52 bsiegert Exp $
# $NetBSD: Makefile,v 1.584 2019/10/07 19:21:48 adam Exp $
COMMENT= Databases
@ -304,6 +304,14 @@ SUBDIR+= postgresql11-plperl
SUBDIR+= postgresql11-plpython
SUBDIR+= postgresql11-pltcl
SUBDIR+= postgresql11-server
SUBDIR+= postgresql12
SUBDIR+= postgresql12-client
SUBDIR+= postgresql12-contrib
SUBDIR+= postgresql12-docs
SUBDIR+= postgresql12-plperl
SUBDIR+= postgresql12-plpython
SUBDIR+= postgresql12-pltcl
SUBDIR+= postgresql12-server
SUBDIR+= postgresql94
SUBDIR+= postgresql94-client
SUBDIR+= postgresql94-contrib

View file

@ -0,0 +1,9 @@
PostgreSQL is a robust, next-generation, Object-Relational DBMS (ORDBMS),
derived from the Berkeley Postgres database management system. While
PostgreSQL retains the powerful object-relational data model, rich data types
and easy extensibility of Postgres, it replaces the PostQuel query language
with an extended subset of SQL.
PostgreSQL is free and the complete source is available.
This package contains the database client programs.

View file

@ -0,0 +1,91 @@
# $NetBSD: Makefile,v 1.1 2019/10/07 19:21:48 adam Exp $
PKGNAME= ${DISTNAME:C/-/12-client-/}
COMMENT= PostgreSQL database client programs
.include "../../databases/postgresql12/Makefile.common"
USE_TOOLS+= gzip tar
CONFIGURE_ARGS+= --with-openssl
CONFIGURE_ARGS+= --with-zlib
# Override INSTALL script to avoid unprivileged user/group
# leaking into the binary package
CONFIGURE_ARGS+= INSTALL=${INSTALL:Q}\ -c
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Cygwin"
INSTALLATION_DIRS+= bin
.endif
# 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
# NetBSD earlier than 4.0 or DragonFly.
# 2. configure with --enable-thread-safety fails on OpenBSD.
.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
PGSQL_THREAD_SAFETY?= no
.endif
PGSQL_THREAD_SAFETY?= yes
BUILD_DEFS+= PGSQL_THREAD_SAFETY
.if !empty(PGSQL_THREAD_SAFETY:M[yY][eE][sS])
. include "../../mk/pthread.buildlink3.mk"
. if (${PTHREAD_TYPE} == "native")
CONFIGURE_ARGS+= --enable-thread-safety
. endif
.else
CONFIGURE_ARGS+= --disable-thread-safety
.endif
INSTALL_DIRS= src/include
INSTALL_DIRS+= src/common
INSTALL_DIRS+= src/port
INSTALL_DIRS+= src/interfaces
INSTALL_DIRS+= src/bin
BUILD_DIRS= ${INSTALL_DIRS}
# Without this, the Darwin build fails (related to -bundle_loader).
BUILD_DIRS+= src/backend
.for f in pg_service.conf psqlrc
CONF_FILES+= share/postgresql/${f}.sample ${PKG_SYSCONFDIR}/${f}
.endfor
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
SUBST_CLASSES+= pgxs
SUBST_STAGE.pgxs= post-build
SUBST_MESSAGE.pgxs= Fixing workdir tools references in pgxs Makefile
SUBST_FILES.pgxs= src/Makefile.global
SUBST_SED.pgxs= -e 's,${TOOLS_CMD.bison},${TOOLS_PATH.bison},'
SUBST_SED.pgxs+= -e 's,${TOOLS_CMD.lex},${TOOLS_PATH.lex},'
SUBST_SED.pgxs+= -e 's,${TOOLS_CMD.mkdir},${TOOLS_PATH.mkdir},'
SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper/bin/ld,${LD},'
SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper,${PREFIX},'
SUBST_SED.pgxs+= -e 's,${WRKSRC},/dev/null,'
INSTALLATION_DIRS+= lib/postgresql/pgxs
INSTALLATION_DIRS+= lib/postgresql/pgxs/config
INSTALLATION_DIRS+= lib/postgresql/pgxs/src
INSTALLATION_DIRS+= lib/postgresql/pgxs/src/makefiles
DEST_PGXS= ${DESTDIR}${PREFIX}/lib/postgresql/pgxs
PGXS_FILES= config/install-sh
PGXS_FILES+= src/makefiles/pgxs.mk src/Makefile.global
PGXS_FILES+= src/Makefile.port src/Makefile.shlib
PGXS_FILES+= src/nls-global.mk
# On Solaris, avoid conflicts between "${SSLBASE}/include/openssl/des.h"
# and "/usr/include/crypt.h" -- we want the definitions in the former.
.if ${OPSYS} == "SunOS"
post-wrapper:
touch ${BUILDLINK_DIR}/include/crypt.h
.endif
post-install:
.for file in ${PGXS_FILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${DEST_PGXS}/${file}
.endfor
.include "../../mk/bsd.pkg.mk"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,21 @@
# $NetBSD: buildlink3.mk,v 1.1 2019/10/07 19:21:48 adam Exp $
BUILDLINK_TREE+= postgresql12-client
.if !defined(POSTGRESQL12_CLIENT_BUILDLINK3_MK)
POSTGRESQL12_CLIENT_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.postgresql12-client+= postgresql12-client>=12.0
BUILDLINK_ABI_DEPENDS.postgresql12-client+= postgresql12-client>=12.0
BUILDLINK_PKGSRCDIR.postgresql12-client?= ../../databases/postgresql12-client
# This variable contains the libraries need to link most clients.
BUILDLINK_LDADD.postgresql12-client= -lpq ${BUILDLINK_LDADD.gettext}
BUILDLINK_FILES.postgresql12-client+= bin/pg_config
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.endif # POSTGRESQL12_CLIENT_BUILDLINK3_MK
BUILDLINK_TREE+= -postgresql12-client

View file

@ -0,0 +1,4 @@
This subtree contains porting tools, analysis utilities, and plug-in
features that are not part of the core PostgreSQL system, mainly because
they address a limited audience or are too experimental to be part of
the main source tree. This does not preclude their usefulness.

View file

@ -0,0 +1,78 @@
# $NetBSD: Makefile,v 1.1 2019/10/07 19:21:49 adam Exp $
PKGNAME= ${DISTNAME:C/-/12-contrib-/}
COMMENT= Contrib subtree of tools and plug-ins
.include "../../databases/postgresql12/Makefile.common"
DEPENDS+= postgresql12-server>=${PKGVERSION_NOREV}:../../databases/postgresql12-server
BUILD_MAKE_FLAGS= USE_PGXS=1
BUILD_DIRS+= contrib/adminpack
BUILD_DIRS+= contrib/auth_delay
BUILD_DIRS+= contrib/auto_explain
BUILD_DIRS+= contrib/btree_gin
BUILD_DIRS+= contrib/btree_gist
BUILD_DIRS+= contrib/citext
BUILD_DIRS+= contrib/cube
BUILD_DIRS+= contrib/dblink
BUILD_DIRS+= contrib/dict_int
BUILD_DIRS+= contrib/dict_xsyn
BUILD_DIRS+= contrib/earthdistance
BUILD_DIRS+= contrib/file_fdw
BUILD_DIRS+= contrib/fuzzystrmatch
BUILD_DIRS+= contrib/hstore
BUILD_DIRS+= contrib/intagg
BUILD_DIRS+= contrib/intarray
BUILD_DIRS+= contrib/isn
BUILD_DIRS+= contrib/lo
BUILD_DIRS+= contrib/ltree
BUILD_DIRS+= contrib/oid2name
BUILD_DIRS+= contrib/pageinspect
BUILD_DIRS+= contrib/passwordcheck
BUILD_DIRS+= contrib/pg_buffercache
BUILD_DIRS+= contrib/pg_freespacemap
BUILD_DIRS+= contrib/pg_prewarm
BUILD_DIRS+= contrib/pg_standby
BUILD_DIRS+= contrib/pg_stat_statements
BUILD_DIRS+= contrib/pg_trgm
BUILD_DIRS+= contrib/pgcrypto
BUILD_DIRS+= contrib/pgrowlocks
BUILD_DIRS+= contrib/pgstattuple
BUILD_DIRS+= contrib/postgres_fdw
BUILD_DIRS+= contrib/seg
BUILD_DIRS+= contrib/spi
BUILD_DIRS+= contrib/sslinfo
BUILD_DIRS+= contrib/tablefunc
BUILD_DIRS+= contrib/tcn
BUILD_DIRS+= contrib/test_decoding
BUILD_DIRS+= contrib/tsm_system_rows
BUILD_DIRS+= contrib/tsm_system_time
BUILD_DIRS+= contrib/unaccent
BUILD_DIRS+= contrib/vacuumlo
CONFIGURE_ARGS+= --with-openssl
PLIST_VARS+= uuid
.if ${OPSYS:M*BSD} || ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
PLIST.uuid= yes
BUILD_DIRS+= contrib/uuid-ossp
. if ${OPSYS:M*BSD}
BUILD_MAKE_FLAGS+= PG_CPPFLAGS="-DHAVE_UUID_H -DHAVE_UUID_BSD -DSHA1_RESULTLEN=20"
CONFIGURE_ARGS+= --with-uuid=bsd
. elif ${OPSYS} == "Linux"
BUILD_MAKE_FLAGS+= PG_CPPFLAGS="-DHAVE_UUID_UUID_H -DHAVE_UUID_E2FS"
CONFIGURE_ARGS+= --with-uuid=e2fs
. elif ${OPSYS} == "SunOS"
BUILD_MAKE_FLAGS+= PG_CPPFLAGS="-DHAVE_UUID_H -DHAVE_UUID_OSSP"
CONFIGURE_ARGS+= --with-uuid=ossp
BUILD_MAKE_FLAGS+= UUID_LIBS=-lossp-uuid
. include "../../devel/ossp-uuid/buildlink3.mk"
. endif
.endif
PRINT_PLIST_AWK+= {if ($$0 ~ /uuid-ossp/) {$$0 = "$${PLIST.uuid}" $$0;}}
.include "../../databases/postgresql12-client/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,410 @@
@comment $NetBSD: PLIST,v 1.1 2019/10/07 19:21:49 adam Exp $
bin/oid2name
bin/pg_standby
bin/vacuumlo
include/postgresql/server/extension/cube/cubedata.h
include/postgresql/server/extension/hstore/hstore.h
include/postgresql/server/extension/isn/isn.h
include/postgresql/server/extension/ltree/ltree.h
include/postgresql/server/extension/seg/segdata.h
lib/postgresql/_int.so
lib/postgresql/adminpack.so
lib/postgresql/auth_delay.so
lib/postgresql/auto_explain.so
lib/postgresql/autoinc.so
${PLIST.llvm}lib/postgresql/bitcode/_int.index.bc
${PLIST.llvm}lib/postgresql/bitcode/_int/_int_bool.bc
${PLIST.llvm}lib/postgresql/bitcode/_int/_int_gin.bc
${PLIST.llvm}lib/postgresql/bitcode/_int/_int_gist.bc
${PLIST.llvm}lib/postgresql/bitcode/_int/_int_op.bc
${PLIST.llvm}lib/postgresql/bitcode/_int/_int_selfuncs.bc
${PLIST.llvm}lib/postgresql/bitcode/_int/_int_tool.bc
${PLIST.llvm}lib/postgresql/bitcode/_int/_intbig_gist.bc
${PLIST.llvm}lib/postgresql/bitcode/adminpack.index.bc
${PLIST.llvm}lib/postgresql/bitcode/adminpack/adminpack.bc
${PLIST.llvm}lib/postgresql/bitcode/auth_delay.index.bc
${PLIST.llvm}lib/postgresql/bitcode/auth_delay/auth_delay.bc
${PLIST.llvm}lib/postgresql/bitcode/auto_explain.index.bc
${PLIST.llvm}lib/postgresql/bitcode/auto_explain/auto_explain.bc
${PLIST.llvm}lib/postgresql/bitcode/autoinc.index.bc
${PLIST.llvm}lib/postgresql/bitcode/autoinc/autoinc.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gin.index.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gin/btree_gin.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist.index.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_bit.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_bytea.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_cash.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_date.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_enum.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_float4.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_float8.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_gist.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_inet.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_int2.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_int4.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_int8.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_interval.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_macaddr.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_macaddr8.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_numeric.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_oid.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_text.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_time.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_ts.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_utils_num.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_utils_var.bc
${PLIST.llvm}lib/postgresql/bitcode/btree_gist/btree_uuid.bc
${PLIST.llvm}lib/postgresql/bitcode/citext.index.bc
${PLIST.llvm}lib/postgresql/bitcode/citext/citext.bc
${PLIST.llvm}lib/postgresql/bitcode/cube.index.bc
${PLIST.llvm}lib/postgresql/bitcode/cube/cube.bc
${PLIST.llvm}lib/postgresql/bitcode/cube/cubeparse.bc
${PLIST.llvm}lib/postgresql/bitcode/dblink.index.bc
${PLIST.llvm}lib/postgresql/bitcode/dblink/dblink.bc
${PLIST.llvm}lib/postgresql/bitcode/dict_int.index.bc
${PLIST.llvm}lib/postgresql/bitcode/dict_int/dict_int.bc
${PLIST.llvm}lib/postgresql/bitcode/dict_xsyn.index.bc
${PLIST.llvm}lib/postgresql/bitcode/dict_xsyn/dict_xsyn.bc
${PLIST.llvm}lib/postgresql/bitcode/earthdistance.index.bc
${PLIST.llvm}lib/postgresql/bitcode/earthdistance/earthdistance.bc
${PLIST.llvm}lib/postgresql/bitcode/file_fdw.index.bc
${PLIST.llvm}lib/postgresql/bitcode/file_fdw/file_fdw.bc
${PLIST.llvm}lib/postgresql/bitcode/fuzzystrmatch.index.bc
${PLIST.llvm}lib/postgresql/bitcode/fuzzystrmatch/dmetaphone.bc
${PLIST.llvm}lib/postgresql/bitcode/fuzzystrmatch/fuzzystrmatch.bc
${PLIST.llvm}lib/postgresql/bitcode/hstore.index.bc
${PLIST.llvm}lib/postgresql/bitcode/hstore/hstore_compat.bc
${PLIST.llvm}lib/postgresql/bitcode/hstore/hstore_gin.bc
${PLIST.llvm}lib/postgresql/bitcode/hstore/hstore_gist.bc
${PLIST.llvm}lib/postgresql/bitcode/hstore/hstore_io.bc
${PLIST.llvm}lib/postgresql/bitcode/hstore/hstore_op.bc
${PLIST.llvm}lib/postgresql/bitcode/insert_username.index.bc
${PLIST.llvm}lib/postgresql/bitcode/insert_username/insert_username.bc
${PLIST.llvm}lib/postgresql/bitcode/isn.index.bc
${PLIST.llvm}lib/postgresql/bitcode/isn/isn.bc
${PLIST.llvm}lib/postgresql/bitcode/lo.index.bc
${PLIST.llvm}lib/postgresql/bitcode/lo/lo.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree.index.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/_ltree_gist.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/_ltree_op.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/crc32.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/lquery_op.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/ltree_gist.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/ltree_io.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/ltree_op.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/ltxtquery_io.bc
${PLIST.llvm}lib/postgresql/bitcode/ltree/ltxtquery_op.bc
${PLIST.llvm}lib/postgresql/bitcode/moddatetime.index.bc
${PLIST.llvm}lib/postgresql/bitcode/moddatetime/moddatetime.bc
${PLIST.llvm}lib/postgresql/bitcode/pageinspect.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pageinspect/brinfuncs.bc
${PLIST.llvm}lib/postgresql/bitcode/pageinspect/btreefuncs.bc
${PLIST.llvm}lib/postgresql/bitcode/pageinspect/fsmfuncs.bc
${PLIST.llvm}lib/postgresql/bitcode/pageinspect/ginfuncs.bc
${PLIST.llvm}lib/postgresql/bitcode/pageinspect/hashfuncs.bc
${PLIST.llvm}lib/postgresql/bitcode/pageinspect/heapfuncs.bc
${PLIST.llvm}lib/postgresql/bitcode/pageinspect/rawpage.bc
${PLIST.llvm}lib/postgresql/bitcode/passwordcheck.index.bc
${PLIST.llvm}lib/postgresql/bitcode/passwordcheck/passwordcheck.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_buffercache.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_buffercache/pg_buffercache_pages.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_freespacemap.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_freespacemap/pg_freespacemap.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_prewarm.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_prewarm/autoprewarm.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_prewarm/pg_prewarm.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_stat_statements.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_stat_statements/pg_stat_statements.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_trgm.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_trgm/trgm_gin.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_trgm/trgm_gist.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_trgm/trgm_op.bc
${PLIST.llvm}lib/postgresql/bitcode/pg_trgm/trgm_regexp.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/crypt-blowfish.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/crypt-des.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/crypt-gensalt.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/crypt-md5.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/mbuf.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/openssl.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgcrypto.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-armor.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-cfb.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-compress.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-decrypt.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-encrypt.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-info.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-mpi-openssl.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-mpi.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-pgsql.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-pubdec.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-pubenc.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-pubkey.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp-s2k.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/pgp.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/px-crypt.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/px-hmac.bc
${PLIST.llvm}lib/postgresql/bitcode/pgcrypto/px.bc
${PLIST.llvm}lib/postgresql/bitcode/pgrowlocks.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pgrowlocks/pgrowlocks.bc
${PLIST.llvm}lib/postgresql/bitcode/pgstattuple.index.bc
${PLIST.llvm}lib/postgresql/bitcode/pgstattuple/pgstatapprox.bc
${PLIST.llvm}lib/postgresql/bitcode/pgstattuple/pgstatindex.bc
${PLIST.llvm}lib/postgresql/bitcode/pgstattuple/pgstattuple.bc
${PLIST.llvm}lib/postgresql/bitcode/postgres_fdw.index.bc
${PLIST.llvm}lib/postgresql/bitcode/postgres_fdw/connection.bc
${PLIST.llvm}lib/postgresql/bitcode/postgres_fdw/deparse.bc
${PLIST.llvm}lib/postgresql/bitcode/postgres_fdw/option.bc
${PLIST.llvm}lib/postgresql/bitcode/postgres_fdw/postgres_fdw.bc
${PLIST.llvm}lib/postgresql/bitcode/postgres_fdw/shippable.bc
${PLIST.llvm}lib/postgresql/bitcode/refint.index.bc
${PLIST.llvm}lib/postgresql/bitcode/refint/refint.bc
${PLIST.llvm}lib/postgresql/bitcode/seg.index.bc
${PLIST.llvm}lib/postgresql/bitcode/seg/seg.bc
${PLIST.llvm}lib/postgresql/bitcode/seg/segparse.bc
${PLIST.llvm}lib/postgresql/bitcode/sslinfo.index.bc
${PLIST.llvm}lib/postgresql/bitcode/sslinfo/sslinfo.bc
${PLIST.llvm}lib/postgresql/bitcode/tablefunc.index.bc
${PLIST.llvm}lib/postgresql/bitcode/tablefunc/tablefunc.bc
${PLIST.llvm}lib/postgresql/bitcode/tcn.index.bc
${PLIST.llvm}lib/postgresql/bitcode/tcn/tcn.bc
${PLIST.llvm}lib/postgresql/bitcode/test_decoding.index.bc
${PLIST.llvm}lib/postgresql/bitcode/test_decoding/test_decoding.bc
${PLIST.llvm}lib/postgresql/bitcode/tsm_system_rows.index.bc
${PLIST.llvm}lib/postgresql/bitcode/tsm_system_rows/tsm_system_rows.bc
${PLIST.llvm}lib/postgresql/bitcode/tsm_system_time.index.bc
${PLIST.llvm}lib/postgresql/bitcode/tsm_system_time/tsm_system_time.bc
${PLIST.llvm}lib/postgresql/bitcode/unaccent.index.bc
${PLIST.llvm}lib/postgresql/bitcode/unaccent/unaccent.bc
lib/postgresql/btree_gin.so
lib/postgresql/btree_gist.so
lib/postgresql/citext.so
lib/postgresql/cube.so
lib/postgresql/dblink.so
lib/postgresql/dict_int.so
lib/postgresql/dict_xsyn.so
lib/postgresql/earthdistance.so
lib/postgresql/file_fdw.so
lib/postgresql/fuzzystrmatch.so
lib/postgresql/hstore.so
lib/postgresql/insert_username.so
lib/postgresql/isn.so
lib/postgresql/lo.so
lib/postgresql/ltree.so
lib/postgresql/moddatetime.so
lib/postgresql/pageinspect.so
lib/postgresql/passwordcheck.so
lib/postgresql/pg_buffercache.so
lib/postgresql/pg_freespacemap.so
lib/postgresql/pg_prewarm.so
lib/postgresql/pg_stat_statements.so
lib/postgresql/pg_trgm.so
lib/postgresql/pgcrypto.so
lib/postgresql/pgrowlocks.so
lib/postgresql/pgstattuple.so
lib/postgresql/postgres_fdw.so
lib/postgresql/refint.so
lib/postgresql/seg.so
lib/postgresql/sslinfo.so
lib/postgresql/tablefunc.so
lib/postgresql/tcn.so
lib/postgresql/test_decoding.so
lib/postgresql/tsm_system_rows.so
lib/postgresql/tsm_system_time.so
lib/postgresql/unaccent.so
${PLIST.uuid}lib/postgresql/uuid-ossp.so
share/doc/postgresql/extension/autoinc.example
share/doc/postgresql/extension/insert_username.example
share/doc/postgresql/extension/moddatetime.example
share/doc/postgresql/extension/refint.example
share/postgresql/extension/adminpack--1.0--1.1.sql
share/postgresql/extension/adminpack--1.0.sql
share/postgresql/extension/adminpack--1.1--2.0.sql
share/postgresql/extension/adminpack.control
share/postgresql/extension/autoinc--1.0.sql
share/postgresql/extension/autoinc--unpackaged--1.0.sql
share/postgresql/extension/autoinc.control
share/postgresql/extension/btree_gin--1.0--1.1.sql
share/postgresql/extension/btree_gin--1.0.sql
share/postgresql/extension/btree_gin--1.1--1.2.sql
share/postgresql/extension/btree_gin--1.2--1.3.sql
share/postgresql/extension/btree_gin--unpackaged--1.0.sql
share/postgresql/extension/btree_gin.control
share/postgresql/extension/btree_gist--1.0--1.1.sql
share/postgresql/extension/btree_gist--1.1--1.2.sql
share/postgresql/extension/btree_gist--1.2--1.3.sql
share/postgresql/extension/btree_gist--1.2.sql
share/postgresql/extension/btree_gist--1.3--1.4.sql
share/postgresql/extension/btree_gist--1.4--1.5.sql
share/postgresql/extension/btree_gist--unpackaged--1.0.sql
share/postgresql/extension/btree_gist.control
share/postgresql/extension/citext--1.0--1.1.sql
share/postgresql/extension/citext--1.1--1.2.sql
share/postgresql/extension/citext--1.2--1.3.sql
share/postgresql/extension/citext--1.3--1.4.sql
share/postgresql/extension/citext--1.4--1.5.sql
share/postgresql/extension/citext--1.4.sql
share/postgresql/extension/citext--1.5--1.6.sql
share/postgresql/extension/citext--unpackaged--1.0.sql
share/postgresql/extension/citext.control
share/postgresql/extension/cube--1.0--1.1.sql
share/postgresql/extension/cube--1.1--1.2.sql
share/postgresql/extension/cube--1.2--1.3.sql
share/postgresql/extension/cube--1.2.sql
share/postgresql/extension/cube--1.3--1.4.sql
share/postgresql/extension/cube--unpackaged--1.0.sql
share/postgresql/extension/cube.control
share/postgresql/extension/dblink--1.0--1.1.sql
share/postgresql/extension/dblink--1.1--1.2.sql
share/postgresql/extension/dblink--1.2.sql
share/postgresql/extension/dblink--unpackaged--1.0.sql
share/postgresql/extension/dblink.control
share/postgresql/extension/dict_int--1.0.sql
share/postgresql/extension/dict_int--unpackaged--1.0.sql
share/postgresql/extension/dict_int.control
share/postgresql/extension/dict_xsyn--1.0.sql
share/postgresql/extension/dict_xsyn--unpackaged--1.0.sql
share/postgresql/extension/dict_xsyn.control
share/postgresql/extension/earthdistance--1.0--1.1.sql
share/postgresql/extension/earthdistance--1.1.sql
share/postgresql/extension/earthdistance--unpackaged--1.0.sql
share/postgresql/extension/earthdistance.control
share/postgresql/extension/file_fdw--1.0.sql
share/postgresql/extension/file_fdw.control
share/postgresql/extension/fuzzystrmatch--1.0--1.1.sql
share/postgresql/extension/fuzzystrmatch--1.1.sql
share/postgresql/extension/fuzzystrmatch--unpackaged--1.0.sql
share/postgresql/extension/fuzzystrmatch.control
share/postgresql/extension/hstore--1.0--1.1.sql
share/postgresql/extension/hstore--1.1--1.2.sql
share/postgresql/extension/hstore--1.2--1.3.sql
share/postgresql/extension/hstore--1.3--1.4.sql
share/postgresql/extension/hstore--1.4--1.5.sql
share/postgresql/extension/hstore--1.4.sql
share/postgresql/extension/hstore--1.5--1.6.sql
share/postgresql/extension/hstore--unpackaged--1.0.sql
share/postgresql/extension/hstore.control
share/postgresql/extension/insert_username--1.0.sql
share/postgresql/extension/insert_username--unpackaged--1.0.sql
share/postgresql/extension/insert_username.control
share/postgresql/extension/intagg--1.0--1.1.sql
share/postgresql/extension/intagg--1.1.sql
share/postgresql/extension/intagg--unpackaged--1.0.sql
share/postgresql/extension/intagg.control
share/postgresql/extension/intarray--1.0--1.1.sql
share/postgresql/extension/intarray--1.1--1.2.sql
share/postgresql/extension/intarray--1.2.sql
share/postgresql/extension/intarray--unpackaged--1.0.sql
share/postgresql/extension/intarray.control
share/postgresql/extension/isn--1.0--1.1.sql
share/postgresql/extension/isn--1.1--1.2.sql
share/postgresql/extension/isn--1.1.sql
share/postgresql/extension/isn--unpackaged--1.0.sql
share/postgresql/extension/isn.control
share/postgresql/extension/lo--1.0--1.1.sql
share/postgresql/extension/lo--1.1.sql
share/postgresql/extension/lo--unpackaged--1.0.sql
share/postgresql/extension/lo.control
share/postgresql/extension/ltree--1.0--1.1.sql
share/postgresql/extension/ltree--1.1.sql
share/postgresql/extension/ltree--unpackaged--1.0.sql
share/postgresql/extension/ltree.control
share/postgresql/extension/moddatetime--1.0.sql
share/postgresql/extension/moddatetime--unpackaged--1.0.sql
share/postgresql/extension/moddatetime.control
share/postgresql/extension/pageinspect--1.0--1.1.sql
share/postgresql/extension/pageinspect--1.1--1.2.sql
share/postgresql/extension/pageinspect--1.2--1.3.sql
share/postgresql/extension/pageinspect--1.3--1.4.sql
share/postgresql/extension/pageinspect--1.4--1.5.sql
share/postgresql/extension/pageinspect--1.5--1.6.sql
share/postgresql/extension/pageinspect--1.5.sql
share/postgresql/extension/pageinspect--1.6--1.7.sql
share/postgresql/extension/pageinspect--unpackaged--1.0.sql
share/postgresql/extension/pageinspect.control
share/postgresql/extension/pg_buffercache--1.0--1.1.sql
share/postgresql/extension/pg_buffercache--1.1--1.2.sql
share/postgresql/extension/pg_buffercache--1.2--1.3.sql
share/postgresql/extension/pg_buffercache--1.2.sql
share/postgresql/extension/pg_buffercache--unpackaged--1.0.sql
share/postgresql/extension/pg_buffercache.control
share/postgresql/extension/pg_freespacemap--1.0--1.1.sql
share/postgresql/extension/pg_freespacemap--1.1--1.2.sql
share/postgresql/extension/pg_freespacemap--1.1.sql
share/postgresql/extension/pg_freespacemap--unpackaged--1.0.sql
share/postgresql/extension/pg_freespacemap.control
share/postgresql/extension/pg_prewarm--1.0--1.1.sql
share/postgresql/extension/pg_prewarm--1.1--1.2.sql
share/postgresql/extension/pg_prewarm--1.1.sql
share/postgresql/extension/pg_prewarm.control
share/postgresql/extension/pg_stat_statements--1.0--1.1.sql
share/postgresql/extension/pg_stat_statements--1.1--1.2.sql
share/postgresql/extension/pg_stat_statements--1.2--1.3.sql
share/postgresql/extension/pg_stat_statements--1.3--1.4.sql
share/postgresql/extension/pg_stat_statements--1.4--1.5.sql
share/postgresql/extension/pg_stat_statements--1.4.sql
share/postgresql/extension/pg_stat_statements--1.5--1.6.sql
share/postgresql/extension/pg_stat_statements--1.6--1.7.sql
share/postgresql/extension/pg_stat_statements--unpackaged--1.0.sql
share/postgresql/extension/pg_stat_statements.control
share/postgresql/extension/pg_trgm--1.0--1.1.sql
share/postgresql/extension/pg_trgm--1.1--1.2.sql
share/postgresql/extension/pg_trgm--1.2--1.3.sql
share/postgresql/extension/pg_trgm--1.3--1.4.sql
share/postgresql/extension/pg_trgm--1.3.sql
share/postgresql/extension/pg_trgm--unpackaged--1.0.sql
share/postgresql/extension/pg_trgm.control
share/postgresql/extension/pgcrypto--1.0--1.1.sql
share/postgresql/extension/pgcrypto--1.1--1.2.sql
share/postgresql/extension/pgcrypto--1.2--1.3.sql
share/postgresql/extension/pgcrypto--1.3.sql
share/postgresql/extension/pgcrypto--unpackaged--1.0.sql
share/postgresql/extension/pgcrypto.control
share/postgresql/extension/pgrowlocks--1.0--1.1.sql
share/postgresql/extension/pgrowlocks--1.1--1.2.sql
share/postgresql/extension/pgrowlocks--1.2.sql
share/postgresql/extension/pgrowlocks--unpackaged--1.0.sql
share/postgresql/extension/pgrowlocks.control
share/postgresql/extension/pgstattuple--1.0--1.1.sql
share/postgresql/extension/pgstattuple--1.1--1.2.sql
share/postgresql/extension/pgstattuple--1.2--1.3.sql
share/postgresql/extension/pgstattuple--1.3--1.4.sql
share/postgresql/extension/pgstattuple--1.4--1.5.sql
share/postgresql/extension/pgstattuple--1.4.sql
share/postgresql/extension/pgstattuple--unpackaged--1.0.sql
share/postgresql/extension/pgstattuple.control
share/postgresql/extension/postgres_fdw--1.0.sql
share/postgresql/extension/postgres_fdw.control
share/postgresql/extension/refint--1.0.sql
share/postgresql/extension/refint--unpackaged--1.0.sql
share/postgresql/extension/refint.control
share/postgresql/extension/seg--1.0--1.1.sql
share/postgresql/extension/seg--1.1--1.2.sql
share/postgresql/extension/seg--1.1.sql
share/postgresql/extension/seg--1.2--1.3.sql
share/postgresql/extension/seg--unpackaged--1.0.sql
share/postgresql/extension/seg.control
share/postgresql/extension/sslinfo--1.0--1.1.sql
share/postgresql/extension/sslinfo--1.1--1.2.sql
share/postgresql/extension/sslinfo--1.2.sql
share/postgresql/extension/sslinfo--unpackaged--1.0.sql
share/postgresql/extension/sslinfo.control
share/postgresql/extension/tablefunc--1.0.sql
share/postgresql/extension/tablefunc--unpackaged--1.0.sql
share/postgresql/extension/tablefunc.control
share/postgresql/extension/tcn--1.0.sql
share/postgresql/extension/tcn.control
share/postgresql/extension/tsm_system_rows--1.0.sql
share/postgresql/extension/tsm_system_rows.control
share/postgresql/extension/tsm_system_time--1.0.sql
share/postgresql/extension/tsm_system_time.control
share/postgresql/extension/unaccent--1.0--1.1.sql
share/postgresql/extension/unaccent--1.1.sql
share/postgresql/extension/unaccent--unpackaged--1.0.sql
share/postgresql/extension/unaccent.control
${PLIST.uuid}share/postgresql/extension/uuid-ossp--1.0--1.1.sql
${PLIST.uuid}share/postgresql/extension/uuid-ossp--1.1.sql
${PLIST.uuid}share/postgresql/extension/uuid-ossp--unpackaged--1.0.sql
${PLIST.uuid}share/postgresql/extension/uuid-ossp.control
share/postgresql/tsearch_data/unaccent.rules
share/postgresql/tsearch_data/xsyn_sample.rules

View file

@ -0,0 +1,9 @@
PostgreSQL is a robust, next-generation, Object-Relational DBMS (ORDBMS),
derived from the Berkeley Postgres database management system. While
PostgreSQL retains the powerful object-relational data model, rich data types
and easy extensibility of Postgres, it replaces the PostQuel query language
with an extended subset of SQL.
PostgreSQL is free and the complete source is available.
This package contains the database documentation.

View file

@ -0,0 +1,21 @@
# $NetBSD: Makefile,v 1.1 2019/10/07 19:21:49 adam Exp $
PKGNAME= ${DISTNAME:C/-/12-docs-/}
COMMENT= PostgreSQL database documentation
.include "../../databases/postgresql12/Makefile.common"
BUILD_DEPENDS+= docbook-xml>=4.5:../../textproc/docbook-xml
BUILD_DEPENDS+= docbook-xsl>=1.75.2:../../textproc/docbook-xsl
BUILD_DEPENDS+= dsssl-docbook-modular>=1.79:../../textproc/dsssl-docbook-modular
BUILD_DEPENDS+= iso8879>=1986:../../textproc/iso8879
BUILD_DEPENDS+= openjade>=1.3.2:../../textproc/openjade
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
USE_TOOLS+= gzip tar perl:build
CONFIGURE_ARGS+= --datarootdir=${PREFIX}/share
CONFIGURE_ENV+= DOCBOOKSTYLE="${PREFIX}/share/sgml/docbook/dsssl/modular"
BUILD_DIRS= doc
.include "../../mk/bsd.pkg.mk"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,5 @@
PL/Perl allows you to write functions in the Perl programming language
that may be used in SQL queries as if they were built into Postgres.
The PL/Perl intepreter is a full Perl interpreter. However, certain
operations have been disabled in order to maintain the security of the
system.

View file

@ -0,0 +1,7 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2019/10/07 19:21:49 adam Exp $
Please see the PL/Perl section of the PostgreSQL Programmer's Guide
(databases/postgresql-docs) for information on programming with
${PKGNAME}.
===========================================================================

View file

@ -0,0 +1,24 @@
#$ $NetBSD: Makefile,v 1.1 2019/10/07 19:21:49 adam Exp $
PKGNAME= ${DISTNAME:C/-/12-plperl-/}
COMMENT= PL/Perl procedural language for the PostgreSQL backend
DEPENDS+= postgresql12-server>=${PKGVERSION_NOREV}:../../databases/postgresql12-server
.include "../../databases/postgresql12/Makefile.common"
USE_TOOLS+= perl
PERL5_CONFIGURE= no
CONFIGURE_ARGS+= --with-perl
BUILD_MAKE_FLAGS= PGXS=1
BUILD_DIRS= src/pl/plperl
MAKE_FILE= GNUmakefile
# There is some dependency ordering problem in the Makefile,
# so force the headers to be generated first.
BUILD_TARGET= perlchunks.h plperl_opmask.h all
.include "../../databases/postgresql12-client/buildlink3.mk"
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,26 @@
@comment $NetBSD: PLIST,v 1.1 2019/10/07 19:21:49 adam Exp $
include/postgresql/server/plperl.h
include/postgresql/server/plperl_helpers.h
include/postgresql/server/ppport.h
lib/postgresql/plperl.so
share/locale/cs/LC_MESSAGES/plperl-12.mo
share/locale/de/LC_MESSAGES/plperl-12.mo
share/locale/es/LC_MESSAGES/plperl-12.mo
share/locale/fr/LC_MESSAGES/plperl-12.mo
share/locale/it/LC_MESSAGES/plperl-12.mo
share/locale/ja/LC_MESSAGES/plperl-12.mo
share/locale/ko/LC_MESSAGES/plperl-12.mo
share/locale/pl/LC_MESSAGES/plperl-12.mo
share/locale/pt_BR/LC_MESSAGES/plperl-12.mo
share/locale/ro/LC_MESSAGES/plperl-12.mo
share/locale/ru/LC_MESSAGES/plperl-12.mo
share/locale/sv/LC_MESSAGES/plperl-12.mo
share/locale/tr/LC_MESSAGES/plperl-12.mo
share/locale/vi/LC_MESSAGES/plperl-12.mo
share/locale/zh_CN/LC_MESSAGES/plperl-12.mo
share/postgresql/extension/plperl--1.0.sql
share/postgresql/extension/plperl--unpackaged--1.0.sql
share/postgresql/extension/plperl.control
share/postgresql/extension/plperlu--1.0.sql
share/postgresql/extension/plperlu--unpackaged--1.0.sql
share/postgresql/extension/plperlu.control

View file

@ -0,0 +1,9 @@
PL/Python allows you to write functions in the Python programming
language that may be used in SQL queries as if they were built into
Postgres. The PL/Python intepreter is a full Python interpreter.
PL/Python is currently only available as an "untrusted" language
(meaning it does not offer any way of restricting what users can do
in it). It has therefore been named "plpythonu". The trusted variant
plpython may become available again in future, if a new secure execution
mechanism is developed in Python.

View file

@ -0,0 +1,17 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2019/10/07 19:21:49 adam Exp $
Please see the PL/Python section of the PostgreSQL Programmer's Guide
(databases/postgresql-docs) for information on programming with
${PKGNAME}.
Note that PL/Python is unrestricted language, meaning it does not
offer any way of restricting what users can do in it. Any DB user with
access to PL/Python can run arbitrary Python code under privileges
of the PostgreSQL server process.
To enable PL/Python for database <dbname>, run following:
createlang plpythonu <dbname>
===========================================================================

View file

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1 2019/10/07 19:21:49 adam Exp $
PKGNAME= ${DISTNAME:C/-/12-plpython-/}
COMMENT= PL/Python procedural language for the PostgreSQL backend
DEPENDS+= postgresql12-server>=${PKGVERSION_NOREV}:../../databases/postgresql12-server
.include "../../databases/postgresql12/Makefile.common"
CONFIGURE_ARGS+= --with-python
CONFIGURE_ENV+= PYTHON="${PYTHONBIN}"
BUILD_MAKE_FLAGS= PGXS=1
BUILD_DIRS= src/pl/plpython contrib/hstore_plpython
.include "../../databases/postgresql12-client/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,51 @@
@comment $NetBSD: PLIST,v 1.1 2019/10/07 19:21:49 adam Exp $
include/postgresql/server/plpy_cursorobject.h
include/postgresql/server/plpy_elog.h
include/postgresql/server/plpy_exec.h
include/postgresql/server/plpy_main.h
include/postgresql/server/plpy_planobject.h
include/postgresql/server/plpy_plpymodule.h
include/postgresql/server/plpy_procedure.h
include/postgresql/server/plpy_resultobject.h
include/postgresql/server/plpy_spi.h
include/postgresql/server/plpy_subxactobject.h
include/postgresql/server/plpy_typeio.h
include/postgresql/server/plpy_util.h
include/postgresql/server/plpython.h
${PLIST.llvm}lib/postgresql/bitcode/hstore_plpython3.index.bc
${PLIST.llvm}lib/postgresql/bitcode/hstore_plpython3/hstore_plpython.bc
${PLIST.py2x}lib/postgresql/hstore_plpython2.so
${PLIST.py3x}lib/postgresql/hstore_plpython3.so
lib/postgresql/pgxs/src/pl/plpython/regress-python3-mangle.mk
${PLIST.py2x}lib/postgresql/plpython2.so
${PLIST.py3x}lib/postgresql/plpython3.so
share/locale/cs/LC_MESSAGES/plpython-12.mo
share/locale/de/LC_MESSAGES/plpython-12.mo
share/locale/es/LC_MESSAGES/plpython-12.mo
share/locale/fr/LC_MESSAGES/plpython-12.mo
share/locale/it/LC_MESSAGES/plpython-12.mo
share/locale/ja/LC_MESSAGES/plpython-12.mo
share/locale/ko/LC_MESSAGES/plpython-12.mo
share/locale/pl/LC_MESSAGES/plpython-12.mo
share/locale/pt_BR/LC_MESSAGES/plpython-12.mo
share/locale/ru/LC_MESSAGES/plpython-12.mo
share/locale/sv/LC_MESSAGES/plpython-12.mo
share/locale/tr/LC_MESSAGES/plpython-12.mo
share/locale/uk/LC_MESSAGES/plpython-12.mo
share/locale/vi/LC_MESSAGES/plpython-12.mo
share/locale/zh_CN/LC_MESSAGES/plpython-12.mo
share/postgresql/extension/hstore_plpython2u--1.0.sql
share/postgresql/extension/hstore_plpython2u.control
share/postgresql/extension/hstore_plpython3u--1.0.sql
share/postgresql/extension/hstore_plpython3u.control
share/postgresql/extension/hstore_plpythonu--1.0.sql
share/postgresql/extension/hstore_plpythonu.control
${PLIST.py2x}share/postgresql/extension/plpython2u--1.0.sql
${PLIST.py2x}share/postgresql/extension/plpython2u--unpackaged--1.0.sql
${PLIST.py2x}share/postgresql/extension/plpython2u.control
${PLIST.py3x}share/postgresql/extension/plpython3u--1.0.sql
${PLIST.py3x}share/postgresql/extension/plpython3u--unpackaged--1.0.sql
${PLIST.py3x}share/postgresql/extension/plpython3u.control
${PLIST.py2x}share/postgresql/extension/plpythonu--1.0.sql
${PLIST.py2x}share/postgresql/extension/plpythonu--unpackaged--1.0.sql
${PLIST.py2x}share/postgresql/extension/plpythonu.control

View file

@ -0,0 +1,4 @@
PL/Tcl is a dynamic loadable extension for the PostgreSQL database system
that enables the Tcl language to be used to create functions and
trigger-procedures. It offers most of the capabilities a function
writer has in the C language.

View file

@ -0,0 +1,7 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2019/10/07 19:21:49 adam Exp $
Please see the PL/Tcl section of the PostgreSQL Programmer's Guide
(databases/postgresql-docs) for information on programming with
${PKGNAME}.
===========================================================================

View file

@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.1 2019/10/07 19:21:49 adam Exp $
PKGNAME= ${DISTNAME:C/-/12-pltcl-/}
COMMENT= PL/Tcl procedural language for the PostgreSQL backend
DEPENDS+= postgresql12-server>=${PKGVERSION_NOREV}:../../databases/postgresql12-server
.include "../../databases/postgresql12/Makefile.common"
CONFIGURE_ARGS+= --with-tcl
CONFIGURE_ARGS+= --with-tclconfig="${BUILDLINK_PREFIX.tcl}/lib"
CONFIGURE_ENV+= TCLSH="${TCLSH}"
TCLSH= ${BUILDLINK_PREFIX.tcl}/bin/tclsh
BUILD_MAKE_FLAGS= PGXS=1
BUILD_DIRS= src/pl/tcl
.include "../../databases/postgresql12-client/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,22 @@
@comment $NetBSD: PLIST,v 1.1 2019/10/07 19:21:49 adam Exp $
lib/postgresql/pltcl.so
share/locale/cs/LC_MESSAGES/pltcl-12.mo
share/locale/de/LC_MESSAGES/pltcl-12.mo
share/locale/es/LC_MESSAGES/pltcl-12.mo
share/locale/fr/LC_MESSAGES/pltcl-12.mo
share/locale/it/LC_MESSAGES/pltcl-12.mo
share/locale/ja/LC_MESSAGES/pltcl-12.mo
share/locale/ko/LC_MESSAGES/pltcl-12.mo
share/locale/pl/LC_MESSAGES/pltcl-12.mo
share/locale/ru/LC_MESSAGES/pltcl-12.mo
share/locale/sv/LC_MESSAGES/pltcl-12.mo
share/locale/tr/LC_MESSAGES/pltcl-12.mo
share/locale/uk/LC_MESSAGES/pltcl-12.mo
share/locale/vi/LC_MESSAGES/pltcl-12.mo
share/locale/zh_CN/LC_MESSAGES/pltcl-12.mo
share/postgresql/extension/pltcl--1.0.sql
share/postgresql/extension/pltcl--unpackaged--1.0.sql
share/postgresql/extension/pltcl.control
share/postgresql/extension/pltclu--1.0.sql
share/postgresql/extension/pltclu--unpackaged--1.0.sql
share/postgresql/extension/pltclu.control

View file

@ -0,0 +1,20 @@
# $NetBSD: DEINSTALL,v 1.1 2019/10/07 19:21:49 adam Exp $
case ${STAGE} in
DEINSTALL)
${CAT} << EOF
===========================================================================
If you intend to upgrade your PostgreSQL installation, you may need to
perform a dump-and-restore to move your current databases into the newer
PostgreSQL installation. Please dump your databases *prior* to installing
the new PostgreSQL.
Please see the Backup and Restore section of the PostgreSQL Administrator's
Guide (databases/postgresql-docs) for complete information on how to
perform the databases dump.
===========================================================================
EOF
;;
esac

View file

@ -0,0 +1,9 @@
PostgreSQL is a robust, next-generation, Object-Relational DBMS (ORDBMS),
derived from the Berkeley Postgres database management system. While
PostgreSQL retains the powerful object-relational data model, rich data types
and easy extensibility of Postgres, it replaces the PostQuel query language
with an extended subset of SQL.
PostgreSQL is free and the complete source is available.
This package contains the database server programs.

View file

@ -0,0 +1,77 @@
# $NetBSD: Makefile,v 1.1 2019/10/07 19:21:49 adam Exp $
PKGNAME= ${DISTNAME:C/-/12-server-/}
COMMENT= PostgreSQL database server programs
# mips has no TAS implementation
BROKEN_ON_PLATFORM= *-*-mips
.include "../../databases/postgresql12/Makefile.common"
CONFIGURE_ARGS+= --with-openssl
INSTALL_DIRS= src/backend
INSTALL_DIRS+= src/backend/replication/libpqwalreceiver
INSTALL_DIRS+= src/backend/replication/pgoutput
INSTALL_DIRS+= src/backend/utils/mb/conversion_procs
INSTALL_DIRS+= src/backend/snowball
INSTALL_DIRS+= src/timezone
INSTALL_DIRS+= src/pl
BUILD_DIRS= src/port
BUILD_DIRS+= ${INSTALL_DIRS}
LIBS.SunOS+= -lintl
# PostgreSQL has loadable server-side language modules.
#
# Explicitly set DLOPEN_REQUIRE_PTHREADS to "no" on NetBSD as NetBSD-2.x
# had problems with mixing dlopen() and pthreads, which blows up in
# PostgreSQL's backend (pkg/28729). This works on older and newer
# versions of NetBSD as well since they don't have the bad interaction
# between dlopen() and pthreads.
.if ${OPSYS} == "NetBSD"
DLOPEN_REQUIRE_PTHREADS= no
.endif
.include "../../mk/dlopen.buildlink3.mk"
# If we're using libltdl to provide "dlopen" functionality, then add the
# dependency and make sure that we link against -lltdl.
.if !empty(USE_LIBLTDL:M[yY][eE][sS])
DL_LIBS+= -lltdl
. include "../../devel/libltdl/buildlink3.mk"
.endif
# PGUSER username of the database administrator
# PGGROUP group of the database administrator
# PGHOME home directory of the database administrator and location of
# the databases
FILES_SUBST+= PGUSER=${PGUSER}
FILES_SUBST+= PGGROUP=${PGGROUP}
FILES_SUBST+= PGHOME=${PGHOME}
BUILD_DEFS+= PGHOME VARBASE
ALL_ENV+= INSTALLED_LIBPQ=yes
PKG_GROUPS_VARS+= PGGROUP
PKG_USERS_VARS+= PGUSER
PKG_GROUPS= ${PGGROUP}
PKG_USERS= ${PGUSER}:${PGGROUP}
PKG_GECOS.${PGUSER}= PostgreSQL database administrator
PKG_HOME.${PGUSER}= ${PGHOME}
RCD_SCRIPTS= pgsql
SMF_METHODS= postgresql
SMF_NAME= postgresql
.include "../../databases/postgresql12-client/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
# Avoid conflict between "${SSLBASE}/include/openssl/des.h" and
# "/usr/include/crypt.h" -- we want the definitions in the former.
post-wrapper:
.if ${OPSYS} == "SunOS"
touch ${BUILDLINK_DIR}/include/crypt.h
.endif
.include "../../mk/bsd.pkg.mk"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,132 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: pgsql.sh,v 1.1 2019/10/07 19:21:49 adam Exp $
#
# PostgreSQL database rc.d control script
#
# PROVIDE: pgsql
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# You will need to set some variables in /etc/rc.conf to start PostgreSQL:
#
# pgsql=YES
#
# Optionally, "pgsql_flags" contains options for the PostgreSQL postmaster, e.g.
# pgsql_flags="-i" # allows TCP/IP connections
# pgsql_flags="-i -l" # enables SSL connections
# pgsql_home="/path/to/home" # path to pgsql database directory
# See postmaster(1) for possible options.
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="pgsql"
rcvar=${name}
command="@PREFIX@/bin/pg_ctl"
procname="@PREFIX@/bin/postgres"
: ${pgsql_user:=@PGUSER@}
: ${pgsql_group:=@PGGROUP@}
: ${pgsql_home:=@PGHOME@}
extra_commands="initdb reload"
initdb_cmd="pgsql_initdb"
start_precmd="pgsql_precmd"
start_cmd="pgsql_start"
restart_precmd="pgsql_precmd"
restart_cmd="pgsql_restart"
stop_cmd="pgsql_stop"
reload_cmd="pgsql_reload"
if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
load_rc_config $name
elif [ -f /etc/rc.conf ]; then
. /etc/rc.conf
fi
cd /
command_args="-w -s -D ${pgsql_home}/data -m fast -l ${pgsql_home}/errlog"
if [ -n "${pgsql_flags}" ]; then
command_args="${command_args} -o \\\"${pgsql_flags}\\\""
fi
pgsql_precmd()
{
ulimit -n 4096
if [ ! -d ${pgsql_home}/data/base ]; then
pgsql_initdb
fi
}
pgsql_initdb()
{
if [ -d ${pgsql_home}/data/base ]; then
@ECHO@ "The PostgreSQL template databases have already been initialized."
@ECHO@ "Skipping database initialization."
else
@ECHO@ "Initializing PostgreSQL databases."
@MKDIR@ -p ${pgsql_home}
@CHOWN@ ${pgsql_user} ${pgsql_home}
@CHGRP@ ${pgsql_group} ${pgsql_home}
@CHMOD@ 0700 ${pgsql_home}
doit="@SU@ -m ${pgsql_user} -c '${command} init ${command_args}'"
eval $doit
fi
}
pgsql_start()
{
@ECHO@ "Starting ${name}."
doit="@SU@ -m ${pgsql_user} -c '${command} start ${command_args}'"
eval $doit
}
pgsql_restart()
{
@ECHO@ "Restarting ${name}."
doit="@SU@ -m ${pgsql_user} -c '${command} restart ${command_args}'"
eval $doit
}
pgsql_stop()
{
@ECHO@ "Stopping ${name}."
doit="@SU@ -m ${pgsql_user} -c '${command} stop ${command_args}'"
eval $doit
}
pgsql_reload()
{
@ECHO@ "Reloading ${name}."
doit="@SU@ -m ${pgsql_user} -c '${command} reload ${command_args}'"
eval $doit
}
if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
run_rc_command "$1"
else
pidfile="${pgsql_home}/data/postmaster.pid"
case "$1" in
initdb)
eval ${initdb_cmd}
;;
restart)
eval ${restart_precmd}
eval ${restart_cmd}
;;
stop)
if [ -r "${pidfile}" ]; then
eval ${stop_cmd}
fi
;;
reload)
eval ${reload_cmd}
;;
*)
eval ${start_precmd}
eval ${start_cmd}
;;
esac
fi

View file

@ -0,0 +1,37 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='export'>
<service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
<create_default_instance enabled='false' />
<single_instance />
<dependency name='network' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/milestone/network:default' />
</dependency>
<dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local:default' />
</dependency>
<method_context>
<method_credential user='@PGUSER@' group='@PGGROUP@' />
<method_environment>
<envvar name="LD_PRELOAD_32" value="/usr/lib/extendedFILE.so.1" />
<envvar name='PATH' value='@PREFIX@/bin:@PREFIX@/sbin:/usr/bin:/usr/sbin:/bin:/sbin'/>
</method_environment>
</method_context>
<exec_method type='method' name='start' exec='@PREFIX@/@SMF_METHOD_FILE.postgresql@ start' timeout_seconds='300' />
<exec_method type='method' name='stop' exec='@PREFIX@/@SMF_METHOD_FILE.postgresql@ stop' timeout_seconds='300' />
<exec_method type='method' name='refresh' exec='@PREFIX@/@SMF_METHOD_FILE.postgresql@ refresh' timeout_seconds='60' />
<property_group name='config' type='application'>
<propval name='data' type='astring' value='@PGHOME@/data' />
<propval name='log' type='astring' value='@VARBASE@/log/postgresql.log' />
</property_group>
<template>
<common_name>
<loctext xml:lang='C'>PostgreSQL RDBMS</loctext>
</common_name>
<documentation>
<manpage title='postgres' section='1M' manpath='@PREFIX@/@PKGMANDIR@'/>
<doc_link name='postgresql.org' uri='http://postgresql.org' />
</documentation>
</template>
</service>
</service_bundle>

View file

@ -0,0 +1,57 @@
#!/sbin/sh
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E SMI"
. /lib/svc/share/smf_include.sh
# SMF_FMRI is the name of the target service. This allows multiple instances
# to use the same script.
getproparg()
{ val=`svcprop -p $1 $SMF_FMRI`
[ -n "$val" ] && echo $val
}
PGBIN=@PREFIX@/bin
PGDATA=`getproparg config/data`
PGLOG=`getproparg config/log`
if [ -z $SMF_FMRI ]; then
echo "SMF framework variables are not initialized."
exit $SMF_EXIT_ERR
fi
if [ -z $PGDATA ]; then
echo "postgresql/data property not set"
exit $SMF_EXIT_ERR_CONFIG
fi
if [ -z $PGLOG ]; then
echo "postgresql/log property not set"
exit $SMF_EXIT_ERR_CONFIG
fi
case "$1" in
'start')
ulimit -n 10240
$PGBIN/pg_ctl -D $PGDATA -l $PGLOG start
;;
'stop')
$PGBIN/pg_ctl -D $PGDATA stop
;;
'refresh')
$PGBIN/pg_ctl -D $PGDATA reload
;;
*)
echo $"Usage: $0 {start|refresh}"
exit 1
;;
esac
exit $SMF_EXIT_OK

View file

@ -0,0 +1,9 @@
PostgreSQL is a robust, next-generation, Object-Relational DBMS (ORDBMS),
derived from the Berkeley Postgres database management system. While
PostgreSQL retains the powerful object-relational data model, rich data types
and easy extensibility of Postgres, it replaces the PostQuel query language
with an extended subset of SQL.
PostgreSQL is free and the complete source is available.
This is the meta-package for the PostgreSQL database system.

View file

@ -0,0 +1,14 @@
# $NetBSD: Makefile,v 1.1 2019/10/07 19:21:48 adam Exp $
PKGNAME= ${DISTNAME:C/-/12-/}
COMMENT= Robust, next generation, object-relational DBMS
DEPENDS+= postgresql12-client>=${PKGVERSION_NOREV}:../../databases/postgresql12-client
DEPENDS+= postgresql12-docs>=${PKGVERSION_NOREV}:../../databases/postgresql12-docs
DEPENDS+= postgresql12-server>=${PKGVERSION_NOREV}:../../databases/postgresql12-server
META_PACKAGE= yes
.include "Makefile.common"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,119 @@
# $NetBSD: Makefile.common,v 1.1 2019/10/07 19:21:48 adam Exp $
#
# This Makefile fragment is included by all PostgreSQL packages built from
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
#
# The PostgreSQL package naming scheme, aside from the obvious piecewise
# packages, is as follows:
# <lang>-postgresql client-side interface to PostgreSQL
# postgresql-<lang> server-side module for PostgreSQL backend
#
# used by databases/postgresql12-client/Makefile
# used by databases/postgresql12-contrib/Makefile
# used by databases/postgresql12-docs/Makefile
# used by databases/postgresql12-plperl/Makefile
# used by databases/postgresql12-plpython/Makefile
# used by databases/postgresql12-pltcl/Makefile
# used by databases/postgresql12-server/Makefile
DISTNAME= postgresql-12.0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_PGSQL:=source/v${PKGVERSION_NOREV}/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER?= adam@NetBSD.org
HOMEPAGE= https://www.postgresql.org/
LICENSE= postgresql-license
CONFLICTS+= postgresql-[0-9]*
CONFLICTS+= postgresql[2-9][0-9]-[0-9]*
.if !empty(PKGNAME:M*-*-*)
module= ${PKGNAME:C/-[0-9].*$//:C/^.*-//}
CONFLICTS+= postgresql[2-9][0-9]-${module}-[0-9]*
.endif
DISTINFO_FILE?= ${.CURDIR}/../../databases/postgresql12/distinfo
PATCHDIR?= ${.CURDIR}/../../databases/postgresql12/patches
USE_PKGLOCALEDIR= yes
USE_TOOLS+= bison gmake lex msgfmt
PKG_SYSCONFSUBDIR= postgresql
.include "../../mk/bsd.prefs.mk"
PG_TEMPLATE.SunOS= solaris
PG_TEMPLATE.IRIX= irix5
PG_TEMPLATE.MirBSD= openbsd
.if !defined(PG_TEMPLATE.${OPSYS})
PG_TEMPLATE.${OPSYS}= ${LOWER_OPSYS}
.endif
PG_DATA_DIR= ${PREFIX}/share/postgresql
PG_DOC_DIR= ${PREFIX}/share/doc/postgresql
PG_LOCALE_DIR= ${PREFIX}/${PKGLOCALEDIR}/locale
PG_ETC_DIR= ${PKG_SYSCONFDIR}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PG_ETC_DIR}
CONFIGURE_ARGS+= --datadir=${PG_DATA_DIR}
CONFIGURE_ARGS+= --docdir=${PG_DOC_DIR}
CONFIGURE_ARGS+= --localedir=${PG_LOCALE_DIR}
CONFIGURE_ARGS+= --with-template=${PG_TEMPLATE.${OPSYS}}
CONFIGURE_ARGS+= --enable-nls
CONFIGURE_ARGS+= --with-libxml
CONFIGURE_ARGS+= --with-readline
CONFIGURE_ARGS+= --without-perl
CONFIGURE_ARGS+= --without-python
CONFIGURE_ARGS+= --without-tcl
# avoid pointing to a wrapper
CONFIGURE_ENV+= MSGFMT=${TOOLS_PATH.msgfmt}
# sys/ucred.h shouldn't be included on Solaris, causes conflicts between
# procfs and largefile.
CONFIGURE_ENV.SunOS+= ac_cv_header_sys_ucred_h=no
# pkgsrc silently filters the --as-needed linker arg, but that makes
# it leak into the pgxs Makefiles and compromises manual building
# against PostgreSQL files installed. Disable it here to prevent
# that from happening.
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin"
CONFIGURE_ENV+= pgac_cv_prog_cc_ldflags__Wl___as_needed=no
.endif
# configure fails on OpenBSD and MirBSD if thread safety is enabled.
CONFIGURE_ARGS.MirBSD+= --disable-thread-safety
CONFIGURE_ARGS.OpenBSD+=--disable-thread-safety
# PGSQL_BLCKSZ is the size in bytes of a PostgreSQL disk page or block.
# This also limits the size of a tuple. The valid values are powers
# of 2 up to 32768, and the default size is 8196. Please don't change
# this value unless you know what you are doing.
BUILD_DEFS+= PGSQL_BLCKSZ
.if defined(PGSQL_BLCKSZ)
CONFIGURE_ARGS+= --with-blocksize=${PGSQL_BLCKSZ}
.endif
# PostgreSQL explicitly forbids any use of -ffast-math
BUILDLINK_TRANSFORM+= rm:-ffast-math
.include "../../devel/gettext-lib/buildlink3.mk"
LIBS.SunOS+= -lintl
.include "../../devel/zlib/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.if ${READLINE_TYPE} == "editline"
CONFIGURE_ARGS+= --with-libedit-preferred
.endif
.if !defined(META_PACKAGE)
post-extract:
${TOUCH} ${WRKSRC}/src/template/dragonfly
${CP} ${WRKSRC}/src/makefiles/Makefile.freebsd \
${WRKSRC}/src/makefiles/Makefile.dragonfly
.endif
.include "../../databases/postgresql12/options.mk"

View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2019/10/07 19:21:48 adam Exp $
@comment this plist intentionally left empty

View file

@ -0,0 +1,17 @@
$NetBSD: distinfo,v 1.1 2019/10/07 19:21:48 adam Exp $
SHA1 (postgresql-12.0.tar.bz2) = bed695e1c6846337d5297439ef76969f5c9fdc20
RMD160 (postgresql-12.0.tar.bz2) = 3633b7841072a1c81b521ad5383fca9200d44ee8
SHA512 (postgresql-12.0.tar.bz2) = 231a0b5c181c33cb01c3f39de1802319b79eceec6997935ab8605dea1f4583a52d0d16e5a70fcdeea313462f062503361d543433ee03d858ba332c72a665f696
Size (postgresql-12.0.tar.bz2) = 20177458 bytes
SHA1 (patch-config_missing) = c2d7d742922ba6861e7660c75b7b53f09e564813
SHA1 (patch-config_perl.m4) = b3393d0f28e97f89ae20297d85553c508b3896bb
SHA1 (patch-configure) = b0a758023b3b263ff51b154d0da32cf02520c6cd
SHA1 (patch-contrib_dblink_dblink.c) = a6f87ab9f2c28a72608d70267b71bd77437b0921
SHA1 (patch-src_Makefile.global.in) = 335b57afff23a9684ab0a09257665810c1ba2d1e
SHA1 (patch-src_Makefile.shlib) = 4e093c79345add008a56c10d1c1bc8574f7a38e1
SHA1 (patch-src_backend_Makefile) = 209f4cfb1670381838e7f25ead7ab9f0f671f89c
SHA1 (patch-src_interfaces_libpq_Makefile) = 61bcf84eb69b6ec9faabab0b61913766f4b20f8c
SHA1 (patch-src_makefiles_Makefile.solaris) = 10bf43bee54a6a1b6086c1652076544b05bf0192
SHA1 (patch-src_pl_plperl_GNUmakefile) = 161a8f7af61b3a33b255fdee9fa7d4918decde7d
SHA1 (patch-src_pl_plperl_plperl.h) = 4ea16bbb0f9f98a609e67ceb858f22cc77be89ae

View file

@ -0,0 +1,57 @@
# $NetBSD: options.mk,v 1.1 2019/10/07 19:21:48 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql12
PKG_SUPPORTED_OPTIONS= bonjour dtrace icu llvm gssapi ldap pam
PKG_SUGGESTED_OPTIONS= gssapi
.include "../../mk/bsd.options.mk"
# Bonjour support
.if !empty(PKG_OPTIONS:Mbonjour)
CONFIGURE_ARGS+= --with-bonjour
. if ${OPSYS} != "Darwin"
LIBS+= -ldns_sd
. endif
. include "../../net/mDNSResponder/buildlink3.mk"
.endif
# Dtrace support
.if !empty(PKG_OPTIONS:Mdtrace)
CONFIGURE_ARGS+= --enable-dtrace
.endif
# ICU collatium support
.if !empty(PKG_OPTIONS:Micu)
USE_TOOLS+= pkg-config
CONFIGURE_ARGS+= --with-icu
. include "../../textproc/icu/buildlink3.mk"
.endif
# GSSAPI (Kerberos5) authentication for the PostgreSQL backend
.if !empty(PKG_OPTIONS:Mgssapi)
. include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+= --with-gssapi
.else
CONFIGURE_ARGS+= --without-gssapi
.endif
# LDAP authentication for the PostgreSQL backend
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap
.endif
# LLVM based JIT support
PLIST_VARS+= llvm
.if !empty(PKG_OPTIONS:Mllvm)
. include "../../lang/llvm/buildlink3.mk"
CONFIGURE_ARGS+= --with-llvm
CONFIGURE_ENV+= CLANG=${CC} # XXX: make it be better
PLIST.llvm= yes
.endif
# PAM authentication for the PostgreSQL backend
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --with-pam
.endif

View file

@ -0,0 +1,13 @@
$NetBSD: patch-config_missing,v 1.1 2019/10/07 19:21:48 adam Exp $
--- config/missing.orig 2012-10-05 12:14:55.000000000 +0000
+++ config/missing
@@ -40,7 +40,7 @@ pre-packaged $1 output.
ERROR: Perl is missing on your system. It is needed unless you are building
from an unmodified official distribution of PostgreSQL.
***" >&2
- exit 1
+ exit 0
;;
*)

View file

@ -0,0 +1,15 @@
$NetBSD: patch-config_perl.m4,v 1.1 2019/10/07 19:21:48 adam Exp $
--- config/perl.m4.orig 2018-02-05 21:01:02.000000000 +0000
+++ config/perl.m4
@@ -97,9 +97,7 @@ if test "$PORTNAME" = "win32" ; then
fi
fi
else
- pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
- pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
- perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e ["s/ -arch [-a-zA-Z0-9_]*//g"]`
+ perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts`
fi
AC_SUBST(perl_embed_ldflags)dnl
if test -z "$perl_embed_ldflags" ; then

View file

@ -0,0 +1,34 @@
$NetBSD: patch-configure,v 1.1 2019/10/07 19:21:48 adam Exp $
Finally, native solaris uses -lgss for gssapi on mit-krb5.
--- configure.orig 2018-02-05 21:01:02.000000000 +0000
+++ configure
@@ -2879,6 +2879,7 @@ case $host_os in
darwin*) template=darwin ;;
dragonfly*) template=netbsd ;;
freebsd*) template=freebsd ;;
+ dragonfly*) template=dragonfly ;;
hpux*) template=hpux ;;
linux*|gnu*|k*bsd*-gnu)
template=linux ;;
@@ -7884,9 +7885,7 @@ if test "$PORTNAME" = "win32" ; then
fi
fi
else
- pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
- pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
- perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
+ perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts`
fi
if test -z "$perl_embed_ldflags" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
@@ -9928,7 +9927,7 @@ return gss_init_sec_context ();
return 0;
}
_ACEOF
-for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
+for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto' 'gss -lkrb5 lcrypto'; do
if test -z "$ac_lib"; then
ac_res="none required"
else

View file

@ -0,0 +1,13 @@
$NetBSD: patch-contrib_dblink_dblink.c,v 1.1 2019/10/07 19:21:48 adam Exp $
--- contrib/dblink/dblink.c.orig 2013-04-01 18:20:36.000000000 +0000
+++ contrib/dblink/dblink.c
@@ -52,7 +52,7 @@
#include "parser/scansup.h"
#include "utils/acl.h"
#include "utils/builtins.h"
-#include "utils/fmgroids.h"
+#include "postgresql/server/utils/fmgroids.h"
#include "utils/guc.h"
#include "utils/lsyscache.h"
#include "utils/memutils.h"

View file

@ -0,0 +1,28 @@
$NetBSD: patch-src_Makefile.global.in,v 1.1 2019/10/07 19:21:48 adam Exp $
Do not store CONFIGURE_ARGS, as these may contain working directory references.
Fix building on Cygwin.
--- src/Makefile.global.in.orig 2017-10-02 21:09:15.000000000 +0000
+++ src/Makefile.global.in
@@ -74,8 +74,6 @@ endif # not PGXS
vpathsearch = `for f in $(addsuffix /$(1),$(subst :, ,. $(VPATH))); do test -r $$f && echo $$f && break; done`
-# Saved arguments from configure
-configure_args = @configure_args@
##########################################################################
@@ -641,6 +639,11 @@ ifeq ($(PORTNAME),win32)
LIBS += -lws2_32
endif
+# missing for link on cygwin ?
+ifeq ($(PORTNAME),cygwin)
+LIBS += $(LDAP_LIBS_BE)
+endif
+
# Not really standard libc functions, used by the backend.
TAS = @TAS@

View file

@ -0,0 +1,74 @@
$NetBSD: patch-src_Makefile.shlib,v 1.1 2019/10/07 19:21:48 adam Exp $
Use correct linker flags.
--- src/Makefile.shlib.orig 2018-10-15 21:12:02.000000000 +0000
+++ src/Makefile.shlib
@@ -157,9 +157,6 @@ endif
ifeq ($(PORTNAME), freebsd)
ifdef ELF_SYSTEM
- ifdef SO_MAJOR_VERSION
- shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
- endif
LINK.shared = $(COMPILER) -shared
ifdef soname
LINK.shared += -Wl,-x,-soname,$(soname)
@@ -170,9 +167,6 @@ ifeq ($(PORTNAME), freebsd)
LINK.shared += -Wl,--version-script=$(exports_file)
endif
else
- ifdef SO_MAJOR_VERSION
- shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- endif
LINK.shared = $(LD) -x -Bshareable -Bforcearchive
endif
endif
@@ -193,6 +187,17 @@ ifeq ($(PORTNAME), netbsd)
endif
endif
+ifeq ($(PORTNAME), dragonfly)
+ ifdef ELF_SYSTEM
+ LINK.shared = $(COMPILER) -shared
+ ifdef soname
+ LINK.shared += -Wl,-x,-soname,$(soname)
+ endif
+ else
+ LINK.shared = $(LD) -x -Bshareable -Bforcearchive
+ endif
+endif
+
ifeq ($(PORTNAME), hpux)
ifdef SO_MAJOR_VERSION
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
@@ -248,7 +253,7 @@ ifeq ($(PORTNAME), solaris)
ifeq ($(with_gnu_ld), yes)
LINK.shared += -Wl,-soname,$(soname)
else
- LINK.shared += -h $(soname)
+ LINK.shared += -Wl,-h,$(soname)
endif
endif
endif
@@ -459,8 +464,10 @@ ifdef soname
# we don't install $(shlib) on AIX
# (see http://archives.postgresql.org/message-id/52EF20B2E3209443BC37736D00C3C1380A6E79FE@EXADV1.host.magwien.gv.at)
ifneq ($(PORTNAME), aix)
+ifeq ($(PORTNAME), cygwin)
+ $(INSTALL_SHLIB) $< '$(DESTDIR)$(bindir)/$(shlib)'
+else
$(INSTALL_SHLIB) $< '$(DESTDIR)$(libdir)/$(shlib)'
-ifneq ($(PORTNAME), cygwin)
ifneq ($(PORTNAME), win32)
ifneq ($(shlib), $(shlib_major))
cd '$(DESTDIR)$(libdir)' && \
@@ -473,7 +480,7 @@ ifneq ($(shlib), $(shlib_bare))
$(LN_S) $(shlib) $(shlib_bare)
endif
endif # not win32
-endif # not cygwin
+endif # cygwin
endif # not aix
ifneq (,$(findstring $(PORTNAME),win32 cygwin))
$(INSTALL_SHLIB) $< '$(DESTDIR)$(bindir)/$(shlib)'

View file

@ -0,0 +1,24 @@
$NetBSD: patch-src_backend_Makefile,v 1.1 2019/10/07 19:21:48 adam Exp $
--- src/backend/Makefile.orig 2018-10-15 21:12:02.000000000 +0000
+++ src/backend/Makefile
@@ -17,6 +17,10 @@ subdir = src/backend
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
+CFLAGS+= $(DL_CFLAGS)
+LDFLAGS+= $(DL_LDFLAGS)
+LIBS+= $(DL_LIBS)
+
SUBDIRS = access bootstrap catalog parser commands executor foreign lib libpq \
main nodes optimizer partitioning port postmaster \
regex replication rewrite \
@@ -113,6 +117,8 @@ endif # aix
$(top_builddir)/src/port/libpgport_srv.a: | submake-libpgport
+$(top_builddir)/src/common/libpgcommon_srv.a: | submake-libpgport
+
# The postgres.o target is needed by the rule in Makefile.global that
# creates the exports file when MAKE_EXPORTS = true.

View file

@ -0,0 +1,13 @@
$NetBSD: patch-src_interfaces_libpq_Makefile,v 1.1 2019/10/07 19:21:48 adam Exp $
--- src/interfaces/libpq/Makefile.orig 2016-02-08 21:12:28.000000000 +0000
+++ src/interfaces/libpq/Makefile
@@ -49,7 +49,7 @@ OBJS += fe-secure-openssl.o
endif
ifeq ($(PORTNAME), cygwin)
-override shlib = cyg$(NAME)$(DLSUFFIX)
+override shlib = cyg$(NAME)-$(SO_MAJOR_VERSION)$(DLSUFFIX)
endif
ifeq ($(PORTNAME), win32)

View file

@ -0,0 +1,10 @@
$NetBSD: patch-src_makefiles_Makefile.solaris,v 1.1 2019/10/07 19:21:48 adam Exp $
--- src/makefiles/Makefile.solaris.orig 2019-09-30 20:06:55.000000000 +0000
+++ src/makefiles/Makefile.solaris
@@ -23,5 +23,3 @@ ifeq ($(GCC), yes)
else
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -G -o $@
endif
-
-sqlmansect = 5sql

View file

@ -0,0 +1,21 @@
$NetBSD: patch-src_pl_plperl_GNUmakefile,v 1.1 2019/10/07 19:21:48 adam Exp $
--- src/pl/plperl/GNUmakefile.orig 2018-10-15 21:12:02.000000000 +0000
+++ src/pl/plperl/GNUmakefile
@@ -69,7 +69,6 @@ XSUBPPDIR = $(shell $(PERL) -e 'use List
include $(top_srcdir)/src/Makefile.shlib
-plperl.o: perlchunks.h plperl_opmask.h plperl_helpers.h
plperl_opmask.h: plperl_opmask.pl
@if [ x"$(perl_privlibexp)" = x"" ]; then echo "configure switch --with-perl was not specified."; exit 1; fi
@@ -79,7 +78,7 @@ perlchunks.h: $(PERLCHUNKS)
@if [ x"$(perl_privlibexp)" = x"" ]; then echo "configure switch --with-perl was not specified."; exit 1; fi
$(PERL) $(srcdir)/text2macro.pl --strip='^(\#.*|\s*)$$' $^ > $@
-all: all-lib
+all: perlchunks.h plperl_opmask.h plperl_helpers.h all-lib
%.c: %.xs
@if [ x"$(perl_privlibexp)" = x"" ]; then echo "configure switch --with-perl was not specified."; exit 1; fi

View file

@ -0,0 +1,27 @@
$NetBSD: patch-src_pl_plperl_plperl.h,v 1.1 2019/10/07 19:21:48 adam Exp $
--- src/pl/plperl/plperl.h.orig 2019-09-30 20:06:55.000000000 +0000
+++ src/pl/plperl/plperl.h
@@ -68,6 +68,10 @@
#define HAS_BOOL 1
#endif
+#ifdef __sun
+#define list_head sun_list_head
+#define list_tail sun_list_tail
+#endif
/*
* Get the basic Perl API. We use PERL_NO_GET_CONTEXT mode so that our code
@@ -110,6 +114,11 @@
#include "XSUB.h"
#endif
+#ifdef __sun
+#undef list_head
+#undef list_tail
+#endif
+
/* put back our *printf macros ... this must match src/include/port.h */
#ifdef vsnprintf
#undef vsnprintf

View file

@ -1,4 +1,4 @@
# $NetBSD: pgsql.buildlink3.mk,v 1.49 2019/05/21 05:52:31 adam Exp $
# $NetBSD: pgsql.buildlink3.mk,v 1.50 2019/10/07 19:21:48 adam Exp $
#
# User-settable variables:
#
@ -25,7 +25,7 @@ _SYS_VARS.pgsql= PG_LIB_EXT PGSQL_TYPE PGPKGSRCDIR
.include "../../mk/bsd.prefs.mk"
PGSQL_VERSION_DEFAULT?= 95
PGSQL_VERSIONS_ACCEPTED?= 11 10 96 95 94
PGSQL_VERSIONS_ACCEPTED?= 12 11 10 96 95 94
# transform the list into individual variables
.for pv in ${PGSQL_VERSIONS_ACCEPTED}
@ -40,6 +40,9 @@ PG_LIB_EXT=so
# check what is installed
.if ${OPSYS} == "Darwin"
. if exists(${LOCALBASE}/lib/libecpg.6.12.dylib)
_PGSQL_VERSION_12_INSTALLED= yes
. endif
. if exists(${LOCALBASE}/lib/libecpg.6.11.dylib)
_PGSQL_VERSION_11_INSTALLED= yes
. endif
@ -56,6 +59,9 @@ _PGSQL_VERSION_95_INSTALLED= yes
_PGSQL_VERSION_94_INSTALLED= yes
. endif
.else
. if exists(${LOCALBASE}/lib/libecpg.so.6.12)
_PGSQL_VERSION_12_INSTALLED= yes
. endif
. if exists(${LOCALBASE}/lib/libecpg.so.6.11)
_PGSQL_VERSION_11_INSTALLED= yes
. endif
@ -108,7 +114,10 @@ _PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED}
.endif
# set variables for the version we decided to use:
.if ${_PGSQL_VERSION} == "11"
.if ${_PGSQL_VERSION} == "12"
PGSQL_TYPE= postgresql12-client
PGPKGSRCDIR= ../../databases/postgresql12-client
.elif ${_PGSQL_VERSION} == "11"
PGSQL_TYPE= postgresql11-client
PGPKGSRCDIR= ../../databases/postgresql11-client
.elif ${_PGSQL_VERSION} == "10"