mirror of https://github.com/fail2ban/fail2ban
Clean up setup.py
parent
5bccec61e4
commit
5e9619d4a4
130
setup.py
130
setup.py
|
@ -92,77 +92,77 @@ setup(
|
||||||
license = "GPL",
|
license = "GPL",
|
||||||
platforms = "Posix",
|
platforms = "Posix",
|
||||||
cmdclass = {'build_py': build_py, 'build_scripts': build_scripts},
|
cmdclass = {'build_py': build_py, 'build_scripts': build_scripts},
|
||||||
scripts = [
|
scripts = [
|
||||||
'bin/fail2ban-client',
|
'bin/fail2ban-client',
|
||||||
'bin/fail2ban-server',
|
'bin/fail2ban-server',
|
||||||
'bin/fail2ban-regex',
|
'bin/fail2ban-regex',
|
||||||
'bin/fail2ban-testcases',
|
'bin/fail2ban-testcases',
|
||||||
],
|
],
|
||||||
packages = [
|
packages = [
|
||||||
'fail2ban',
|
'fail2ban',
|
||||||
'fail2ban.client',
|
'fail2ban.client',
|
||||||
'fail2ban.server',
|
'fail2ban.server',
|
||||||
'fail2ban.tests',
|
'fail2ban.tests',
|
||||||
'fail2ban.tests.action_d',
|
'fail2ban.tests.action_d',
|
||||||
],
|
],
|
||||||
package_data = {
|
package_data = {
|
||||||
'fail2ban.tests':
|
'fail2ban.tests':
|
||||||
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
|
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
|
||||||
for w in os.walk('fail2ban/tests/files')
|
for w in os.walk('fail2ban/tests/files')
|
||||||
for f in w[2]] +
|
for f in w[2]] +
|
||||||
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
|
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
|
||||||
for w in os.walk('fail2ban/tests/config')
|
for w in os.walk('fail2ban/tests/config')
|
||||||
for f in w[2]] +
|
for f in w[2]] +
|
||||||
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
|
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
|
||||||
for w in os.walk('fail2ban/tests/action_d')
|
for w in os.walk('fail2ban/tests/action_d')
|
||||||
for f in w[2]]
|
for f in w[2]]
|
||||||
},
|
},
|
||||||
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") +
|
||||||
glob("config/action.d/*.py")
|
glob("config/action.d/*.py")
|
||||||
),
|
),
|
||||||
('/etc/fail2ban/fail2ban.d',
|
('/etc/fail2ban/fail2ban.d',
|
||||||
''
|
''
|
||||||
),
|
),
|
||||||
('/etc/fail2ban/jail.d',
|
('/etc/fail2ban/jail.d',
|
||||||
''
|
''
|
||||||
),
|
),
|
||||||
('/var/lib/fail2ban',
|
('/var/lib/fail2ban',
|
||||||
''
|
''
|
||||||
),
|
),
|
||||||
('/usr/share/doc/fail2ban',
|
('/usr/share/doc/fail2ban',
|
||||||
['README.md', 'README.Solaris', 'DEVELOP', 'FILTERS',
|
['README.md', 'README.Solaris', 'DEVELOP', 'FILTERS',
|
||||||
'doc/run-rootless.txt']
|
'doc/run-rootless.txt']
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
**setup_extra
|
**setup_extra
|
||||||
)
|
)
|
||||||
|
|
||||||
# Do some checks after installation
|
# Do some checks after installation
|
||||||
# Search for obsolete files.
|
# Search for obsolete files.
|
||||||
obsoleteFiles = []
|
obsoleteFiles = []
|
||||||
elements = {
|
elements = {
|
||||||
"/etc/":
|
"/etc/":
|
||||||
[
|
[
|
||||||
"fail2ban.conf"
|
"fail2ban.conf"
|
||||||
],
|
],
|
||||||
"/usr/bin/":
|
"/usr/bin/":
|
||||||
[
|
[
|
||||||
"fail2ban.py"
|
"fail2ban.py"
|
||||||
],
|
],
|
||||||
"/usr/lib/fail2ban/":
|
"/usr/lib/fail2ban/":
|
||||||
[
|
[
|
||||||
"version.py",
|
"version.py",
|
||||||
"protocol.py"
|
"protocol.py"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
for directory in elements:
|
for directory in elements:
|
||||||
for f in elements[directory]:
|
for f in elements[directory]:
|
||||||
|
|
Loading…
Reference in New Issue