public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/sagator] epel10: New release
Date: Thu, 26 Nov 2026 14:05:22 GMT	[thread overview]
Message-ID: <179570192270.1.6028834612822963881.rpms-sagator-d3a907c09323@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/sagator
Branch : epel10
Commit : d3a907c093231ac1a960500247fbdef17438bf64
Author : Ján ONDREJ <ondrejj@fedoraproject.org>
Date   : 2008-07-10T13:50:43+00:00
Stats  : +66/-29 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/sagator/c/d3a907c093231ac1a960500247fbdef17438bf64?branch=epel10

Log:
New release

---
diff --git a/.cvsignore b/.cvsignore
index e17b017..610ba45 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1 +1 @@
-sagator-1.0.0.tar.bz2
+sagator-1.1.0.tar.bz2

diff --git a/import.log b/import.log
new file mode 100644
index 0000000..46d3b00
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+sagator-1_1_0-1_fc9:HEAD:sagator-1.1.0-1.fc9.src.rpm:1215697760

diff --git a/sagator.spec b/sagator.spec
index 4efa085..5a2ab6f 100644
--- a/sagator.spec
+++ b/sagator.spec
@@ -3,10 +3,11 @@
 %define ARCHIVERS tar,arc,unace,unrar,rar,zoo,unarj,arj,unzip,zip,gzip,bzip2
 %define ANTIVIRS clamav,clamav-libs,avglinux,nod32ls,nod32lfs,kav4mailservers-linux
 %define ANTISPAMS bogofilter,qsf
+%define CLAMAV_VERSION 0.92
 
 Summary:   SAGATOR - antivir/antispam gateway for smtp server
 Name:      sagator
-Version:   1.0.0
+Version:   1.1.0
 Release:   1%{?dist}
 Source:    http://www.salstar.sk/pub/antivir/snapshots/sagator-%{version}.tar.bz2
 URL:       http://www.salstar.sk/sagator/
@@ -15,24 +16,22 @@ Group:     System Environment/Daemons
 BuildArch: noarch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: python-devel >= 2.2.2, ed, gettext
+Obsoletes: sagator-libclamav <= 1.2.3
+Obsoletes: sagator-pydspam <= 0.9.1
 Requires:  python >= 2.2.2, sed
 %if %_vendor == "suse"
-Requires:  aaa_base, smtp_daemon
-BuildRequires: aaa_base, python-xml
+BuildRequires: aaa_base, python-xml, clamav >= %{CLAMAV_VERSION}
+Requires:  aaa_base, smtp_daemon, clamav >= %{CLAMAV_VERSION}
+%if 0%suse_version < 01030
+Requires:  python-ctypes
+%endif
 %else
-Requires(post): /sbin/chkconfig
-Requires(preun): /sbin/chkconfig
-Requires(preun): /sbin/service
+Requires(post): chkconfig
+Requires(preun): chkconfig
+Requires(preun): initscripts
 Requires:  initscripts, smtpdaemon, shadow-utils
-BuildRequires: initscripts, logwatch
-
-# SElinux policy for Fedoras and RHEL>=5
-%if 0%{?fedora} || 0%{?rhel} >= 5
-BuildRequires: selinux-policy-devel
-# SElinux directory and policy package
-%define sedir %{_datadir}/%{name}/selinux
-%define sepolicy %{sedir}/%{name}.pp
-%endif
+Requires:  clamav-lib >= %{CLAMAV_VERSION}
+BuildRequires: initscripts, logwatch, clamav-devel >= %{CLAMAV_VERSION}
 
 %endif
 
@@ -67,6 +66,25 @@ BuildRequires:  python-kid
 SAGATOR's web quarantine access can be used to allow users (or admin)
 to access their emails in sagator's quarantine.
 
+# SElinux policy for Fedoras and RHEL>=5
+%if 0%{?fedora} || 0%{?rhel} >= 5
+%package        selinux
+Summary:        SELinux support for SAGATOR
+Group:          System Environment/Daemons
+Requires:       %{name} = %{version}
+Requires(postun): policycoreutils, selinux-policy
+BuildRequires: selinux-policy-devel
+# SElinux directory and policy package
+%define install_sepolicy 1
+%define sepolicy %{_datadir}/%{name}/selinux/%{name}.pp
+
+%description selinux
+This package helps moving to the upstream SELinux module.
+
+%else
+%define install_sepolicy 0
+%endif
+
 %prep
 %setup -q
 
