forked from denyhosts/denyhosts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (38 loc) · 1.34 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
# Copyright 2005-2006 (C) Phil Schwartz <[email protected]>
# Copyright 2014 (C) Jesse Smith <[email protected]>
from glob import glob
from os.path import join as ospj
from distutils.core import setup
from DenyHosts.util import normalize_whitespace
from DenyHosts.version import VERSION
etcpath = "/etc"
manpath = "/usr/share/man/man8"
libpath = "/usr/share/denyhosts"
scriptspath = ospj("scripts", libpath)
pluginspath = ospj("plugins", libpath)
setup(
name="DenyHosts",
version=VERSION,
description="DenyHost is a utility to help sys admins thwart ssh hackers",
author="Jesse Smith",
author_email="[email protected]",
url="http://denyhost.sourceforge.net",
scripts=['denyhosts.py', 'daemon-control-dist'],
package_dir={'DenyHosts': 'DenyHosts'},
packages=["DenyHosts"],
requires=["ipaddr"],
data_files=[
(etcpath, glob("denyhosts.conf")),
(manpath, glob("denyhosts.8")),
],
license="GPL v2",
long_description=normalize_whitespace(
"""
DenyHosts is a python program that automatically blocks ssh attacks
by adding entries to /etc/hosts.deny. DenyHosts will also inform
administrators about offending hosts, attacked users and suspicious
logins. Originally written by Phil Schwartz.
"""
),
)