]> git.pld-linux.org Git - packages/fail2ban.git/commitdiff
- rel 2; run on low nice level to avoid interfering with other services auto/th/fail2ban-0.10.0-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 24 Aug 2017 07:39:35 +0000 (09:39 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 24 Aug 2017 07:39:35 +0000 (09:39 +0200)
fail2ban.spec
fail2ban.sysconfig [new file with mode: 0644]

index e81a314ac83b54dad068daa9213354356a691a79..3de5b6dbf6141996beacb9e09db87b766d63b0bb 100644 (file)
@@ -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 (file)
index 0000000..03cae23
--- /dev/null
@@ -0,0 +1,3 @@
+# Set nice level
+SERVICE_RUN_NICE_LEVEL="+19"
+
This page took 0.123341 seconds and 4 git commands to generate.