update mksh to R29c
authorFelix Fietkau <nbd@openwrt.org>
Tue, 24 Apr 2007 12:29:17 +0000 (12:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 24 Apr 2007 12:29:17 +0000 (12:29 +0000)
SVN-Revision: 7044

utils/mksh/Makefile
utils/mksh/patches/100-dot_mkshrc

index 5a0d64204a11cc33a2c670d1cd94bdc3700b01dd..2d0ad6e18f42c35d70030d15deab6f4202da1078 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mksh
-PKG_VERSION:=R29b
+PKG_VERSION:=R29c
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).cpio.gz
 PKG_SOURCE_URL:=http://www.mirbsd.org/MirOS/dist/mir/mksh
-PKG_MD5SUM:=a21850403bd30bab461f2fc9f9b803b8
+PKG_MD5SUM:=183957bfcbf7ca212843d6ca85be2fce
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
 
index a3f6b9760177ac1fa4c123a434841aee6eb87742..14494664e3064f86f6cd0c085a8a0103308fa59c 100644 (file)
@@ -1,19 +1,21 @@
---- mksh.old/dot.mkshrc        2007-03-04 06:21:11.000000000 +0000
-+++ mksh.dev/dot.mkshrc        2007-03-05 22:11:49.000000000 +0000
+diff -ur mksh.old/dot.mkshrc mksh.dev/dot.mkshrc
+--- mksh.old/dot.mkshrc        2007-04-24 14:21:53.725182064 +0200
++++ mksh.dev/dot.mkshrc        2007-04-24 14:27:50.157996040 +0200
 @@ -1,6 +1,6 @@
- # $MirOS: src/bin/mksh/dot.mkshrc,v 1.8 2007/03/04 06:20:48 tg Exp $
--: ${EDITOR:=/bin/ed} ${HOSTNAME:=$(hostname -s 2>/dev/null || hostname)}
-+: ${EDITOR:=/bin/ed} ${HOSTNAME:=$(</proc/sys/kernel/hostname)}
- PS1='$(((rv=$?)) && print $rv\|)${USER:=$(id -un)}@${HOSTNAME:=nil}:$(
-       local pfx=~ wd=${PWD:-$(pwd)}
-       [[ ${wd#$pfx} = $wd || $pfx = ?(/) ]] || wd=\~${wd#$pfx}
-@@ -21,7 +21,7 @@ export EDITOR HOSTNAME MKSH=$(whence -p 
+ : ${EDITOR:=/bin/ed} ${TERM:=vt100}
+-[[ ${HOSTNAME:=$(ulimit -c 0; hostname -s 2>/dev/null)} = \
+-    @(localhost|*([   ])) ]] && HOSTNAME=$(ulimit -c 0; hostname 2>/dev/null)
++[[ ${HOSTNAME:=$(ulimit -c 0; cat /proc/sys/kernel/hostname)} = \
++    @(localhost|*([   ])) ]] && HOSTNAME=$(ulimit -c 0; cat /proc/sys/kernel/hostname)
+ if [[ $(ulimit -c 0; id -u 2>/dev/null) -eq 0 ]]; then
+       PS1='# '
+ else
+@@ -25,7 +25,7 @@
  alias l='/bin/ls -F'
  alias la='l -a'
  alias ll='l -l'
 -alias lo='la -lo'
 +alias lo='la -l'
- [ -x /usr/bin/hd ] || eval alias hd="'hexdump -e '\\''\"%08.8_ax  \" 8/1" \
-       '"%02X " " - " 8/1 "%02X "'"'\\'' -e '\\''"'"  |" "%_p"'"'\\''" \
-       "-e '\\''"'"|\n"'"'\\'' '"
+ whence -p rot13 >/dev/null || alias rot13='tr [A-Za-z] [N-ZA-Mn-za-m]'
+ whence -p hd >/dev/null || function hd {
+       hexdump -e '"%08.8_ax  " 8/1 "%02X " " - " 8/1 "%02X "' \