# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# Missing compatibility implementation of strndup.
# https://github.com/shellinabox/shellinabox/issues/400
PortGroup legacysupport 1.0
legacysupport.newest_darwin_requires_legacy 10
github.setup shellinabox shellinabox 2.20 v
categories net shells www
maintainers {ryandesign @ryandesign} openmaintainer
license {GPL-2 OpenSSLException}
description a web-based terminal emulator for ssh or other command line tools
long_description Shell In A Box implements a web server that can export arbitrary \
command line tools (e.g. ssh) 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.
checksums rmd160 855ebe76832b4b7c6daab5caca689269b157161b \
sha256 be800d80f251fc72ecb99f9db5c456209ab6b61d1b7bf345f0ee018be7185fc1 \
depends_lib path:lib/libssl.dylib:openssl \
# https://code.google.com/p/shellinabox/issues/detail?id=110
configure.args-append --disable-runtime-loading --disable-pam
if {${os.platform} eq "darwin" && ${os.major} > 8} {
add_users ${user} group=${group} realname=${name}
set certdir ${prefix}/etc/${name}/certs
startupitem.executable ${prefix}/bin/${name}d --user=${user} --group=${group} --cert=${certdir}
destroot.keepdirs ${destroot}${certdir}
xinstall -o ${user} -g ${group} -d ${destroot}${certdir}
There is no configuration file; you may wish to use your own launchd plist instead of the\
one included in this port if you want to run the daemon with different options.