- Moved version.py and protocol.py to common/

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@467 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.x
Cyril Jaquier 18 years ago
parent 160900f88e
commit 58acd9fb9f

@ -17,6 +17,8 @@ ver. 0.7.5 (2006/??/??) - ???
- Added option "ignoreregex" in filter scripts and jail.conf. - Added option "ignoreregex" in filter scripts and jail.conf.
Feature Request #1283304 Feature Request #1283304
- Fixed a bug in user defined time regex/pattern - Fixed a bug in user defined time regex/pattern
- Improved documentation
- Moved version.py and protocol.py to common/
ver. 0.7.4 (2006/11/01) - beta ver. 0.7.4 (2006/11/01) - beta
---------- ----------

@ -53,8 +53,9 @@ testcases/files/testcase03.log
testcases/files/testcase04.log testcases/files/testcase04.log
setup.py setup.py
setup.cfg setup.cfg
version.py common/__init__.py
protocol.py common/version.py
common/protocol.py
config/jail.conf config/jail.conf
config/filter.d/postfix.conf config/filter.d/postfix.conf
config/filter.d/vsftpd.conf config/filter.d/vsftpd.conf

@ -0,0 +1,25 @@
# This file is part of Fail2Ban.
#
# Fail2Ban is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Fail2Ban is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Fail2Ban; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Author: Cyril Jaquier
#
# $Revision: 433 $
__author__ = "Cyril Jaquier"
__version__ = "$Revision: 433 $"
__date__ = "$Date: 2006-10-24 21:40:51 +0200 (Tue, 24 Oct 2006) $"
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
__license__ = "GPL"

@ -33,11 +33,11 @@ import getopt, time, readline, shlex, socket
sys.path.insert(1, "/usr/lib/fail2ban") sys.path.insert(1, "/usr/lib/fail2ban")
# Now we can import our modules # Now we can import our modules
from version import version from common.version import version
from common.protocol import printFormatted
from client.csocket import CSocket from client.csocket import CSocket
from client.configurator import Configurator from client.configurator import Configurator
from client.beautifier import Beautifier from client.beautifier import Beautifier
from protocol import printFormatted
# Gets the instance of the logger. # Gets the instance of the logger.
logSys = logging.getLogger("fail2ban.client") logSys = logging.getLogger("fail2ban.client")

@ -31,7 +31,7 @@ import locale, getopt, sys, time, logging, gc
# fix for bug #343821 # fix for bug #343821
sys.path.insert(1, "/usr/lib/fail2ban") sys.path.insert(1, "/usr/lib/fail2ban")
from version import version from common.version import version
from server.filter import Filter from server.filter import Filter
# Gets the instance of the logger. # Gets the instance of the logger.

@ -31,7 +31,7 @@ import getopt, sys
# fix for bug #343821 # fix for bug #343821
sys.path.insert(1, "/usr/lib/fail2ban") sys.path.insert(1, "/usr/lib/fail2ban")
from version import version from common.version import version
from server.server import Server from server.server import Server
## ##

@ -32,7 +32,7 @@ import unittest, logging, sys
# fix for bug #343821 # fix for bug #343821
sys.path.insert(1, "/usr/lib/fail2ban") sys.path.insert(1, "/usr/lib/fail2ban")
from version import version from common.version import version
from testcases import banmanagertestcase from testcases import banmanagertestcase
from testcases import clientreadertestcase from testcases import clientreadertestcase
from testcases import failmanagertestcase from testcases import failmanagertestcase

@ -27,7 +27,7 @@ __copyright__ = "Copyright (c) 2004 Cyril Jaquier"
__license__ = "GPL" __license__ = "GPL"
from distutils.core import setup from distutils.core import setup
from version import version from common.version import version
from os.path import isfile, join from os.path import isfile, join
from sys import argv from sys import argv
from glob import glob from glob import glob
@ -54,24 +54,21 @@ setup(
'fail2ban-server', 'fail2ban-server',
'fail2ban-regex' 'fail2ban-regex'
], ],
py_modules = [
'version',
'protocol'
],
packages = [ packages = [
'common',
'client', 'client',
'server' 'server'
], ],
data_files = [ data_files = [
('/etc/fail2ban', ('/etc/fail2ban',
glob("config/*.conf") glob("config/*.conf")
), ),
('/etc/fail2ban/filter.d', ('/etc/fail2ban/filter.d',
glob("config/filter.d/*.conf") glob("config/filter.d/*.conf")
), ),
('/etc/fail2ban/action.d', ('/etc/fail2ban/action.d',
glob("config/action.d/*.conf") glob("config/action.d/*.conf")
) )
] ]
) )
@ -100,6 +97,7 @@ for directory in elements:
path = join(directory, f) path = join(directory, f)
if isfile(path): if isfile(path):
obsoleteFiles.append(path) obsoleteFiles.append(path)
if obsoleteFiles: if obsoleteFiles:
print print
print "Obsolete files from previous Fail2Ban versions were found on " \ print "Obsolete files from previous Fail2Ban versions were found on " \

Loading…
Cancel
Save