[Lunar-commits] <moonbase-other> fail2ban: a few modules fixes

Stefan Wold ratler at lunar-linux.org
Sat Sep 20 15:27:23 CEST 2014


commit 97a664962e0d4292e1645d8f9a27a4736a20abdf
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 20 Sep 2014 15:26:14 +0200
URL: https://github.com/lunar-linux/moonbase-other/commit/97a664962e0d4292e1645d8f9a27a4736a20abdf

fail2ban: a few modules fixes
---
  security/fail2ban/BUILD                      | +3/-7     
  security/fail2ban/DEPENDS                    | +2/-0     
  security/fail2ban/systemd.d/fail2ban.service | +3/-3     
  security/fail2ban/tmpfiles.d/fail2ban.conf   | +1/-0     
  4 files changed, 9 insertions(+), 10 deletions(-)

--- a/security/fail2ban/BUILD
+++ b/security/fail2ban/BUILD
@@ -1,7 +1,3 @@
-(
-
-  python setup.py build_ext -i  &&
-  prepare_install               &&
-  python setup.py install
-
-) > $C_FIFO 2>&1
+python setup.py build_ext -i  &&
+prepare_install               &&
+python setup.py install
--- /dev/null
+++ b/security/fail2ban/DEPENDS
@@ -0,0 +1,2 @@
+depends iptables
+depends Python
--- a/security/fail2ban/systemd.d/fail2ban.service
+++ b/security/fail2ban/systemd.d/fail2ban.service
@@ -4,11 +4,11 @@ After=syslog.target network.target
 
 [Service]
 Type=forking
-PIDFile=/var/run/fail2ban/fail2ban.pid
-ExecStartPre=/usr/bin/newaliases
-ExecStart=/usr/bin/fail2ban-client start
+PIDFile=/run/fail2ban/fail2ban.pid
+ExecStart=/usr/bin/fail2ban-client -x start
 ExecReload=/usr/bin/fail2ban-client reload
 ExecStop=/usr/bin/fail2ban-client stop
+Restart=always
 
 [Install]
 WantedBy=multi-user.target
--- /dev/null
+++ b/security/fail2ban/tmpfiles.d/fail2ban.conf
@@ -0,0 +1 @@
+D /run/fail2ban 0755 root root -




More information about the Lunar-commits mailing list