1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Build from source now that it is available starting with version

2001-01-01.0000.

PR:		25180
Submitted by:	maintainer
This commit is contained in:
Steve Price 2001-02-26 05:14:17 +00:00
parent 5c63dc3071
commit 0ca92406d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38771
12 changed files with 183 additions and 50 deletions

View File

@ -1,51 +1,41 @@
# New ports collection makefile for: ksh93
# Date created: 1999-10-24
# Whom: Christian Weisgerber <naddy@mips.rhein-neckar.de>
# New ports collection makefile for: ksh93
# Date created: 2000-12-26
# Whom: Christian Weisgerber <naddy@mips.inka.de>
#
# $FreeBSD$
#
# ast-base-99 is linked dynamically for BSD/OS and will not work
PORTNAME= ksh
PORTVERSION= 19931228
CATEGORIES= shells
# Users must register with AT&T before downloading tarball.
# You can use the following URL to register/download:
# http://www.research.att.com/cgi-bin/access.cgi/as/vt/ext-software/www-ne-license.cgi?form.reuse.binary
#MASTER_SITES= http://www.research.att.com/sw/tools/reuse/
DISTNAME= ast-base-98.bsd.i386
EXTRACT_SUFX= .tgz
PORTNAME= ksh93
PORTVERSION= ${VERSION:S/-//g}
VERSION= 2001-01-01.0000
CATEGORIES= shells
MASTER_SITES= http://www.research.att.com/~gsf/download/tgz/
MAINTAINER= naddy@mips.inka.de
MAINTAINER= Christian Weisgerber <naddy@mips.inka.de>
ONLY_FOR_ARCHS= i386
RESTRICTED= "Requires user to register with AT&T."
RESTRICTED= "Impenetrable license"
IS_INTERACTIVE= yes # must acknowledge license
DISTNAME= ${PORTNAME}-${VERSION}
DISTFILES= INIT.${VERSION}.tgz ast-ksh.${VERSION}.tgz
EXTRACT_ONLY= INIT.${VERSION}.tgz
NO_BUILD= yes
NO_WRKSUBDIR= yes
MAN1= ksh93.1
STRIP=
do-fetch:
@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
${ECHO} ""; \
${ECHO} "Please read http://www.research.att.com/sw/tools/reuse/"; \
${ECHO} "for details of how to obtain the ksh93 binary. Put the"; \
${ECHO} "file ${DISTFILES} in the directory"; \
${ECHO} "${DISTDIR} and run make again."; \
${ECHO} ""; \
exit 1; \
fi
MAN1= ksh93.1
post-extract:
@${MKDIR} ${WRKSRC}/lib/package/tgz
@${LN} -s ${DISTDIR}/ast-ksh.${VERSION}.tgz ${WRKSRC}/lib/package/tgz/
@cd ${WRKSRC}; bin/package read
do-build:
@cd ${WRKSRC}; bin/package make \
CC='${CC}' CCFLAGS='${CFLAGS}' LDFLAGS=-static
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/ksh ${PREFIX}/bin/ksh93
${INSTALL_MAN} ${WRKSRC}/man/man1/sh.1 ${PREFIX}/man/man1/ksh93.1
post-install:
@${ECHO_MSG} "Updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/ksh93 /etc/shells.bak; \
${ECHO} ${PREFIX}/bin/ksh93) > /etc/shells
@${RM} /etc/shells.bak
${INSTALL_PROGRAM} ${WRKSRC}/arch/freebsd.${ARCH}/bin/ksh \
${PREFIX}/bin/ksh93
${INSTALL_MAN} ${WRKSRC}/arch/freebsd.${ARCH}/man/man1/sh.1 \
${PREFIX}/man/man1/ksh93.1
.include <bsd.port.mk>

View File

@ -1 +1,2 @@
MD5 (ast-base-98.bsd.i386.tgz) = 17f5400480af4b0d6ae1835324e7d6ab
MD5 (INIT.2001-01-01.0000.tgz) = 799b061ff85c22e7efc9a3b9e610e5c6
MD5 (ast-ksh.2001-01-01.0000.tgz) = e823dfd2b97a85e7b6b06612a06711a7

View File

@ -0,0 +1,12 @@
$FreeBSD$
--- src/cmd/INIT/mamake.c.orig Fri Sep 22 00:38:32 2000
+++ src/cmd/INIT/mamake.c Thu Dec 28 18:26:19 2000
@@ -98,6 +98,8 @@
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/types.h>

View File

@ -0,0 +1,52 @@
$FreeBSD$
--- src/cmd/INIT/proto.c.orig Thu Oct 26 16:00:44 2000
+++ src/cmd/INIT/proto.c Thu Dec 28 18:26:19 2000
@@ -1531,6 +1531,7 @@
+extern __MANGLE__ __V_* realloc __PROTO__((__V_*, int));
extern __MANGLE__ __V_* calloc __PROTO__((int, int));
extern __MANGLE__ char* ctime __PROTO__((time_t*));
extern __MANGLE__ void free __PROTO__((__V_*));
@@ -3965,7 +3966,7 @@
if ((n = ip - bp - 1) > 0)
{
ip = bp;
- do switch( n) { default : memcpy( op, ip, n); op += n; ip += n; break; case 7 : * op++ = * ip++; case 6 : * op++ = * ip++; case 5 : * op++ = * ip++; case 4 : * op++ = * ip++; case 3 : * op++ = * ip++; case 2 : * op++ = * ip++; case 1 : * op++ = * ip++; case 0 : break; } while (0);
+ do switch( n) { default : memcopy( op, ip, n); op += n; ip += n; break; case 7 : * op++ = * ip++; case 6 : * op++ = * ip++; case 5 : * op++ = * ip++; case 4 : * op++ = * ip++; case 3 : * op++ = * ip++; case 2 : * op++ = * ip++; case 1 : * op++ = * ip++; case 0 : break; } while (0);
ip++;
}
state = ~state;
@@ -5835,11 +5836,11 @@
pppclose(b);
return flags | ((1<<13)<<0);
}
- strcpy(buf, copy);
+ strcopy(buf, copy);
e = buf + n;
if (*file != '/')
*e++ = '/';
- strcpy(e, file);
+ strcopy(e, file);
if ((fd = creat(buf, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) < 0)
{
for (e = buf; *e == '/'; e++);
@@ -5882,7 +5883,7 @@
if (file && (flags & ((1<<13)<<1)))
{
*e = '_';
- strcpy(b, file);
+ strcopy(b, file);
*e = x;
if (replace(b, file, !(flags & (1<<0))))
proto_error(b, 2, "cannot rename to", file);
@@ -5977,7 +5978,7 @@
else
{
*op++ = '\n';
- memcpy(op, b, n + 1);
+ memcopy(op, b, n + 1);
op += n;
}
break;

View File

@ -0,0 +1,31 @@
$FreeBSD$
--- src/cmd/ksh93/Mamfile.orig Sat Feb 17 23:27:39 2001
+++ src/cmd/ksh93/Mamfile Sat Feb 17 23:28:35 2001
@@ -1117,12 +1117,12 @@
done sh/shcomp.c
prev sh/shcomp.c
setv _BLD_shell -U_BLD_shell
-exec - ${CC} -O -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DSH_DICT='(void*)e_dict' -DKSHELL -D_PACKAGE_ast -DSHOPT_SUID_EXEC -DSHOPT_VSH -DSHOPT_ESH -c sh/shcomp.c
+exec - ${CC} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DSH_DICT='(void*)e_dict' -DKSHELL -D_PACKAGE_ast -DSHOPT_SUID_EXEC -DSHOPT_VSH -DSHOPT_ESH -c sh/shcomp.c
done shcomp.o generated
prev libshell.a archive
setv mam_libshell `sed -e 's,-lshell,libshell.a,' shell.req`
prev ${mam_libdl}
-exec - ${CC} -O ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${PACKAGE_ast_LIB}} -o shcomp shcomp.o ${mam_libshell} ${mam_libm} ${mam_cc_static} ${mam_cc_dynamic} ${mam_libast}
+exec - ${CC} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${PACKAGE_ast_LIB}} -o shcomp shcomp.o ${mam_libshell} ${mam_libm} ${mam_cc_static} ${mam_cc_dynamic} ${mam_libast}
done shcomp generated
make sh/suid_exec.c
prev ${PACKAGE_ast_INCLUDE}/error.h implicit
@@ -1139,10 +1139,10 @@
make suid_exec.o
prev sh/suid_exec.c
prev sh/suid_exec.c
-exec - ${CC} -O -I. -I${PACKAGE_ast_INCLUDE} -D_PACKAGE_ast -c sh/suid_exec.c
+exec - ${CC} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -D_PACKAGE_ast -c sh/suid_exec.c
done suid_exec.o generated
prev ${mam_libdl}
-exec - ${CC} -O ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${PACKAGE_ast_LIB}} -o suid_exec suid_exec.o ${mam_cc_static} ${mam_libast} ${mam_cc_dynamic} ${mam_libm} ${mam_cc_static} ${mam_cc_dynamic} ${mam_libast}
+exec - ${CC} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${PACKAGE_ast_LIB}} -o suid_exec suid_exec.o ${mam_cc_static} ${mam_libast} ${mam_cc_dynamic} ${mam_libm} ${mam_cc_static} ${mam_cc_dynamic} ${mam_libast}
done suid_exec generated
make ${INSTALLROOT}/bin
exec - set -

