Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ClickHouse
Upstream-Contact: <clickhouse-feedback@yandex-team.com>
Source: https://clickhouse.yandex
Comment: Upstream tarball contains some 3d-party libs in contrib dir. And some
 of the code is autogenerated from missed source (e.g. some mariadb headers).
 So to keep archive clean and reduce the chance of broken build we remove all
 we don't need from there with debian/clean-contrib script.
 We also remove website and docs/tools/mkdocs-material-theme, because they
 contain some generated files (JS, CSS, images) without sources or files under
 trademark protection).
Files-Excluded:
	docs/tools/mkdocs-material-theme
	website
	contrib/base64
	contrib/base64-cmake
	contrib/boost
	contrib/boost-cmake
	contrib/capnproto
	contrib/cctz
	contrib/cctz-cmake
	contrib/double-conversion
	contrib/googletest
	contrib/jemalloc
	contrib/jemalloc-cmake
	contrib/libcpuid
	contrib/libdivide
	contrib/libfarmhash
	contrib/libgsasl
	contrib/libhdfs3
	contrib/libhdfs3-cmake
	contrib/libmetrohash
	contrib/libpcg-random
	contrib/librdkafka
	contrib/librdkafka-cmake
	contrib/libsparsehash
	contrib/libtcmalloc
	contrib/libunwind
	contrib/libxml2
	contrib/libxml2-cmake
	contrib/llvm
	contrib/lz4
	contrib/lz4-cmake
	contrib/mariadb-connector-c
	contrib/mariadb-connector-c-cmake
	contrib/poco
	contrib/protobuf
	contrib/re2
	contrib/re2_st
	contrib/ssl
	contrib/unixodbc
	contrib/unixodbc-cmake
	contrib/zlib-ng
	contrib/zstd
	contrib/zstd-cmake

Files: *
Copyright: 2016-2018 Yandex LLC
License: Apache

