public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
To: git-commits@fedoraproject.org
Subject: [rpms/sagator] epel8: Merge branch 'rawhide' into epel8
Date: Sat, 28 Nov 2026 06:35:00 GMT	[thread overview]
Message-ID: <179584770021.1.965504970322343576.rpms-sagator-daaba53e9ea2@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/sagator
Branch : epel8
Commit : daaba53e9ea2a67e591e4c147977c80151b7b711
Author : Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
Date   : 2026-11-28T07:34:35+01:00
Stats  : +55/-17 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/sagator/c/daaba53e9ea2a67e591e4c147977c80151b7b711?branch=epel8

Log:
Merge branch 'rawhide' into epel8

---
diff --git a/.gitignore b/.gitignore
index a0f59da..94e8b55 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ sagator-1.2.1.tar.bz2
 /sagator-2.0.1.tar.bz2
 /sagator-2.0.2.tar.bz2
 /sagator-2.0.3-0.beta3.tar.bz2
+/sagator-2.0.3.tar.bz2

diff --git a/sagator.spec b/sagator.spec
index ecff9a4..48dc19e 100644
--- a/sagator.spec
+++ b/sagator.spec
@@ -9,21 +9,18 @@
 %global install_sepolicy 0
 %global sepolicy %{_datadir}/%{name}/selinux/%{name}.pp
 
-%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
 %global python_version python3
-%else
-%global python_version python2
-%endif
 
 Summary:   Antivirus/anti-spam gateway for smtp server
 Name:      sagator
 Version:   2.0.3
-Release:   0.beta3%{?dist}
-Source:    http://www.salstar.sk/pub/antivir/snapshots/unstable/sagator-%{version}-0.beta3.tar.bz2
+Release:   1%{?dist}
+Source:    http://www.salstar.sk/pub/antivir/snapshots/sagator-%{version}.tar.bz2
 URL:       http://www.salstar.sk/sagator/
-License:   GPLv2+
+License:   GPL-2.0-or-later
 BuildArch: noarch
 BuildRequires: %{python_version}-devel, ed, gettext
+BuildRequires: %{python_version}-passlib
 BuildRequires: make
 Requires:  %{name}-core = %{version}-%{release}
 Requires:  sed
@@ -65,12 +62,12 @@ Features:
 %package core
 Summary:        Antivirus/anti-spam gateway for smtp server, core files
 Requires:       sed
+BuildRequires:  clamav-devel >= %{CLAMAV_VERSION}
 %if 0%{?suse_version}
-BuildRequires: aaa_base, python-xml, clamav >= %{CLAMAV_VERSION}
+BuildRequires:  aaa_base, python-xml
 Requires:       aaa_base, smtp_daemon
 %else
 Requires:       server(smtp), shadow-utils
-BuildRequires:  clamav-devel >= %{CLAMAV_VERSION}
 Requires:       clamav-lib >= %{CLAMAV_VERSION}
 %endif
 BuildRequires:  systemd
@@ -111,13 +108,23 @@ This package helps moving to the upstream SELinux module.
 %prep
 %setup -q
 
+# Create a sysusers.d config file
+cat >sagator.sysusers.conf <<EOF
+u vscan - 'SAGATOR' %{CHROOTDIR} -
+EOF
+
 %build
 sh configure --prefix=%{_prefix} --filelist --python=%{python_version}
 make %{?_smp_mflags}
 
 %install
 rm -rf %{buildroot}
-make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
+make \
+	DESTDIR=%{buildroot} \
+	BINDIR=%{buildroot}%{_bindir} \
+	SBINDIR=%{buildroot}%{_sbindir} \
+	PREFIX=%{_prefix} \
+	install
 rm -f %{buildroot}%{_datadir}/sagator/etc/sgconf.py* \
   scripts/mkchroot.sh scripts/graphs/*.in
 touch %{buildroot}%{_datadir}/%{name}/etc/sgconf.py_
@@ -127,11 +134,7 @@ mkdir -p %{buildroot}%{CHROOTDIR}/tmp/quarantine
 cp -arf scripts/db %{buildroot}%{_datadir}/%{name}/
 %find_lang %{name}
 
-%pre core
-getent group vscan >/dev/null || groupadd -r vscan
-getent passwd vscan >/dev/null || \
-useradd -r -g vscan -d %{CHROOTDIR} -s /sbin/nologin -c "SAGATOR" vscan
-exit 0
+install -m0644 -D sagator.sysusers.conf %{buildroot}%{_sysusersdir}/sagator.conf
 
 %post core
 touch %{_var}/lib/sagator-mkchroot
@@ -170,7 +173,7 @@ touch %{_var}/lib/sagator-mkchroot
 %files
 # no files, this package just requires others
 # exclude sepolicy for builds without selinux module
-%if 0%{?sepolicy:1}
+%if 0%{?install_sepolicy}>0
 %exclude %{sepolicy}
 %endif
 
@@ -185,7 +188,10 @@ touch %{_var}/lib/sagator-mkchroot
 %doc doc/README doc/FAQ doc/*.txt doc/*.html TODO COPYING ChangeLog test
 %doc scripts/graphs scripts/*.sh scripts/log/analyzer.py
 %{_bindir}/*
+# Fedora 42 merged bin/sbin
+%if "%{_bindir}" != "%{_sbindir}"
 %{_sbindir}/*
+%endif
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/*.py*
 %dir %attr(750,root,vscan) %{_datadir}/%{name}/etc
@@ -202,6 +208,7 @@ touch %{_var}/lib/sagator-mkchroot
 %dir %{CHROOTDIR}
 %attr(1777,vscan,vscan) %dir %{CHROOTDIR}/tmp
 %attr(0770,vscan,vscan) %dir %{CHROOTDIR}/tmp/quarantine
+%{_sysusersdir}/sagator.conf
 
 %files webq -f sagator.lang
 %{_datadir}/%{name}/srv/web
@@ -214,6 +221,36 @@ touch %{_var}/lib/sagator-mkchroot
 %endif
 
 %changelog
+* Fri Nov 27 2026 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.3-1
+- Update to upstream.
+
+* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-0.beta3.9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
+
+* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-0.beta3.8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
+
+* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 2.0.3-0.beta3.7
+- Rebuilt for Python 3.14.0rc3 bytecode
+
+* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 2.0.3-0.beta3.6
+- Rebuilt for Python 3.14.0rc2 bytecode
+
+* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-0.beta3.5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
+
+* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.3-0.beta3.4
+- Add sysusers.d config file to allow rpm to create users/groups automatically
+
+* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-0.beta3.3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+
+* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 2.0.3-0.beta3.2
+- convert license to SPDX
+
+* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-0.beta3.1
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+
 * Thu May 30 2024 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.3-0.beta3
 - Update to upstream beta to fix clamav>1 compatibility
 

diff --git a/sources b/sources
index db6b514..4e93e07 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sagator-2.0.3-0.beta3.tar.bz2) = f6bce012cbf3d272499591104d228f63ec6ea0ff2a16eab6f4461f3d4da95df618072a112812573928cf7c550a94c4d8a21f3e6d4d87f295d0a8d884a4843cad
+SHA512 (sagator-2.0.3.tar.bz2) = 9a8b45fd490a7e24564a4a9e7a589c621323f597c3b9feff4a74a8c33b9478ec2d0aacf6c57276a999ca77e7c1f0e518fb8ffdf333729f08bd04663cf2c5657c

                 reply	other threads:[~2026-11-28  6:35 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=179584770021.1.965504970322343576.rpms-sagator-daaba53e9ea2@fedoraproject.org \
    --to=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