add tmpfiles.d configuration
Resolves: RHEL-103631
This commit is contained in:
parent
5eab4437ba
commit
f3e193b9be
@ -48,7 +48,7 @@
|
|||||||
Summary: PostgreSQL client programs
|
Summary: PostgreSQL client programs
|
||||||
Name: %{majorname}%{majorversion}
|
Name: %{majorname}%{majorversion}
|
||||||
Version: %{majorversion}.8
|
Version: %{majorversion}.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
|
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
|
||||||
# recognizes it as an independent license, so we do as well.
|
# recognizes it as an independent license, so we do as well.
|
||||||
@ -542,6 +542,9 @@ find . -type f -name Makefile -exec sed -i -e "s/SO_MAJOR_VERSION=\s\?\([0-9]\+\
|
|||||||
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
|
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
|
||||||
find . -type f -name .gitignore | xargs rm
|
find . -type f -name .gitignore | xargs rm
|
||||||
|
|
||||||
|
cat > postgresql16.tmpfiles.conf <<EOF
|
||||||
|
d /var/lib/pgsql 0700 postgres postgres -
|
||||||
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Avoid LTO on armv7hl as it runs out of memory
|
# Avoid LTO on armv7hl as it runs out of memory
|
||||||
@ -948,6 +951,8 @@ find_lang_bins pltcl.lst pltcl
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
install -m0644 -D postgresql16.tmpfiles.conf %{buildroot}%{_tmpfilesdir}/postgresql16.conf
|
||||||
|
|
||||||
%pre -n %{pkgname}-server
|
%pre -n %{pkgname}-server
|
||||||
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
|
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
|
||||||
/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
|
/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
|
||||||
@ -1237,6 +1242,7 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
%if %pam
|
%if %pam
|
||||||
%config(noreplace) /etc/pam.d/postgresql
|
%config(noreplace) /etc/pam.d/postgresql
|
||||||
%endif
|
%endif
|
||||||
|
%{_tmpfilesdir}/postgresql16.conf
|
||||||
|
|
||||||
|
|
||||||
%files -n %{pkgname}-server-devel -f devel.lst
|
%files -n %{pkgname}-server-devel -f devel.lst
|
||||||
@ -1334,6 +1340,9 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 22 2025 Filip Janus <fjanus@redhat.com> - 16.8-2
|
||||||
|
- Add tmpfiles.d configuration
|
||||||
|
|
||||||
* Wed Feb 19 2025 Filip Janus <fjanus@redhat.com> - 16.8-1
|
* Wed Feb 19 2025 Filip Janus <fjanus@redhat.com> - 16.8-1
|
||||||
- Update to 16.8
|
- Update to 16.8
|
||||||
- Fix CVE-2025-1094
|
- Fix CVE-2025-1094
|
||||||
|
Loading…
Reference in New Issue
Block a user