From 12dd23004e3949563abfcc02c1bdaa5d8d74cc17 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 30 Dec 2014 18:33:06 -0500 Subject: [PATCH] Install monit configuration --- debian/changelog | 5 ++++- debian/control | 2 +- debian/patches/neurodebian_use_python2 | 4 ++-- debian/rules | 3 +++ 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8fa69b9e..83007323 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,8 +13,11 @@ fail2ban (0.9.1+git44-gd65c4f8-1) experimental; urgency=medium - carries a lot of fixes and improvements. Consult upstream ChangeLog - debian's init file is now maintained in upstream codebase (for manual deployments) + - provides monit (now Suggest'ed) file which is now gets installed + but not enabled by default: ln -s /etc/monit/{monitrc,conf}.d/fail2ban + to assure that fail2ban process is running - -- Yaroslav Halchenko Tue, 30 Dec 2014 16:46:26 -0500 + -- Yaroslav Halchenko Tue, 30 Dec 2014 18:32:16 -0500 fail2ban (0.9.1-1) unstable; urgency=medium diff --git a/debian/control b/debian/control index 928841c2..d3a5098f 100644 --- a/debian/control +++ b/debian/control @@ -13,7 +13,7 @@ Package: fail2ban Architecture: all Depends: ${python3:Depends}, ${misc:Depends}, lsb-base (>=2.0-7) Recommends: iptables, whois, python3-pyinotify -Suggests: mailx, system-log-daemon, python3-systemd +Suggests: mailx, system-log-daemon, python3-systemd, monit Description: ban hosts that cause multiple authentication errors Fail2ban monitors log files (e.g. /var/log/auth.log, /var/log/apache/access.log) and temporarily or persistently bans diff --git a/debian/patches/neurodebian_use_python2 b/debian/patches/neurodebian_use_python2 index 120efbcc..e7c7c093 100644 --- a/debian/patches/neurodebian_use_python2 +++ b/debian/patches/neurodebian_use_python2 @@ -14,9 +14,9 @@ Architecture: all Depends: ${python3:Depends}, ${misc:Depends}, lsb-base (>=2.0-7) -Recommends: iptables, whois, python3-pyinotify --Suggests: mailx, system-log-daemon, python3-systemd +-Suggests: mailx, system-log-daemon, python3-systemd, monit +Recommends: iptables, whois, python-pyinotify -+Suggests: mailx, system-log-daemon, python-systemd ++Suggests: mailx, system-log-daemon, python-systemd, monit Description: ban hosts that cause multiple authentication errors Fail2ban monitors log files (e.g. /var/log/auth.log, /var/log/apache/access.log) and temporarily or persistently bans diff --git a/debian/rules b/debian/rules index 20168914..4fce1f92 100755 --- a/debian/rules +++ b/debian/rules @@ -31,6 +31,9 @@ override_dh_install: : # just to please lintian since init file will : # take care about it anyways rm -rf $(DESTDIR)/var/run/ + : # Install monit configuration + install -d $(DESTDIR)/etc/monit/monitrc.d + install -m 644 files/monit/fail2ban $(DESTDIR)/etc/monit/monitrc.d/fail2ban : # Install bash completion install -d $(DESTDIR)/etc/bash_completion.d install -m 644 files/bash-completion $(DESTDIR)/etc/bash_completion.d/fail2ban