summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2008-11-04 23:10:06 +0000
committerWesley Shields <wxs@FreeBSD.org>2008-11-04 23:10:06 +0000
commit45602fcdefb202a73c5c21c92eab38ac3bede0ec (patch)
treea0415477140ed21a5502d02f6638dfdba2c45a05 /shells
parentFix ?= assignments for MASTER_SITES and COMMENT. (diff)
Welcome ksh93-devel to the tree.
PR: ports/128466 Submitted by: Joe Kelsey <joe@zircon.seattle.wa.us>
Notes
Notes: svn path=/head/; revision=222404
Diffstat (limited to 'shells')
-rw-r--r--shells/Makefile1
-rw-r--r--shells/ksh93-devel/Makefile89
-rw-r--r--shells/ksh93-devel/distinfo6
-rw-r--r--shells/ksh93-devel/pkg-descr15
-rw-r--r--shells/ksh93-devel/pkg-plist8
5 files changed, 119 insertions, 0 deletions
diff --git a/shells/Makefile b/shells/Makefile
index 7e04bc3b1f02..b11562274b81 100644
--- a/shells/Makefile
+++ b/shells/Makefile
@@ -18,6 +18,7 @@
SUBDIR += heirloom-sh
SUBDIR += ibsh
SUBDIR += ksh93
+ SUBDIR += ksh93-devel
SUBDIR += mksh
SUBDIR += nologinmsg
SUBDIR += osh
diff --git a/shells/ksh93-devel/Makefile b/shells/ksh93-devel/Makefile
new file mode 100644
index 000000000000..2fd9b0502e6e
--- /dev/null
+++ b/shells/ksh93-devel/Makefile
@@ -0,0 +1,89 @@
+# New ports collection makefile for: ksh93
+# Date created: 2008-10-29
+# Whom: Joe Kelsey <joe@zircon.seattle.wa.us>
+#
+# $FreeBSD$
+#
+# This port is intended to allow interested users to easily install the
+# beta versions of ksh93 releases.
+#
+# WARNING:
+#
+# No official FreeBSD support is provided to anything related to the
+# ksh93 beta testing process. Anyone who uses this port is personally
+# responsible for signing up and monitoring the ast-users and
+# ast-developers mailing lists and for personally reporting any ksh93
+# problems on thos mailing lists. If you try to report a ksh93-devel
+# problem on the FreeBSD bug list, I will ignore it completely.
+#
+# I will attempt to keep the date of the beta port more or less current,
+# but I will not make sure that the date is correct at all times.
+# Keeping the date current in a rapidly changing beta schedule will
+# depend on how quickly the various port updaters respond to correction
+# notices and whether or not the ports tree is even open. The best
+# thing to do is to personally monitor the ast-users and ast-developers
+# mailing lists and keep the date correct on your own copy of the port.
+#
+# Cannot have both ksh93 and ksh93-devel on the same machine.
+#
+# Visit http://www.research.att.com/sw/ for information about the
+# mailing lists.
+#
+
+PORTNAME= ksh93-devel
+PORTVERSION= ${VERSION:S/-//g}
+CATEGORIES= shells
+MASTER_SITES= http://www.research.att.com/sw/download/beta/
+DISTNAME= ${PORTNAME}-${VERSION}
+DISTFILES= INIT.${VERSION}.tgz ast-ksh.${VERSION}.tgz
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= joe@zircon.seattle.wa.us
+COMMENT= Official AT&T Beta release of KornShell 93
+
+CONFLICTS= ksh93-200*
+MANUAL_PACKAGE_BUILD=Doesn't build in tinderbox environment
+
+VERSION= 2008-10-31
+RESTRICTED= Source recipient must acknowledge license
+
+FETCH_ENV= HTTP_AUTH='basic:*:I accept www.opensource.org/licenses/cpl:.'
+FETCH_CMD= /usr/bin/fetch -Rr # see bin/76134
+NO_WRKSUBDIR= yes
+MAKE_ENV= CCFLAGS="${CFLAGS}"
+.if defined(WANT_STATIC)
+MAKE_ENV+= LDFLAGS=-static
+.endif
+
+MAN1= ksh93.1
+
+.include <bsd.port.pre.mk>
+
+INSTALLROOT= ${WRKSRC}/arch/freebsd${OSREL:R}.${ARCH}
+
+do-build:
+ @cd ${WRKSRC} && ${SETENV} -i ${MAKE_ENV} ${SH} bin/package make
+
+do-install:
+ ${INSTALL_PROGRAM} ${INSTALLROOT}/bin/ksh ${PREFIX}/bin/ksh93
+ ${INSTALL_MAN} ${INSTALLROOT}/man/man1/sh.1 \
+ ${MANPREFIX}/man/man1/ksh93.1
+ ${MKDIR} ${PREFIX}/share/examples/ksh93-devel
+.for fun in dirs popd pushd
+ ${INSTALL_SCRIPT} ${INSTALLROOT}/fun/${fun} \
+ ${PREFIX}/share/examples/ksh93-devel/
+.endfor
+
+post-install:
+ @${ECHO} "updating /etc/shells"
+ @${CP} /etc/shells /etc/shells.bak
+ @(${GREP} -v ${PREFIX}/bin/ksh93 /etc/shells.bak; \
+ ${ECHO_CMD} ${PREFIX}/bin/ksh93) >/etc/shells
+ @${RM} -f /etc/shells.bak
+
+test: build
+ @cd ${WRKSRC}/src/cmd/ksh93/tests && \
+ ${SETENV} SHELL=${INSTALLROOT}/bin/ksh \
+ ${INSTALLROOT}/bin/ksh shtests
+
+.include <bsd.port.post.mk>
diff --git a/shells/ksh93-devel/distinfo b/shells/ksh93-devel/distinfo
new file mode 100644
index 000000000000..a36ad149d89d
--- /dev/null
+++ b/shells/ksh93-devel/distinfo
@@ -0,0 +1,6 @@
+MD5 (ksh93-devel/INIT.2008-10-31.tgz) = bf4f4a8ef0d6b1fbd0930633241048fe
+SHA256 (ksh93-devel/INIT.2008-10-31.tgz) = 3b61ac0dce13a290cce379c83db9420fe9f2da979f1f1b4fab93370f0484e758
+SIZE (ksh93-devel/INIT.2008-10-31.tgz) = 350827
+MD5 (ksh93-devel/ast-ksh.2008-10-31.tgz) = 2332d5da307f5d01f105588b61d2c293
+SHA256 (ksh93-devel/ast-ksh.2008-10-31.tgz) = 9c7cdddfc1db18b50b95d8f9eeb40c4fb8bcb33bc2d53c5856398436cd56ecf8
+SIZE (ksh93-devel/ast-ksh.2008-10-31.tgz) = 1777421
diff --git a/shells/ksh93-devel/pkg-descr b/shells/ksh93-devel/pkg-descr
new file mode 100644
index 000000000000..03bb7355f273
--- /dev/null
+++ b/shells/ksh93-devel/pkg-descr
@@ -0,0 +1,15 @@
+KSH93-DEVEL is the beta-test version of the latest ksh93 package.
+
+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
+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
+programming environment in addition to the major command-entry
+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
+without modification.
+
+WWW: http://www.kornshell.com/
diff --git a/shells/ksh93-devel/pkg-plist b/shells/ksh93-devel/pkg-plist
new file mode 100644
index 000000000000..fa4cb8a5e905
--- /dev/null
+++ b/shells/ksh93-devel/pkg-plist
@@ -0,0 +1,8 @@
+@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; rm -f /etc/shells.bak
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
+%%EXAMPLESDIR%%/dirs
+%%EXAMPLESDIR%%/popd
+%%EXAMPLESDIR%%/pushd
+@dirrm %%EXAMPLESDIR%%