the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: mksh-cur
Version: 40
Revision: 1+cvs201106150900
Description: Enhanced version of the Korn shell
License: OSI-Approved
Maintainer: Andreas Gockel
BuildDepends: fink (>= 0.24.12)
Replaces: mirbsdksh (<< 29.5-1), mksh, mksh-llvm
Conflicts: mirbsdksh (<< 29.5-1), mksh, mksh-llvm
CustomMirror: <<
Primary: http://www.mirbsd.org/MirOS/dist/mir/mksh/
asi-JP: http://pub.allbsd.org/MirOS/dist/mir/mksh/
<<
Source: mirror:custom:mksh-R%v.cpio.gz
SourceRename: mksh-%v-1.cpio.gz
Source-MD5: 395a6c5f39c7e2afd8f6504d90ca90bd
PatchFile: mksh-cur.patch
PatchFile-MD5: ac0329b18556c0cb6c276ee36daefb77
NoSourceDirectory: true
PatchScript: <<
#!/bin/sh -ev
/bin/pax -s ',^/*mksh//*,%f/,' -zf mksh-%v-1.cpio.gz -r
cd %f
/usr/bin/patch -p3 <%{PatchFile}
<<
CompileScript: <<
#!/bin/sh -ev
cd %f
((env /bin/sh ./Build.sh -r -Q -c combine | sed -e '/^].*$/d' -e '/^\$.*$/d' -e '/^|.*$/d') && test -f mksh) || ((env /bin/sh ./Build.sh -r -j -Q | sed -e '/^].*$/d' -e '/^\$.*$/d' -e '/^|.*$/d') && test -f mksh) || exit 2
<<
InstallScript: <<
#!/bin/sh -ev
cd %f
/usr/bin/install -d -m 755 %i/{bin,share/man/man1,etc/profile.d}
/usr/bin/install -c -s -m 555 mksh %i/bin/mksh
/usr/bin/install -c -m 444 mksh.1 %i/share/man/man1/mksh.1
/usr/bin/install -c -m 444 dot.mkshrc %i/etc/mkshrc
/bin/cat >%i/etc/profile.d/mksh.sh <<'EOF'
#!/bin/sh
case $KSH_VERSION in
*MIRBSD\ KSH*)
test \! -e ${HOME-/nonexistant}/.mkshrc && \
test -e %p/etc/mkshrc && \
. %p/etc/mkshrc
;;
esac
EOF
/bin/cat >%i/etc/profile.d/mksh.csh <<'EOF'
#!/bin/csh
exit 0
EOF
/bin/chmod 755 %i/etc/profile.d/*
<<
DocFiles: %f/dot.mkshrc
ConfFiles: %p/etc/mkshrc
Homepage: http://mirbsd.de/mksh
DescDetail: <<
mksh is the MirBSD enhanced version of the Public Domain Korn
shell (pdksh), a bourne-compatible and loosely POSIX compliant
shell which is largely similar to the original AT&T Korn shell.
It includes bug fixes and feature improvements in order to produce
a modern, robust shell good for interactive and especially script
use; emacs mode command line editing and input/script processing
have been made UTF-8 safe.
<<
DescUsage: <<
Add '%p/bin/mksh' to your /etc/shells so users can use
mksh as their default shell
<<
DescPackaging: <<
Create the patchfile:
cvs -qd _anoncvs@anoncvs.mirbsd.org:/cvs rdiff -u -rmksh-R39c -rHEAD mksh >mksh-cur.patch
.
Remove "Makefile" from patchfile
Update PatchFile-MD5
Update Revision
<<
InfoTest: <<
TestScript: cd %f; ./test.sh -v || exit 2
<<
Index: src/bin/mksh/Build.sh
diff -u src/bin/mksh/Build.sh:1.482 src/bin/mksh/Build.sh:1.483
--- src/bin/mksh/Build.sh:1.482 Sun Jun 12 14:37:00 2011
+++ src/bin/mksh/Build.sh Sun Jun 12 15:54:42 2011
@@ -1,5 +1,5 @@
#!/bin/sh
-srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.482 2011/06/12 14:37:00 tg Exp $'
+srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.483 2011/06/12 15:54:42 tg Exp $'
#-
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
# Thorsten Glaser
@@ -326,10 +326,6 @@
:-c)
last=c
;;
- :-combine)
- cm=combine
- echo "$me: Warning: '$i' is deprecated, use '-c combine' instead!" >&2
- ;;
:-g)
# checker, debug, valgrind build
CPPFLAGS="$CPPFLAGS -DDEBUG"
@@ -338,16 +334,6 @@
:-j)
pm=1
;;
- :-llvm)
- cm=llvm
- optflags=-std-compile-opts
- echo "$me: Warning: '$i' is deprecated, use '-c llvm -O' instead!" >&2
- ;;
- :-llvm=*)
- cm=llvm
- optflags=`echo "x$i" | sed 's/^x-llvm=//'`
- echo "$me: Warning: '$i' is deprecated, use '-c llvm -o $llvm' instead!" >&2
- ;;
:-M)
cm=makefile
;;
Index: src/bin/mksh/misc.c
diff -u src/bin/mksh/misc.c:1.167 src/bin/mksh/misc.c:1.168
--- src/bin/mksh/misc.c:1.167 Sun Jun 12 14:45:34 2011
+++ src/bin/mksh/misc.c Sun Jun 12 15:37:08 2011
@@ -29,7 +29,7 @@
#include
#endif
-__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.167 2011/06/12 14:45:34 tg Exp $");
+__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.168 2011/06/12 15:37:08 tg Exp $");
/* type bits for unsigned char */
unsigned char chtypes[UCHAR_MAX + 1];
@@ -356,14 +356,6 @@
break;
}
i = option(go.optarg);
-#ifndef MKSH_NO_DEPRECATED_WARNING
- if ((enum sh_flag)i == FARC4RANDOM) {
- warningf(true, "Do not use set ±o arc4random,"
- " it will be removed in the next version"
- " of mksh!");
- return (0);
- }
-#endif
if ((i != (size_t)-1) && set == Flag(i))
/*
* Don't check the context if the flag
Index: src/bin/mksh/mksh.1
diff -u src/bin/mksh/mksh.1:1.263 src/bin/mksh/mksh.1:1.264
--- src/bin/mksh/mksh.1:1.263 Sun Jun 12 15:34:19 2011
+++ src/bin/mksh/mksh.1 Sun Jun 12 15:37:09 2011
@@ -1,4 +1,4 @@
-.\" $MirOS: src/bin/mksh/mksh.1,v 1.263 2011/06/12 15:34:19 tg Exp $
+.\" $MirOS: src/bin/mksh/mksh.1,v 1.264 2011/06/12 15:37:09 tg Exp $
.\" $OpenBSD: ksh.1,v 1.140 2011/04/23 10:14:59 sobrado Exp $
.\"-
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
@@ -4044,11 +4044,6 @@
Print commands and parameter assignments when they are executed, preceded by
the value of
.Ev PS4 .
-.It Ic arc4random
-Deprecated, will be removed in
-.Nm
-R41.
-Do not use, emits a warning to stderr.
.It Ic bgnice
Background jobs are run with lower priority.
.It Ic braceexpand
Index: src/bin/mksh/sh_flags.h
diff -u src/bin/mksh/sh_flags.h:1.8 src/bin/mksh/sh_flags.h:1.9
--- src/bin/mksh/sh_flags.h:1.8 Fri Feb 11 01:18:23 2011
+++ src/bin/mksh/sh_flags.h Sun Jun 12 15:37:10 2011
@@ -1,5 +1,5 @@
#if defined(SHFLAGS_DEFNS)
-__RCSID("$MirOS: src/bin/mksh/sh_flags.h,v 1.8 2011/02/11 01:18:23 tg Exp $");
+__RCSID("$MirOS: src/bin/mksh/sh_flags.h,v 1.9 2011/06/12 15:37:10 tg Exp $");
#define FN(sname,cname,ochar,flags) /* nothing */
#elif defined(SHFLAGS_ENUMS)
#define FN(sname,cname,ochar,flags) cname,
@@ -21,9 +21,6 @@
/* -a all new parameters are created with the export attribute */
F0("allexport", FEXPORT, 'a', OF_ANY)
-/* ./. backwards compat: dummy, emits a warning */
-FN("arc4random", FARC4RANDOM, 0, OF_ANY)
-
#if HAVE_NICE
/* ./. bgnice */
FN("bgnice", FBGNICE, 0, OF_ANY)