Subject: [resend] please test and commit: upgrade for pkgsrc/shells/mksh
To: None <pkgsrc-users@netbsd.org>
From: Thorsten Glaser <tg@mirbsd.de>
List: pkgsrc-users
Date: 03/07/2007 02:39:40
Hello everyone,
here's an (untested) upgrade for mksh, which I am the upstream author of.
Feel free to point out =E2=80=9Cobvious=E2=80=9D 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 =E2=80=9Csane=E2=80=
=9D *nixen).
Index: shells/mksh/DESCR
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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=0915 Sep 2006 13:00:37 -0000=091.1.1.1
+++ shells/mksh/DESCR=095 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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/shells/mksh/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- shells/mksh/Makefile=0922 Feb 2007 19:01:24 -0000=091.2
+++ shells/mksh/Makefile=095 Mar 2007 22:18:11 -0000
@@ -1,9 +1,10 @@
# $NetBSD: Makefile,v 1.2 2007/02/22 19:01:24 wiz Exp $
=20
-DISTNAME=3D=09=09=09mksh-R28
-PKGNAME=3D=09=09=09mksh-28
+DISTNAME=3D=09=09=09mksh-R29
+PKGNAME=3D=09=09=09mksh-29
CATEGORIES=3D=09=09=09shells
-MASTER_SITES=3D=09=09=09http://www.mirbsd.org/MirOS/dist/mir/mksh/
+MASTER_SITES=3D=09=09=09http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
+=09=09=09=09http://pub.allbsd.org/MirOS/dist/mir/mksh/
EXTRACT_SUFX=3D=09=09=09.cpio.gz
=20
MAINTAINER=3D=09=09=09pkgsrc-users@NetBSD.org
@@ -24,8 +25,10 @@ PKG_SUGGESTED_OPTIONS=3D=09=09static
=20
.include "../../mk/bsd.options.mk"
=20
-.if !empty(PKG_OPTIONS:Mstatic)
-LDFLAGS+=3D=09=09=09-static
+BUILD_PARMS=3D=09=09=09-r=09# don't call nRoff
+
+.if empty(PKG_OPTIONS:Mstatic)
+BUILD_PARMS+=3D=09=09=09-d=09# build Dynamically
.endif
=20
LIBS+=3D=09=09=09=09${LDADD}
@@ -42,8 +45,8 @@ do-build:
=20
do-install:
=09${INSTALL_PROGRAM} ${WRKBUILD}/mksh ${PREFIX}/bin/mksh
-=09${INSTALL_MAN} ${WRKSRC}/mksh.1 ${PREFIX}/${PKGMANDIR}/man1
-=09${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${PREFIX}/share/examples/mksh
+=09${INSTALL_MAN} ${WRKSRC}/mksh.1 ${PREFIX}/${PKGMANDIR}/man1/
+=09${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${PREFIX}/share/examples/mksh/
=20
#USE_TOOLS+=3D=09=09=09ed:test perl:test
#do-test:
Index: shells/mksh/distinfo
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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=0915 Sep 2006 13:00:37 -0000=091.1.1.1
+++ shells/mksh/distinfo=095 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 $
=20
-SHA1 (mksh-R28.cpio.gz) =3D 857c03be697434e36cc1663f2d1657c1eff3ae6c
-RMD160 (mksh-R28.cpio.gz) =3D 511926e621b73be23e0ae48fe1c09c2e1bfa7500
-Size (mksh-R28.cpio.gz) =3D 230291 bytes
+MD5 (mksh-R29.cpio.gz) =3D 77d6eba538d68d957bb97065f2b4d895
+RMD160 (mksh-R29.cpio.gz) =3D a84319c9407f7a36861b580e4196b0e7787c7e86
+SHA1 (mksh-R29.cpio.gz) =3D 314868ec2e5e9fd0f16d478e6d91a23a47bd5e7c
+Size (mksh-R29.cpio.gz) =3D 237759 bytes
+TIGER (mksh-R29.cpio.gz) =3D 27733935f8407d2a396460056a6045d441b5532cdab44=
e40
bye,
//mirabile
--=20
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 the=
m.
If you don't believe in God, just consider God as Nature if you won't deny
existence.=09=09-- Coywolf Qi Hunt