system/mksh: Upstream review; minor tweaks, updated TaC-mksh.txt added

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
markus reichelt 2011-10-15 08:27:59 -05:00 committed by Niels Horn
parent e41ad9798e
commit fd3d12b73a
3 changed files with 18 additions and 71 deletions

View file

@ -12,13 +12,16 @@ if any are found. We don't think so though.)
All paths are relative to The MirOS Project's CVS repository. All paths are relative to The MirOS Project's CVS repository.
The following files form The MirBSD Korn Shell R39c: The following files form The MirBSD Korn Shell R40:
- build system, testsuite - build system
* mksh/Build.sh * mksh/Build.sh
- testsuite driver
* mksh/check.pl * mksh/check.pl
- testsuite with code examples
* mksh/check.t * mksh/check.t
- documentation, configuration - configuration with code examples
* mksh/dot.mkshrc * mksh/dot.mkshrc
- documentation
* mksh/mksh.1 * mksh/mksh.1
- source code - source code
* mksh/edit.c * mksh/edit.c
@ -77,11 +80,10 @@ distfile, but are not part of it. They are provided for convenience,
because they are required on many operating environments for mksh or because they are required on many operating environments for mksh or
some of its features to function: some of its features to function:
- source code - source code
* mksh/setmode.c (needed for the optional mknod builtin)
* mksh/strlcpy.c (always needed) * mksh/strlcpy.c (always needed)
These files are covered by seperate licences in addition (Appendices These files are covered by seperate licences in addition (Appendix C
B and C). Some operating environments already provide their functio- for now). Some operating environments already provide their functio-
nality, such as the BSDs and OSX libc, or the Debian/freedesktop.org nality, such as the BSDs and OSX libc, or the Debian/freedesktop.org
libbsd package. The files are not compiled into the resulting binary libbsd package. The files are not compiled into the resulting binary
if their respective functionality is already provided. if their respective functionality is already provided.
@ -91,25 +93,13 @@ The following files belong to mksh in a less close way, as they pro-
vide additional functionality less closely coupled or not always de- vide additional functionality less closely coupled or not always de-
sired. These are not included in the mksh distfile: sired. These are not included in the mksh distfile:
- source code - source code
* contrib/code/Snippets/arc4random.c (somewhat portable arc4random
implementation on top of /dev/urandom - for $RANDOM reads)
* contrib/hosted/tg/arc4rootdom.c (an even less portable implemen-
tation of a4r_pushb for *WRT/Android/... - for $RANDOM writes)
* contrib/hosted/tg/deb/klibc/arc4random.c (part of my klibc patch
providing arc4random API on top of jrand48 for small size)
* src/usr.bin/printf/printf.c (slightly modified UCB printf utili- * src/usr.bin/printf/printf.c (slightly modified UCB printf utili-
ty code - for the optional, undesired printf(1) builtin) ty code - for the optional, undesired printf(1) builtin)
*DO NOT* INCLUDE printf AS A SHELL BUILT-IN UNLESS YOU ABSOLUTE- *DO NOT* INCLUDE printf AS A SHELL BUILT-IN UNLESS YOU ABSOLUTE-
LY MUST (otherwise, the preferrable /usr/bin/printf is called) LY MUST (otherwise, the preferrable /usr/bin/printf is called)
The arc4rootdom.c file is covered by the MirOS Licence (Appendix A). The printf.c file is covered by the UCB three-clause BSD licence, as
The klibc/arc4random.c file is also covered by The MirOS Licence but shown in Appendix B below.
dual-licenced with klibc's as we hope it gets included. The printf.c
file is covered by the UCB's three-clause BSD licence (Appendix B).
The arc4random.c file is a conglomerate of The MirOS Licence as well
as another but many people have touched this code so there are other
versions of it around with differing terms. See Appendix D for ours.
The MirOS Licence also applies as a collective-work copyright on The The MirOS Licence also applies as a collective-work copyright on The
@ -125,7 +115,7 @@ Appendix A - The MirOS Licence (OSI approved)
============================== ==============================
The MirBSD Korn Shell (mksh) is The MirBSD Korn Shell (mksh) is
Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Thorsten "mirabilos" Glaser <tg@mirbsd.org> Thorsten "mirabilos" Glaser <tg@mirbsd.org>
All rights reserved. All rights reserved.
@ -135,10 +125,6 @@ Copyright © 2008, 2009
Copyright © 2008, 2009 Copyright © 2008, 2009
Thorsten "mirabilos" Glaser <tg@mirbsd.org> Thorsten "mirabilos" Glaser <tg@mirbsd.org>
The arc4random for *WRT, Android, klibc functions are
Copyright © 2009
Thorsten "mirabilos" Glaser <tg@mirbsd.org>
Provided that these terms and disclaimer and all copyright notices Provided that these terms and disclaimer and all copyright notices
are retained or reproduced in an accompanying document, permission are retained or reproduced in an accompanying document, permission
@ -164,14 +150,6 @@ Copyright (c) 1989
The Regents of the University of California. The Regents of the University of California.
All rights reserved. All rights reserved.
setmode.c is
Copyright (c) 1989, 1993, 1994
The Regents of the University of California.
All rights reserved.
This code is derived from software contributed to Berkeley by
Dave Borman at Cray Research, Inc.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions modification, are permitted provided that the following conditions
@ -221,38 +199,5 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Appendix D - Licence of mircvs://contrib/code/Snippets/arc4random.c
===================================================================
/*-
* Arc4 random number generator for OpenBSD.
* Copyright 1996 David Mazieres <dm@lcs.mit.edu>.
*
* Modification and redistribution in source and binary forms is
* permitted provided that due credit is given to the author and the
* OpenBSD project by leaving this copyright notice intact.
*/
/*-
* This code is derived from section 17.1 of Applied Cryptography,
* second edition, [...]
*
* RC4 is a registered trademark of RSA Laboratories.
*/
/*-
* Modified by Robert Connolly from OpenBSD lib/libc/crypt/arc4random.c v1.11.
* This is arc4random(3) using urandom.
*/
arc4random_uniform() is derived from code written by
Damien Miller <djm@openbsd.org>
published under the ISC licence (see Appendix C).
arc4random.c additionally is Copyright © 2008, 2009
Thorsten Glaser <tg@mirbsd.org>
and covered by the MirOS Licence (see Appendix A).
_________________________________________________________________ _________________________________________________________________
$MirOS: www/files/TaC-mksh.txt,v 1.3 2011/03/21 16:22:58 tg Exp $ $MirOS: www/files/TaC-mksh.txt,v 1.4 2011/06/12 19:19:32 tg Exp $

