[packages/fail2ban] - rel 2; run on low nice level to avoid interfering with other services

arekm arekm at pld-linux.org
Thu Aug 24 09:39:42 CEST 2017


commit 0563dd1437e6e24be6a6df4bbab4b5beec923df6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Aug 24 09:39:35 2017 +0200

    - rel 2; run on low nice level to avoid interfering with other services

 fail2ban.spec      | 7 +++++--
 fail2ban.sysconfig | 3 +++
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/fail2ban.spec b/fail2ban.spec
index e81a314..3de5b6d 100644
--- a/fail2ban.spec
+++ b/fail2ban.spec
@@ -2,7 +2,7 @@ Summary:	Ban IPs that make too many password failures
 Summary(pl.UTF-8):	Blokowanie IP powodujących zbyt dużo prób logowań z błędnym hasłem
 Name:		fail2ban
 Version:	0.10.0
-Release:	1
+Release:	2
 License:	GPL
 Group:		Daemons
 Source0:	https://github.com/fail2ban/fail2ban/archive/%{version}.tar.gz
@@ -10,6 +10,7 @@ Source0:	https://github.com/fail2ban/fail2ban/archive/%{version}.tar.gz
 Source1:	%{name}.init
 Source2:	%{name}.logrotate
 Source3:	paths-pld.conf
+Source4:	%{name}.sysconfig
 Patch0:		logifiles.patch
 URL:		http://fail2ban.sourceforge.net/
 BuildRequires:	python-devel
@@ -48,7 +49,7 @@ rm setup.cfg
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d} \
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,sysconfig} \
 	$RPM_BUILD_ROOT{%{_mandir}/man1,/var/{log,run/fail2ban}} \
 	$RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir}}
 
@@ -61,6 +62,7 @@ install -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fail2ban
 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/fail2ban
 install -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fail2ban/paths-pld.conf
+install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 
 install -p files/fail2ban-tmpfiles.conf $RPM_BUILD_ROOT%{systemdtmpfilesdir}/fail2ban.conf
 install -p files/fail2ban.service $RPM_BUILD_ROOT%{systemdunitdir}/fail2ban.service
@@ -114,6 +116,7 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fail2ban/*.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fail2ban/*/*.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/fail2ban
+%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %{py_sitescriptdir}/%{name}
 %{py_sitescriptdir}/%{name}-%{version}-py*.egg-info
 %{_mandir}/man1/fail2ban-client.1*
diff --git a/fail2ban.sysconfig b/fail2ban.sysconfig
new file mode 100644
index 0000000..03cae23
--- /dev/null
+++ b/fail2ban.sysconfig
@@ -0,0 +1,3 @@
+# Set nice level
+SERVICE_RUN_NICE_LEVEL="+19"
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fail2ban.git/commitdiff/0563dd1437e6e24be6a6df4bbab4b5beec923df6



More information about the pld-cvs-commit mailing list