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] epel10: Merge branch 'master' into epel8
Date: Thu, 26 Nov 2026 14:06:05 GMT	[thread overview]
Message-ID: <179570196533.1.13434027991448105671.rpms-sagator-5c8328439952@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/sagator
Branch : epel10
Commit : 5c8328439952ce59f9b094e8e91f53392bec2759
Author : Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
Date   : 2019-08-16T07:40:47+02:00
Stats  : +418/-21 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/sagator/c/5c8328439952ce59f9b094e8e91f53392bec2759?branch=epel10

Log:
Merge branch 'master' into epel8

---
diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index e69de29..0000000
--- a/.cvsignore
+++ /dev/null

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..661a616
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+sagator-1.2.1.tar.bz2
+/sagator-1.2.2.tar.bz2
+/sagator-1.2.3.tar.bz2
+/sagator-1.3.0.tar.bz2
+/sagator-1.3.1.tar.bz2
+/sagator-1.3.2.tar.bz2
+/sagator-2.0.0-0.beta1exp2.tar.bz2
+/sagator-2.0.0-0.beta10.tar.bz2
+/sagator-2.0.0-0.beta11.tar.bz2

diff --git a/Makefile b/Makefile
deleted file mode 100644
index f5fc7c4..0000000
--- a/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-# Makefile for source rpm: sagator
-# $Id$
-NAME := sagator
-SPECFILE = $(firstword $(wildcard *.spec))
-
-define find-makefile-common
-for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
-endef
-
-MAKEFILE_COMMON := $(shell $(find-makefile-common))
-
-ifeq ($(MAKEFILE_COMMON),)
-# attept a checkout
-define checkout-makefile-common
-test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
-endef
-
-MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
-endif
-
-include $(MAKEFILE_COMMON)

