public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sagator] epel10: Update to upstream with systemd support.
@ 2026-11-26 14:05 Jan ONDREJ
  0 siblings, 0 replies; 2+ messages in thread
From: Jan ONDREJ @ 2026-11-26 14:05 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

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

Log:
Update to upstream with systemd support.

---
diff --git a/.gitignore b/.gitignore
index 5a47107..f20efd6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ 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

diff --git a/sources b/sources
index 3a16126..3f288ba 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 9c638e2e020e86136185fb900c1a0cc7  sagator-1.3.0.tar.bz2
+bcd13abeb5e743bf26a75bbdb3261761  sagator-1.3.1.tar.bz2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [rpms/sagator] epel10: Update to upstream with systemd support.
@ 2026-11-26 14:05 Jan ONDREJ
  0 siblings, 0 replies; 2+ messages in thread
From: Jan ONDREJ @ 2026-11-26 14:05 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-26 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 14:05 [rpms/sagator] epel10: Update to upstream with systemd support Jan ONDREJ
  -- strict thread matches above, loose matches on Subject: below --
2026-11-26 14:05 Jan ONDREJ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox