aboutsummaryrefslogtreecommitdiffstats
path: root/app-admin/shellinabox/files
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-09-08 21:35:08 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2011-09-08 21:35:08 +0200
commitccf91f5b973e5433ba94dd02de35600513a750de (patch)
tree3ca9075cdcb3d40a682ce567bd57e05601337913 /app-admin/shellinabox/files
parent7d0b31af62ca1e4c10554f6906424f62b70c50fb (diff)
downloadoverlay-ccf91f5b973e5433ba94dd02de35600513a750de.tar.gz
overlay-ccf91f5b973e5433ba94dd02de35600513a750de.tar.xz
overlay-ccf91f5b973e5433ba94dd02de35600513a750de.zip
app-admin/shellinabox: added ebuild
Diffstat (limited to 'app-admin/shellinabox/files')
-rw-r--r--app-admin/shellinabox/files/shellinabox-conf13
-rw-r--r--app-admin/shellinabox/files/shellinabox-init32
2 files changed, 45 insertions, 0 deletions
diff --git a/app-admin/shellinabox/files/shellinabox-conf b/app-admin/shellinabox/files/shellinabox-conf
new file mode 100644
index 0000000..bb96d95
--- /dev/null
+++ b/app-admin/shellinabox/files/shellinabox-conf
@@ -0,0 +1,13 @@
+# /etc/conf.d/shellinabox
+
+# Which port we should listen on
+SHELLINABOXD_PORT="4200"
+
+# Additional parameters for shellinabox daemon
+SHELLINABOXD_OPTS=""
+
+# Example additional configuration
+# SHELLINABOXD_OPTS="--no-beep --disable-ssl --localhost-only"
+
+# vim: ft=gentoo-conf-d
+
diff --git a/app-admin/shellinabox/files/shellinabox-init b/app-admin/shellinabox/files/shellinabox-init
new file mode 100644
index 0000000..ac27e44
--- /dev/null
+++ b/app-admin/shellinabox/files/shellinabox-init
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6,v 1.27 2009/08/12 08:09:52 idl0r Exp $
+
+depend() {
+ use logger dns
+ need net
+}
+
+SHELLINABOXD_PIDFILE=${SHELLINABOXD_PIDFILE:-/var/run/${SVCNAME}.pid}
+SHELLINABOXD_BINARY=${SHELLINABOXD_BINARY:-/usr/bin/shellinaboxd}
+SHELLINABOXD_DATADIR="${SHELLINABOXD_DATADIR:-/var/lib/shellinabox}"
+SHELLINABOXD_PORT="${SHELLINABOXD_PORT:-4200}"
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --oknodo --exec "${SHELLINABOXD_BINARY}" \
+ --pidfile "${SHELLINABOXD_PIDFILE}" \
+ -- -q --background="${SHELLINABOXD_PIDFILE}" --disable-ssl-menu \
+ --user=shellinabox --group=shellinabox \
+ --cert="${SHELLINABOXD_DATADIR}" --port="${SHELLINABOXD_PORT}" \
+ ${SHELLINABOXD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec "${SHELLINABOXD_BINARY}" \
+ --pidfile "${SHELLINABOXD_PIDFILE}" --quiet
+ eend $?
+}