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: Update to upstream with systemd support.
Date: Thu, 26 Nov 2026 14:05:46 GMT	[thread overview]
Message-ID: <179570194684.1.2084416009854187299.rpms-sagator-036a31c2aada@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/sagator
Branch : epel10
Commit : 036a31c2aada91553c053d6bc42b39472ddb199c
Author : Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
Date   : 2015-12-19T19:25:46+01:00
Stats  : +23/-13 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/sagator/c/036a31c2aada91553c053d6bc42b39472ddb199c?branch=epel10

Log:
Update to upstream with systemd support.

---
diff --git a/sagator.spec b/sagator.spec
index 5326f42..4388182 100644
--- a/sagator.spec
+++ b/sagator.spec
@@ -14,8 +14,8 @@
 
 Summary:   Antivirus/anti-spam gateway for smtp server
 Name:      sagator
-Version:   1.3.0
-Release:   2%{?dist}
+Version:   1.3.1
+Release:   1%{?dist}
 Source:    http://www.salstar.sk/pub/antivir/snapshots/sagator-%{version}.tar.bz2
 URL:       http://www.salstar.sk/sagator/
 License:   GPLv2+
@@ -80,7 +80,12 @@ Requires:       server(smtp)
 %else
 Requires:       smtpdaemon
 %endif
-BuildRequires:  initscripts, clamav-devel >= %{CLAMAV_VERSION}
+%if 0%{?fedora} || 0%{?rhel} > 7
+BuildRequires:  systemd
+%else
+BuildRequires:  initscripts
+%endif
+BuildRequires:  clamav-devel >= %{CLAMAV_VERSION}
 Requires:       clamav-lib >= %{CLAMAV_VERSION}
 %endif
 Requires:       spamassassin
@@ -148,22 +153,19 @@ if [ $1 = 2 ]; then # upgrade
     # restart sagator
     %{_initrddir}/sagator try-restart >/dev/null 2>&1 || true
   fi
-else # install
-  if [ -x /sbin/chkconfig ]; then
-    chkconfig --add sagator
-  elif [ -x /sbin/insserv ]; then
-    insserv sagator
-  fi
 fi
 
 %preun core
 if [ $1 = 0 ]; then # uninstall
-  # stop service
-  %{_initrddir}/sagator stop >/dev/null 2>&1
-  # remove init script symlinks
-  if [ -x /sbin/chkconfig ]; then
+  # stop service and remove init script symlinks
+  if [ -f /lib/systemd/system/sagator.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
@@ -201,7 +203,12 @@ rm -rf %{buildroot}
 %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
+%{_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
@@ -247,6 +254,9 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
+* 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
 

             reply	other threads:[~2026-11-26 14:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 14:05 Jan ONDREJ [this message]
2026-11-26 14:05 [rpms/sagator] epel10: Update to upstream with systemd support Jan ONDREJ

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=179570194684.1.2084416009854187299.rpms-sagator-036a31c2aada@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