pkgsrc-WIP-changes archive

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

etsh: import etsh shell as wip/etsh



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Thu Jun 23 23:40:08 2022 +0200
Changeset:	381292f7b556448a5008a464ac73bcd5c2a3d6c1

Added Files:
	etsh/DESCR
	etsh/Makefile
	etsh/PLIST
	etsh/distinfo

Log Message:
etsh: import etsh shell as wip/etsh

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=381292f7b556448a5008a464ac73bcd5c2a3d6c1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 etsh/DESCR    | 17 +++++++++++++++++
 etsh/Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 etsh/PLIST    | 36 ++++++++++++++++++++++++++++++++++++
 etsh/distinfo |  5 +++++
 4 files changed, 105 insertions(+)

diffs:
diff --git a/etsh/DESCR b/etsh/DESCR
new file mode 100644
index 0000000000..0e282ed3fe
--- /dev/null
+++ b/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/etsh/Makefile b/etsh/Makefile
new file mode 100644
index 0000000000..0d3cff016f
--- /dev/null
+++ b/etsh/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD$
+
+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@localhost
+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}
+
+# The post-install target fails with BINGRP and
+# MANGRP set, due to conflicting install(1) syntax
+# used by the project's Makefile. This was only
+# relevant on SunOS so far, where they are set by
+# default.  Consider rewriting post-install: to
+# manually copy docs and examples in the correct
+# directories.
+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/etsh/PLIST b/etsh/PLIST
new file mode 100644
index 0000000000..2e6c5a9df3
--- /dev/null
+++ b/etsh/PLIST
@@ -0,0 +1,36 @@
+@comment $NetBSD$
+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/etsh/distinfo b/etsh/distinfo
new file mode 100644
index 0000000000..2790a0731d
--- /dev/null
+++ b/etsh/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+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


Home | Main Index | Thread Index | Old Index