pkgsrc-WIP-changes archive

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

Shell In A Box



Module Name:	pkgsrc-wip
Committed By:	ast <ast%NetBSD.org@localhost>
Pushed By:	ast
Date:		Thu Oct 20 00:28:04 2016 +0200
Changeset:	2bc11f8efaade4c6839c424a575da5d806692da2

Added Files:
	shellinabox/DESCR
	shellinabox/Makefile
	shellinabox/PLIST
	shellinabox/distinfo
	shellinabox/files/shellinaboxd.in

Log Message:
Shell In A Box

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

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

diffstat:
 shellinabox/DESCR                 |  4 +++
 shellinabox/Makefile              | 53 +++++++++++++++++++++++++++++++++++++++
 shellinabox/PLIST                 |  4 +++
 shellinabox/distinfo              |  6 +++++
 shellinabox/files/shellinaboxd.in | 45 +++++++++++++++++++++++++++++++++
 5 files changed, 112 insertions(+)

diffs:
diff --git a/shellinabox/DESCR b/shellinabox/DESCR
new file mode 100644
index 0000000..d0f67e5
--- /dev/null
+++ b/shellinabox/DESCR
@@ -0,0 +1,4 @@
+Shell In A Box implements a web server that can export arbitrary
+command line tools to a web based terminal emulator. This
+emulator is accessible to any JavaScript and CSS enabled web
+browser and does not require any additional browser plugins.
diff --git a/shellinabox/Makefile b/shellinabox/Makefile
new file mode 100644
index 0000000..b1bb67e
--- /dev/null
+++ b/shellinabox/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD$
+
+PKGBASE=        shellinabox
+DISTNAME=       ${PKGBASE}-v2.19
+PKGREVISION=    1
+CATEGORIES=     www
+
+MASTER_SITES=   ${MASTER_SITE_GITHUB:=shellinabox/}
+GITHUB_PROJECT= ${PKGBASE}
+GITHUB_TAG=     v2.19
+
+MAINTAINER=     ast%NetBSD.org@localhost
+HOMEPAGE=       https://code.google.com/archive/p/shellinabox/
+COMMENT=        Shell In A Box implements a web server for terminal emulation
+LICENSE=        gnu-gpl-v2
+
+EXTRACT_USING=  gtar
+USE_TOOLS+=     gtar aclocal automake autoconf gm4 gmake autoheader
+USE_LANGUAGES=  c
+USE_LIBTOOL=    yes
+GNU_CONFIGURE=  yes
+
+.include "../../mk/bsd.prefs.mk"
+SIB_USER?=              shellinabox
+SIB_GROUP?=             shellinabox
+PKG_GROUPS=             ${SIB_GROUP}
+PKG_USERS=              ${SIB_USER}:${SIB_GROUP}
+PKG_GROUPS_VARS=        SIB_USER
+PKG_USERS_VARS=         SIB_GROUP
+
+RCD_SCRIPTS+=           shellinaboxd
+RCD_SCRIPT_SRC.shellinaboxd = ${WRKSRC}/shellinaboxd.in
+
+SUBST_CLASSES+=         sib
+SUBST_STAGE.sib=        pre-configure
+SUBST_MESSAGE.sib=      Fixing shellinaboxd user/group defaults
+SUBST_FILES.sib+=       ${WRKSRC}/shellinaboxd.in
+SUBST_VARS.sib+=        PREFIX SIB_USER SIB_GROUP
+
+INSTALLATION_DIRS=      sbin ${PKGMANDIR}/man1
+
+post-extract:
+	${CP} ${FILESDIR}/shellinaboxd.in ${WRKSRC}
+
+pre-configure:
+	${RUN} cd ${WRKSRC} && \
+		aclocal && \
+		libtoolize --copy --automake && \
+		autoheader && \
+		autoconf && \
+		automake --copy --add-missing --foreign
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/shellinabox/PLIST b/shellinabox/PLIST
new file mode 100644
index 0000000..a11b52e
--- /dev/null
+++ b/shellinabox/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/shellinaboxd
+man/man1/shellinaboxd.1
+share/examples/rc.d/shellinaboxd
diff --git a/shellinabox/distinfo b/shellinabox/distinfo
new file mode 100644
index 0000000..4134705
--- /dev/null
+++ b/shellinabox/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (shellinabox-v2.19.tar.gz) = 6259778e8a4cab9194b7546086f5fc20e7a9749a
+RMD160 (shellinabox-v2.19.tar.gz) = 6398a274be2c6f61450740621a506be5468c9343
+SHA512 (shellinabox-v2.19.tar.gz) = f38d2d5aa04580d6af78110c52d5e771529c05e1bbf04318efcab48576d9da2d4d410af3e5a72d9062ce4b56e1f4a255fc1129cae83bdef917b77ff7223e1159
+Size (shellinabox-v2.19.tar.gz) = 744367 bytes
diff --git a/shellinabox/files/shellinaboxd.in b/shellinabox/files/shellinaboxd.in
new file mode 100644
index 0000000..61959ba
--- /dev/null
+++ b/shellinabox/files/shellinaboxd.in
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# Shell in a Box Daemon startup script
+#
+# PROVIDE: shellinaboxd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Add the following to /etc/rc.conf[.local] to enable this service
+#
+# shellinaboxd="YES"
+#
+# You can fine tune others variables too:
+# shellinaboxd_pidfile="/var/run/shellinabox.pid"
+# shellinaboxd_user="@SIB_USER@"
+# shellinaboxd_group="@SIB_GROUP@"
+# shellinaboxd_port="4200"
+# shellinaboxd_flags="--disable-ssl --localhost-only --linkify=normal --service=/shell:SSH:127.0.0.1"
+
+. /etc/rc.subr
+
+name="shellinaboxd"
+rcvar=${name}
+
+command="@PREFIX@/bin/${name}"
+
+load_rc_config $name
+
+shellinaboxd_enable=${shellinaboxd_enable:-"NO"}
+shellinaboxd_user=${shellinaboxd_user:-"@SIB_USER@"}
+shellinaboxd_group=${shellinaboxd_group:-"@SIB_GROUP@"}
+shellinaboxd_port=${shellinaboxd_port:-"4200"}
+
+pidfile=${shellinaboxd_pidfile:-"/var/run/shellinaboxd.pid"}
+
+command_args="--user=${shellinaboxd_user} --group=${shellinaboxd_group} --port=${shellinaboxd_port} --background=${pidfile}"
+
+# avoid unnecessary su(1) initiated by rc.subr
+unset shellinaboxd_user shellinaboxd_group
+
+load_rc_config $name
+run_rc_command "$1"


Home | Main Index | Thread Index | Old Index