adjusted for proper help2man functioning. still help2man freeks out a bit and duplicates help output -- that is for later to fix

debian-releases/etch
Yaroslav Halchenko 2005-07-07 03:06:56 +00:00
parent a527233718
commit f62b0345b2
5 changed files with 42 additions and 8 deletions

View File

@ -2,9 +2,15 @@
# install target involved only if using autotools
DESTDIR=debian/fail2ban
all::
all:: fail2ban fail2ban.1x
fail2ban.1x: fail2ban fail2ban.h2m
help2man --include fail2ban.h2m --section=1x --no-info --output $@ ./fail2ban
fail2ban: fail2ban.py
cp fail2ban.py fail2ban
help2man -N -s 1 ./fail2ban >| fail2ban.1
install:: all
mkdir -p $(DESTDIR)/etc/default
@ -15,4 +21,4 @@ install:: all
cp log4py.py $(DESTDIR)/usr/lib/fail2ban/
clean::
rm -rf changelog.gz fail2ban{,.1} build* `find -iname '*.pyc' `
rm -rf changelog.gz fail2ban{,.1x} build* `find -iname '*.pyc' `

View File

@ -85,9 +85,9 @@ enabled = false
# Option: logfile
# Notes.: logfile to monitor.
# Values: FILE Default: /var/log/apache/access_log
# Values: FILE Default: /var/log/apache/access.log
#
logfile = /var/log/apache/access_log
logfile = /var/log/apache/access.log
# Option: timeregex
# Notes.: regex to match timestamp in Apache logfile.

4
debian/control vendored
View File

@ -9,8 +9,8 @@ Package: fail2ban
Architecture: all
Depends: python, iptables
Description: Ban IPs that make too many password failure
Fail2Ban scans log files like /var/log/pwdfail or
/var/log/apache/error_log and bans IP that makes too many password
The Fail2Ban scans log files like /var/log/auth.log or
/var/log/apache/access.log and bans IP that makes too many password
failures. It updates firewall rules to reject the IP
address. Currently, iptables, ipfwadm and ipfw are supported.
.

28
fail2ban.h2m Normal file
View File

@ -0,0 +1,28 @@
Include file for help2man man page
$Id: $
[name]
fail2ban \- Ban IPs that make too many password failure
[files]
\fI/etc/fail2ban.conf\fR, \fI/etc/default/fail2ban\fR
[copyright]
Copyright (c) 2004 Cyril Jaquier
.br
Copyright of modifications held by their respective authors.
.PP
Licensed under the GNU General Public License v2 (GPL).
[author]
Original fail2ban by Cyril Jaquier <lostcontrol@users.sourceforge.net>.
.br
Modified by
.br
- Yaroslav O. Halchenko <debian@onerussian.com>.
.br
Sponsored for Debian by
.br
- Barak A. Pearlmutter <barak@cs.may.ie>.

View File

@ -49,7 +49,7 @@ from confreader.configreader import ConfigReader
from version import version
def usage():
print "Usage: fail2ban.py [OPTIONS]"
print "Usage: "+sys.argv[0]+" [OPTIONS]"
print
print "Fail2Ban v"+version+" reads log file that contains password failure report"
print "and bans the corresponding IP address using iptables."