1Terms and Conditions - The MirBSD Korn Shell 2============================================ 3 4The MirBSD Korn Shell (mksh) consists of a number of "source" files, 5which are provided by upstream in a number of places. This file will 6list the files belonging to mksh or being part of it and the licence 7terms and conditions that apply to them, in one single central place 8for packagers' convenience. This list aims to be authoritative. (Yet 9as it was compiled by a human, there may be bugs, please report them 10if any are found. We don't think so though.) 11 12All paths are relative to The MirOS Project's CVS repository. 13 14 15The following files form The MirBSD Korn Shell R59b: 16- build system 17 * mksh/Build.sh 18 * mksh/FAQ2HTML.sh 19- testsuite driver 20 * mksh/check.pl 21- testsuite with code examples 22 * mksh/check.t 23- configuration with/and code examples (informal) 24 * mksh/dot.mkshrc 25 * contrib/hosted/tg/assockit.ksh 26 * contrib/hosted/tg/progress-bar 27 * contrib/hosted/tg/uhr 28- documentation 29 * mksh/lksh.1 30 * mksh/mksh.1 31 * mksh/mksh.faq 32- source code 33 * mksh/edit.c 34 * mksh/emacsfn.h 35 * mksh/eval.c 36 * mksh/exec.c 37 * mksh/expr.c 38 * mksh/exprtok.h 39 * mksh/funcs.c 40 * mksh/histrap.c 41 * mksh/jehanne.c 42 * mksh/jobs.c 43 * mksh/lalloc.c 44 * mksh/lex.c 45 * mksh/main.c 46 * mksh/mirhash.h 47 * mksh/misc.c 48 * mksh/os2.c 49 * mksh/rlimits.opt 50 * mksh/sh.h 51 * mksh/sh_flags.opt 52 * mksh/shf.c 53 * mksh/syn.c 54 * mksh/tree.c 55 * mksh/var.c 56 * mksh/var_spec.h 57- upstream provided packaging 58 * mksh/mksh.ico (application icon resource) 59 * mksh/Makefile (MirBSD only, not part of mksh) 60 * ports/shells/mksh/DEINSTALL 61 * ports/shells/mksh/DESCR (official) 62 * ports/shells/mksh/INSTALL 63 * ports/shells/mksh/Makefile 64 * ports/shells/mksh/PLIST 65 * ports/shells/mksh/distinfo (official) 66 * src/distrib/special/mksh/Makefile (for the MirBSD installer) 67- website (informal) 68 * www/files/TaC-mksh.txt (this file) 69 * www/pics/mksh.svg (logo source code) 70 * www/pics/mksh128x100.png (logo compiled version) 71 * www/src/mksh-faq.hts (supplemental documentation) 72 * www/src/mksh.hts (primary webpage) 73 * www/src/mksh_bld.hts (supplemental webpage) 74 * www/src/mksh_old.hts (supplemental webpage) 75 76All of these files are covered by The MirOS Licence (Appendix A) ex- 77cept the application icon resource, the terms for that are listed in 78Appendix D. Width data comes under those in Appendix E. 79 80The creator of mksh acknowledges the contributions of several people 81to the Public Domain Korn Shell as well as suggestions and work from 82packagers, other developers etc. and everyone else who helped making 83mksh what it is today. Thanks! The MirBSD Korn Shell is sublicenced 84under a copyright licence fallback from the original pdsh author. 85 86 87The following files belong to mksh and are distributed inside of its 88distfile, but are not part of it. They are provided for convenience, 89because they are required on many operating environments for mksh or 90some of its features to function: 91- source code 92 * mksh/strlcpy.c (needed if not provided by the OS already) 93 94These files are covered by seperate licences in addition (Appendix C 95for now). Some operating environments already provide their functio- 96nality, such as the BSDs and OSX libc, or the Debian/freedesktop.org 97libbsd package. The files are not compiled into the resulting binary 98if their respective functionality is already provided. 99 100 101The following file is not part of mksh but can be used with it; it's 102also not included in the mksh distfile: 103- source code 104 * src/usr.bin/printf/printf.c (UCB printf(1) utility that has been 105 slightly modified, for an optional built-in printf, to be inclu- 106 ded for lksh-as-/bin/sh only and only when necessary) 107 108The printf.c file is covered by the UCB three-clause BSD licence, as 109shown in Appendix B below. 110 111 112The MirOS Licence also applies as a collective-work copyright on The 113MirBSD Korn Shell, an authorised derivate of the 1980s Public Domain 114V7/Bourne Shell. 115 116Note that these appendices may represent the terms and conditions of 117more than one file, hence the actual wording of the files was folded 118into one representation, with different copyright holders and years, 119separated if merging was undesirable. 120 121 122Appendix A - The MirOS Licence (OSI approved) 123============================== 124 125The MirBSD Korn Shell (mksh) is 126Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 127 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 128 2020 129 mirabilos <m@mirbsd.org> 130Copyright (c) 2015, 2017, 2020 131 KO Myung-Hun <komh@chollian.net> 132Copyright (c) 2015 133 Daniel Richard G. <skunk@iSKUNK.ORG> 134Copyright (c) 2017 135 Giacomo Tesio <giacomo@tesio.it> 136All rights reserved. 137 138The mksh logo is 139Copyright (c) 2008, 2009 140 Lukas U. <smultron@midnightbsd.org> 141Copyright (c) 2008, 2009 142 mirabilos <m@mirbsd.org> 143 144 145Provided that these terms and disclaimer and all copyright notices 146are retained or reproduced in an accompanying document, permission 147is granted to deal in this work without restriction, including un- 148limited rights to use, publicly perform, distribute, sell, modify, 149merge, give away, or sublicence. 150 151This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to 152the utmost extent permitted by applicable law, neither express nor 153implied; without malicious intent or gross negligence. In no event 154may a licensor, author or contributor be held liable for indirect, 155direct, other damage, loss, or other issues arising in any way out 156of dealing in the work, even if advised of the possibility of such 157damage or existence of a defect, except proven that it results out 158of said person's immediate fault when using the work as intended. 159 160 161Appendix B - The UCB (3-clause BSD) licence (OSI approved) 162=========================================== 163 164printf.c is 165Copyright (c) 1989 166 The Regents of the University of California. 167All rights reserved. 168 169 170Redistribution and use in source and binary forms, with or without 171modification, are permitted provided that the following conditions 172are met: 1731. Redistributions of source code must retain the above copyright 174 notice, this list of conditions and the following disclaimer. 1752. Redistributions in binary form must reproduce the above copyright 176 notice, this list of conditions and the following disclaimer in the 177 documentation and/or other materials provided with the distribution. 1783. Neither the name of the University nor the names of its contributors 179 may be used to endorse or promote products derived from this software 180 without specific prior written permission. 181 182THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 183ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 184IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 185ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 186FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 187DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 188OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 189HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 190LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 191OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 192SUCH DAMAGE. 193 194 195Appendix C - ISC Licence (OSI approved) 196======================== 197 198strlcpy.c is 199Copyright (c) 2006, 2008, 2009, 2013 200 mirabilos <m@mirbsd.org> 201Copyright (c) 1998 202 Todd C. Miller <Todd.Miller@courtesan.com> 203 204 205Permission to use, copy, modify, and distribute this software for any 206purpose with or without fee is hereby granted, provided that the above 207copyright notice and this permission notice appear in all copies. 208 209THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 210WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 211MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 212ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 213WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 214ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 215OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 216 217 218Appendix D - Licence for mksh.ico (optional component) 219================================= 220 221The application icon resource comes in its preferred form 222of modification and is an unregistered trademark: 223 224Copyright (c) 2013 Michael Langguth 225Copyright (c) 2006 Benny Siegert 226Copyright (c) 2005 mirabilos 227 228This icon may be used to refer to The MirBSD Korn Shell and 229its Win32 port. Distribution patches are acceptable as long 230as they modify $KSH_VERSION according to the guidelines that 231are published on the website; forks and works that are not 232derivates are not allowed to use it. 233 234As far as MirBSD is concerned, the files themselves are free 235to modification and distribution under BSD/MirOS Licence, the 236restriction on use stems only from a need to protect it or 237lose it: http://www.mckusick.com/beastie/mainpage/copyright.html 238 239The Shilouette daemon is Copyright (c) 2003 by Rick Collette. 240The MirOS Project may freely use the former ekkoBSD Logo, 241the shilouette Daemon, for MirBSD, on anything the project 242leader sees fit, so long as it pertains to MirBSD in some 243way and the leader gives credit for the original daemon to 244Marshall Kirk McKusick. 245 246The BSD daemon is Copyright (c) 1988 by Marshall Kirk McKusick. 247All Rights Reserved. Individuals may use the daemon for their 248personal use within the bounds of good taste. When reasonably 249possible, the text shown above is to be included. 250 251 252Appendix E - Unicode Data Files and Software Licence 253==================================================== 254 255Copyright © 1991–2020 Unicode, Inc. All rights reserved. 256Distributed under the Terms of Use in https://www.unicode.org/copyright.html. 257 258Permission is hereby granted, free of charge, to any person obtaining 259a copy of the Unicode data files and any associated documentation 260(the "Data Files") or Unicode software and any associated documentation 261(the "Software") to deal in the Data Files or Software 262without restriction, including without limitation the rights to use, 263copy, modify, merge, publish, distribute, and/or sell copies of 264the Data Files or Software, and to permit persons to whom the Data Files 265or Software are furnished to do so, provided that either 266(a) this copyright and permission notice appear with all copies 267of the Data Files or Software, or 268(b) this copyright and permission notice appear in associated 269Documentation. 270 271THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF 272ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 273WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 274NONINFRINGEMENT OF THIRD PARTY RIGHTS. 275IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS 276NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL 277DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 278DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 279TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 280PERFORMANCE OF THE DATA FILES OR SOFTWARE. 281 282Except as contained in this notice, the name of a copyright holder 283shall not be used in advertising or otherwise to promote the sale, 284use or other dealings in these Data Files or Software without prior 285written authorization of the copyright holder. 286 287 288__________________________________________________________________ 289$MirOS: www/files/TaC-mksh.txt,v 1.37 2020/05/16 23:08:35 tg Exp $ 290