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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
#!/usr/bin/env python
# -*- coding: ISO-8859-15 -*-
#
# Copyright (C) 2005-2006 David Guerizec <david@guerizec.net>
#
# Last modified: 2006 Jul 28, 00:04:27 by david
#
# This program 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.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import os, os.path
from distutils.core import setup
import sshproxy
version = sshproxy.__version__
url = sshproxy.__url__
author = sshproxy.__author__
author_email = sshproxy.__author_email__
def get_data_files(target, root, path=''):
l = []
for item in os.listdir(os.path.join(root, path)):
if os.path.isdir(os.path.join(root, path, item)):
l = l + get_data_files(target, root, os.path.join(path, item))
else:
l.append((os.path.join(target, path),
[ os.path.join(root, path, item) ]))
return l
long_description = '''
sshproxy is an ACL proxy to allow (or deny) users to connect to remote
sites.
It contains a password database which relieve the users from having to
know the password or key of the remote sites.
`Read more...`_
.. _`Read more...`: http://penguin.fr/sshproxy/
'''
classifiers = """Development Status :: 4 - Beta
Environment :: Console
Environment :: No Input/Output (Daemon)
Intended Audience :: System Administrators
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: POSIX
Programming Language :: Python
Topic :: Internet :: Proxy Servers
Topic :: Security
Topic :: System :: Networking
Topic :: System :: Systems Administration""".split('\n')
data_files = ( get_data_files('lib/sshproxy', 'lib')
+ get_data_files('share/sshproxy', 'share') )
setup(name='sshproxy',
version=version,
description='pure python implementation of an ssh proxy',
author=author,
author_email=author_email,
url=url,
download_url='%sdownload/sshproxy-%s.tar.gz' % (url, version),
packages=['sshproxy'],
scripts=['bin/sshproxyd', 'bin/sshproxy-setup', 'bin/pssh', 'bin/pscp'],
long_description=long_description,
data_files=data_files,
classifiers=classifiers,
)
|