From 42e970cd4c8527049d972402abd85beb13702fa1 Mon Sep 17 00:00:00 2001 From: Renato Silva Date: Sun, 8 Feb 2015 16:19:20 -0200 Subject: [PATCH] Add/improve licenses for a couple of packages. * sqlite - all split packages now install a license file. * lemon - license file is now installed. --- lemon/PKGBUILD | 13 ++++++++----- sqlite/LICENSE | 25 +++++++++++++++++++++++++ sqlite/PKGBUILD | 20 ++++++++++++++------ sqlite/license.txt | 33 --------------------------------- 4 files changed, 47 insertions(+), 44 deletions(-) create mode 100644 sqlite/LICENSE delete mode 100644 sqlite/license.txt diff --git a/lemon/PKGBUILD b/lemon/PKGBUILD index 2637295e..39894078 100644 --- a/lemon/PKGBUILD +++ b/lemon/PKGBUILD @@ -1,20 +1,21 @@ # Maintainer: Carlos Antunes +# Contributor: Renato Silva pkgname="lemon" pkgver=3.8.7.0 -pkgrel=1 +pkgrel=3 pkgdesc="The LEMON LALR Parser Generator used in SQLite $pkgver (MSYS2)" arch=('i686' 'x86_64') -license=("custom:Public Domain") +license=(PublicDomain) groups=('base-devel') url="http://www.sqlite.org" depends=("gcc-libs") source=("lemon.c" "lempar.c" "0010-lemon-share.patch") -md5sums=("b125165f7ccc2318ec2e33cb19197f7e" - "fbf6255b88d54cf284c833da0d9ee5d2" - "776628b1b53f64d80bfc3edb20f1d803") +md5sums=('b125165f7ccc2318ec2e33cb19197f7e' + 'fbf6255b88d54cf284c833da0d9ee5d2' + '776628b1b53f64d80bfc3edb20f1d803') options=("staticlibs") prepare() { @@ -29,4 +30,6 @@ build() { package() { install -Dm755 lemon ${pkgdir}/usr/bin/lemon install -Dm644 lempar.c ${pkgdir}/usr/share/lemon/lempar.c + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + echo "This package is under public domain." > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } diff --git a/sqlite/LICENSE b/sqlite/LICENSE new file mode 100644 index 00000000..6985d5b8 --- /dev/null +++ b/sqlite/LICENSE @@ -0,0 +1,25 @@ +All of the code and documentation in SQLite has been dedicated to the public +domain by the authors. All code authors, and representatives of the companies +they work for, have signed affidavits dedicating their contributions to the +public domain and originals of those signed affidavits are stored in a firesafe +at the main offices of Hwaci. Anyone is free to copy, modify, publish, use, +compile, sell, or distribute the original SQLite code, either in source code +form or as a compiled binary, for any purpose, commercial or non-commercial, +and by any means. + +The previous paragraph applies to the deliverable code and documentation in +SQLite - those parts of the SQLite library that you actually bundle and ship +with a larger application. Some scripts used as part of the build process (for +example the "configure" scripts generated by autoconf) might fall under other +open-source licenses. Nothing from these build scripts ever reaches the final +deliverable SQLite library, however, and so the licenses associated with those +scripts should not be a factor in assessing your rights to copy and use the +SQLite library. + +All of the deliverable code in SQLite has been written from scratch. No code has +been taken from other projects or from the open internet. Every line of code can +be traced back to its original author, and all of those authors have public +domain dedications on file. So the SQLite code base is clean and is +uncontaminated with licensed code from other projects. + +Source: http://www.sqlite.org/copyright.html diff --git a/sqlite/PKGBUILD b/sqlite/PKGBUILD index 64293ca5..c7d123ac 100644 --- a/sqlite/PKGBUILD +++ b/sqlite/PKGBUILD @@ -1,28 +1,29 @@ # Maintainer: Alexey Pavlov +# Contributor: Renato Silva pkgbase="sqlite" pkgname=('sqlite' 'libsqlite' 'libsqlite-devel' 'sqlite-doc') _amalgamationver=3080701 _docver=${_amalgamationver} pkgver=3.8.7.1 -pkgrel=2 +pkgrel=3 pkgdesc="A C library that implements an SQL database engine" arch=('i686' 'x86_64') -license=('custom:Public Domain') +license=(PublicDomain) url="http://www.sqlite.org/" depends=('libreadline' 'icu' 'zlib') makedepends=('libreadline-devel' 'icu-devel' 'zlib-devel') source=( # tarball containing the amalgamation for SQLite >= 3.7.5 together with a configure script and makefile for building it; includes now also the Tcl Extension Architecture (TEA) http://www.sqlite.org/2014/sqlite-autoconf-$_amalgamationver.tar.gz http://www.sqlite.org/2014/sqlite-doc-${_docver}.zip - license.txt + LICENSE 'sqlite-3.8.0.1-msys2.patch' 'sqlite3-3.8.7.1-1.src.patch' 'sqlite3-cygwin-msys.patch') options=('!libtool' '!emptydirs' '!debug' 'strip') sha1sums=('5601be1263842209d7c5dbf6128f1cc0b6bbe2e5' '712b4ce64317646f27a046d5850515cd710bd00a' - 'f34f6daa4ab3073d74e774aad21d66878cf26853' + 'e2aa07adae13aed713860b74165d3325a18c6792' 'f357145f11da54b3dfd9c45e594d93960af87105' '4d7565aa6b7ce75fcdbd6f67cbfdfa05f5aea486' 'f42143b5d9c6a802de727a503b50e0bc17d20835') @@ -70,6 +71,10 @@ build() { make DESTDIR=${srcdir}/dest install } +_install_license() { + install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + package_sqlite() { pkgdesc="A C library that implements an SQL database engine" depends=('libreadline' 'libsqlite') @@ -79,8 +84,7 @@ package_sqlite() { mkdir -p ${pkgdir}/usr/bin cp -f ${srcdir}/dest/usr/bin/*.exe ${pkgdir}/usr/bin/ cp -rf ${srcdir}/dest/usr/share ${pkgdir}/usr/ - # license - no linking required because pkgbase=pkgname - install -D -m644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgbase}/license.txt + _install_license } package_libsqlite() { @@ -89,6 +93,7 @@ package_libsqlite() { mkdir -p ${pkgdir}/usr/bin cp -f ${srcdir}/dest/usr/bin/*.dll ${pkgdir}/usr/bin/ + _install_license } package_libsqlite-devel() { @@ -100,6 +105,7 @@ package_libsqlite-devel() { mkdir -p ${pkgdir}/usr cp -rf ${srcdir}/dest/usr/include ${pkgdir}/usr/ cp -rf ${srcdir}/dest/usr/lib ${pkgdir}/usr/ + _install_license } package_sqlite-doc() { @@ -124,4 +130,6 @@ package_sqlite-doc() { find ${pkgdir} -type f -name '.~*' -exec ls -lha {} \; # /build/pkg/sqlite-doc/usr/share/doc/sqlite/images/fileformat/.~lock.indexpage.odg# find ${pkgdir} -type d -name '.~*' -exec ls -lha {} \; find ${pkgdir} -name '.~*' -exec rm -f {} \; + + _install_license } diff --git a/sqlite/license.txt b/sqlite/license.txt deleted file mode 100644 index 118c5d5e..00000000 --- a/sqlite/license.txt +++ /dev/null @@ -1,33 +0,0 @@ -SQLite Copyright -SQLite is in the -Public Domain - - -All of the deliverable code in SQLite has been dedicated to the public domain by the authors. All code authors, and representatives of the companies they work for, have signed affidavits dedicating their contributions to the public domain and originals of those signed affidavits are stored in a firesafe at the main offices of Hwaci. Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original SQLite code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. - -The previous paragraph applies to the deliverable code in SQLite - those parts of the SQLite library that you actually bundle and ship with a larger application. Portions of the documentation and some code used as part of the build process might fall under other licenses. The details here are unclear. We do not worry about the licensing of the documentation and build code so much because none of these things are part of the core deliverable SQLite library. - -All of the deliverable code in SQLite has been written from scratch. No code has been taken from other projects or from the open internet. Every line of code can be traced back to its original author, and all of those authors have public domain dedications on file. So the SQLite code base is clean and is uncontaminated with licensed code from other projects. -Obtaining An Explicit License To Use SQLite - -Even though SQLite is in the public domain and does not require a license, some users want to obtain a license anyway. Some reasons for obtaining a license include: -You are using SQLite in a jurisdiction that does not recognize the public domain. -You are using SQLite in a jurisdiction that does not recognize the right of an author to dedicate their work to the public domain. -You want to hold a tangible legal document as evidence that you have the legal right to use and distribute SQLite. -Your legal department tells you that you have to purchase a license. - -If you feel like you really have to purchase a license for SQLite, Hwaci, the company that employs the architect and principal developers of SQLite, will sell you one. -Contributed Code - -In order to keep SQLite completely free and unencumbered by copyright, all new contributors to the SQLite code base are asked to dedicate their contributions to the public domain. If you want to send a patch or enhancement for possible inclusion in the SQLite source tree, please accompany the patch with the following statement: -The author or authors of this code dedicate any and all copyright interest in this code to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this code under copyright law. - -We are not able to accept patches or changes to SQLite that are not accompanied by a statement such as the above. In addition, if you make changes or enhancements as an employee, then a simple statement such as the above is insufficient. You must also send by surface mail a copyright release signed by a company officer. A signed original of the copyright release should be mailed to: -Hwaci -6200 Maple Cove Lane -Charlotte, NC 28269 -USA - -A template copyright release is available in PDF or HTML. You can use this release to make future changes. - -see http://www.sqlite.org/copyright.html \ No newline at end of file