diff --git a/sagator.spec b/sagator.spec
new file mode 100644
index 0000000..ee02cc2
--- /dev/null
+++ b/sagator.spec
@@ -0,0 +1,406 @@
+%define CHROOTDIR %{_var}/spool/vscan
+%define BASE_LIBS glibc,libgcc,expat,libstdc++,zlib,bzip2-libs,cracklib,cracklib-dicts
+%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
+
+# SElinux policy for Fedoras and RHEL>=5
+%if 0%{?fedora} || 0%{?rhel} >= 5
+# SElinux temporarily disabled for all systems
+%define install_sepolicy 0
+%define sepolicy %{_datadir}/%{name}/selinux/%{name}.pp
+%endif
+
+%if 0%{?fedora} >= 28
+%define python_version python3
+%else
+%define python_version python2
+%endif
+
+Summary:   Antivirus/anti-spam gateway for smtp server
+Name:      sagator
+Version:   2.0.0
+Release:   0.beta11%{?dist}.1
+Source:    http://www.salstar.sk/pub/antivir/snapshots/sagator-%{version}-0.beta11.tar.bz2
+URL:       http://www.salstar.sk/sagator/
+License:   GPLv2+
+BuildArch: noarch
+BuildRequires: %{python_version}-devel, ed, gettext
+Requires:  %{name}-core = %{version}-%{release}
+Requires:  sed
+Requires:  spamassassin
+%if %_vendor == "suse"
+Requires:  clamav >= %{CLAMAV_VERSION}
+%else
+Requires:  clamav-lib >= %{CLAMAV_VERSION}, clamav-update
+%endif
+
+%description
+This program is an email antivirus/anti-spam gateway. It is an interface to
+the postfix, sendmail, or any other smtpd, which runs antivirus and/or
+spam checker. Its modular architecture can use any combination of
+antivirus/spam checker according to configuration.
+
+It has some internal checkers (string_scanner and regexp_scanner). Sagator
+can parse MIME mails and decompress archives, if it is configured so.
+
+Features:
+    *  simple chroot support
+    * modular antivirus/spam checker support
+          o attach an intrascanner to another intrascanner or realscanner
+          o combine intrascanners
+          o combine realscanners
+          o virus/spam level based scanners
+    * database support
+          o SQL logging
+          o dynamic scanner (antivirus/anti-spam) configuration
+    * daily reports for users
+    * web quarantine accessible for all users
+    * you don't need any perl modules or any other modules, only python
+    * you can return any quarantined mail to mailq/user mailbox
+    * mailbox/maildir scanning and cleaning
+    * smtp policy service (greylist)
+    * nice statistics via WWW or MRTG
+    * easy installation and configuration
+
+%package core
+Summary:        Antivirus/anti-spam gateway for smtp server, core files
+Requires:       sed
+%if %_vendor == "suse"
+BuildRequires: aaa_base, python-xml, clamav >= %{CLAMAV_VERSION}
+Requires:       aaa_base, smtp_daemon
+%else
+Requires:       server(smtp), shadow-utils
+BuildRequires:  clamav-devel >= %{CLAMAV_VERSION}
+Requires:       clamav-lib >= %{CLAMAV_VERSION}
+%endif
+%if 0%{?fedora} || 0%{?rhel} >= 7
+BuildRequires:  systemd
+%else
+Requires(post): chkconfig
+Requires(preun): chkconfig
+Requires(preun): initscripts
+Requires:       initscripts
+BuildRequires:  initscripts
+%endif
+Requires:       spamassassin
+BuildRequires:  logwatch
+Obsoletes:      sagator-libclamav <= 1.2.3
+Obsoletes:      sagator-pydspam <= 0.9.1
+
+%description core
+SAGATOR's core files. You can use this package separatelly, if you do
+not to depend on other software, required by sagator.
+
+%package webq
+Summary:        SAGATOR's web quarantine access
+Requires:       sagator-core = %{version}-%{release}
+%if 0%{?fedora} || 0%{?rhel} > 7
+Requires:       %{python_version}-jinja2
+%else
+Requires:       python-jinja2
+%endif
+
+%description webq
+SAGATOR's web quarantine access can be used to allow users (or admin)
+to access their emails in sagator's quarantine.
+
+%if 0%{?install_sepolicy}>0
+%package        selinux
+Summary:        SELinux support for SAGATOR
+Requires:       %{name}-core = %{version}-%{release}
+Requires(postun): policycoreutils, selinux-policy
+BuildRequires: selinux-policy-devel
+
+%description selinux
+This package helps moving to the upstream SELinux module.
+%endif
+
+%prep
+%setup -q
+
+%build
+sh configure --prefix=%{_prefix} --filelist --python=%{python_version}
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
+rm -f %{buildroot}%{_datadir}/sagator/etc/sgconf.py* \
+  scripts/mkchroot.sh scripts/graphs/*.in
+touch %{buildroot}%{_datadir}/%{name}/etc/sgconf.py_
+ln -s ../../../..%{_sysconfdir}/sagator.conf \
+  %{buildroot}%{_datadir}/%{name}/etc/sgconf.py
+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
+
+%post core
+touch %{_var}/lib/sagator-mkchroot
+if [ $1 = 2 ]; then # upgrade
+  [ -f %{_sysconfdir}/sysconfig/sagator ] && . %{_sysconfdir}/sysconfig/sagator || true
+  # update configuration
+  %{_datadir}/sagator/updatecfg.py || true
+  if [ "$RESTART" = "auto" ]; then
+    # restart sagator
+    %{_initrddir}/sagator try-restart >/dev/null 2>&1 || true
+  fi
+fi
+
+%preun core
+if [ $1 = 0 ]; then # uninstall
+  # stop service and remove init script symlinks
+  if [ -f %{_unitdir}/%{name}.service ]; then
+    /bin/systemctl disable sagator.service > /dev/null 2>&1 || :
+    /bin/systemctl stop sagator.service > /dev/null 2>&1 || :
+  elif [ -x /sbin/chkconfig ]; then
+    %{_initrddir}/sagator stop >/dev/null 2>&1
+    chkconfig --del sagator
+  elif [ -x /sbin/insserv ]; then
+    %{_initrddir}/sagator stop >/dev/null 2>&1
+    insserv -r sagator
+  fi
+fi
+
+%if 0%{?install_sepolicy}>0
+%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 core -- sagator-webq,%{BASE_LIBS},%{ARCHIVERS},%{ANTIVIRS},%{ANTISPAMS}
+touch %{_var}/lib/sagator-mkchroot
+
+%triggerpostun core -- sagator-webq,%{BASE_LIBS},%{ARCHIVERS},%{ANTIVIRS},%{ANTISPAMS}
+touch %{_var}/lib/sagator-mkchroot
+
+%files
+# no files, this package just requires others
+# exclude sepolicy for builds without selinux module
+%if 0%{?sepolicy:1}
+%exclude %{sepolicy}
+%endif
+
+%files core -f filelist
+%config(noreplace) %verify(not md5 size mtime) %attr(640,root,vscan) %{_sysconfdir}/%{name}.conf
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/%{name}
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/logrotate.d/%{name}
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*/conf.d/%{name}.conf
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/mrtg/%{name}.cfg
+%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 01310
+%{_unitdir}/%{name}.service
+%exclude %{_initrddir}/%{name}
+%else
+%{_initrddir}/%{name}
+%endif
+%config(noreplace) %verify(not md5 size mtime) %attr(644,root,root) %{_sysconfdir}/cron.d/%{name}
+%doc doc/README doc/FAQ doc/*.txt doc/*.html TODO COPYING ChangeLog test
+%doc scripts/graphs scripts/*.sh scripts/log/analyzer.py
+%{_bindir}/*
+%{_sbindir}/*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*.py*
+%dir %attr(750,root,vscan) %{_datadir}/%{name}/etc
+%{_datadir}/%{name}/etc/*.py*
+%exclude %{_datadir}/%{name}/etc/sgconf.py?
+%{_datadir}/%{name}/avir
+%{_datadir}/%{name}/aspam
+%{_datadir}/%{name}/interscan
+%{_datadir}/%{name}/srv
+%exclude %{_datadir}/%{name}/srv/web
+%exclude %{_datadir}/%{name}/srv/templates
+%{_datadir}/%{name}/db
+%{_mandir}/man*/*
+%dir %{CHROOTDIR}
+%attr(1777,vscan,vscan) %dir %{CHROOTDIR}/tmp
+%attr(0770,vscan,vscan) %dir %{CHROOTDIR}/tmp/quarantine
+
+%files webq -f sagator.lang
+%{_datadir}/%{name}/srv/web
+%{_datadir}/%{name}/srv/templates
+
+%if 0%{?install_sepolicy}>0
+%files selinux
+%dir %{_datadir}/%{name}/selinux
+%{sepolicy}
+%endif
+
+%changelog
+* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-0.beta11.1
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Wed Feb  6 2019 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.0-0.beta11
+- update to upstream
+
+* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.3.1-6
+- Update Python 2 dependency declarations to new packaging standards
+  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
+
+* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Mon Dec 14 2015 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.3.1-1
+- update to upstream
+
+* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Wed Jul  9 2014 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.3.0-1
+- update to upstream
+
+* Sat May 14 2011 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.3.0-1
+- added Sanesecurity.Spam an Sanesecurity.Junk to default DROP pattern
+
+* Thu Dec  9 2010 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.2.2-1
+- database creation scripts moved to /usr/share/sagator
+
+* Tue Jul 28 2009 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.2.1-2
+- updated english summary and description (fixed spelling errors suggested
+  by rpmlint)
+
+* Tue Jul 28 2009 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.2.1-1
+- Requires: smtpdaemon again for EPEL
+
+* Wed Sep 17 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.1.1-1
+- core files moved to core packages, sagator package now requires clamav
+  and spamassassin
+- added selinux policy dir
+
+* Sun Feb 17 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.1.0-2
+- changed dependency from smtpdaemon to server(smtp)
+- reverted back previous change
+
+* 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
+
+* Thu Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-2
+- /var/spool/vscan replaced by CHROOTDIR macro
+- posttrans section moved to init script (start section)
+- more macros used
+
+* Thu Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-1
+- clean buildroot before install
+- sagator.conf symlink is now relative
+
+* Fri Sep 7 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-1
+- sagator moved from /usr/lib to /usr/share
+
+* Fri Apr 13 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- added sagator.pp selinux policy file and post-install script
+
+* Wed Dec 27 2006 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- added GPG public key
+
+* Tue Sep 05 2006 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- added gcc build-require for suse package
+- better build for unstable releases
+- postfix autoconfigure messages
+- crontab modification moved to /etc/cron.d/ directory
+- mrtg triggers removed
+- removed clamav a dspam stuff
+- fixed permissions for sagator.conf
+- postfix autoconfiguration moved into documentation
+
+* Sun Nov 20 2005 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- suse support
+- proper pathes for logwatch 0.7 scripts
+
+* Sun Aug 28 2005 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- configuration moved into config directory
+
+* Fri Aug 05 2005 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- script documentation added
+
+* Mon Jul 18 2005 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- new description
+- changed dependecy from postfix to smtpdaemon
+
+* Sun Jun 26 2005 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- changes recommended by Fedora Extras Packaging Guidelines
+
+* Mon May 30 2005 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- web directory added
+
+* Mon Apr 11 2005 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- postinstall script fix to update master.cf properly
+
+* Mon Dec 20 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- Documentation moved into doc directory.
+- man pages added
+- dspam module
+
+* Sun Nov  7 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- chkconfig is started only on install (not upgrade)
+- sagator is restarted only when RESTART=auto is configured in sysconfig
+- You will be able ... message will show only on install
+- Fedora Core 3 yum.repos.d autodetect
+
+* Thu Aug 26 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- logrotate script added
+
+* Fri Aug  6 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- srv/* added
+- updatecfg.py in postinstall script
+
+* Tue Jul  6 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- mrtg script added
+
+* Mon May 31 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- cron script is now as configuration script (not replaced)
+
+* Thu Apr 29 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- added triggers
+
+* Tue Apr 13 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- /var/spool/vscam/tmp permission fix
+
+* Wed Feb  4 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- postfix requirement added
+- fixed scriptlet fail when postfix is not started
+- testing programs added to documentation
+
+* Wed Jan 28 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- configs are not replaced
+
+* Mon Jan 19 2004 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- added sysconfig file
+- added logrotate files
+- config moved into /etc and symlink into /usr/lib/sagator
+
+* Fri Oct 31 2003 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- added mrtg.cfg and index.html
+- making of chroot removed on upgrading
+
+* Thu Sep 18 2003 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- postfix is not reloaded, when sagator is upgrading
+
+* Tue Jun 10 2003 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
+- first release

diff --git a/sources b/sources
index e69de29..4e5d49b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (sagator-2.0.0-0.beta11.tar.bz2) = 69c992d05aef08d79bce468981ba4d8e1f88f8aa6fec9660bc18ee2b84ac68685cc1e9f498f28aef5eefc1dda8958ef3fea96150c2fdd98bef932118061f6f4c

diff --git a/package.cfg b/package.cfg
new file mode 100644
index 0000000..66ea79d
--- /dev/null
+++ b/package.cfg
@@ -0,0 +1,2 @@
+[koji]
+targets = epel8 epel8-playground
\ No newline at end of file

                 reply	other threads:[~2026-11-26 14:06 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=179570196533.1.13434027991448105671.rpms-sagator-5c8328439952@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