@@ -83,11 +101,6 @@ touch %{buildroot}%{_datadir}/%{name}/etc/sgconf.py_
 ln -s ../../../..%{_sysconfdir}/sagator.conf \
   %{buildroot}%{_datadir}/%{name}/etc/sgconf.py
 mkdir -p %{buildroot}%{CHROOTDIR}/tmp/quarantine
-# add SElinux policy
-if [ -e %{buildroot}%{sepolicy} ]; then
-  echo "%dir %{sedir}" >> filelist
-  echo "%{sepolicy}" >> filelist
-fi
 %find_lang %{name}
 
 %pre
@@ -112,12 +125,6 @@ else # install
   elif [ -x /sbin/insserv ]; then
     insserv sagator
   fi
-  # selinux
-  [ ! -x %{_sbindir}/semodule ] || [ ! -x %{_sbindir}/sestatus ] || 
-    [ ! -x %{_sbindir}/selinuxenabled ] || ! %{_sbindir}/selinuxenabled || \
-      [ ! -e %{sepolicy} ] || \
-        %{_sbindir}/semodule -i %{sepolicy} \
-          >/dev/null 2>/dev/null
 fi
 
 %preun
@@ -132,6 +139,19 @@ if [ $1 = 0 ]; then # uninstall
   fi
 fi
 
+%if %{install_sepolicy}
+%post selinux
+if selinuxenabled; then
+    # Replace the module by the upstream one
+    #. /etc/selinux/config 2>/dev/null || :
+    semodule -i %{sepolicy} 2>/dev/null || :
+    # relabel files
+    fixfiles -R %{name} restore || :
+    # relabel chroot
+    restorecon -R %{CHROOTDIR} || :
+fi
+%endif
+
 %triggerin -- sagator-webq,%{BASE_LIBS},%{ARCHIVERS},%{ANTIVIRS},%{ANTISPAMS}
 touch %{_var}/lib/sagator-mkchroot
 
@@ -161,6 +181,10 @@ rm -rf %{buildroot}
 %exclude %{_datadir}/%{name}/etc/sgconf.py?
 %dir %{_datadir}/%{name}/av
 %{_datadir}/%{name}/av/*.py*
+%dir %{_datadir}/%{name}/av/libclamav
+%{_datadir}/%{name}/av//libclamav/*.py*
+%dir %{_datadir}/%{name}/as/pydspam
+%{_datadir}/%{name}/as//pydspam/*.py*
 %dir %{_datadir}/%{name}/as
 %{_datadir}/%{name}/as/*.py*
 %dir %{_datadir}/%{name}/interscan
@@ -173,12 +197,24 @@ rm -rf %{buildroot}
 %attr(0770,vscan,vscan) %dir %{CHROOTDIR}/tmp/quarantine
 
 %files webq -f sagator.lang
+%defattr(-,root,root)   
 %dir %{_datadir}/%{name}/srv/web
 %{_datadir}/%{name}/srv/web/*.py*
 %{_datadir}/%{name}/srv/web/*.kid
 
+%if %{install_sepolicy}
+%files selinux
+%defattr(-,root,root)   
+%{sepolicy}
+%endif
+
 %changelog
-* Fri Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-1
+* Sun Feb 17 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.1.0-1
+- added libclamav module
+- added pydspam module
+- selinux module moved to separate subpackage
+
+* Fri Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0
 - /var/spool/vscan replaced by CHROOTDIR macro
 - posttrans section moved to init script (start section)
 - more macros used

diff --git a/sources b/sources
index 5be89df..e5ce684 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bf14d88d95645c41c489350bad74e1de  sagator-1.0.0.tar.bz2
+a5ac5ad840ba512b27d0fa53ed0108d5  sagator-1.1.0.tar.bz2

                 reply	other threads:[~2026-11-26 14:05 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=179570192270.1.6028834612822963881.rpms-sagator-d3a907c09323@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