diff --git a/MANIFEST.in b/MANIFEST.in index 8cd3f69..bf35543 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,17 +1,19 @@ include AUTHORS include LICENSE include README include MANIFEST.in include build_inplace include debian/changelog include debian/compat include debian/control include debian/copyright include debian/dirs include debian/docs include debian/rules include debian/source/format graft docs graft resources +graft tls + diff --git a/debian/copyright b/debian/copyright index 31d80bb..45e5c72 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,15 +1,15 @@ -Copyright: 2008-2020 AG Projects +Copyright: 2008-2021 AG Projects License: GPL-3+ 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 3 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. For a copy of the license see /usr/share/common-licenses/GPL-3 diff --git a/resources/tls/ca.crt b/resources/tls/ca.crt new file mode 100644 index 0000000..fc57a91 --- /dev/null +++ b/resources/tls/ca.crt @@ -0,0 +1,43 @@ +-----BEGIN CERTIFICATE----- +MIIHiTCCBXGgAwIBAgIUF+IlOPtYm07bJydzC/jLRdHpYoswDQYJKoZIhvcNAQEL +BQAwgasxCzAJBgNVBAYTAk5MMRYwFAYDVQQIEw1Ob29yZC1Ib2xsYW5kMRAwDgYD +VQQHEwdIYWFybGVtMRQwEgYDVQQKEwtBRyBQcm9qZWN0czEUMBIGA1UECxMLRGV2 +ZWxvcG1lbnQxIDAeBgNVBAMTF0FHIFByb2plY3RzIERldmVsb3BtZW50MSQwIgYJ +KoZIhvcNAQkBFhVkZXZlbEBhZy1wcm9qZWN0cy5jb20wIBcNMTkwMjI3MDgzNzA5 +WhgPMjA2OTAyMTQwODM3MDlaMIGrMQswCQYDVQQGEwJOTDEWMBQGA1UECBMNTm9v +cmQtSG9sbGFuZDEQMA4GA1UEBxMHSGFhcmxlbTEUMBIGA1UEChMLQUcgUHJvamV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++bjef/NGEqRnsnoTkg== +-----END CERTIFICATE----- diff --git a/resources/tls/default.crt b/resources/tls/default.crt new file mode 100644 index 0000000..3191c9f --- /dev/null +++ b/resources/tls/default.crt @@ -0,0 +1,94 @@ +-----BEGIN CERTIFICATE----- +MIIHXTCCBUWgAwIBAgIBATANBgkqhkiG9w0BAQsFADCBqzELMAkGA1UEBhMCTkwx +FjAUBgNVBAgTDU5vb3JkLUhvbGxhbmQxEDAOBgNVBAcTB0hhYXJsZW0xFDASBgNV +BAoTC0FHIFByb2plY3RzMRQwEgYDVQQLEwtEZXZlbG9wbWVudDEgMB4GA1UEAxMX +QUcgUHJvamVjdHMgRGV2ZWxvcG1lbnQxJDAiBgkqhkiG9w0BCQEWFWRldmVsQGFn +LXByb2plY3RzLmNvbTAeFw0xOTAyMjcwODQ5NTFaFw0yOTAyMjQwODQ5NTFaMIGT +MQswCQYDVQQGEwJOTDEWMBQGA1UECBMNTm9vcmQtSG9sbGFuZDEQMA4GA1UEBxMH +SGFhcmxlbTEUMBIGA1UEChMLQUcgUHJvamVjdHMxDjAMBgNVBAsTBUJsaW5rMQ4w +DAYDVQQDEwVCbGluazEkMCIGCSqGSIb3DQEJARYVZGV2ZWxAYWctcHJvamVjdHMu +Y29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAohIpxs9Qd9ENgow0 +wqD3PqXzNp0BCQOSQXBNgy/WJlsUo6+GXao40xTetiLmPoYzPnPnFhNxHqTL+4bW +063AX/qf98DDlEfSs0hyKP4RKCmkcloOlgZldabxBzGOFaD/wrJqujISV+ZWU6Al +ToufjPukFJhJSTxYH5RDK1rNo0BEFynQ6TBucob0shB8mFVLrJxk1oz5Am0XxI1L +UfMqz6SfI8yFc3cUfZ4BNbVFSQ3MuTSVQmNP4ckjCGq6cx4Ny+05YfOsI7n+hQaF +fHvg3u3gxKYIt97b6Z357VlPHs7OOLG0AV/CRPp8aIKnJrsZ5M2tKTJZ3uxXYPg0 +Gyj9IRjkVV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BQwISG5bRyuvcAFsKKsRzozGeXsjhgZQZ2rvgMPfSLU +0MhAgq7rKa3ICYP/+fLQV4buaIKTaaF0fo21K8HIUsW+CL2MIUZVwzu/5JtcHPB5 +8E7aeIv+c/omelWfwEkktj2E58rHsZJMUrP9ReC4qwRqjsq9GPeUDcQc4YjHbLIQ +AA2U+W25xNYd40xsbi8W4gyyht8B2FPV/k+MVb6quzDd35i24mZOv9hQ3OqWz+ZU +WKYKrnWuegKKktECZM8Dkgjd3PEOASeRAoIBAAi2X7rWiqv87I1XXVNke1qaZHii ++s165W0YAPmkQZD1uxSYGRrjlBTmjH3wAysACScGfeqZejbsltssDU1gyR2Iw9kh +jPK58XyWmmgxEgRhpWd6L8vcbDykkJu3MfZQeoKO48LZ6X8rIZobmBKjAuTKacno +Y6KEcD5stAfwdxv4VeL3QSyLzVZbXMzXS3uga+uLgrXCNMAkTiCXjtMMo0R0/Tf+ +tmDf/6wv+YLNO7edKhkecba4SCFrEVJwDf7bYB1gQn52cLD8HX8lWx77efryK+cw +GQfPQPDUmH8h5UgvVV8xgJKEjk0bOH7NRDhg6O3aZ+5SEmXFsYi+1wQqlTA= +-----END RSA PRIVATE KEY----- diff --git a/setup.py b/setup.py index 2b95835..a06b3fa 100755 --- a/setup.py +++ b/setup.py @@ -1,44 +1,44 @@ #!/usr/bin/python3 from distutils.core import setup import os import glob import sipclient setup( name='sipclients', version=sipclient.__version__, description='SIP SIMPLE client', long_description='Python command line clients using the SIP SIMPLE framework', url='http://sipsimpleclient.org', author='AG Projects', author_email='support@ag-projects.com', platforms=['Platform Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Service Providers', 'License :: GNU Lesser General Public License (LGPL)', 'Operating System :: OS Independent', 'Programming Language :: Python' ], packages=['sipclient', 'sipclient.configuration'], - data_files=[('share/sipclients/sounds', glob.glob(os.path.join('resources', 'sounds', '*.wav')))], + data_files=[('share/sipclients/sounds', glob.glob(os.path.join('resources', 'sounds', '*.wav'))), ('share/sipclients/tls', ['resources/tls/ca.crt', 'resources/tls/default.crt'])], scripts=[ 'sip-audio-session', 'sip-message', 'sip-publish-presence', 'sip-register', 'sip-session', 'sip-settings', 'sip-subscribe-mwi', 'sip-subscribe-presence', 'sip-subscribe-rls', 'sip-subscribe-winfo', 'sip-subscribe-xcap-diff' ] )