--- mksh-25.0.orig/copyright +++ mksh-25.0/copyright @@ -1,3 +1,10 @@ +This package was debianised by Thorsten Glaser on +Sat, 28 May 2005 22:02:17 +0000. + +It was downloaded from http://mirbsd.mirsolutions.de/MirOS/distfiles/mksh-R25.cpio.gz + +Licence: + $MirOS: src/bin/mksh/copyright,v 1.6 2005/10/25 19:56:43 tg Exp $ mksh is a collective work under the following licence: @@ -29,11 +36,79 @@ The author recognises the contributions of the pdksh authors who have dedicated their work into the Public Domain. -The file "alloc.c" is covered by a 2-clause UCB-style BSD licence in- -stead, please look at the file for the complete terms. +The file "alloc.c" is covered by a 2-clause UCB-style BSD licence: + + * Copyright (c) 2002 Marc Espie. + * + * 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 OPENBSD PROJECT 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 OPENBSD + * PROJECT 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. On systems which use the GNU libc, an additional file (strlfun.c) has -to be built. It is covered by the ISC/OpenBSD licence. +to be built. It is covered by the ISC/OpenBSD licence: + + * Copyright (c) 2004, 2005 Thorsten "mirabile" Glaser + * Thanks to Bodo Eggert for optimisation hints + * Copyright (c) 1998 Todd C. Miller + * + * 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. On GNU/Linux and Solaris, "setmode.c" is compiled in, that is covered -by a three-clause UCB licence. +by a three-clause UCB licence: + + * 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 + * 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. --- mksh-25.0.orig/mksh.1 +++ mksh-25.0/mksh.1 @@ -5160,7 +5160,7 @@ interpretation #104 and considered a feature of .Nm despite breaking compatibility with -.St -susv3 . +Version 3 of the Single UNIX Specification. .Pp By the way, the most frequently reported bug is: .Bd -literal -offset indent --- mksh-25.0.orig/debian/mksh.postinst +++ mksh-25.0/debian/mksh.postinst @@ -0,0 +1,31 @@ +#! /bin/sh +# postinst script for mksh +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + configure) + update-alternatives --install /bin/ksh ksh /bin/mksh 12 \ + --slave /usr/bin/ksh usr.bin.ksh /bin/mksh \ + --slave /usr/share/man/man1/ksh.1.gz ksh.1.gz \ + /usr/share/man/man1/mksh.1.gz + add-shell /bin/mksh + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument '$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- mksh-25.0.orig/debian/changelog +++ mksh-25.0/debian/changelog @@ -0,0 +1,73 @@ +mksh (25.0-1) unstable; urgency=low + + * New upstream release; summary of changes: + - add a builtin: mknod (can do pipes and devices) + - remove 'version' editor binding and remap emacs ^V to + quote-meta ('literal') + - fix redraw and window resize problems; COLUMNS and LINES + are now updated as soon as the new size is set + - allow < and > for test and [, not only [[ + - if an array index is out of bounds, tell which one + - document quoting policy in here documents + - correct some mistakes in the manual page + - fixes for GCC 4 warnings + - code and build system simplifications + * As a result, simplify debian/rules accordingly + * Copy all "non-standard" licences into the copyright file + * Work around GNU groff not having .St -susv3 + + -- Thorsten Glaser Wed, 26 Oct 2005 09:27:39 +0000 + +mksh (24.0-1) unstable; urgency=low + + * New upstream release; relevant changes are: + - no longer look at argv[0] to determine if restricted shell + - changes to $EDITOR and $VISUAL no longer affect + the current editing mode + - emacs on, emacs-usemeta off is now the default editing mode + - the special "posix" and "sh" modes are gone + - code, test suites and documentation have been cleaned up a little + - Korn's bizarre /dev/fd hack is now no longer supported + - undo fix for Debian PR #71256 which turned to be bogus + and break BSD make + - fix compilation and invocation of test suite with whitespace + in the pathnames for real, this time + * Fix typo in description; Closes: #317785 + * Note that this is no superset of pdksh any more in description + * New debian-policy version + + -- Thorsten Glaser Tue, 12 Jul 2005 12:25:11 +0000 + +mksh (23.0-1) unstable; urgency=low + + * New upstream version + * Clarify licence + + -- Thorsten Glaser Wed, 22 Jun 2005 14:40:56 +0000 + +mksh (22.3-1) unstable; urgency=low + + * Update upstream source to mksh R22d + * Remove some superfluous whitespace + + -- Thorsten Glaser Sun, 5 Jun 2005 16:45:42 +0000 + +mksh (22.2-2) unstable; urgency=low + + * Rename postinst, prerm, menu to mksh.{postinst,prerm,menu} + * Always run testsuite + * Install the binary with 755 permissions + * Remove superfluous grep in rules + (All of the above based upon suggestions by sponsor Bastian Blank) + * Use dh_install instead of homegrown calls (patch by Bastian Blank) + * Regenerate .orig.tar.gz with MirBSD cpio since GNU cpio generates + invalid ustar archives (broken mtime) + + -- Thorsten Glaser Thu, 2 Jun 2005 07:47:33 +0000 + +mksh (22.2-1) unstable; urgency=low + + * Initial Release + + -- Thorsten Glaser Sat, 28 May 2005 22:02:17 +0000 + --- mksh-25.0.orig/debian/mksh.prerm +++ mksh-25.0/debian/mksh.prerm @@ -0,0 +1,26 @@ +#! /bin/sh +# prerm script for mksh +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + remove|upgrade|deconfigure) + update-alternatives --remove ksh /bin/mksh + remove-shell /bin/mksh + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument '$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- mksh-25.0.orig/debian/compat +++ mksh-25.0/debian/compat @@ -0,0 +1 @@ +4 --- mksh-25.0.orig/debian/mksh.menu +++ mksh-25.0/debian/mksh.menu @@ -0,0 +1,2 @@ +?package(mksh):needs="text" section="Apps/Shells"\ + title="MirBSD ksh" command="/bin/mksh -l" --- mksh-25.0.orig/debian/control +++ mksh-25.0/debian/control @@ -0,0 +1,19 @@ +Source: mksh +Section: shells +Priority: optional +Maintainer: Thorsten Glaser +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.2 + +Package: mksh +Architecture: any +Depends: ${shlibs:Depends} +Description: enhanced version of the Korn shell + mksh is the MirBSD enhanced version of the Public Domain Korn + shell (pdksh), a bourne-compatible 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, although not 100% compatible to SUSv3 + and Bourne shell where POSIX allows different interpretations. + Some sh/ksh/pdksh compatibility kludges have been removed. --- mksh-25.0.orig/debian/mksh.install +++ mksh-25.0/debian/mksh.install @@ -0,0 +1 @@ +builddir/mksh bin --- mksh-25.0.orig/debian/mksh.manpages +++ mksh-25.0/debian/mksh.manpages @@ -0,0 +1 @@ +mksh.1 --- mksh-25.0.orig/debian/rules +++ mksh-25.0/debian/rules @@ -0,0 +1,86 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (1,${DH_VERBOSE}) + BUILD_ARGS = +else + BUILD_ARGS = -q +endif + + +build: build-stamp + +build-stamp: + dh_testdir + mkdir builddir + cd builddir && /usr/bin/env CFLAGS="${CFLAGS}" \ + /bin/sh ../Build.sh ${BUILD_ARGS} -r + test -x builddir/mksh && touch build-stamp # else abort + # run testsuite + cd builddir && /usr/bin/perl ../check.pl -s ../check.t \ + -p ./mksh -C pdksh + +clean: + dh_testdir + rm -f build-stamp + -rm -rf builddir + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs copyright + dh_installexamples + dh_install + dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install check