mirror of https://github.com/fail2ban/fail2ban
minor modifications: examples, proper conf file copying
parent
4fa0eba064
commit
435f870b13
|
@ -1,17 +1,25 @@
|
|||
fail2ban for Debian
|
||||
-------------------
|
||||
|
||||
This package is ~95% identical to the upstream version. Few feature
|
||||
could have been added but not yet propagated into upstream
|
||||
version. And although due to tight collaboration with upstream author
|
||||
This package is ~95% identical to the upstream version. Few features
|
||||
could have been added but not yet propagated into upstream version and
|
||||
some modifications might be Debian-specific (logsys logging
|
||||
format). And although due to tight collaboration with upstream author
|
||||
most of the Debian modifications penetrate into the next upstream, few
|
||||
features present in Debian release were rejected by the upstream
|
||||
author (-e option for instance)
|
||||
author (-e option for instance).
|
||||
|
||||
Currently, the major difference with upstream: python libraries are
|
||||
placed under /usr/share/fail2ban instead of /usr/lib/fail2ban to
|
||||
comply with policy regarding architecture independent resources.
|
||||
|
||||
Also the main config file /etc/fail2ban.conf is a copy of
|
||||
/usr/share/doc/examples/fail2ban.conf.iptables. There are config files
|
||||
for banning via shorewall or hosts.deny are provided BUT they might
|
||||
miss additional sections present in fail2ban.conf. Please copy them
|
||||
taking care about added sections. Those files will be obsolete in the
|
||||
next release which would handle split configuration files.
|
||||
|
||||
Default behavior:
|
||||
-----------------
|
||||
|
||||
|
@ -106,4 +114,4 @@ had enough of failed logins within "findtime" will be banned for
|
|||
"bantime" since [re]start moment, not since the last failed login
|
||||
time.
|
||||
|
||||
-- Yaroslav O. Halchenko <debian@onerussian.com>, Sun Jan 15 15:18:13 2006
|
||||
-- Yaroslav O. Halchenko <debian@onerussian.com>, Sun, 19 Mar 2006 00:27:22 -0500
|
||||
|
|
|
@ -20,12 +20,12 @@ configure-stamp:
|
|||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
touch build-stamp
|
||||
|
||||
copy-inits:
|
||||
cp config/gentoo-confd debian/fail2ban.default
|
||||
cp config/gentoo-confd debian/fail2ban.default
|
||||
cp config/debian-initd debian/fail2ban.init
|
||||
cp config/fail2ban.logrotate debian/
|
||||
|
||||
|
@ -40,26 +40,26 @@ clean: clean-inits
|
|||
# Add here commands to clean up after the build process.
|
||||
rm -rf changelog.gz $(MANPAGE) build* `find -iname '*.pyc' `
|
||||
|
||||
dh_clean
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
# Add here commands to install the package into debian/fail2ban.
|
||||
python setup.py install --root=$(DESTDIR)
|
||||
mkdir -p $(DESTDIR)/etc
|
||||
cp config/fail2ban.conf.default $(DESTDIR)/etc/fail2ban.conf
|
||||
cp config/fail2ban.conf.iptables $(DESTDIR)/etc/fail2ban.conf
|
||||
|
||||
# To build manpage
|
||||
$(MANPAGE): fail2ban fail2ban.h2m
|
||||
help2man --include fail2ban.h2m --section=1x --no-info --output $@ ./fail2ban
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install $(MANPAGE)
|
||||
|
||||
|
||||
# migrated from binary-arch
|
||||
dh_python
|
||||
|
||||
|
@ -72,7 +72,7 @@ binary-arch: build install copy-inits
|
|||
dh_installexamples
|
||||
# dh_install
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
# dh_installdebconf
|
||||
dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
|
|
Loading…
Reference in New Issue