summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorpin <pin@pkgsrc.org>2022-07-04 08:31:43 +0000
committerpin <pin@pkgsrc.org>2022-07-04 08:31:43 +0000
commitd3fd9cbd16b3c79e54b3dceff23acb699557e796 (patch)
tree7cb3db7927865df91022a3c8692882967449a80d /shells
parent9f40683b9ed8ec321725644c4c94b5e08e51014f (diff)
downloadpkgsrc-d3fd9cbd16b3c79e54b3dceff23acb699557e796.tar.gz
shells/etsh: import package
Packaged in wip by Paolo Vincenzo Olivo. Etsh provides two ports of the original /bin/sh from Version 6 (V6) UNIX (circa 1975). Etsh(1) is an enhanced, backward-compatible port of the V6 Thompson shell. Tsh(1) is an unenhanced port of the shell, and glob(1) is a port of its global command. Together, tsh and glob provide a user interface which is backward compatible with that provided by the V6 Thompson shell and global command, but without the obvious enhancements found in etsh. The original Thompson shell was principally written by Ken Thompson of Bell Labs. This package also includes the following shell utilities: - if(1) - conditional command (ported from V6 UNIX) - goto(1) - transfer command (ported from V6 UNIX) - fd2(1) - redirect from/to file descriptor 2
Diffstat (limited to 'shells')
-rw-r--r--shells/etsh/DESCR17
-rw-r--r--shells/etsh/Makefile39
-rw-r--r--shells/etsh/PLIST36
-rw-r--r--shells/etsh/distinfo5
4 files changed, 97 insertions, 0 deletions
diff --git a/shells/etsh/DESCR b/shells/etsh/DESCR
new file mode 100644
index 00000000000..0e282ed3fe9
--- /dev/null
+++ b/shells/etsh/DESCR
@@ -0,0 +1,17 @@
+Etsh provides two ports of the original /bin/sh from Version 6 (V6) UNIX
+(circa 1975).
+
+Etsh(1) is an enhanced, backward-compatible port of the V6 Thompson shell.
+Tsh(1) is an unenhanced port of the shell, and glob(1) is a port of its
+global command. Together, tsh and glob provide a user interface which
+is backward compatible with that provided by the V6 Thompson shell and
+global command, but without the obvious enhancements found in etsh.
+
+The original Thompson shell was principally written by Ken Thompson
+of Bell Labs.
+
+This package also includes the following shell utilities:
+
+- if(1) - conditional command (ported from V6 UNIX)
+- goto(1) - transfer command (ported from V6 UNIX)
+- fd2(1) - redirect from/to file descriptor 2
diff --git a/shells/etsh/Makefile b/shells/etsh/Makefile
new file mode 100644
index 00000000000..7f133a29e5f
--- /dev/null
+++ b/shells/etsh/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2022/07/04 08:31:43 pin Exp $
+
+DISTNAME= etsh-5.4.0
+CATEGORIES= shells
+MASTER_SITES= https://etsh.nl/src/etsh_5.4.0/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= vms@retrobsd.ddns.net
+HOMEPAGE= https://etsh.nl/
+COMMENT= Enhanced port of Thompson shell from V6 UNIX
+LICENSE= original-bsd AND modified-bsd AND 2-clause-bsd
+
+HAS_CONFIGURE= yes
+
+PKG_SHELL= bin/etsh
+
+EXPDIR:= ${PREFIX}/share/examples/etsh
+DOCDIR:= ${PREFIX}/share/doc/etsh
+
+MAKEFLAGS+= PREFIX=${PREFIX}
+MAKEFLAGS+= DESTDOCDIR=${DESTDIR}${DOCDIR}
+MAKEFLAGS+= DESTEXPDIR=${DESTDIR}${EXPDIR}
+MAKEFLAGS+= MANGRP:='' BINGRP:=''
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths+= libexec.etsh/etshdir
+SUBST_FILES.paths+= libexec.etsh/history
+SUBST_FILES.paths+= libexec.etsh/pev
+SUBST_SED.paths= -e 's|/usr/bin/env |${PREFIX}/bin/|'
+
+post-build:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} exp
+
+post-install:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} install-exp \
+ install-doc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/shells/etsh/PLIST b/shells/etsh/PLIST
new file mode 100644
index 00000000000..d73f9dc3d97
--- /dev/null
+++ b/shells/etsh/PLIST
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.1 2022/07/04 08:31:43 pin Exp $
+bin/etsh
+bin/tsh
+libexec/${PKGNAME}/README
+libexec/${PKGNAME}/etsh/README
+libexec/${PKGNAME}/etsh/SetP
+libexec/${PKGNAME}/etsh/SetTandCTTY
+libexec/${PKGNAME}/etsh/SetV
+libexec/${PKGNAME}/etsh/etshdir
+libexec/${PKGNAME}/etsh/history
+libexec/${PKGNAME}/etsh/history.help
+libexec/${PKGNAME}/etsh/pev
+libexec/${PKGNAME}/tsh/README
+libexec/${PKGNAME}/tsh/fd2
+libexec/${PKGNAME}/tsh/glob
+libexec/${PKGNAME}/tsh/goto
+libexec/${PKGNAME}/tsh/if
+man/man1/etsh.1
+man/man1/fd2.1
+man/man1/glob.1
+man/man1/goto.1
+man/man1/if.1
+man/man1/tsh.1
+share/doc/etsh/AUTHORS
+share/doc/etsh/DEDICATIONS
+share/doc/etsh/LICENSE
+share/doc/etsh/NOTES
+share/doc/etsh/PROJECT
+share/doc/etsh/README
+share/examples/etsh/.etsh.login
+share/examples/etsh/.etsh.logout
+share/examples/etsh/.etsh.prompt
+share/examples/etsh/.etshrc
+share/examples/etsh/etsh.etshrc
+share/examples/etsh/etsh.login
+share/examples/etsh/etsh.logout
diff --git a/shells/etsh/distinfo b/shells/etsh/distinfo
new file mode 100644
index 00000000000..6399b2aa8f3
--- /dev/null
+++ b/shells/etsh/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/07/04 08:31:43 pin Exp $
+
+BLAKE2s (etsh-5.4.0.tar.xz) = 7aeb84e45ec79f2850c93fcd87078959a887f26d6e94f36716106e73db384f70
+SHA512 (etsh-5.4.0.tar.xz) = 7360da1e9bc6a7ed8c38e95eb1e2159bd2803ffa1a032235380d5901a1a6e0399d418b532917e8578bdab53fb43f99d35affc7753da0ec5612bbb8d47715970a
+Size (etsh-5.4.0.tar.xz) = 92388 bytes