---
name: shellinabox
version: 2.14_1
origin: www/shellinabox
comment: Publish command line shell through AJAX interface
arch: freebsd:9:x86:64
www: "http://code.google.com/p/shellinabox/\t"
maintainer: olivier@cochard.me
prefix: /usr/local
licenselogic: single
licenses: [GPLv2]
flatsize: 409222
desc: "Shell In A Box is a web server that can export arbitary command line tools
  to a \nweb based terminal emulator\n\nWWW:\thttp://code.google.com/p/shellinabox/\t\n"
categories: [www]
users: [shellinabox]
groups: [shellinabox]
options: {CORES: off, MANPAGES: off}
files:
  /usr/local/bin/shellinaboxd: ac4115f2a5de0bf5f33d124dab229baa52ab8444855bc0073da39ab9ebe245f9
  /usr/local/etc/rc.d/shellinaboxd: 536378700a8641131b15743c8e38caa55fd10aba55594df1ebf74dc17e4dc30d
  /usr/local/man/man1/shellinaboxd.1.gz: ff14a49a9334a864fa26d103dfb86789d3b6058fde0be3d5584c77106f75a5f3
  /usr/local/share/doc/shellinabox/AUTHORS: 8a10e8c10ed5845c338b763352ff117d319f75be50fd119fb14322890b5eae8e
  /usr/local/share/doc/shellinabox/COPYING: 04ef60ab9b83cde6f0862ea18474454477efb34c52ebce1f8d8260a398a39362
  /usr/local/share/doc/shellinabox/ChangeLog: c02cad1326f670b3cf61dbbcac3780ed1380c57611cc56ae1839fa5b59486eac
  /usr/local/share/doc/shellinabox/GPL-2: ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6
  /usr/local/share/doc/shellinabox/INSTALL: 33c53fda345ffa2953203fa96e3ebf8cbc51c3217e5f5db8a1dd43344adf2c93
  /usr/local/share/doc/shellinabox/NEWS: be055046d9e2681c6c5c7067e20296f9e8908fc895fcc7131d6533834e84f011
  /usr/local/share/doc/shellinabox/README: 264a2e512ac55c7f6e5680d2d14a3ad3b36015133676bf80a2f5ee1e044795fc
  /usr/local/share/doc/shellinabox/TODO: c0c46902c22bf0c451526a7dd0694ed7d45a35fd2bdf93c52ba90678d6629395
  /usr/local/share/licenses/shellinabox-2.14_1/GPLv2: 04ef60ab9b83cde6f0862ea18474454477efb34c52ebce1f8d8260a398a39362
  /usr/local/share/licenses/shellinabox-2.14_1/LICENSE: 7e1394d03c5f275a402fe721ff1d1349449ea8602b52af954c76463afcdb6ef7
  /usr/local/share/licenses/shellinabox-2.14_1/catalog.mk: 6080e55ea04a95f859fda71f427ac8cff3e4677e9fb67fe3bf47c0524a1c5fba
directories:
  /usr/local/share/licenses/shellinabox-2.14_1/: n
  /usr/local/share/licenses/: y
  /usr/local/share/doc/shellinabox/: n
  /usr/local/etc/shellinabox/: y
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow shellinabox >/dev/null 2>&1; then  echo "Creating group 'shellinabox' with gid '139'.";  /usr/sbin/pw groupadd shellinabox -g 139; else echo "Using existing group 'shellinabox'."; fi
    if ! /usr/sbin/pw usershow shellinabox >/dev/null 2>&1; then  echo "Creating user 'shellinabox' with uid '139'.";  /usr/sbin/pw useradd shellinabox -u 139 -g 139  -c "Shell In A Box" -d /nonexistent -s /usr/sbin/nologin;  else echo "Using existing user 'shellinabox'."; fi
    mkdir -p /usr/local/etc/shellinabox
    chmod 777 /usr/local/etc/shellinabox
    chown nobody /usr/local/etc/shellinabox
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if /usr/sbin/pw usershow shellinabox >/dev/null 2>&1; then  echo "==> You should manually remove the \"shellinabox\" user. "; fi
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
  deinstall: |
    #! /bin/sh
    # $FreeBSD: ports/www/shellinabox/files/pkg-deinstall.in,v 1.2 2012/11/17 06:03:05 svnexp Exp $
    #

    PATH=/bin:/usr/bin:/usr/sbin

    if [ "$2" != "POST-DEINSTALL" ]; then
        exit 0
    fi
    if [ -d /usr/local/etc/shellinabox ]; then
            echo "===> You may delete '/usr/local/etc/shellinabox' if you want to remove the SSL certificate left."
    fi