Files: debian/*
Copyright: 1998-2018 Craig Small <csmall@debian.org>
           2019 Alexander Gerasiov <gq@debian.org>
License: Apache

Files: ci/docker-multiarch/*
Copyright: (c) 2016 Multiarch
License: Expat

Files: cmake/Modules/FindGperftools.cmake
Copyright: 2012 Matthias Vallentin
License: BSD-3-clause

Files: cmake/Modules/FindICU.cmake
Copyright: 2000-2011 Kitware, Inc., Insight Software Consortium
License: BSD-3-clause

Files: cmake/Modules/FindJeMalloc.cmake
Copyright: 1995-2017, The Regents of the University of California
 through the Lawrence Berkeley National Laboratory and the
 International Computer Science Institute. All rights reserved.
License: BSD-3-clause

Files: cmake/Modules/FindODBC.cmake
       cmake/find_odbc.cmake
Copyright: 2004-2018 Applied Informatics Software Engineering GmbH
License: BSL-1.0

Files: cmake/Modules/FindPoco.cmake
Copyright: 2013-2018 Andreas Stahl <andreas.stahl@tu-dresden.de>
License: BSL-1.0

Files: contrib/cityhash102/*
Copyright: 2011 Google, Inc.
License: Expat

Files: contrib/libbtrie/*
Copyright: 2013, CobbLiu
License: BSD-2-Clause

Files: contrib/murmurhash/*
Copyright: Placed in the publicdomain by Austin Appleby <aappleby@gmail.com>
License: public-domain
 MurmurHash was written by Austin Appleby, and is placed in the publicdomain.
 The author disclaims copyright to this source code.

Files: libs/consistent-hashing-sumbur/*
Copyright: 2011-2012 Mail.RU
           2011-2012 Maksim Kalinchenko
           2012 Sokolov Yura aka funny-falcon
License: Expat


Files: libs/libglibc-compatibility/libcxxabi/*
Copyright: 2007-2016 University of Illinois at Urbana-Champaign.
           2009-2018 LLVM project
License: BSD-3-Clause-like or Expat
 The libc++abi library is dual licensed under both the University of Illinois
 "BSD-Like" license and the MIT license.  As a user of this code you may choose
 to use it under either license.  As a contributor, you agree to allow your code
 to be used under both.
 .
 Full text of the relevant licenses is included below.
 .
 ==============================================================================
 .
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal with
 the Software without restriction, including without limitation the rights to
 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 of the Software, and to permit persons to whom the Software is furnished to do
 so, subject to the following conditions:
 .
 * Redistributions of source code must retain the above copyright notice,
 this list of conditions and the following disclaimers.
 .
 * Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimers in the
 documentation and/or other materials provided with the distribution.
 .
 * Neither the names of the LLVM Team, University of Illinois at
 Urbana-Champaign, nor the names of its contributors may be used to
 endorse or promote products derived from this Software without specific
 prior written permission.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
 SOFTWARE.
 .
 ==============================================================================
 .
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

Files: libs/libglibc-compatibility/musl/*
       libs/libcommon/src/preciseExp10.c
Copyright: 2005-2014 Rich Felker, et al. (musl-libj project)
	   2017-2018 Yandex LLC
License: Expat and Apache

Files: libs/libglibc-compatibility/musl/exp2f.c
Copyright: 2005 David Schultz <das@FreeBSD.ORG>
License: BSD-2-Clause and Apache

Files: libs/libglibc-compatibility/musl/lgamma.c
Copyright: 1993 Sun Microsystems, Inc.
License: BSD-like and Apache
 Developed at SunSoft, a Sun Microsystems, Inc. business.
 Permission to use, copy, modify, and distribute this
 software is freely granted, provided that this notice
 is preserved.
 .
 Modified by Yandex LLC under the therm of Apache 2.0 license see below.

Files: libs/libglibc-compatibility/musl/longjmp.s
Copyright: 2011-2012 Nicholas J. Kain
	   2017-2018 Yandex LLC
License: Expat and Apache


Files: libs/libcommon/include/port/memrchr.h
Copyright: 2008 The Android Open Source Project
	   2017-2018 Yandex LLC
License: BSD-2-Clause and Apache

Files: libs/libglibc-compatibility/glibc-compatibility.c
Copyright: 2015 Google Inc.
	   2017-2018 Yandex LLC
License: ISC and Apache

Files: libs/libmemcpy/impl/*
Copyright: 2015 Linwei <skywind3000@163.com>
	   2017-2018 Yandex LLC
License: Expat and Apache

Files: libs/libwidechar_width
Copyright: Written in 2018 by ridiculous_fish <corydoras@ridiculousfish.com>
 and put into public domain with CC0 dedication
License: public-domain or CC0
 Written in 2018 by ridiculous_fish
 To the extent possible under law, the author(s) have dedicated all copyright
 and related and neighboring rights to this software to the public domain
 worldwide. This software is distributed without any warranty.
 You should have received a copy of the CC0 Public Domain Dedication along
 with this software.
 If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
 .
 On Debian systems, the full text of the CC0 Public Domain Dedication can
 be found in the file /usr/share/common-licenses/CC0-1.0

Files: dbms/src/Common/UTF8Helpers.cpp
Copyright: 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
License: Expat


License: Apache
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this software except in compliance with the License.
 You may obtain a copy of the License at
 .
 http://www.apache.org/licenses/LICENSE-2.0
 .
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 .
 On Debian systems, the full text of the License can be found in the file
 /usr/share/common-licenses/Apache-2.0

License: Expat
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

License: BSD-2-Clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:
 1. Redistributions of source code must retain the above copyright
 notice, this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright
 notice, this list of conditions and the following disclaimer in the
 documentation and/or other materials provided with the distribution.
 .
 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 SUCH DAMAGE.

License: BSD-3-clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
    1. Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
 .
    2. Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.
 .
    3. Neither the name of the copyright holder nor the names of its
       contributors may be used to endorse or promote products derived from
       this software without specific prior written permission.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.

License: BSL-1.0
 Boost Software License - Version 1.0 - August 17th, 2003
 .
 Permission is hereby granted, free of charge, to any person or organization
 obtaining a copy of the software and accompanying documentation covered by
 this license (the "Software") to use, reproduce, display, distribute,
 execute, and transmit the Software, and to prepare derivative works of the
 Software, and to permit third-parties to whom the Software is furnished to
 do so, all subject to the following:
 .
 The copyright notices in the Software and this entire statement, including
 the above license grant, this restriction and the following disclaimer,
 must be included in all copies of the Software, in whole or in part, and
 all derivative works of the Software, unless such copies or derivative
 works are solely in the form of machine-executable object code generated by
 a source language processor.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 DEALINGS IN THE SOFTWARE.

License: ISC
 Permission to use, copy, modify, and/or distribute this software for any
 purpose with or without fee is hereby granted, provided that the above
 copyright notice and this permission notice appear in all copies.
 .
 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
