From 5002a3e3898338e6ba3226aa5df84185ccb529fc Mon Sep 17 00:00:00 2001
From: Ypnose <linuxien@legtux.org>
Date: Mon, 20 Apr 2015 12:26:43 +0200
Subject: [PATCH] mksh: update to R50f

---
 srcpkgs/mksh/files/TaC-mksh.txt                   | 15 +++++----------
 srcpkgs/mksh/patches/fix-manpage-for-mandoc.patch |  4 ++--
 srcpkgs/mksh/template                             |  8 ++++----
 3 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/srcpkgs/mksh/files/TaC-mksh.txt b/srcpkgs/mksh/files/TaC-mksh.txt
index 8ba4e1f3e6b..1322e4545c2 100644
--- a/srcpkgs/mksh/files/TaC-mksh.txt
+++ b/srcpkgs/mksh/files/TaC-mksh.txt
@@ -12,7 +12,7 @@ if any are found. We don't think so though.)
 All paths are relative to The MirOS Project's CVS repository.
 
 
-The following files form The MirBSD Korn Shell R49:
+The following files form The MirBSD Korn Shell R50j-current:
 - build system
   * mksh/Build.sh
 - testsuite driver
@@ -22,7 +22,6 @@ The following files form The MirBSD Korn Shell R49:
 - configuration with/and code examples
   * mksh/dot.mkshrc
   * contrib/hosted/tg/assockit.ksh
-  * contrib/hosted/tg/deb/mksh/debian/.mkshrc
   * contrib/hosted/tg/uhr
 - documentation
   * mksh/lksh.1
@@ -51,8 +50,6 @@ The following files form The MirBSD Korn Shell R49:
   * mksh/var_spec.h
 - upstream provided packaging
   * mksh/mksh.ico (application icon resource)
-  * contrib/hosted/tg/deb/mksh/debian/** (Debian)
-    (except "printf.c" and "uhr")
   * mksh/Makefile (MirBSD only, not part of mksh)
   * ports/shells/mksh/DEINSTALL
   * ports/shells/mksh/DESCR (official)
@@ -71,10 +68,8 @@ The following files form The MirBSD Korn Shell R49:
   * www/src/mksh_old.hts (supplemental webpage)
 
 All of these files are covered by The MirOS Licence (Appendix A) ex-
-cept the upstream provided packaging, some of which were copied from
-other places (specifically some of the Debian packaging) and most of
-which do not require a copyright licence. Appendix D lists the terms
-for the application icon resource.
+cept the application icon resource, the terms for that are listed in
+Appendix D.
 
 The creator of mksh acknowledges the contributions of several people
 to the Public Domain Korn Shell as well as suggestions and work from
@@ -126,7 +121,7 @@ Appendix A - The MirOS Licence (OSI approved)
 
 The MirBSD Korn Shell (mksh) is
 Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-	      2011, 2012, 2013, 2014
+	      2011, 2012, 2013, 2014, 2015
 	Thorsten "mirabilos" Glaser <tg@mirbsd.org>
 All rights reserved.
 
@@ -245,4 +240,4 @@ possible, the text shown above is to be included.
 
 
 __________________________________________________________________
-$MirOS: www/files/TaC-mksh.txt,v 1.20 2014/01/11 19:49:55 tg Exp $
+$MirOS: www/files/TaC-mksh.txt,v 1.23 2015/01/02 13:54:22 tg Exp $
diff --git a/srcpkgs/mksh/patches/fix-manpage-for-mandoc.patch b/srcpkgs/mksh/patches/fix-manpage-for-mandoc.patch
index 62c7356281b..398ea8781fd 100644
--- a/srcpkgs/mksh/patches/fix-manpage-for-mandoc.patch
+++ b/srcpkgs/mksh/patches/fix-manpage-for-mandoc.patch
@@ -44,7 +44,7 @@
 -.\" with -mandoc, it might implement .Mx itself, but we want to
 -.\" use our own definition. And .Dd must come *first*, always.
 -.\"
--.Dd $Mdocdate: March 1 2015 $
+-.Dd $Mdocdate: April 12 2015 $
 -.\"
 -.\" Check which macro package we use, and do other -mdoc setup.
 -.\"
@@ -117,7 +117,7 @@
 -..
 -.\}
 -.\"-
-+.Dd March 1 2015
++.Dd April 12 2015
  .Dt MKSH 1
  .Os MirBSD
  .Sh NAME
diff --git a/srcpkgs/mksh/template b/srcpkgs/mksh/template
index 0c6e18cf7cc..6dd32ce4884 100644
--- a/srcpkgs/mksh/template
+++ b/srcpkgs/mksh/template
@@ -1,7 +1,7 @@
 # Template file for 'mksh'
 pkgname=mksh
-version=R50e
-revision=3
+version=R50f
+revision=1
 wrksrc=mksh
 build_pie=yes
 register_shell="/bin/mksh"
@@ -9,8 +9,8 @@ short_desc="The MirBSD Korn Shell"
 maintainer="Ypnose <linuxienATlegtuxDOTorg>"
 homepage="https://www.mirbsd.org/mksh.htm"
 license="MirOS"
-distfiles="https://www.mirbsd.org/MirOS/dist/mir/mksh/$pkgname-$version.tgz"
-checksum=ad3c148769d08cf934a96be2837599ba9db355f38a8f49c7bc8876b80d2e08da
+distfiles="https://www.mirbsd.org/MirOS/dist/mir/${pkgname}/${pkgname}-${version}.tgz"
+checksum=74e051ce92ece9555d91505b956572f64668fc88c5ccabee742099e7f29a2bcb
 
 build_options="static"