diff --git a/debian/sylkserver.install b/debian/sylkserver.install index bef76d0..9a54310 100644 --- a/debian/sylkserver.install +++ b/debian/sylkserver.install @@ -1,4 +1,5 @@ usr/bin usr/lib etc/sylkserver usr/share/sylkserver/html +usr/share/sylkserver/tls diff --git a/setup.py b/setup.py index 5b5ad1b..b0be9bc 100755 --- a/setup.py +++ b/setup.py @@ -1,43 +1,42 @@ #!/usr/bin/python # Copyright (C) 2010-2012 AG Projects. See LICENSE for details # import glob import os import re from distutils.core import setup def get_version(): return re.search(r"""__version__\s+=\s+(?P['"])(?P.+?)(?P=quote)""", open('sylk/__init__.py').read()).group('version') def find_packages(toplevel): return [directory.replace(os.path.sep, '.') for directory, subdirs, files in os.walk(toplevel) if '__init__.py' in files] -def get_resource_files(resource): - for root, dirs, files in os.walk(os.path.join('resources', resource)): +def get_resource_files(): + for root, dirs, files in os.walk('resources'): yield (os.path.join('share/sylkserver', root[10:]), [os.path.join(root, f) for f in files]) setup(name = "sylkserver", version = get_version(), author = "AG Projects", author_email = "support@ag-projects.com", url = "http://sylkserver.com", description = "SylkServer - An Extensible SIP Application Server", classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Service Providers", "License :: GNU General Public License 3", "Operating System :: OS Independent", "Programming Language :: Python" ], packages = find_packages('sylk'), scripts = ['sylk-server'], data_files = [('/var/lib/sylkserver', []), ('/etc/sylkserver', glob.glob('*.ini.sample')), ('/etc/sylkserver/tls', glob.glob('resources/tls/*.crt'))] + \ - list(get_resource_files('sounds')) + list(get_resource_files('html')) - ) - + list(get_resource_files()) +)