View File

@ -1,5 +1,6 @@
--- man/man1/sh.1.orig Tue Apr 6 05:01:44 1999
+++ man/man1/sh.1 Wed Oct 20 19:39:36 1999
$FreeBSD$
--- src/cmd/ksh93/sh.1.orig Wed Dec 27 23:10:30 2000
+++ src/cmd/ksh93/sh.1 Wed Dec 27 23:10:44 2000
@@ -4,7 +4,7 @@
.\"
.\" @(#)sh.1 (research!dgk) 12/28/93

View File

@ -0,0 +1,21 @@
$FreeBSD$
--- src/lib/libast/features/limits.c.orig Tue Feb 9 15:23:43 1999
+++ src/lib/libast/features/limits.c Thu Dec 28 19:35:20 2000
@@ -122,6 +122,7 @@
while (uc >>= 1) val++;
#endif
printf("#define CHAR_BIT %lu\n", val);
+#undef MB_LEN_MAX
#ifdef MB_LEN_MAX
val = MB_LEN_MAX;
printf("#undef MB_LEN_MAX\n");
@@ -392,6 +393,9 @@
#endif
#ifdef _LIMITS_H_
printf("#define _LIMITS_H_\n");
+#endif
+#ifdef _MACHINE_LIMITS_H
+ printf("#define _MACHINE_LIMITS_H_");
#endif
#ifdef __LIMITS_H
printf("#define __LIMITS_H\n");

