Initial import from main branch
This commit is contained in:
parent
64fb21031d
commit
55dea95cc8
4 changed files with 114 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/pgaudit-17.1.tar.gz
|
||||
/main.tar.gz
|
||||
14
fix_type.patch
Normal file
14
fix_type.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
diff --git a/pgaudit.c b/pgaudit.c
|
||||
index a6ee0aa..ac7fd61 100644
|
||||
--- a/pgaudit.c
|
||||
+++ b/pgaudit.c
|
||||
@@ -1414,7 +1414,7 @@ static ExecutorEnd_hook_type next_ExecutorEnd_hook = NULL;
|
||||
* that do not contain a table and so can't be idenitified accurately in
|
||||
* ExecutorCheckPerms.
|
||||
*/
|
||||
-static void
|
||||
+static bool
|
||||
pgaudit_ExecutorStart_hook(QueryDesc *queryDesc, int eflags)
|
||||
{
|
||||
AuditEventStackItem *stackItem = NULL;
|
||||
|
||||
97
postgresql18-pgaudit.spec
Normal file
97
postgresql18-pgaudit.spec
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
%{!?postgresql_default:%global postgresql_default 1}
|
||||
|
||||
%global majorname pgaudit
|
||||
%global pgversion 18
|
||||
Name: postgresql%{pgversion}-%{majorname}
|
||||
Version: 17.1
|
||||
Release: 1%{?dist}
|
||||
Summary: PostgreSQL Audit Extension
|
||||
|
||||
License: PostgreSQL
|
||||
URL: http://pgaudit.org
|
||||
|
||||
# Temporary source until postgresql18 support is released
|
||||
Source0: https://github.com/%{majorname}/%{majorname}/archive/refs/heads/main.tar.gz
|
||||
# ExecutorStart_hook_type type was changed from void to bool in pg17
|
||||
Patch0: fix_type.patch
|
||||
|
||||
%if %?postgresql_default
|
||||
%global pkgname %{majorname}
|
||||
%package -n %{pkgname}
|
||||
Summary: PostgreSQL Audit Extension
|
||||
%else
|
||||
%global pkgname %name
|
||||
%endif
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: postgresql-server-devel
|
||||
BuildRequires: openssl-devel
|
||||
|
||||
Requires(pre): postgresql-server
|
||||
|
||||
%global precise_version %{?epoch:%epoch:}%version-%release
|
||||
Provides: %{pkgname} = %precise_version
|
||||
%if %?postgresql_default
|
||||
Provides: %name = %precise_version
|
||||
Provides: postgresql-%{majorname} = %precise_version
|
||||
%endif
|
||||
Provides: %{pkgname}%{?_isa} = %precise_version
|
||||
Provides: %{majorname}-any
|
||||
Conflicts: %{majorname}-any
|
||||
|
||||
%description
|
||||
The PostgreSQL Audit extension (pgaudit) provides detailed session
|
||||
and/or object audit logging via the standard PostgreSQL logging
|
||||
facility.
|
||||
|
||||
The goal of the PostgreSQL Audit extension (pgaudit) is to provide
|
||||
PostgreSQL users with capability to produce audit logs often required to
|
||||
comply with government, financial, or ISO certifications.
|
||||
|
||||
An audit is an official inspection of an individual's or organization's
|
||||
accounts, typically by an independent body. The information gathered by
|
||||
the PostgreSQL Audit extension (pgaudit) is properly called an audit
|
||||
trail or audit log. The term audit log is used in this documentation.
|
||||
|
||||
%description -n %{pkgname}
|
||||
The PostgreSQL Audit extension (pgaudit) provides detailed session
|
||||
and/or object audit logging via the standard PostgreSQL logging
|
||||
facility.
|
||||
|
||||
The goal of the PostgreSQL Audit extension (pgaudit) is to provide
|
||||
PostgreSQL users with capability to produce audit logs often required to
|
||||
comply with government, financial, or ISO certifications.
|
||||
|
||||
An audit is an official inspection of an individual's or organization's
|
||||
accounts, typically by an independent body. The information gathered by
|
||||
the PostgreSQL Audit extension (pgaudit) is properly called an audit
|
||||
trail or audit log. The term audit log is used in this documentation.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{majorname}-main
|
||||
|
||||
|
||||
%build
|
||||
%make_build USE_PGXS=1 PG_CONFIG=/usr/bin/pg_server_config
|
||||
|
||||
|
||||
%install
|
||||
%make_install USE_PGXS=1 PG_CONFIG=/usr/bin/pg_server_config
|
||||
|
||||
|
||||
%files -n %{pkgname}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_libdir}/pgsql/%{majorname}.so
|
||||
%if 0%{?postgresql_server_llvmjit}
|
||||
%{_libdir}/pgsql/bitcode/%{majorname}.index.bc
|
||||
%{_libdir}/pgsql/bitcode/%{majorname}/%{majorname}.bc
|
||||
%endif
|
||||
%{_datadir}/pgsql/extension/%{majorname}--1*.sql
|
||||
%{_datadir}/pgsql/extension/%{majorname}.control
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jul 29 2025 Nikola Davidova <ndavidov@redhat.com> - 17.1-1
|
||||
- Initial packaging
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (main.tar.gz) = 4ab727f8c7d8287c8012ac9fdc634679989cd04df0f75168924d7fe19d3e467adf6989c17cc35c712c983dec09fb7a386b2680a436bbdc2426494a28f19151ef
|
||||
Loading…
Reference in a new issue