mirror of https://github.com/fail2ban/fail2ban
rearranging, cleaning up
parent
899c6d54df
commit
7693ede193
17
Makefile
17
Makefile
|
@ -1,17 +0,0 @@
|
||||||
# quick dirty hacks
|
|
||||||
#
|
|
||||||
DESTDIR=debian/fail2ban
|
|
||||||
MANPAGE=fail2ban.8
|
|
||||||
all:: $(MANPAGE)
|
|
||||||
|
|
||||||
|
|
||||||
$(MANPAGE): fail2ban fail2ban.h2m
|
|
||||||
help2man --include fail2ban.h2m --section=1x --no-info --output $@ ./fail2ban
|
|
||||||
|
|
||||||
install:: all
|
|
||||||
python setup.py install --root=debian/fail2ban/
|
|
||||||
mkdir -p $(DESTDIR)/etc
|
|
||||||
cp config/fail2ban.conf.default $(DESTDIR)/etc/fail2ban.conf
|
|
||||||
|
|
||||||
clean::
|
|
||||||
rm -rf changelog.gz $(MANPAGE) build* `find -iname '*.pyc' `
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
fail2ban (0.6.0-8) unstable; urgency=low
|
||||||
|
|
||||||
|
* Minor adjustments to reduce the deviation from the upstream code
|
||||||
|
|
||||||
|
-- Yaroslav Halchenko <debian@onerussian.com> Sat, 11 Mar 2006 00:48:14 -0500
|
||||||
|
|
||||||
fail2ban (0.6.0-7) unstable; urgency=low
|
fail2ban (0.6.0-7) unstable; urgency=low
|
||||||
|
|
||||||
* Fixed a typo in failregex for SSH section (closes: #356112)
|
* Fixed a typo in failregex for SSH section (closes: #356112)
|
||||||
|
|
|
@ -9,42 +9,28 @@
|
||||||
# Uncomment this to turn on verbose mode.
|
# Uncomment this to turn on verbose mode.
|
||||||
#export DH_VERBOSE=1
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
MANPAGE=fail2ban.8
|
||||||
|
DESTDIR=$(CURDIR)/debian/fail2ban
|
||||||
|
|
||||||
CFLAGS = -Wall -g
|
|
||||||
|
|
||||||
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
||||||
CFLAGS += -O0
|
|
||||||
else
|
|
||||||
CFLAGS += -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
configure: configure-stamp
|
configure: configure-stamp
|
||||||
configure-stamp:
|
configure-stamp:
|
||||||
dh_testdir
|
dh_testdir
|
||||||
# Add here commands to configure the package.
|
# Add here commands to configure the package.
|
||||||
|
|
||||||
touch configure-stamp
|
touch configure-stamp
|
||||||
|
|
||||||
|
|
||||||
build: build-stamp
|
build: build-stamp
|
||||||
|
|
||||||
build-stamp: configure-stamp
|
build-stamp: configure-stamp
|
||||||
dh_testdir
|
dh_testdir
|
||||||
|
|
||||||
# Add here commands to compile the package.
|
|
||||||
$(MAKE)
|
|
||||||
#docbook-to-man debian/fail2ban.sgml > fail2ban.1
|
|
||||||
|
|
||||||
touch build-stamp
|
touch build-stamp
|
||||||
|
|
||||||
copy-inits:
|
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/debian-initd debian/fail2ban.init
|
||||||
|
cp config/fail2ban.logrotate debian/
|
||||||
|
|
||||||
clean-inits:
|
clean-inits:
|
||||||
rm -f debian/fail2ban.default debian/fail2ban.init
|
rm -f debian/fail2ban.{default,init,logrotate}
|
||||||
|
|
||||||
clean: clean-inits
|
clean: clean-inits
|
||||||
dh_testdir
|
dh_testdir
|
||||||
|
@ -52,7 +38,7 @@ clean: clean-inits
|
||||||
rm -f build-stamp configure-stamp
|
rm -f build-stamp configure-stamp
|
||||||
|
|
||||||
# Add here commands to clean up after the build process.
|
# Add here commands to clean up after the build process.
|
||||||
-$(MAKE) clean
|
rm -rf changelog.gz $(MANPAGE) build* `find -iname '*.pyc' `
|
||||||
|
|
||||||
dh_clean
|
dh_clean
|
||||||
|
|
||||||
|
@ -63,12 +49,17 @@ install: build
|
||||||
dh_installdirs
|
dh_installdirs
|
||||||
|
|
||||||
# Add here commands to install the package into debian/fail2ban.
|
# Add here commands to install the package into debian/fail2ban.
|
||||||
$(MAKE) install DESTDIR=$(CURDIR)/debian/fail2ban
|
python setup.py install --root=$(DESTDIR)
|
||||||
|
mkdir -p $(DESTDIR)/etc
|
||||||
|
cp config/fail2ban.conf.default $(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.
|
# Build architecture-independent files here.
|
||||||
binary-indep: build install
|
binary-indep: build install $(MANPAGE)
|
||||||
# We have nothing to do by default.
|
|
||||||
# migrated from binary-arch
|
# migrated from binary-arch
|
||||||
dh_python
|
dh_python
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,6 @@ from utils.process import executeCmd
|
||||||
# we might endup with not "full" flush unless we handle exception within the loop
|
# we might endup with not "full" flush unless we handle exception within the loop
|
||||||
from utils.process import ExternalError
|
from utils.process import ExternalError
|
||||||
from utils.strings import replaceTag
|
from utils.strings import replaceTag
|
||||||
# unfortunately but I have to bring ExternalError in especially for
|
|
||||||
# flushBanList: if one of IPs got flushed manually outside or something, we
|
|
||||||
# might endup with not "full" flush unless we handle exception within the loop
|
|
||||||
from utils.process import ExternalError
|
|
||||||
|
|
||||||
# Gets the instance of the logger.
|
# Gets the instance of the logger.
|
||||||
logSys = logging.getLogger("fail2ban")
|
logSys = logging.getLogger("fail2ban")
|
||||||
|
|
Loading…
Reference in New Issue