pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[resend] please test and commit: upgrade for pkgsrc/shells/mksh



Hello everyone,

here's an (untested) upgrade for mksh, which I am the upstream author of.
Feel free to point out “obvious” errors to me (MirPorts are a little dif-
ferent), test and commit. It's known to work with gcc on *BSD, GNU/Linux,
GNU/HURD, GNU/kFreeBSD, Darwin, Cygwin, Interix, Solaris. If you're inte-
rested in making it work on more platforms or with more compilers, please
contact me privately (I do not have access to other OSes, that's why, but
I'm actually interested in keeping it portable across “sane” *nixen).

Index: shells/mksh/DESCR
===================================================================
RCS file: /cvsroot/pkgsrc/shells/mksh/DESCR,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 DESCR
--- shells/mksh/DESCR   15 Sep 2006 13:00:37 -0000      1.1.1.1
+++ shells/mksh/DESCR   5 Mar 2007 22:18:11 -0000
@@ -2,4 +2,10 @@ mksh is the MirBSD enhanced version of t
 shell (pdksh), a bourne-compatible shell which is largely si-
 milar 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.
+shell good for interactive and especially script use.  It has
+UTF-8 support in the emacs command line editing mode; corres-
+ponds to OpenBSD 4.1-beta ksh (minus GNU bash-like $PS1); the
+build environment requirements are autoconfigured; throughout
+code simplification/bugfix/enhancement has been done.
+
+A sample ~/.mkshrc is included in ${PREFIX}/share/examples/mksh/
Index: shells/mksh/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/shells/mksh/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- shells/mksh/Makefile        22 Feb 2007 19:01:24 -0000      1.2
+++ shells/mksh/Makefile        5 Mar 2007 22:18:11 -0000
@@ -1,9 +1,10 @@
 # $NetBSD: Makefile,v 1.2 2007/02/22 19:01:24 wiz Exp $
 
-DISTNAME=                      mksh-R28
-PKGNAME=                       mksh-28
+DISTNAME=                      mksh-R29
+PKGNAME=                       mksh-29
 CATEGORIES=                    shells
-MASTER_SITES=                  http://www.mirbsd.org/MirOS/dist/mir/mksh/
+MASTER_SITES=                  http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
+                               http://pub.allbsd.org/MirOS/dist/mir/mksh/
 EXTRACT_SUFX=                  .cpio.gz
 
 MAINTAINER=                    pkgsrc-users%NetBSD.org@localhost
@@ -24,8 +25,10 @@ PKG_SUGGESTED_OPTIONS=               static
 
 .include "../../mk/bsd.options.mk"
 
-.if !empty(PKG_OPTIONS:Mstatic)
-LDFLAGS+=                      -static
+BUILD_PARMS=                   -r      # don't call nRoff
+
+.if empty(PKG_OPTIONS:Mstatic)
+BUILD_PARMS+=                  -d      # build Dynamically
 .endif
 
 LIBS+=                         ${LDADD}
@@ -42,8 +45,8 @@ do-build:
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKBUILD}/mksh ${PREFIX}/bin/mksh
-       ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${PREFIX}/share/examples/mksh
+       ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${PREFIX}/${PKGMANDIR}/man1/
+       ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${PREFIX}/share/examples/mksh/
 
 #USE_TOOLS+=                   ed:test perl:test
 #do-test:
Index: shells/mksh/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/shells/mksh/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- shells/mksh/distinfo        15 Sep 2006 13:00:37 -0000      1.1.1.1
+++ shells/mksh/distinfo        5 Mar 2007 22:18:11 -0000
@@ -1,5 +1,7 @@
 $NetBSD: distinfo,v 1.1.1.1 2006/09/15 13:00:37 joerg Exp $
 
-SHA1 (mksh-R28.cpio.gz) = 857c03be697434e36cc1663f2d1657c1eff3ae6c
-RMD160 (mksh-R28.cpio.gz) = 511926e621b73be23e0ae48fe1c09c2e1bfa7500
-Size (mksh-R28.cpio.gz) = 230291 bytes
+MD5 (mksh-R29.cpio.gz) = 77d6eba538d68d957bb97065f2b4d895
+RMD160 (mksh-R29.cpio.gz) = a84319c9407f7a36861b580e4196b0e7787c7e86
+SHA1 (mksh-R29.cpio.gz) = 314868ec2e5e9fd0f16d478e6d91a23a47bd5e7c
+Size (mksh-R29.cpio.gz) = 237759 bytes
+TIGER (mksh-R29.cpio.gz) = 27733935f8407d2a396460056a6045d441b5532cdab44e40


bye,
//mirabile
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.              -- Coywolf Qi Hunt




Home | Main Index | Thread Index | Old Index