mirror of https://github.com/fail2ban/fail2ban
- Fixed pylint warnings.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@466 a942ae1a-1317-0410-a47c-b1dcaea8d6050.x
parent
377ebbea5d
commit
160900f88e
60
setup.py
60
setup.py
|
@ -29,7 +29,7 @@ __license__ = "GPL"
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
from version import version
|
from version import version
|
||||||
from os.path import isfile, join
|
from os.path import isfile, join
|
||||||
from sys import exit, argv
|
from sys import argv
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
longdesc = '''
|
longdesc = '''
|
||||||
|
@ -40,38 +40,38 @@ to reject the IP address or executes user defined
|
||||||
commands.'''
|
commands.'''
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "fail2ban",
|
name = "fail2ban",
|
||||||
version = version,
|
version = version,
|
||||||
description = "Ban IPs that make too many password failure",
|
description = "Ban IPs that make too many password failure",
|
||||||
long_description = longdesc,
|
long_description = longdesc,
|
||||||
author = "Cyril Jaquier",
|
author = "Cyril Jaquier",
|
||||||
author_email = "lostcontrol@users.sourceforge.net",
|
author_email = "lostcontrol@users.sourceforge.net",
|
||||||
url = "http://fail2ban.sourceforge.net",
|
url = "http://fail2ban.sourceforge.net",
|
||||||
license = "GPL",
|
license = "GPL",
|
||||||
platforms = "Posix",
|
platforms = "Posix",
|
||||||
scripts = [
|
scripts = [
|
||||||
'fail2ban-client',
|
'fail2ban-client',
|
||||||
'fail2ban-server',
|
'fail2ban-server',
|
||||||
'fail2ban-regex'
|
'fail2ban-regex'
|
||||||
],
|
],
|
||||||
py_modules = [
|
py_modules = [
|
||||||
'version',
|
'version',
|
||||||
'protocol'
|
'protocol'
|
||||||
],
|
],
|
||||||
packages = [
|
packages = [
|
||||||
'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")
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -82,22 +82,22 @@ elements = {
|
||||||
"/etc/":
|
"/etc/":
|
||||||
[
|
[
|
||||||
"fail2ban.conf"
|
"fail2ban.conf"
|
||||||
],
|
],
|
||||||
"/usr/bin/":
|
"/usr/bin/":
|
||||||
[
|
[
|
||||||
"fail2ban.py"
|
"fail2ban.py"
|
||||||
],
|
],
|
||||||
"/usr/lib/fail2ban/firewall/":
|
"/usr/lib/fail2ban/firewall/":
|
||||||
[
|
[
|
||||||
"iptables.py",
|
"iptables.py",
|
||||||
"ipfwadm.py",
|
"ipfwadm.py",
|
||||||
"ipfw.py"
|
"ipfw.py"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
for dir in elements:
|
for directory in elements:
|
||||||
for f in elements[dir]:
|
for f in elements[directory]:
|
||||||
path = join(dir, f)
|
path = join(directory, f)
|
||||||
if isfile(path):
|
if isfile(path):
|
||||||
obsoleteFiles.append(path)
|
obsoleteFiles.append(path)
|
||||||
if obsoleteFiles:
|
if obsoleteFiles:
|
||||||
|
|
Loading…
Reference in New Issue