From nobody Tue Aug 22 08:16:45 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RVMd92mDSz4qYmB; Tue, 22 Aug 2023 08:16:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RVMd92CsFz4pNQ; Tue, 22 Aug 2023 08:16:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692692205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mdayY+mrXiYn41DdYNf3Eo0QO1DUgJsOMntl43zhfRg=; b=CjimrQhnw2yvQrMYRb/6MmedRlWdWd2TKPH+vm7XDEIdxL/sM9T0a6xBTePH3Zc5wDo4e5 dFfrUOJZNtVw4WbCiPP8s4xzgVcwLPxNouPKmpMvo/ALvvwJu7OntWAvaFctQ3390f8fva sD68p5QeUvmhUSmo5TTHmOOP5SjPbV5uMBRCYPiaf76nncpXXifLYe7LIyZy2l3xmQzBju wen/zkF4fuCCKJmRfmMiL/z8Ff5JJHUpC7TpmCNf3PmPl276p9PW0lebcotNGOF6/SA51X 4ryd8JxEUBGZ+iDVefPGZMX7dafM3J9KIA8kK1tE6lcWYLko+Rv7V/JVUg4kAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692692205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mdayY+mrXiYn41DdYNf3Eo0QO1DUgJsOMntl43zhfRg=; b=fILRwajBN6Av3M8+6oOXXjcadMW/zAP/z5SKSs6CUeseyWN8xQO0yPadAhwCuB0ncGQhP/ wJ4UqhBJ0gNQt9YJCCp5toBbzeYEqjfkRIFvDBDbG4VIlluCXQt/FVfF+yiptc97sh/wTP K6XCV1iOLR1JhvK+ZiWlNy3UCiY5AvXe3b3Yh5luIod5GpHUzElgWvFWvXtkPBpCXwHRyo UDdzZqMj8WfaoiK4xEOaOrCSBl7Wpy3J9SP/DAcujUwQCpknZcb8+kzqyPfOMXKdgdJeXi aMMgKO2IAOW3cUKdAYJTDcO1gH/lIuu1oz3ZiIwFai302oGrmavVlMO8OaVN9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692692205; a=rsa-sha256; cv=none; b=jAuJPOvgxbea5L2cvNJkIno8z8pXeMU/BDXp8t1Tj3khibclktjYZhf+rEkvIYxcPtkGV2 UTTy1/HgklzZ3pQ5D2TA7RKt7fX1C9Jf57RcHB1gl7zB3W3Xeg2/Ew0LBBLDuYrfNxP2xm Iqe7qLU4sNeiwr8FZXvKkx5dh8qGMG2eE4GHx0T/Ue8g38iPN/KNwU+04P0Q1fJvl1bqPJ yppwvPeTFqfalDgw5rFQ3v3WLCsaaxOoDnGmPe//D1d5unUj6+5tngZ34TtsgnWW0b9Z3Q yAGk9MsCv7x7psYNBXpWnBiyT2cUv/hhJe0S6NUx5Zho7g9vqR+5pRjtsbyTGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RVMd91HJZzvxK; Tue, 22 Aug 2023 08:16:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37M8GjYf008390; Tue, 22 Aug 2023 08:16:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37M8Gjcu008387; Tue, 22 Aug 2023 08:16:45 GMT (envelope-from git) Date: Tue, 22 Aug 2023 08:16:45 GMT Message-Id: <202308220816.37M8Gjcu008387@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Juraj Lutter Subject: git: ad47ed371cbb - main - databases/postgresql-wal2json: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: otis X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ad47ed371cbbbc06f45722d6ac3afcdb3f6465a4 Auto-Submitted: auto-generated The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/ports/commit/?id=ad47ed371cbbbc06f45722d6ac3afcdb3f6465a4 commit ad47ed371cbbbc06f45722d6ac3afcdb3f6465a4 Author: Daniel Morante AuthorDate: 2023-08-22 08:13:29 +0000 Commit: Juraj Lutter CommitDate: 2023-08-22 08:16:26 +0000 databases/postgresql-wal2json: Add new port Add postgresql-wal2json, an output plugin for logical decoding. WWW: https://github.com/eulerto/wal2json PR: 257904 --- databases/Makefile | 1 + databases/postgresql-wal2json/Makefile | 23 +++++++++++++++++++++++ databases/postgresql-wal2json/distinfo | 3 +++ databases/postgresql-wal2json/pkg-descr | 5 +++++ databases/postgresql-wal2json/pkg-message | 17 +++++++++++++++++ 5 files changed, 49 insertions(+) diff --git a/databases/Makefile b/databases/Makefile index 60e6efc6ef0c..25d125b8eab0 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -672,6 +672,7 @@ SUBDIR += postgresql-rum SUBDIR += postgresql-semver SUBDIR += postgresql-tds_fdw + SUBDIR += postgresql-wal2json SUBDIR += postgresql-zhparser SUBDIR += postgresql11-client SUBDIR += postgresql11-contrib diff --git a/databases/postgresql-wal2json/Makefile b/databases/postgresql-wal2json/Makefile new file mode 100644 index 000000000000..1fc6676ee1ce --- /dev/null +++ b/databases/postgresql-wal2json/Makefile @@ -0,0 +1,23 @@ +PORTNAME= wal2json +PORTVERSION= 2.5 +CATEGORIES= databases +PKGNAMEPREFIX= postgresql${PGSQL_VER:S/.//}- + +MAINTAINER= daniel@morante.net +COMMENT= JSON output plugin for changeset extraction for PostgreSQL databases +WWW= https://github.com/getsentry/wal2json/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake pgsql:11-14 +WANT_PGSQL= server +USE_GITHUB= yes +GH_ACCOUNT= eulerto +GH_TAGNAME= ${PORTNAME}_${PORTVERSION:S/./_/} + +MAKE_ARGS= PG_CONFIG=${LOCALBASE}/bin/pg_config + +PLIST_FILES= lib/postgresql/wal2json.so + +.include diff --git a/databases/postgresql-wal2json/distinfo b/databases/postgresql-wal2json/distinfo new file mode 100644 index 000000000000..27c45dc415dc --- /dev/null +++ b/databases/postgresql-wal2json/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1692687620 +SHA256 (eulerto-wal2json-2.5-wal2json_2_5_GH0.tar.gz) = b516653575541cf221b99cf3f8be9b6821f6dbcfc125675c85f35090f824f00e +SIZE (eulerto-wal2json-2.5-wal2json_2_5_GH0.tar.gz) = 91040 diff --git a/databases/postgresql-wal2json/pkg-descr b/databases/postgresql-wal2json/pkg-descr new file mode 100644 index 000000000000..dc54712928f1 --- /dev/null +++ b/databases/postgresql-wal2json/pkg-descr @@ -0,0 +1,5 @@ +wal2json is an output plugin for logical decoding. It means that the plugin have +access to tuples produced by INSERT and UPDATE. Also, UPDATE/DELETE old row +versions can be accessed depending on the configured replica identity. +Changes can be consumed using the streaming protocol (logical replication slots) +or by a special SQL API. diff --git a/databases/postgresql-wal2json/pkg-message b/databases/postgresql-wal2json/pkg-message new file mode 100644 index 000000000000..9d3553ba00e8 --- /dev/null +++ b/databases/postgresql-wal2json/pkg-message @@ -0,0 +1,17 @@ +[ +{ type: install + message: <