Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: composefs
Upstream-Contact:
 https://matrix.to/#/#composefs:matrix.org
 https://github.com/containers/composefs/issues
 https://github.com/containers/composefs/discussions
Source: https://github.com/containers/composefs

# -- File Stanzas --------------------------------------------------------------

Files: *
Copyright: 2023, Alexander Larsson <alexl@redhat.com>
 2021 Giuseppe Scrivano <giuseppe@scrivano.org>
License: GPL-2+ or Apache-2
 As specified in ./COPYING:
 > Almost the entire codebase here is under the following
 > license terms:
 > 
 > SPDX-License-Identifier: GPL-2.0-or-later OR Apache-2.0
 > 
 > There are two exceptions which have different licenses.
 > First, some code derived from erofs is: GPL-2.0-only OR Apache-2.0
 > In practice, the intersection here means that the codebase
 > as a whole should be treated as if it's under `GPL-2.0-only OR Apache-2.0`.
 > 
 > The second exception is there are small bits of code which are simply
 > SPDX-License-Identifier: LGPL-2.1-or-later

Files: debian/*
Copyright: 2024-2025 Roland Hieber, Pengutronix <rhi@pengutronix.de>
License: GPL-2

Files: libcomposefs/lcfs-fsverity.c
Copyright:
 2023 Alexander Larsson <alexl@redhat.com>
 2006 Dave Benson
License: LGPL-2.1+ and (GPL-2+ or Apache-2)

Files: libcomposefs/erofs_fs.h
 tests/test-lcfs.c
Copyright: 2017-2018, HUAWEI, Inc.
  2021, Alibaba Cloud
License: GPL-2 or Apache-2

Files: libcomposefs/bitrotate.h
 libcomposefs/hash.c
 libcomposefs/hash.h
 libcomposefs/xalloc-oversized.h
Copyright: 1990-2004, 2006-2023, Free Software Foundation, Inc.
License: LGPL-2.1+

Files: libcomposefs/lcfs-writer-erofs.c
Copyright: 2012-2016, Yann Collet
 2023 Alexander Larsson <alexl@redhat.com>
License: (BSD-2-Clause or GPL-2) and (GPL-2+ or Apache-2.0)
 SPDX-License-Identifier: GPL-2.0-or-later OR Apache-2.0
 .
 The xxh32 hash function is copied from the linux kernel.
 The original copyright is:
 BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
 .
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are
 met:
 .
   * Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
   * 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 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
 OWNER 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.
 .
 This program is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License version 2 as published by the
 Free Software Foundation. This program is dual-licensed; you may select
 either version 2 of the GNU General Public License ("GPL") or BSD license
 ("BSD").

# -- License Stanzas -----------------------------------------------------------

License: Apache-2
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file 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.
Comment:
 On Debian systems, the full text of the Apache License, version 2
 can be found in the file </usr/share/common-licenses/Apache-2.0>.

License: GPL-2
 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; version 2.
 .
 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 package; if not, see <https://www.gnu.org/licenses/>.
Comment:
 On Debian systems, the full text of the GNU General Public License
 version 2 can be found in the file </usr/share/common-licenses/GPL-2>.

License: GPL-2+
 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 package; if not, see <https://www.gnu.org/licenses/>.
Comment:
 On Debian systems, the full text of the GNU General Public License
 version 2 can be found in the file </usr/share/common-licenses/GPL-2>.

License: LGPL-2.1+
 This file is free software: you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as
 published by the Free Software Foundation; either version 2.1 of the
 License, or (at your option) any later version.
 .
 This file 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 Lesser General Public License for more details.
 .
 You should have received a copy of the GNU Lesser General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.
Comment:
 On Debian systems, the full text of the GNU Lesser General Public License
 version 2.1 can be found in the file </usr/share/common-licenses/LGPL-2.1>.
