Hello community,

here is the log from the commit of package sshguard for openSUSE:Factory 
checked in at 2017-03-03 17:45:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sshguard (Old)
 and      /work/SRC/openSUSE:Factory/.sshguard.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sshguard"

Fri Mar  3 17:45:25 2017 rev:6 rq:461280 version:1.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/sshguard/sshguard.changes        2017-01-09 
11:53:46.394823368 +0100
+++ /work/SRC/openSUSE:Factory/.sshguard.new/sshguard.changes   2017-03-03 
17:45:26.357462277 +0100
@@ -1,0 +2,5 @@
+Wed Mar  1 08:15:47 UTC 2017 - [email protected]
+
+- Add a systemd journal tail so sshguard can parse this file
+
+-------------------------------------------------------------------

New:
----
  sshguard-journal-tail
  sshguard-journal.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sshguard.spec ++++++
--- /var/tmp/diff_new_pack.lA6nDc/_old  2017-03-03 17:45:27.585288759 +0100
+++ /var/tmp/diff_new_pack.lA6nDc/_new  2017-03-03 17:45:27.589288195 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sshguard
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,6 +28,8 @@
 Source2:        sshguard.service
 Source3:        sshguard.init
 Source4:        sshguard.whitelist
+Source5:        sshguard-journal.service
+Source6:        sshguard-journal-tail
 # PATCH-FIX-UPSTREAM sshguard-gcc5.patch
 Patch0:         sshguard-gcc5.patch
 Requires:       openssh
@@ -63,6 +65,9 @@
 %if 0%{?has_systemd}
 ln -sf service %{buildroot}/%{_sbindir}/rc%{name}
 install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/sshguard.service
+ln -sf service %{buildroot}/%{_sbindir}/rc%{name}-journal
+install -D -m0644 %{SOURCE5} %{buildroot}%{_unitdir}/sshguard-journal.service
+install -D -m0744 %{SOURCE6} %{buildroot}/%{_sbindir}/sshguard-journal-tail
 %else
 install -D -m0744 %{SOURCE3} %{buildroot}%{_sysconfdir}/init.d/sshguard
 ln -s ../..%{_sysconfdir}/init.d/sshguard %{buildroot}%{_sbindir}/rcsshguard
@@ -75,12 +80,14 @@
 %pre
 %if 0%{?has_systemd}
 %service_add_pre %{name}.service
+%service_add_pre %{name}-journal.service
 %endif
 
 %post
 %if 0%{?has_systemd}
 %fillup_only sshguard
 %service_add_post sshguard.service
+%service_add_post sshguard-journal.service
 %else
 %fillup_and_insserv sshguard
 %endif
@@ -88,6 +95,7 @@
 %preun
 %if 0%{?has_systemd}
 %service_del_preun sshguard.service
+%service_del_preun sshguard-journal.service
 %else
 %stop_on_removal sshguard
 %endif
@@ -95,6 +103,7 @@
 %postun
 %if 0%{?has_systemd}
 %service_del_postun sshguard.service
+%service_del_postun sshguard-journal.service
 %else
 %restart_on_update sshguard
 %insserv_cleanup
@@ -108,6 +117,7 @@
 %{_localstatedir}/adm/fillup-templates/sysconfig.sshguard
 %if 0%{?has_systemd}
 %{_unitdir}/sshguard.service
+%{_unitdir}/sshguard-journal.service
 %else
 %config %{_sysconfdir}/init.d/sshguard
 %endif

++++++ sshguard-journal-tail ++++++
#!/bin/sh

/usr/bin/journalctl -u sshd -n 0 -f > /var/log/sshguard-journal-tail 2>/dev/null
++++++ sshguard-journal.service ++++++
[Unit]
Description=SSHGUARD journal tail
After=syslog.target remote-fs.target SuSEfirewall2.service

[Service]
ExecStart=/usr/sbin/sshguard-journal-tail
Restart=always

[Install]
WantedBy=multi-user.target
++++++ sshguard.sysconfig ++++++
--- /var/tmp/diff_new_pack.lA6nDc/_old  2017-03-03 17:45:27.681275194 +0100
+++ /var/tmp/diff_new_pack.lA6nDc/_new  2017-03-03 17:45:27.685274629 +0100
@@ -6,7 +6,7 @@
 ## Default:     ""
 # Whitespace separated list of logfiles which will be 
 # monitored from SSHGUARD for break in attempts.
-MONITORED_LOGS="/var/log/messages"
+MONITORED_LOGS="/var/log/sshguard-journal-tail"
 
 ## Type:        string
 ## Default:     "22"


Reply via email to