View File

@ -0,0 +1,9 @@
$FreeBSD$
--- src/lib/libast/features/sfio.orig Thu Dec 28 02:40:45 2000
+++ src/lib/libast/features/sfio Thu Dec 28 02:40:52 2000
@@ -1,4 +1,4 @@
-hdr float,floatingpoint,math,values
+hdr float,floatingpoint,math
sys filio,ioctl
lib qfrexp,qldexp

View File

@ -0,0 +1,18 @@
$FreeBSD$
--- src/lib/libast/vmalloc/vmhdr.h.orig Thu Dec 28 00:07:39 2000
+++ src/lib/libast/vmalloc/vmhdr.h Thu Dec 28 00:08:18 2000
@@ -56,12 +56,12 @@
#include <ast_common.h>
#include "FEATURE/vmalloc"
+#endif /*_PACKAGE_ast*/
+
#if !_UWIN
#define _npt_getpagesize 1
#define _npt_sbrk 1
#endif
-
-#endif /*_PACKAGE_ast*/
#undef free
#undef malloc

View File

@ -1 +1 @@
The official AT&T release of KornShell 93
Official AT&T release of KornShell 93

View File

@ -1,16 +1,13 @@
KSH-93 is the most recent version of the KornShell Language described
in "The KornShell Command and Programming Language," by Morris
Bolsky and David Korn of AT&T Bell Laboratories. The KornShell is
Bolsky and David Korn of AT&T Bell Laboratories. The KornShell is
a shell programming language, which is upward compatible with "sh"
(the Bourne Shell), and is intended to conform to the IEEE P1003.2/ISO
9945.2 Shell and Utilities standard. KSH-93 provides an enhanced
9945.2 Shell and Utilities standard. KSH-93 provides an enhanced
programming environment in addition to the major command-entry
features of the BSD shell "csh". With KSH-93, medium-sized programming
features of the BSD shell "csh". With KSH-93, medium-sized programming
tasks can be performed at shell-level without a significant loss
in performance. In addition, "sh" scripts can be run on KSH-93
in performance. In addition, "sh" scripts can be run on KSH-93
without modification.
WWW: http://www.kornshell.com/
- Christian Weisgerber
naddy@mips.inka.de

View File

@ -1,3 +1,4 @@
@comment $FreeBSD$
bin/ksh93
@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells