--- mksh-33.4.orig/copyright +++ mksh-33.4/copyright @@ -1,3 +1,22 @@ +This package was debianised by Thorsten Glaser on +Sat, 28 May 2005 22:02:17 +0000. + +It was downloaded from http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R33d.cpio.gz + +The additional file "arc4random.c" was downloaded +from mircvs://contrib/code/Snippets/arc4random.c,v 1.3 +and is covered by a BSD-style generic permission notice. + +(To access the anonymous CVS repository of the MirOS Project, cvs with +CVS_RSH=ssh CVSROOT=:ext:anoncvs@anoncvs.mirbsd.org:/cvs is to be used.) + +The debconf templates were taken from the dash source package; +updated translations were contributed via the Debian BTS. +Dependency information was taken from PR#443086’s consensus. + + +Licence: + $MirOS: src/bin/mksh/copyright,v 1.22 2008/02/25 02:52:20 tg Rel $ The MirBSD Korn Shell (mksh) is --- mksh-33.4.orig/arc4random.c +++ mksh-33.4/arc4random.c @@ -0,0 +1,202 @@ +/* $MirOS: contrib/code/Snippets/arc4random.c,v 1.3 2008/03/04 22:53:14 tg Exp $ */ + +/*- + * Arc4 random number generator for OpenBSD. + * Copyright 1996 David Mazieres . + * + * 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, which describes a stream cipher allegedly + * compatible with RSA Labs "RC4" cipher (the actual description of + * which is a trade secret). The same algorithm is used as a stream + * cipher called "arcfour" in Tatu Ylonen's ssh package. + * + * Here the stream cipher has been modified always to include the time + * when initializing the state. That makes it impossible to + * regenerate the same random sequence twice, so this can't be used + * for encryption, but will generate good random numbers. + * + * 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. + */ + +#include +#include +#include +#if HAVE_SYS_SYSCTL_H +#include +#endif +#include +#if HAVE_STDINT_H +#include +#endif +#include +#include +#include + +struct arc4_stream { + uint8_t i; + uint8_t j; + uint8_t s[256]; +}; + +static int rs_initialized; +static struct arc4_stream rs; +static pid_t arc4_stir_pid; + +static uint8_t arc4_getbyte(struct arc4_stream *); + +u_int32_t arc4random(void); +void arc4random_addrandom(u_char *, int); +void arc4random_stir(void); + +static void +arc4_init(struct arc4_stream *as) +{ + int n; + + for (n = 0; n < 256; n++) + as->s[n] = n; + as->i = 0; + as->j = 0; +} + +static void +arc4_addrandom(struct arc4_stream *as, u_char *dat, int datlen) +{ + int n; + uint8_t si; + + as->i--; + for (n = 0; n < 256; n++) { + as->i = (as->i + 1); + si = as->s[as->i]; + as->j = (as->j + si + dat[n % datlen]); + as->s[as->i] = as->s[as->j]; + as->s[as->j] = si; + } + as->j = as->i; +} + +static void +arc4_stir(struct arc4_stream *as) +{ + int n, fd; + struct { + struct timeval tv; + u_int rnd[(128 - sizeof(struct timeval)) / sizeof(u_int)]; + } rdat; + size_t sz = 0; + + gettimeofday(&rdat.tv, NULL); + + /* /dev/urandom is a multithread interface, sysctl is not. */ + /* Try to use /dev/urandom before sysctl. */ + fd = open("/dev/urandom", O_RDONLY); + if (fd != -1) { + sz = (size_t)read(fd, rdat.rnd, sizeof (rdat.rnd)); + close(fd); + } + if (sz > sizeof (rdat.rnd)) + sz = 0; + if (fd == -1 || sz != sizeof (rdat.rnd)) { + /* /dev/urandom failed? Maybe we're in a chroot. */ +//#if defined(CTL_KERN) && defined(KERN_RANDOM) && defined(RANDOM_UUID) +#ifdef _LINUX_SYSCTL_H + /* XXX this is for Linux, which uses enums */ + + int mib[3]; + size_t i = sz / sizeof (u_int), len; + + mib[0] = CTL_KERN; + mib[1] = KERN_RANDOM; + mib[2] = RANDOM_UUID; + + while (i < sizeof (rdat.rnd) / sizeof (u_int)) { + len = sizeof(u_int); + if (sysctl(mib, 3, &rdat.rnd[i++], &len, NULL, 0) == -1) { + fprintf(stderr, "warning: no entropy source\n"); + break; + } + } +#else + /* XXX kFreeBSD doesn't seem to have KERN_ARND or so */ + ; +#endif + } + + arc4_stir_pid = getpid(); + /* + * Time to give up. If no entropy could be found then we will just + * use gettimeofday. + */ + arc4_addrandom(as, (void *)&rdat, sizeof(rdat)); + + /* + * Discard early keystream, as per recommendations in: + * http://www.wisdom.weizmann.ac.il/~itsik/RC4/Papers/Rc4_ksa.ps + * We discard 256 words. A long word is 4 bytes. + */ + for (n = 0; n < 256 * 4; n ++) + arc4_getbyte(as); +} + +static uint8_t +arc4_getbyte(struct arc4_stream *as) +{ + uint8_t si, sj; + + as->i = (as->i + 1); + si = as->s[as->i]; + as->j = (as->j + si); + sj = as->s[as->j]; + as->s[as->i] = sj; + as->s[as->j] = si; + return (as->s[(si + sj) & 0xff]); +} + +static uint32_t +arc4_getword(struct arc4_stream *as) +{ + uint32_t val; + val = arc4_getbyte(as) << 24; + val |= arc4_getbyte(as) << 16; + val |= arc4_getbyte(as) << 8; + val |= arc4_getbyte(as); + return val; +} + +void +arc4random_stir(void) +{ + if (!rs_initialized) { + arc4_init(&rs); + rs_initialized = 1; + } + arc4_stir(&rs); +} + +void +arc4random_addrandom(u_char *dat, int datlen) +{ + if (!rs_initialized) + arc4random_stir(); + arc4_addrandom(&rs, dat, datlen); +} + +u_int32_t +arc4random(void) +{ + if (!rs_initialized || arc4_stir_pid != getpid()) + arc4random_stir(); + return arc4_getword(&rs); +} --- mksh-33.4.orig/debian/mksh.prerm +++ mksh-33.4/debian/mksh.prerm @@ -0,0 +1,41 @@ +#! /bin/sh +# prerm script for mksh +# +# see: dh_installdeb(1) + +set -e + +remove_divert() { + div=$(dpkg-divert --list $1) + if [ -n "$div" ] && [ -z "${div%%*by mksh}" ]; then + distrib=${div% by mksh} + distrib=${distrib##* to } + mv $distrib $1 + dpkg-divert --remove $1 + fi +} + +if [ "$1" = remove ] || [ "$1" = deconfigure ]; then + remove_divert /bin/sh + remove_divert /usr/share/man/man1/sh.1.gz +fi + +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-33.4.orig/debian/mksh.config +++ mksh-33.4/debian/mksh.config @@ -0,0 +1,15 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +db_input low mksh/sh || true +db_go + +db_get mksh/sh +if [ "$RET" = "true" ]; then + db_get dash/sh + if [ "$RET" = "true" ]; then + db_input low mksh/cannot || true + db_go + fi +fi --- mksh-33.4.orig/debian/changelog +++ mksh-33.4/debian/changelog @@ -0,0 +1,852 @@ +mksh (33.4-1) unstable; urgency=low + + * New upstream release; changelog: + - Move a portability define from sh.h to the setmode.c helper, as it’s + only needed there, and we want to use the latter from MirMake as well + - SECURITY: when spawning mksh on a new terminal, for example with + “sudo mksh -lT/dev/ttyC7”, flush all of that tty’s I/O first + - dot.mkshrc: ensure “ls” is no alias, don’t hardcode its path + * As dash won’t be the default /bin/sh without the current alternative + handling / debconf mechanism in lenny (as per the mail from Martin + Zobel-Helas), there is no need to act regarding our debconf scripts + and /bin/sh ability, so I think this Closes: #469675 + + -- Thorsten Glaser Fri, 11 Apr 2008 17:38:02 +0000 + +mksh (33.3-1) unstable; urgency=low + + * New upstream release; changelog: + - Handle Ultrix mmap(2) having a different prototype (returning a caddr_t + instead of a void * and not defining MAP_FAILED; making Ultrix 4.5 a + fully supported platform + - Decrease code size and optimise (using puts-style functions instead of + printf-style functions for fixed strings; bool instead of int) + - Correct behaviour of “export”, “export -p”, “readonly”, “readonly -p”, + “typeset”, “typeset -p”, “typeset” and their respective descriptions in + the manual page; problem reported by Danijel Tasov + - Work around dup2(2) problem (preserving the close-on-exec flag) on + Ultrix using code from mirbsdksh-1.11, lost in oksh + - Clean up Build.sh a little more + - Correct quotes and some other stuff in the regression tests; fix for + running with old Perl (5.002 or so, Linux 2.0, BSD/OS) + - Export the new “__progname” and “__perlname” environment variables to + the suite run from check.t in check.pl + - Do not mistake IBM xlC and VisualAge for different things, thanks to + Pascal “loki” Bleser from OpenSuSE for information on them + + -- Thorsten Glaser Wed, 02 Apr 2008 21:45:54 +0200 + +mksh (33.2-1) unstable; urgency=low + + * New upstream release; changelog: + - Fix some minor code issues remarked by MIPSpro + - Port to SGI IRIX 6.5 (uname: IRIX64) using gcc and MIPSpro + - Scan for a lot more compilers; add support for MIPSpro + - Ignore if the OS doesn’t define MAP_FILE for mmap(2) + - Use sys/types.h as sys/mkdev.h dependency + - Enable OSF/1 V2.0 /bin/sh to run Build.sh + - Add strcasecmp(3) proto for Ultrix 4.5 only (imake style) + - Add S_ISLNK if the OS doesn’t define it + - Use tempnam(3) if mkstemp(3) not found – not recommended + - Reduce dependency on certain OE facilities: printf(1), fgrep(1) being + able to scan for two patterns at the same time, perl5 being named perl + - New -T- option for dæmonisation, cf. man page + - Port to BSDi BSD/OS 3.1 (gcc 1.42 and gcc 2.7.2.1 supported) + - Simplify the dot.mkshrc file and make it more robust + - Report OE and $CC version in Build.sh, for logs + - Fix look’n’feel of the mksh(1) manual page, so that it still looks best + in AT&T nroff(1), looks much better in GNU groff (the PDF version we + place on the website), and looks some better and gains the ability to + copy’n’paste from it for GNU gnroff -Tutf8, originally prompted by + Patrick “aptituz” Schoenfeld and “lintian -viI mksh*.changes”, but then + improved (and nroff hacked) by tg@ a lot + - Shut up some gcc warnings (explicit braces; cast MAP_FAILED) + - Try to get rid of the test “if the compiler fails correctly” by using + the errorlevel of the $CC process (except with Microsoft Visual C++ + which returns non-zero even on success sometimes), thus supporting + DEC C on OSF/1 (and, quite possibly, gcc3 on Mac OSX Leopard) + - If revoke(2) and flock(2) are found, check if they’re declared + - Promote Tru64 to a fully supported operating environment, even though + it needs a plethora of _*_SOURCE defines and has SIGMAX instead of NSIG; + OSF/1 V4.0 and Tru64 (OSF/1 V5.1) are supported with both gcc and + HP/Compaq/DEC C in various versions + - Generalise the workaround for incompatible sig_t across the platforms + that need it (currently, OSF/1 and PW32) + - Shut up annoying warning about gcc 2.7.2.3, 2.8.1, 2.95.x not knowing + the “-std=gnu99” and “-std=c99” options without setting proper errorlevel + * Remove debdiffs for things included in upstream: + - manpage diff + - displaying of OS and compiler versions before build + * Update arc4random.c file from MirBSD contrib repository for now, until we + have libbsd in Debian !kfreebsd sid (coming soon I hope) + - fixes “warning: ignoring return value of ‘read’, declared with attribute + warn_unused_result” occuring on e.g. Fedora GNU/Linux + * Integrate translation updates; Closes: #471009 + + -- Thorsten Glaser Fri, 28 Mar 2008 20:34:00 +0000 + +mksh (33.1-2) unstable; urgency=low + + * Help backporters by specifying explicitly versioned debconf/cdebconf + dependencies, thanks Patrick “aptituz” Schoenfeld for mentioning + * Integrate manpage diffs from mksh-current to fix “lintian -viI”, also + from aptituz, and a couple of other issues (' vs ’ vs ´, ' vs ‘ vs `, + - vs ‐ vs − vs – vs —, ^ and ~ in the Postscript version) + * Add a debian/watch file, idea from aptituz too, hints from uscan(1) + + -- Thorsten Glaser Tue, 04 Mar 2008 00:31:08 +0000 + +mksh (33.1-1) unstable; urgency=low + + * New upstream release; summary of changes: + - Sync with OpenBSD ksh (no real functional changes) + - Enhance the print builtin with two new escape sequences: \xAB + parses the next up to two hexadecimal digits AB and outputs a + raw octet (byte) whose ordinary value is AB; \uABCD parses up + to four hexadecimal digits and outputs the UTF-8 (CESU-8) re- + presentation of the unicode codepoint U+ABCD from the BMP + (Basic Multilingual Plane), not depending on the locale + - The . (“dot”) command (and its counterpart source) needs an + argument (the script to source); from Debian pdksh package + - In the lexer, do not expand aliases if there is an opening + parenthesis just after the token (from Debian pdksh). This + fixes the namespace issue that caused a POSIX function de- + finition stop() { … } to fail due to “stop” being a built- + in Korn shell alias. Now, aliases are removed when a POSIX + function with the same name is defined; Korn functions are + still different: their definition does not fail, but the + alias retains its precendence (unchanged behaviour) + - Accordingly, do not disable built-in aliases in POSIX mode any more + - Since POSIX mode now only turns off braceexpand mode (which + can then be turned back on), do not handle being called as -sh + or sh specially any longer + - Clean up the source code: make some constants private to the + only file using it; optimise; comment some code; improve + portability with regards to stupid tools in /usr/bin (or + /usr/xpg4/bin) and foreign compilers + - Implement “here strings” (like ksh93 or zsh; GNU bash col- + lapses white space if the string is not double-quoted): you + can now replace “print -r -- "$foo" | command” with + “command <<<"$foo"” with the very same semantics as + “command < Sun, 02 Mar 2008 16:12:59 +0000 + +mksh (32.1-1) unstable; urgency=low + + * New upstream release; summary of changes: + - Checks for symbol declarations are compile time checks, not link + time checks; fixes (optional) arc4random on AIX + - Widen the range for array indicēs to the entire unsigned 32-bit + integer range (enough for ino_t on BSD); wrap numbers outside of + that range into it for simplicity (e.g. foo[-1] = foo[4294967295]) + - Fix an internal error when using a pipeline as co-process + - Relax requirement on compilation environment to provide certain types + - Optimise some more for size (struct padding; functions → macros, …) + * Integrate galician translation, Closes: #447947 + + -- Thorsten Glaser Thu, 25 Oct 2007 18:36:27 +0000 + +mksh (31.4-1) unstable; urgency=low + + * New upstream release; summary of changes: + - Support pcc (the ragge version of the Portable C Compiler) + - Add pushd/popd/dirs functions (csh) and precmd/chpwd hooks (zsh) + to dot.mkshrc which now requires readlink(1) with -f; requested + by many (e.g. some Gentoo users; XTaran of symlink.ch) + - Enable colour escapes in dot.mkshrc since almost nobody groks how + to do it right from the manual + - Remove -DMKSH_NEED_MKNOD checks from Build.sh, people should use + the HAVE_MKNOD environment variable + - Implement parallel make in Build.sh (not used by Debian) + - Fix another busy-loop spinning problem introduced by an icc warning, + thanks to spaetzle@freewrt.org for keeping to bug me to look for it, + as it affected GNU/Linux most, followed by Solaris, rarely BSD + - Improve standard integer type detection in Build.sh + - Cleanups in code, build script and manual page + - Clean up Build.sh and “test … -o …” doesn’t exist in Bourne + - Detect if the non-standard u_int32_t type, which was unfortunately + used by the OpenBSD project in designing the standard arc4random(3) + API, is present (which it isn’t on Solaris), and, if not, emulate + it using the standard uint32_t (ISO C99) from , which we + fake as needed (if the standard integer types are not present, e.g. + on PW32 and OSF/1); change mksh as well as the arc4random.c + contribution to not use these non-standard types + - Remove unused types from the faked file + * Integrate updated translation into portugués, Closes: #444218 + * debian/rules: wait for script(1) to return, in case it runs + asynchronously; we have seen weird results on Debian and Fedora + + -- Thorsten Glaser Mon, 15 Oct 2007 18:23:01 +0000 + +mksh (31.2-1) unstable; urgency=low + + * New upstream minor release (R31b); summary of changes: + - Fix a syntax error in Build.sh checking for TenDRA + - Fix typo (blsk → bksl) in check.t test naming + - Autoscan for uint32_t, u_int etc. presence + - Fix some memory leaks, mostly by NetBSD® via OpenBSD + - The “unset” builtin always returns zero, even if the variable was + already unset, as per SUSv3 (reported by Arkadiusz Miskiewicz via + pld-linux and oksh) + - In tab-completion, escape the question mark, reminded by cbiere@tnf + - Fix a busy-loop problem, Debian #296446 via oksh + - Fix a few display output problems in the build script + - Shut up some gcc warnings on Fedora; beautify some code + - Support OSF/1 with gcc2.8, thanks to Jupp Schugt + - Fix gcc4 detection of __attribute__() on non-SSP targets + * debian/control: sync description with that of packages for other OSes + * debian/menu: Apps → Applications, as per Lintian + * debian/rules: do not run the testsuite with script on Debian GNU/HURD, + because some translators seem to be unable to cope with the chroot + * arc4random.c: use uint_t consistently, helps compiling on OSF/1 + + -- Thorsten Glaser Tue, 11 Sep 2007 14:00:20 +0000 + +mksh (31.1-1) unstable; urgency=low + + * New upstream release (R31); summary of changes: + - Support the TenDRA compiler (possibly also Ten15, not tried) + - Begin supporting Fabrice Bellard’s Tiny C Compiler (tcc on Debian + cannot link due to duplicate symbols in GNU libc, thus unfinished) + - Improve some mirtoconf checks (most notably, mknod(2) and macros) + - Add new emacs editing command “clear-screen” (ESC ^L) as requested + by D. Adam Karim + - Support building for MidnightBSD + - Add new shell alias “source”, semantics like the GNU bash builtin + - Add new shell option “set -o arc4random”, controlling whether + rand(3) or arc4random(3) is used for the $RANDOM value, use + arc4random_pushb(3) if it exists + - Add new builtin “rename” (just calls rename(2) on its arguments), + for rescue purposes (like renaming ld.so) + - Fix the inofficial OpenBSD port, from D. Adam “Archite” Karim, 10x + - Disable the less(1) history file by default (privacy issues) in the + sample dot.mkshrc file; mention other things in etc_profile (the + additional sample mentioned on the mksh website) + * Put the arc4random.c file under version control + * Clean up the copyright file (rm commented stuff from Debian experimental) + * Mention /dev/tty is also needed in debian/rules pre-build echo + + -- Thorsten Glaser Fri, 07 Sep 2007 19:34:25 +0000 + +mksh (30.1-1) unstable; urgency=low + + * New upstream major release (R30); summary of changes: + - Build on and for Solaris, Linux and MirBSD with Sun's C compiler + - No longer build a statically linked shell by default; do not try, + do not provide any means; user has to use LDFLAGS instead. + - Remove some probably dead mirtoconf checks + - Remove commented out -fwhole-program --combine check and still + active -fno-tree-vrp bug workaround thing, the latter because the + bug seems to only appear for functions that also exist as a builtin + (which was declared with the nonnull attribute) + - Fix a long-standing typo, 10x moritz@obsd + - Prefer more common signal names (SIGCHLD) over uncommon ones (SIGCLD) + - Quieten gcc and support SUNpro 5.8 on Solaris 10 on sparc64 + - Optimise signal handling and detection; enable compilers whose + præprocessor doesn't have -dD to generate list of signals + - Optimise mirtoconf meta-checks for persistent history etc. + - Fix a bug preventing manual page generation on Solaris + - Add support for the Intel® C Compiler and quieten it a little; + fix a few minor buglets (mostly type conversion) its too verbose + warnings show, as well as some errno ab-/mis-use + - Remove support for honouring the CPP environment variable; + $CC -E - is simply used instead in the places where $CPP was used + previously, because that was used in other places already, and + to prevent it from behaving differently from the $CC used + - If a file called arc4random.c is lying around in the source directory + at mirtoconf time, scan for and use the file if + arc4random(3) isn't found otherwise. From Debian GNU/kFreeBSD. + - If the basename of argv[0] starts with “sh”, activate FPOSIX early, + preventing some typical ksh aliases from being defined + - If FPOSIX, don't pre-define aliases (except integer and local) to + benefit operating environments that never heard of the great Korn Shell… + - #if defined(MKSH_SMALL) || defined(MKSH_NOVI) disable the vi editing mode + - Don't try to execute ELF, a.out, COFF, gzip or MZ binaries + - Can be built on HP-UX (PA-RISC and IA64) with gcc or HP C/aC++ + - Support x=(a b c) bash-like array initialisation + - Support ${foo:2:3} bash-like substring expansion + - Many mirtoconf improvements, fixes; speed-up; better portability + - Enable compilation using Microsoft C/C++ Standard Compiler + - Add UWIN build target using various compilers with the cc wrapper + - Fix struct padding mistakes uncovered by the Microsoft compiler + - Fix double initialisation / unused value assignment errors + unveiled by Borland C++ Builder 5.5 + - Fix superfluous code detected by gcc 4.2 + - Fix large file support for OSes that require CPPFLAGS contains + -D_FILE_OFFSET_BITS=64 – it was detected but not actually used + in the build; thanks to hondza for the problem report! + - Give the lexer a bigger state stack if !MKSH_SMALL + - Prepare for addition of make(1)-style search/replace operations; + correct the code for other substitution expansion operations + - Default $CC to cc not gcc, this is no non-unix-ware ☺ + - Support AIX with gcc and xlC; clean up code to warning-free + - Prefer well-known signal names to alphabetically earlier ones + - Fix a bug delivering ERR and EXIT pseudo-signals to traps combined + with “set -e”, thanks Clint Pachl and Otto Moerbeek for the hint + * Update German translation, Closes: #428590 (still pending resolution + of the dash-as-/bin/sh and debconf common field issue described in + http://thread.gmane.org/gmane.linux.debian.devel.release/17423 so + please do not submit new translations until that issue is resolved) + * Reflect changes in the description in debian/control + + -- Thorsten Glaser Thu, 26 Jul 2007 20:25:02 +0000 + +mksh (29.6-2) unstable; urgency=low + + * Re-run debconf-updatepo which was missed after we changed note into error + * Fix arc4random on HURD by integrating it into the Build.sh script and + scanning for prerequisite headers + + -- Thorsten Glaser Sun, 10 Jun 2007 07:51:06 +0000 + +mksh (29.6-1) unstable; urgency=low + + * New upstream formal release; summary of relevant changes: + - Remove some redundant or unused functions + - Fix several horizontal scrolling, display, scrollbar, etc. bugs + unveiled by David Ramsey + - Fix a few bugs found by Coverity Scan + - Optimise dot.mkshrc sample file; add a speed alias + - Fix a few shortcomings in the build system + * Pull in arc4random support + * Make it possible to install mksh as /bin/sh the same way as + dash does, copy the necessary files from dash (my apologies to + the translators, I simply search'n'replaced the term dash by mksh) + * Install dot.mkshrc as /etc/skel/.mkshrc conffile + + -- Thorsten Glaser Mon, 28 May 2007 18:12:23 +0000 + +mksh (29.3-1) unstable; urgency=low + + * New upstream formal release; summary of changes: + - portability fixes (darwin, hp-ux, solaris, new port to aix) + - size optimisation if utf-8 mode is assumed by default (not in Debian) + - small manual page fixes + - Do not scan for and use "-fwhole-program --combine" because it's the + cause of at least http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=408850 + and breakage with FORTIFY_SOURCE on SuSE; thanks to Pascal Bleser (yaloki), + Marcus Rueckert (darix), Martin Zobel-Helas, Steve Langasek (vorlon) for + tracking this bug down in two different places; Closes: #421518 + * remove the possible workaround mentioned in the changes for 28.9.20070309 + because the problem has been solved upstream + + -- Thorsten Glaser Mon, 30 Apr 2007 21:53:12 +0000 + +mksh (29.2-1) unstable; urgency=low + + * New upstream formal release; summary of changes: + + a plethora of UTF-8 fixes: + - display control characters U+0080..U+009F the same as U+0000..U+001F, + i.e. a caret followed by the character corresponding to the control + character XOR 0x0040, treat their width as 2 subsequently + - fix crash (cpu hog in spinning loop) on meta-tab + backspace + - strip off UTF-8 byte order mark at beginning of input + - if a BOM is encountered, switch on utf-8 command line editing mode + + in utf-8 command line editing mode, handle invalid input more strictly: + - if in x_literal(), i.e. the ^V mode (bind to quote), allow it as before + - if it's the start of an invalid multibyte sequence, reject with a beep + (e.g. if trying to input latin1 chars) + - if it's an invalid or partial multibyte sequence, reject silently + -> this makes command line editing much more robust + + other bug fixes: + - in a rare condition (error path), the wrong function was used to copy + a string that could contain embedded NULs (encoded format), leading to + memory access past malloc'd area + - in the same path, fix an out-of-bounds access inherited from openbsd ksh + -> discovered on Debian GNU/Linux experimental ia64, glibc 2.5-beta + + new functionality: + - if execve() fails, before passing the file to $EXECSHELL, open it and + try to parse a shebang line; if we find one, do it ourselves + (the good part of this is that it even works when there is a UTF-8 BOM + before the shebang magic sequence) + - for shebang processing, not only NUL or LF but also CR terminate the line + - enhancements to the "dot.mkshrc" sample file (which is now regularily + used upstream as well) + - if the internal function exchild() fails, don't just tell the user that + it failed, tell him WHAT failed (unless -DMKSH_SMALL) + + code cleanup changes: + - remove unused functions, macros + - fix typos, errors, etc. + - shut up gcc 4.1.2 warnings + - Build.sh cygwin vs unix cleanup/simplification + - shrink manual page to 39 DIN A4 pages when output as postscript + + reliability changes: + - if $CC supports -fstack-protector-all, add it to $CFLAGS + - if $CC supports -fno-tree-vrp, add it to $CFLAGS if $CC is subject to + the bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30785 + - add mirtoconf check for "large file support", requested by bsiegert@, + needed for some *nix, idea and implementation hints from GNU autoconf + - add zsh workaround to Build.sh, just in case (untested) + * disable the possible workaround mentioned in the changes for 28.9.20070309 + because I was unable to verify/test it; maybe it only applies to the glibc + in experimental anyway, we'll see to that later + * add a comment about the regression test needing openpty() to debian/rules + * remove non-ASCII (i.e. high-bit7) characters from diff/changelog + * slightly enhance package description + * properly indent homepage link in description, thanks KiBi (kfreebsd team) + + -- Thorsten Glaser Wed, 25 Apr 2007 11:36:42 +0000 + +mksh (28.9.20070309) experimental; urgency=low + + * Add possible workaround for #408850 by disabling -std=gnu99 (untested) + so that this package at least compiles on Alpha until the bug + can be fixed + * Restore Debian prefix in copyright file accidentally lost in 28.9.20070304 + * Do not build-depends-on-essential-package-without-using-version, remove + explicit dependency on bsdutils + + -- Thorsten Glaser Sat, 10 Mar 2007 01:12:20 +0000 + +mksh (28.9.20070304) experimental; urgency=low + + * Due to failures like this one: + ``cat: /build/buildd/mksh-28.9.20070218/builddir/screenlog.0: + No such file or directory'' + in http://experimental.ftbfs.de/fetch.php?&pkg=mksh&ver=28.9.20070218&arch=powerpc&stamp=1171913314&file=log&as=raw + - remove the use of GNU screen to run the testsuite again + - use 'script' from the Debian bsdutils package) to run the + regression test suite within a controlling tty + (this is experimental) + * New upstream release candidate; summary of changes: + - Work around Solaris /usr/ucb/tr, Solaris /usr/xpg4/bin/tr, + Minix 3 /usr/bin/tr, and SUSv3 deficiencies + - Fix compilation on more platforms (Interix, Cygwin, Linux 2.0 libc5, + Debian GNU/kFreeBSD, Debian GNU/HURD, ...) + - Use autoconfiguration for persistent history stuff + - Fix the code (add "const" in like 1001 places) to be able to + build without -Wno-cast-qual (hope it's safe now) + - Optionally use const-debugging versions of strchr(3), strstr(3), + to work around deficiencies in ANSI C + - The above directly led to our own strcasestr(3) implementation + for OSes which don't have it + - Optimise dot.mkshrc macros + - Remove shadowing warnings for more OSes + - Support old ash(1) versions in Build.sh + - Support use of _NSIG for NSIG + - Optimise ctags(1) generation + * Honour ${CC} + + -- Thorsten Glaser Tue, 6 Mar 2007 03:44:58 +0000 + +mksh (28.9.20070218) experimental; urgency=low + + * New upstream development snapshot; summary of changes: + - fix 'hd' alias in dot.mkshrc example to not run off + an ANSI standard 80 column screen; simplify + - integrate MKSH_NEED_MKNOD and MKSH_ASSUME_UTF8 with Build.sh + + -- Thorsten Glaser Sun, 18 Feb 2007 20:34:48 +0000 + +mksh (28.9.20070216) experimental; urgency=low + + * New upstream development snapshot; summary of changes: + - if MKSH_SMALL, don't include -T support and don't scan + for revoke() function + - new #ifdef MKSH_NEED_MKNOD to embed mknod(8) even if + MKSH_SMALL is enabled + - do not scan for revoke() on GNU/Linux since it always fails + - simplify GNU/Linux CPPFLAGS and use them for GNU/HURD and + GNU/kFreeBSD (tested on Debian experimental, thanks to the + ftbfs.de autobuilder and Michael "azeem" Banck) + - fix the 'bind' (no args) builtin output + - new #ifdef MKSH_ASSUME_UTF8 to not check setlocale() and + nl_langinfo(CODESET) if we want to always enable the utf-8 + command line editing mode + - tabcomplete a newline to singlequote+newline+singlequote + instead of backslash+newline which is eaten; thanks to + Thomas E. "TGEN" Spanjaard for noticing + - remove shebang line from check.pl which isn't +x anyway + * control: add ed(1) as suggested package, for history editing + * control, rules: add GNU screen as build dependency; use it to + provide a tty to the regression test suite so it can succeed in + the Debian autobuilding mechanism; tested on i386-linux, i386-hurd + * control: only the emacs editing mode is utf-8 safe (fix description) + + -- Thorsten Glaser Fri, 16 Feb 2007 20:32:52 +0000 + +mksh (28.9.20070118) experimental; urgency=low + + * New upstream development snapshot; summary of changes: + - autoconfify compiler flags, c preprocessor + - add option to avoid pulling in getpwnam(3) in !MKSH_SMALL + - scan for certain headers, types; improve portability + - speed up autoconfiguration process in failure case + - finally fix static vs dynamic linking issues + - fix manpage (.Nm macro) glitch with GNU nroff 1.15 + - improve auto-detection of which regression tests are valid + - mention failure to revoke(2) is possibly insecure + * As a result of upstream changes, simplify debian/rules + * Testsuite failues are not fatal for Debian + * Please note: this is a development snapshot from CVS, but this + one is deemed "gamma stadium" (i.e. more stable than beta, and + ready for public consumption by a broad mass of testers). + + -- Thorsten Glaser Thu, 18 Jan 2007 20:57:40 +0000 + +mksh (28.9.20070117) experimental; urgency=low + + * Add -fwrapv to Debian CFLAGS to prevent unexpected code behaviour + * New upstream development snapshot; summary of changes: + - Don't expand ~foo/ if MKSH_SMALL, spares getpwnam(3) call + - Fix and autoconfify signal list generation + - Build.sh now uses $TARGET_OS as "uname -s" output for cross builds + - Set flag for regression tests that can't succeed if MKSH_SMALL + - Don't even check for setlocale(3) if MKSH_SMALL, unless overridden + by user / build environment + - Scan for C Preprocessor, use $CPP if $CC -E fails + - Fix possible nil pointer dereferences and signal name mismatches + - Scan for __attribute__((...)) and -std=gnu99 (req'd on Solaris 10) + - Correct $LDSTATIC logic, unbreak -d, don't let the user override (or + need to) $SRCS, $sigseen + - Simplify TIOCGWINSZ handling, no need to catch SIGWINCH any more; + window size changes are processed after input line editing ends (i.e. + the lines are entered or ESC # (emacs mode) is pressed) and at + startup; ^L (redraw) can't change window size on the fly + - Add -fwrapv to standard CFLAGS, just to be safe, like with when I + added -fno-strict-aliasing; this is pending a bug fix in gcc, see + GCC PR#30477 + * Please note: this is a development snapshot from CVS as well; + it may be included into Debian experimental, but is not recom- + mended for Debian testing. + + -- Thorsten Glaser Sat, 17 Jan 2007 09:32:11 +0000 + +mksh (28.9.20070106) experimental; urgency=low + + * New upstream development snapshot; summary of changes: + - Fix UTF-8 locale detection and segfaults + - Use RLIMIT_AS if RLIMIT_VMEM is not available + * Please note: this is a development snapshot from CVS as well; + it may be included into Debian experimental, but is not recom- + mended for Debian testing. + + -- Thorsten Glaser Sat, 06 Jan 2007 18:55:09 +0000 + +mksh (28.9.20061211) experimental; urgency=low + + * New upstream development snapshot; summary of changes: + - Spelling and wording fixes in the manual page and copyright file; + keep the latter in sync with the latest MirOS licence template + - One correct cast for the ulimit builtin + - Portability #warning for developers (not seen on BSD, but + yields a TODO for Debian) + * Please note: this is a development snapshot from CVS as well; + it may be included into Debian experimental, but is not recom- + mended for Debian testing. If you already have 28.9.20061121, + like the SuSE guru repository of loki, you do not need this + minor update. + + -- Thorsten Glaser Mon, 11 Dec 2006 21:53:42 +0000 + +mksh (28.9.20061121) experimental; urgency=low + + * Add -fno-strict-aliasing to default CFLAGS, as per upstream suggestion + * New upstream development snapshot; summary of changes: + - Fix portability of regression tests using fgrep(1), twice + - Fix description of $RANDOM in manual page + - Fix build under OpenSolaris Build 47 (reported in IRC) + - Use easier __RCSID() stuff from MirOS #9-current + - Don't shebang with spaces in test.sh creation + - Remove -fno-strength-reduce from default CFLAGS, the compiler bug was + fixed between gcc 2.7.2 and gcc 2.7.2.1... + - Avoid unaligned memory access causing SIGBUS on IA-64 on Debian + - Convert to autoconf-style check for function and header file existence + of , arc4random(3), arc4random_push(3), setlocale(3) and + LC_CTYPE, nl_langinfo(3) and CODESET, getmode(3) and setmode(3), + strcasestr(3), and strlcpy(3) + - Add set -o utf8-hack aka mksh -U which changes the Emacs editing mode + to an experimental CESU-8 aware multibyte mode (not implemented using + wide chars unless internally needed; does not require OS support); check + setlocale(LC_CTYPE, "") and nl_langinfo(CODESET) if found to auto-enable + utf-8 mode in interactive shells + - Simplify and clean up code; try to remove or replace function calls by + smaller equivalents; spot a few non-fatal off-by-one errors + - If Build.sh is called with -DMKSH_SMALL in the CPPFLAGS environment + variable, the built-in mknod(8) will not be included, and other + functionality and verbose usage messages will be excluded; some macros + will be turned into functions to save space and to check if the + utf8-hack should be enabled, nl_langinfo(3) is not called. The -T + option to mksh(1) and persistent history are not supported. + - Hand-optimise the code to be small, even in the normal build + - Unbreak the -d option to Build.sh + - Check for cc options -Wno-error, -fwhole-program --combine, and (if + MKSH_SMALL) -fno-inline and use them if they don't fail + - The autoconf-style ("mirtoconf") checks have been enhanced, + improved and be made more verbose by default + - Rewrite a few functions both to save space and to simplify/unify the + code; also spotted a few bugs in existing (inherited) code + - Fix format string mistakes and wrong function and data prototypes + - Correct zero-padding for right-justified strings; add regression test + - EXECSHELL is now ${EXECSHELL:-/bin/sh} again + - Remove duplicate code if feasible; rewrite remaining code to solve all + use cases, or use standard library functions such as qsort(3); rework + the ctypes and chtypes stuff, get rid of libc/ctype.h + - Change the eaccess() code to not use setreuid(2) and friends, like + OpenBSD ksh and apparently pdksh. I'm not too sure about the + implications, except that they only affect setuid shell scripts. + - Use setresuid(2) and friends, and setgroups(3) and instead + of seteuid(2), setuid(2) etc. on operating systems that support them + - Work around (i.e. remove) all but two -Wcast-qual issues + - Work around a bug in the GNU implementation of the Berkeley mdoc macros + which comes with GNU groff (only visible in MirOS with groff -mgdoc, but + shows on other operating systems), discovered by crib in IRC + - $RANDOM is always an unsigned 15-bit decimal integer, for all Korn shell + derivates; idea from twkm in IRC + - Improve/correct description of typeset command in manpage, and + implementation of typeset -p in mksh + - Remove the non-standard emacs-usemeta and vi-show8 shell options, assume + the user either has a 7-bit environment, an 8-bit clean terminal, or a + UTF-8 environment (preferred), and the dummy sh option + - Build.sh fix for conservative (old) versions of gcc; help Debian + * Mention UTF-8 support in the Debian control file's Description field + * PLEASE NOTE: this is not intended to be uploaded into testing, because + it is based upon a CVS checkout of mksh-current, and not of a formal + release. The "mksh 28.9.yyyymmdd" series is based upon CVS snapshots of + mksh-current (mksh R29-beta), and subject to changes. This part of the + changelog might differ in the following mksh-29.0-1 upload to Debian. + This code is *not* well-tested and may have been broken on various other + operating systems and maybe architectures; it may have introduced further + memory leaks. It is recommended to only use it to evaluate mksh's recent + development and help finding bugs and fixing them. No warranty, as usual. + + -- Thorsten Glaser Tue, 21 Nov 2006 21:49:44 +0000 + +mksh (28.0-2) unstable; urgency=low + + * Fix unaligned memory access on IA-64 (same fix was applied + upstream for the next full release) + + -- Thorsten Glaser Sat, 30 Sep 2006 19:59:10 +0000 + +mksh (28.0-1) unstable; urgency=low + + * sample file (dot.mkshrc) is now in upstream + * New upstream release; summary of (Debian user relevant) changes: + - Fix some more -Wchar-subscripts + - Adjust manual page to the fact that mksh can be used as + /bin/sh although it's not specifically designed to + - Correct and enhance book citation list in the manual page + - Bring back the "version" editing command in both emacs and + vi modes, at ESC ^V like AT&T ksh93r+ + - Fix typo which resulted in the wrong names for signals being + printed (error codes were used instead) on GNU/Linux, Solaris + and GNU/Cygwin. Ease changing signame/siglist sources. + - Some more code, manual page, build system and regression test + changes, cleanup and redundancy removal + - Merge a few OpenBSD changes, yielding better multiline prompt + support and textual improvements in the manual page + - Adjust $PS1 sizing, printing, and redrawal routines + for mksh behaviour and single- and multiline prompts + - For the AT&T $PS1 hack (second char = CR), do not + output the delimiting characters any more, even if they + are printable - fixes platforms without non-printable + characters (Interix, Cygwin) and prompt size calculation + - Calculate length of prompt in lines and columns-of-last-line + instead of using some tricks to skip the beginning of the prompt, + resulting in correct redrawing of prompts with ANSI colour codes + - Correct displaying of prompts spanning more than one line + and/or with embedded newlines or carriage returns; correct + documentation of $PS1 and the redraw editing command + - Change one of the testsuite "expected failure" tests from bug + to feature - it might actually be required by BSD make + - Enable to bind key sequences which consist of the usual optional + one or two praefices and the control character, as well as an + optional trailing tilde (if the trailing character is not a tilde, + it's processed as usual, but processing of the editing command is + postponed until after the trailing character has been read) + - Bind the NetBSD(R) wscons (vt220 / wsvt25), GNU screen and + XFree86(R) (xterm-xfree86) "home", "end" + and "delete" keys to ^A, ^E and ^D, respectively, except + that "delete" does not act as logoff switch + - Make sure ^T is bound to 'transpose' as documented + (bug spotted by hondza) + - Remove the 'stuff' and 'stuff-reset' editing commands + - Correct the manual page regarding the 'abort' command, its + interaction with 'search-history' and how to exit the latter + - Bring back "set -o posix" turning off 'braceexpand' + - Mention IRC support channel and mailing list in manual page + - Make the "last command of a pipeline is executed in a + subshell" issue a dependable mksh feature + - Improve regression test comments and a few tests + - If $RANDOM is generated from arc4random(3), display at + most 31 bits of it like nbsh(1), instead of only 15 bits. + + -- Thorsten Glaser Sat, 9 Sep 2006 11:49:07 +0000 + +mksh (27.4-2) unstable; urgency=low + + * Fix build if zsh is used as build shell by forcing /bin/sh + + -- Thorsten Glaser Fri, 7 Jul 2006 19:25:32 +0000 + +mksh (27.4-1) unstable; urgency=low + + * New upstream release; summary of changes: + - build system fixes (honour CPPFLAGS, ...) + - documentation fixes (manual page date/version) + - only source ${ENV:-~/.mkshrc} for interactive (FTALKING) shells + (change in behaviour towards principle of least surprise) + - fix "char subscripts" warnings + * Be more verbose on build, to aid debugging the buildd logs + * Install a sample ~/.mkshrc file showing how flexible mksh is and + providing a bash-like $PS1 to the user + * Add persistent (official) homepage to package description + + -- Thorsten Glaser Tue, 4 Jul 2006 15:42:23 +0000 + +mksh (27.2-1) unstable; urgency=low + + * New Debian Standards-Version, no changes for us + * New upstream release; summary of changes: + - emacs-usemeta now behaves like vi-show8 to facilitate + e.g. japanese UTF-8 input on the command line (such as + filenames); be careful with 0x80-0x9F + - portability cleanup and speed-up + - GNU groff compatible manual page + - add ~/.mkshrc processing, requested by Jari Aalto for + the Debian-based Stem Desktop; see manual page for details + - illustrate a few tricks (e.g. setting $PS1) in manual page + - enhance testsuite + - incorporate some more code cleanup by OpenBSD + - reference the O'Reilly books in the manual page + * As a result, remove some patches now in upstream + * Add ed(1) as build dependency, needed for regression tests + + -- Thorsten Glaser Wed, 31 May 2006 18:58:16 +0000 + +mksh (26.2-2) unstable; urgency=low + + * There was another .St -susv3 in the manual page; + replace it by the expanded version. + * No comma in front of "which" in English (copyright file) + + -- Thorsten Glaser Thu, 2 Feb 2006 18:08:34 +0000 + +mksh (26.2-1) unstable; urgency=low + + * New upstream release; summary of relevant changes: + - Change quoting policy (regarding backslash-doublequote) in + here documents to conform to SUSv3 (to migrate, change all + occurences of backslash-doublequote to just doublequote) + - Update documentation + - Clean up code + - Fix some more GCC 4 warnings + * Remove no longer needed workaround + + -- Thorsten Glaser Mon, 30 Jan 2006 12:03:02 +0000 + +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-33.4.orig/debian/mksh.templates +++ mksh-33.4/debian/mksh.templates @@ -0,0 +1,16 @@ +Template: mksh/sh +Type: boolean +Default: false +_Description: Install mksh as /bin/sh? + Bash is the default /bin/sh on a Debian system. However, since the Debian + policy requires all shell scripts using /bin/sh to be POSIX compliant, any + shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX + compliant, it can be used as /bin/sh. You may wish to do this because + mksh is faster and smaller than bash. + +Template: mksh/cannot +Type: error +_Description: Cannot install mksh as /bin/sh! + Because dash has already been configured to be installed as /bin/sh, mksh + cannot be installed as /bin/sh. Use "dpkg-reconfigure dash" to change dash + to not install as /bin/sh, then "dpkg-reconfigure mksh" to install mksh there. --- mksh-33.4.orig/debian/watch +++ mksh-33.4/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/^([0-9]+)$/$1.1/;s/^([0-9]+)b$/$1.2/;s/^([0-9]+)c$/$1.3/;s/^([0-9]+)d$/$1.4/;s/^([0-9]+)e$/$1.5/;s/^([0-9]+)f$/$1.6/;s/^([0-9]+)g$/$1.7/;s/^([0-9]+)h$/$1.8/;s/^([0-9]+)i$/$1.9/" \ +http://www.mirbsd.org/MirOS/dist/mir/mksh/ mksh-R([0-9]+[b-i]?)\.cpio\.gz --- mksh-33.4.orig/debian/mksh.manpages +++ mksh-33.4/debian/mksh.manpages @@ -0,0 +1 @@ +mksh.1 --- mksh-33.4.orig/debian/mksh.postinst +++ mksh-33.4/debian/mksh.postinst @@ -0,0 +1,57 @@ +#! /bin/sh +# postinst script for mksh +# +# see: dh_installdeb(1) + +set -e + +check_divert() { + div=$(dpkg-divert --list $2) + distrib=${4:-$2.distrib} + case "$1" in + true) + if [ -z "$div" ]; then + dpkg-divert --package mksh --divert $distrib --add $2 + cp -dp $2 $distrib + ln -sf $3 $2 + fi + ;; + false) + if [ -n "$div" ] && [ -z "${div%%*by mksh}" ]; then + mv $distrib $2 + dpkg-divert --remove $2 + fi + ;; + esac +} + +. /usr/share/debconf/confmodule +db_get mksh/sh +check_divert "$RET" /bin/sh mksh +check_divert "$RET" /usr/share/man/man1/sh.1.gz mksh.1.gz \ + /usr/share/man/man1/sh.distrib.1.gz + +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-33.4.orig/debian/control +++ mksh-33.4/debian/control @@ -0,0 +1,24 @@ +Source: mksh +Section: shells +Priority: optional +Maintainer: Thorsten Glaser +Homepage: http://mirbsd.de/mksh +Build-Depends: debhelper (>= 4.0.0), ed, po-debconf +Standards-Version: 3.7.3 + +Package: mksh +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, debconf (>= 1.4.69) | cdebconf (>= 0.39) +Suggests: ed +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. It has + UTF-8 support in the emacs command line editing mode; corresponds + to OpenBSD 4.3-beta ksh (minus GNU bash-like $PS1); the + build environment requirements are autoconfigured; throughout + code simplification/bugfix/enhancement has been done, and the + shell has extended compatibility to other modern shells. + A sample ~/.mkshrc is included. --- mksh-33.4.orig/debian/rules +++ mksh-33.4/debian/rules @@ -0,0 +1,102 @@ +#!/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. + +CC ?= gcc +CFLAGS = -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +BUILD_ENV:= +BUILD_ENV+= CC='${CC}' +BUILD_ENV+= CFLAGS='${CFLAGS}' + +build: build-stamp + +build-stamp: + dh_testdir + -rm -rf builddir build-stamp + mkdir builddir + # + # Dead buildd administrators, + # + # if this fails, please install /dev/ptmx et al. in your + # chroot, i.e. the devices needed by openpty(). Thanks! + # Note: /dev/tty is required by the regression test too. + # + cd builddir && \ + env ${BUILD_ENV} sh ../Build.sh -Q -r && \ + if test '!' -e ../manual && test x"$$(uname -s)" = x"GNU"; then \ + ./test.sh -v; \ + else \ + echo >test.wait; \ + script -qc './test.sh -v; x=$?; rm -f test.wait; exit $x'; \ + maxwait=0; \ + while test -e test.wait; do \ + sleep 1; \ + maxwait=$$(expr $$maxwait + 1); \ + test $$maxwait -lt 900 || break; \ + done; \ + fi + touch $@ + +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 dot.mkshrc + dh_install + dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + mkdir debian/mksh/etc + mkdir debian/mksh/etc/skel + install -m 644 dot.mkshrc debian/mksh/etc/skel/.mkshrc + 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 --- mksh-33.4.orig/debian/mksh.install +++ mksh-33.4/debian/mksh.install @@ -0,0 +1 @@ +builddir/mksh bin --- mksh-33.4.orig/debian/compat +++ mksh-33.4/debian/compat @@ -0,0 +1 @@ +4 --- mksh-33.4.orig/debian/mksh.menu +++ mksh-33.4/debian/mksh.menu @@ -0,0 +1,2 @@ +?package(mksh):needs="text" section="Applications/Shells"\ + title="MirBSD ksh" command="/bin/mksh -l" --- mksh-33.4.orig/debian/po/pt_BR.po +++ mksh-33.4/debian/po/pt_BR.po @@ -0,0 +1,63 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: mksh\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2006-12-19 21:23-0200\n" +"Last-Translator: André Luís Lopes \n" +"Language-Team: Debian-BR Project \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Instalar mksh como /bin/sh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"O bash é o /bin/sh padrão em um sistema Debian. Porém, uma vez que nossa " +"política requer que todos os scripts shell usando /bin/sh sejam compatíveis " +"com o padrão POSIX, qualquer shell que esteja em conformidade com o padrão " +"POSIX pode servir como /bin/sh. Uma vez que o mksh é compatível com o padrão " +"POSIX, o mesmo pode ser usado como /bin/sh. Você pode desejar usar o mksh " +"devido ao mesmo ser mais rápido e menor que o bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/de.po +++ mksh-33.4/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: mksh \n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2006-11-09 21:26+0100\n" +"Last-Translator: Thorsten Glaser \n" +"Language-Team: de \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "mksh als /bin/sh installieren?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Bash ist die Standard-Shell (/bin/sh) auf einem Debian-System. Da die Debian-" +"Richtlinien allerdings von allen Shellskripten, die /bin/sh benutzen, POSIX-" +"Kompatibilität verlangt, kann für /bin/sh jede POSIX-kompatible Shell " +"benutzt werden. Da mksh POSIX-kompatibel ist, kann sie als /bin/sh " +"verwendet werden. Weil mksh schneller und kompakter als bash ist, möchten Sie " +"sie vielleicht verwenden." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "Kann mksh nicht als /bin/sh installieren!" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "Weil dash schon konfiguriert wurde, sich als /bin/sh zu installieren, " +"kann mksh nicht als /bin/sh installiert werden. Bitte benutzen Sie " +"\"dpkg-reconfigure dash\", um dash einzustellen, sich nicht als /bin/sh zu " +"instalieren, dann \"dpkg-reconfigure mksh\", um mksh dort zu installieren." --- mksh-33.4.orig/debian/po/sv.po +++ mksh-33.4/debian/po/sv.po @@ -0,0 +1,62 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# , fuzzy +# +# +msgid "" +msgstr "" +"Project-Id-Version: mksh 0.5.2-7\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2005-09-27 15:43-0700\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Installera mksh som /bin/sh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +#, fuzzy +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Bash r standard fr /bin/sh p ett Debian-system. Eftersom vr policy " +"krver att alla script som anvnder /bin/sh mste vara POSIX-kompatibla, kan " +"vilket POSIX-kompatibelt skal som helst vara /bin/sh. D mksh r POSIX-" +"kompatibelt kan det anvndas som /bin/sh. Du kanske nskar detta eftersom " +"mksh r snabbare och mindre n bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/cs.po +++ mksh-33.4/debian/po/cs.po @@ -0,0 +1,51 @@ +# Czech translation of mksh templates +# +msgid "" +msgstr "" +"Project-Id-Version: mksh\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2007-01-29 08:45+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Nainstalovat mksh jako /bin/sh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"V Debianu je jako výchozí /bin/sh nastaven bash. Protože však naše politika " +"vyžaduje, aby byly všechny shellové skripty využívající /bin/sh kompatibilní " +"s POSIXem, můžete jako /bin/sh použít jakýkoliv shell splňující normu POSIX. " +"Protože mksh tuto normu splňuje, může být použit jako /bin/sh, což stojí za " +"vyzkoušení, protože mksh je rychlejší a menší než bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/ja.po +++ mksh-33.4/debian/po/ja.po @@ -0,0 +1,63 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: mksh\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2004-04-30 21:51+1000\n" +"Last-Translator: Kenshi Muto \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=EUC-JP\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "mksh /bin/sh Ȥƥ󥹥ȡ뤷ޤ?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +#, fuzzy +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Debian ƥǤ bash ǥեȤ /bin/sh ǤDebian Υݥ" +"ˤäơ/bin/sh ѤƤΥ륹ץȤ POSIX ǤʤФ" +"ʤᡢPOSIX ϤɤǤ /bin/sh Ȥʤ뤳ȤǤޤ" +"mksh POSIX ǤΤǡ/bin/sh ȤƻȤ ȤǤޤmksh bash " +"®ƾΤǡȻפ ⤷ޤ" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/templates.pot +++ mksh-33.4/debian/po/templates.pot @@ -0,0 +1,50 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/ru.po +++ mksh-33.4/debian/po/ru.po @@ -0,0 +1,70 @@ +# translation of mksh_32.1-1_ru.po to Russian +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# +# Ilgiz Kalmetev , 2003. +# Yuri Kozlov , 2007, 2008. +msgid "" +msgstr "" +"Project-Id-Version: mksh 32.1-1\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2008-02-23 18:25+0300\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Настроить символическую ссылку /bin/sh на mksh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"В системе Debian по умолчанию символическая ссылка /bin/sh указывает на " +"bash. Однако, так как политика Debian требует, чтобы все сценарии оболочки, " +"использующие /bin/sh, были совместимы с POSIX, то /bin/sh может указывать на " +"любую оболочку, совместимую с POSIX. Так как mksh совместим с POSIX, то /bin/" +"sh может указывать на него. Если сравнивать c bash, то основными " +"преимуществами mksh являются скорость и размер." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "Невозможно установить mksh как /bin/sh!" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" +"mksh невозможно установить как /bin/sh, так как для этого уже " +"используется dash. Запустите команду \"dpkg-reconfigure dash\", чтобы " +"указать не устанавливать dash как /bin/sh, а затем выполните " +"\"dpkg-reconfigure mksh\" для настройки mksh." --- mksh-33.4.orig/debian/po/nl.po +++ mksh-33.4/debian/po/nl.po @@ -0,0 +1,63 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: mksh 0.4.18\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2007-01-29 22:12+0100\n" +"Last-Translator: Tim Dijkstra \n" +"Language-Team: Debian Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "mksh als /bin/sh installeren?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Bash is de standaard /bin/sh op een Debian-systeem. Debian-beleid eist " +"echter dat alle shell-scripts die /bin/sh gebruiken moeten voldoen aan de " +"POSIX-standaard, dus elke shell die zich conformeert aan POSIX kan dienst " +"doen als /bin/sh. Omdat mksh zich conformeert aan POSIX, kan het dus " +"gebruikt worden als /bin/sh. Een reden om dat inderdaad te doen is dat mksh " +"sneller en kleiner is dan bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/gl.po +++ mksh-33.4/debian/po/gl.po @@ -0,0 +1,57 @@ +# Galician translation of mksh's debconf templates +# This file is distributed under the same license as the dash package. +# Jacobo Tarrio , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: mksh\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2007-10-24 22:34+0100\n" +"Last-Translator: Jacobo Tarrio \n" +"Language-Team: Galician \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "¿Instalar mksh coma /bin/sh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Bash é o /bin/sh por defecto nos sistemas Debian. Nembargantes, como a " +"normativa de Debian require que tódolos scripts que empreguen /bin/sh sexan " +"compatibles con POSIX, calquera shell que siga POSIX pode servir coma /bin/" +"sh. Xa que mksh cumpre con POSIX, pódese empregar coma /bin/sh. Pode ser " +"unha boa idea facelo, xa que mksh é máis rápido e máis pequeno que bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "Non se pode instalar mksh coma /bin/sh" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" +"Xa que dash xa está configurado para se instalar coma /bin/sh, non se pode " +"instalar mksh coma /bin/sh. Empregue \"dpkg-reconfigure dash\" para " +"configurar dash para non se instalar coma /bin/sh, e despois execute \"dpkg-" +"reconfigure mksh\" para instalar mksh aí." --- mksh-33.4.orig/debian/po/es.po +++ mksh-33.4/debian/po/es.po @@ -0,0 +1,51 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: mksh 0.4.18\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2006-12-08 23:49+0100\n" +"Last-Translator: Fernando Cerezal Lpez \n" +"Language-Team: Debian L10n Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Instalar mksh como /bin/sh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Bash es el intrprete de rdenes /bin/sh predeterminado de los sistemas " +"Debian. Sin embargo, dado que nuestras normas obligan a que todos los " +"scripts para el intrprete de rdenes se atengan a las normas POSIX, " +"cualquier intrprete compatible con POSIX puede servir como /bin/sh. Puesto " +"que mksh lo es, puede usarse como /bin/sh, con la ventaja de ser ms rpido " +"y pequeo que bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/da.po +++ mksh-33.4/debian/po/da.po @@ -0,0 +1,54 @@ +# translation of mksh_0.4.21_templates.po to Danish +# +# Claus Hindsgaul , 2004. +# Claus Hindsgaul , 2006. +msgid "" +msgstr "" +"Project-Id-Version: mksh_0.4.21_templates\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2006-11-15 15:01+0100\n" +"Last-Translator: Claus Hindsgaul \n" +"Language-Team: Danish\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Installér mksh som /bin/sh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Bash er som udgangspunkt /bin/sh på et Debiansystem. Men da det er Debians " +"politik, at skalskripter, der benytter /bin/sh skal overholde POSIX-" +"standarden, vil enhver skal, der overholder POSIX kunne fungere som /bin/sh. " +"Siden mksh er overholder POSIX, kan den benyttes som /bin/sh. Det kan være " +"en fordel at gøre dette, fordi mksh er hurtigere og mindre end bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/it.po +++ mksh-33.4/debian/po/it.po @@ -0,0 +1,54 @@ +# mksh -- Italian debconf messages +# This file is distributed under the same license as the dash package. +# Andrea Bolognani , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: mksh 0.5.3\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2006-03-01 14:28+0200\n" +"Last-Translator: Andrea Bolognani \n" +"Language-Team: Italian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Installare mksh come /bin/sh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +#, fuzzy +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Bash la shell di default in un sistema Debian. Tuttavia, dal momento che " +"la nostra policy richiede che gli script della shell che usano /bin/sh siano " +"conformi a POSIX, ogni shell che sia conforme a POSIX pu essere usata come /" +"bin/sh. Siccome mksh conforme a POSIX, pu essere usata come /bin/sh. " +"Potresti volerla usare perch pi piccola e veloce di bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/vi.po +++ mksh-33.4/debian/po/vi.po @@ -0,0 +1,55 @@ +# Vietnamese translation for mksh. +# Copyright © 2007 Free Software Foundation, Inc. +# Clytie Siddall , 2005-7. +# +msgid "" +msgstr "" +"Project-Id-Version: mksh 0.5.2-5\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2007-01-30 18:27+1030\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Cài đặt trình mksh chạy « /bin/sh » không?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Trình bash là trình bao (« /bin/sh ») mặc định trong hệ thống Debian. Tuy " +"nhiên, vì chính sách Debian cần thiết mọi văn lệnh trình bao có dùng « /bin/" +"sh » chỉ tuân theo POSIX, bất cứ trình bao nào cũng tuân theo POSIX có thể " +"chạy « /bin/sh ». Vì trình mksh có phải tuân theo POSIX, bạn có thể sử dụng " +"nó là « /bin/sh ». Bạn có lẽ sẽ muốn làm như thế vì trình mksh chạy nhanh " +"hơn, là chương trình nhỏ hơn trình bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" --- mksh-33.4.orig/debian/po/fr.po +++ mksh-33.4/debian/po/fr.po @@ -0,0 +1,62 @@ +# Translation of mksh debconf templates to French +# Copyright (C) 2007 Christian Perrier +# This file is distributed under the same license as the mksh package. +# +# Cyril Brulebois , 2007. +# Denis Barbier , 2003-2006. +# Christian Perrier , 2008. +msgid "" +msgstr "" +"Project-Id-Version: mksh\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2008-03-06 19:31+0100\n" +"Last-Translator: Christian Perrier \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Faut-il mettre en place un lien de /bin/sh vers mksh ?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"Par défaut, sur un système Debian, /bin/sh est un lien vers bash. Cependant, " +"comme la charte Debian impose que tous les scripts utilisant /bin/sh soient " +"conformes à la norme POSIX, /bin/sh peut être n'importe quel interpréteur de " +"commandes (« shell ») conforme à cette norme, tel que mksh. Vous pouvez " +"vouloir choisir cette option puisque mksh est plus rapide et plus petit que " +"bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "Échec de la mise en place d'un lien de /bin/sh vers mksh" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" +"Comme dash est déjà configuré pour s'installer en tant que /bin/sh, mksh ne " +"peut l'être également. Veuillez utiliser « dpkg-reconfigure dash » pour " +"changer votre choix puis « dpkg-reconfigure mksh » pour établir mksh en tant " +"qu'interpréteur de commandes par défaut." --- mksh-33.4.orig/debian/po/POTFILES.in +++ mksh-33.4/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] mksh.templates --- mksh-33.4.orig/debian/po/pt.po +++ mksh-33.4/debian/po/pt.po @@ -0,0 +1,60 @@ +# translation of mksh to Portuguese +# +# Bruno Rodrigues , 2003-2007. +# Américo Monteiro , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: mksh 30.1-1\n" +"Report-Msgid-Bugs-To: tg@mirbsd.de\n" +"POT-Creation-Date: 2007-06-10 07:47+0000\n" +"PO-Revision-Date: 2007-09-26 22:38+0100\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "Install mksh as /bin/sh?" +msgstr "Instalar o mksh como /bin/sh?" + +#. Type: boolean +#. Description +#: ../mksh.templates:1001 +msgid "" +"Bash is the default /bin/sh on a Debian system. However, since the Debian " +"policy requires all shell scripts using /bin/sh to be POSIX compliant, any " +"shell that conforms to POSIX can serve as /bin/sh. Since mksh is POSIX " +"compliant, it can be used as /bin/sh. You may wish to do this because mksh " +"is faster and smaller than bash." +msgstr "" +"O bash é o /bin/sh por omissão num sistema Debian. No entanto, como a " +"política Debian requer que todos os scripts shell que usam /bin/sh sejam " +"compatíveis com POSIX, qualquer shell que seja conforme o POSIX pode servir " +"como /bin/sh. Como o mksh é compatível com POSIX, pode ser usado como " +"/bin/sh. Você pode desejar fazer isto porque o mksh é mais rápido e menor " +"que o bash." + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "Cannot install mksh as /bin/sh!" +msgstr "Não se pode instalar mksh como /bin/sh!" + +#. Type: error +#. Description +#: ../mksh.templates:2001 +msgid "" +"Because dash has already been configured to be installed as /bin/sh, mksh " +"cannot be installed as /bin/sh. Use \"dpkg-reconfigure dash\" to change dash " +"to not install as /bin/sh, then \"dpkg-reconfigure mksh\" to install mksh " +"there." +msgstr "" +"Porque o dash já foi configurado para ser instalado como /bin/sh, o mksh " +"não pode ser instalado como /bin/sh. Use \"dpkg-reconfigure dash\" para " +"alterar o dash a não se instalar como /bin/sh, depois \"dpkg-reconfigure " +"mksh\" para instalar o mksh lá."