From 2411ac0c0cf89eb3e5ce88b2ea80d8792b01874c Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Fri, 7 Apr 2023 08:11:27 +0200 Subject: [PATCH] libasr, cleanup, add license file (#8294) --- net-libs/libasr/libasr-1.0.2.recipe | 26 +++-- net-libs/libasr/licenses/LIBASR | 165 ++++++++++++++++++++++++++++ 2 files changed, 182 insertions(+), 9 deletions(-) create mode 100644 net-libs/libasr/licenses/LIBASR diff --git a/net-libs/libasr/libasr-1.0.2.recipe b/net-libs/libasr/libasr-1.0.2.recipe index 3b5b661bb..cf6a4d274 100644 --- a/net-libs/libasr/libasr-1.0.2.recipe +++ b/net-libs/libasr/libasr-1.0.2.recipe @@ -22,11 +22,14 @@ COPYRIGHT="2001 Jakob Schlyter The Regents of the University of California Ian F. Darwin Damien Miller - Eric P. Allman" -# wanted to add ISC, but the package creation failed although the license -# file is available in /system/data/licenses/ -LICENSE="BSD (2-clause)" -REVISION="6" + Eric P. Allman + 1995 Tatu Ylonen + 1995 Tatu Ylonen + 2003 Peter Stuge" +LICENSE="BSD (2-clause) + GNU GPL v3 + LIBASR" +REVISION="7" SOURCE_URI="https://github.com/OpenSMTPD/libasr/archive/libasr-$portVersion.tar.gz" CHECKSUM_SHA256="4ab54264206e255fd6c2de982764bb5ce7857ec8f649ad3ee45771244593b6e1" SOURCE_DIR="libasr-libasr-$portVersion" @@ -34,9 +37,12 @@ SOURCE_DIR="libasr-libasr-$portVersion" ARCHITECTURES="all" SECONDARY_ARCHITECTURES="x86_gcc2 x86" +libVersion="0.0.2" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + PROVIDES=" libasr$secondaryArchSuffix = $portVersion - lib:libasr$secondaryArchSuffix = 0.0.2 compat >= 0 + lib:libasr$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix @@ -45,7 +51,7 @@ REQUIRES=" PROVIDES_devel=" libasr${secondaryArchSuffix}_devel = $portVersion - devel:libasr$secondaryArchSuffix = 0.0.2 compat >= 0 + devel:libasr$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" libasr$secondaryArchSuffix == $portVersion base @@ -58,7 +64,7 @@ BUILD_REQUIRES=" BUILD_PREREQUIRES=" cmd:autoconf cmd:gcc$secondaryArchSuffix - cmd:libtoolize + cmd:libtoolize$secondaryArchSuffix cmd:make " @@ -66,7 +72,8 @@ BUILD() { touch README NEWS AUTHORS autoreconf -fi - runConfigure ./configure CFLAGS="-D_BSD_SOURCE" + runConfigure ./configure CFLAGS="-D_BSD_SOURCE" \ + --disable-static make $jobArgs } @@ -77,5 +84,6 @@ INSTALL() rm $libDir/libasr.la prepareInstalledDevelLib libasr + packageEntries devel $developDir } diff --git a/net-libs/libasr/licenses/LIBASR b/net-libs/libasr/licenses/LIBASR new file mode 100644 index 000000000..838321633 --- /dev/null +++ b/net-libs/libasr/licenses/LIBASR @@ -0,0 +1,165 @@ +This file is part of the libasr software. + +The licences which components of this software fall under are as +follows. First, we will summarize and say that all components +are under a BSD licence, or a licence more free than that. + +libasr is divided in 2 parts: +- original asr +- openbsd-compat + + +libasr +====== + + +1) Almost all code is licensed under an ISC-style license, to the following + copyright holders: + + Eric Faurot + Internet Software Consortium + + +2) last part of getrrsetbyname_async.c is covered by 2-clause BSD license + +/* + * Copyright (c) 2001 Jakob Schlyter. All rights reserved. + * + * 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 ``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 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. + */ + + +openbsd-compat +============== + + +Most of the OpenBSD compatibility layer is based on the work by Damien Miller for +Portable OpenSSH. + +1) Almost all code is licensed under an ISC-style license, to the following + copyright holders: + + Internet Software Consortium. + David Mazieres + Damien Miller + Markus Friedl + Todd C. Miller + Henning Brauer + Pierre-Yves Ritschard + Reyk Floeter + Theo de Raadt + Ted Unangst + Charles Longeau + + * Permission to use, copy, modify, and 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. + + +2) Some code is under a 3-clause BSD license, from the + following copyright holders: + + The Regents of the University of California. + Ian F. Darwin + Damien Miller + Eric P. Allman + + * 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 University 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 REGENTS 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 REGENTS 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. + + +3) includes.h + + * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland + * All rights reserved + * + * As far as I am concerned, the code I have written for this software + * can be used freely for any purpose. Any derived versions of this + * software must be clearly marked as such, and if the derived work is + * incompatible with the protocol description in the RFC file, it must be + * called by a name other than "ssh" or "Secure Shell". + + +4) bootstrap (only there in the git repository) + + # Copyright (c) 2002-2011 Sam Hocevar + # + # This program is free software. It comes without any warranty, to + # the extent permitted by applicable law. You can redistribute it + # and/or modify it under the terms of the Do What The Fuck You Want + # To Public License, Version 2, as published by Sam Hocevar. See + # http://sam.zoy.org/wtfpl/COPYING for more details. + + + +mk +====== + +1) mdoc2man.awk + + # Copyright (c) 2003 Peter Stuge + # + # Permission to use, copy, modify, and 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. + + # Dramatically overhauled by Tim Kientzle. This version almost + # handles library-style pages with Fn, Ft, etc commands. Still + # a lot of problems...