public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/suricata] rawhide: Enable sysusers.d on EPEL 11
Date: Mon, 27 Jul 2026 19:26:46 GMT	[thread overview]
Message-ID: <178518040668.1.17570318155733770060.rpms-suricata-5e6a5c17c84a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/suricata
            Branch : rawhide
            Commit : 5e6a5c17c84a3e580f7c008a3816ee63ac7217ef
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-07-27T11:57:47-04:00
            Stats  : +9/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/suricata/c/5e6a5c17c84a3e580f7c008a3816ee63ac7217ef?branch=rawhide

            Log:
            Enable sysusers.d on EPEL 11

RHEL 11 inherits the Fedora 42 sysusers.d change and needs to be handled
accordingly:

https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers

---
diff --git a/suricata.spec b/suricata.spec
index 77b0597..a7885a0 100644
--- a/suricata.spec
+++ b/suricata.spec
@@ -1,7 +1,7 @@
 Summary: Intrusion Detection System
 Name: suricata
 Version: 8.0.5
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPL-2.0-only
 URL: https://suricata.io/
 Source0: https://www.openinfosecfoundation.org/download/%{name}-%{version}.tar.gz
@@ -45,7 +45,7 @@ BuildRequires: hiredis-devel
 BuildRequires: libevent-devel
 BuildRequires: pkgconfig(gnutls)
 
-%if 0%{?fedora} >= 25 || 0%{?epel} >= 8
+%if 0%{?fedora} >= 25 || 0%{?rhel} >= 8
 %ifarch x86_64 aarch64
 BuildRequires: vectorscan-devel
 %endif
@@ -55,7 +55,7 @@ Requires: python3-pyyaml
 Requires(post): systemd
 Requires(preun): systemd
 Requires(postun): systemd
-%if 0%{?fedora} < 42 || 0%{?epel} >= 8
+%if ! (0%{?fedora} >= 42 || 0%{?rhel} >= 11)
 Requires(pre): /usr/sbin/useradd
 %endif
 
@@ -139,7 +139,7 @@ install -d -m 0755 %{buildroot}/run/%{name}/
 
 cp suricata-update/README.rst doc/suricata-update-README.rst
 
-%if 0%{?fedora} >= 42
+%if 0%{?fedora} >= 42 || 0%{?rhel} >= 11
 # Create a sysusers.d config file
 cat >suricata.sysusers.conf <<EOF
 u suricata - - - -
@@ -151,7 +151,7 @@ install -m0644 -D suricata.sysusers.conf %{buildroot}%{_sysusersdir}/suricata.co
 make check
 
 %pre
-%if 0%{?fedora} < 42 || 0%{?epel} >= 8
+%if ! (0%{?fedora} >= 42 || 0%{?rhel} >= 11)
 getent passwd suricata >/dev/null || useradd -r -M -s /sbin/nologin suricata
 %endif
 
@@ -194,11 +194,14 @@ fi
 %attr(2770,suricata,suricata) %dir /run/%{name}/
 %{_tmpfilesdir}/%{name}.conf
 %{_datadir}/%{name}/rules
-%if 0%{?fedora} >= 42
+%if 0%{?fedora} >= 42 || 0%{?rhel} >= 11
 %{_sysusersdir}/suricata.conf
 %endif
 
 %changelog
+* Mon Jul 27 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 8.0.5-4
+- Enable sysusers.d on EPEL 11
+
 * Sun Jul 26 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 8.0.5-3
 - Enable on ppc64le
 

                 reply	other threads:[~2026-07-27 19:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178518040668.1.17570318155733770060.rpms-suricata-5e6a5c17c84a@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox