"""Setup script for fail2ban-p2p.""" from glob import glob import sys from setuptools import setup sys.path.insert(1, "./fail2ban-p2p") from version import version longdesc = ''' Fail2Ban-P2P can be used to exchange fail2ban attacker info between hosts that are running fail2ban in a P2P/F2F network. ''' setup( name="fail2ban-p2p", description="exchange fail2ban attacker info between hosts using P2P", long_description=longdesc, version=version, author="Johannes Fuermann, Manuel Munz", author_email="foo@bar.xyz", url="https://github.com/mmunz/fail2ban-p2p", license="GPL", platforms="Posix", scripts=['fail2ban-p2p.py', 'fail2ban-p2p-client.py'], packages=['fail2ban-p2p'], data_files=[ ('/etc/fail2ban-p2p', glob("config/*.conf")), ('/etc/fail2ban-p2p/friends', glob('config/friends/*')), ], ) if len(sys.argv) > 1 and sys.argv[1] == "install": print() print("Please do not forget to update your configuration files.") print("They are in /etc/fail2ban-p2p/.") print()