View file

@ -27,10 +27,11 @@
# 2011 Mar 20 - initial release # 2011 Mar 20 - initial release
# 2011 Jun 13 - adapted to R40 # 2011 Jun 13 - adapted to R40
# 2011 Aug 27 - adapted to R40b # 2011 Aug 27 - adapted to R40b
# 2011 Sep 07 - upstream review; minor tweaks, updated TaC-mksh.txt added
PRGNAM=mksh PRGNAM=mksh
VERSION=${VERSION:-R40b} VERSION=${VERSION:-R40b}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -75,7 +76,8 @@ if [ "$STATIC" = "yes" ]; then
fi fi
if [ "$DIET" = "yes" ]; then if [ "$DIET" = "yes" ]; then
CC="diet gcc -nostdinc" CC="diet -Os gcc"
SLKCFLAGS="${SLKCFLAGS} -Wall"
else else
CC="gcc" CC="gcc"
fi fi
@ -90,7 +92,7 @@ LDFLAGS=$LDFLAGS \
CPPFLAGS=$CPPFLAGS \ CPPFLAGS=$CPPFLAGS \
CFLAGS=$SLKCFLAGS \ CFLAGS=$SLKCFLAGS \
CC=$CC \ CC=$CC \
sh ../Build.sh -r -c combine sh ../Build.sh -r -c lto
ginstall -D -m 755 mksh $PKG/bin/mksh ginstall -D -m 755 mksh $PKG/bin/mksh
ginstall -D -m 644 ../mksh.1 $PKG/usr/man/man1/mksh.1 ginstall -D -m 644 ../mksh.1 $PKG/usr/man/man1/mksh.1

View file

@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="markus reichelt" MAINTAINER="markus reichelt"
EMAIL="slackbuilds@mareichelt.de" EMAIL="slackbuilds@mareichelt.de"
APPROVED="dsomero" APPROVED="dsomero,Erik Hanson"