1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/www/butterfly/files/butterfly.in
Kirill Ponomarev e6dd86cdc5 Butterfly is a xterm compatible terminal that runs in your browser.
Features

- xterm compatible (support for a lot of unused features)
- Native browser scroll and search
- Theming in css/sass (18 preset themes) endless possibilities
- HTML in your terminal, cat images and use <table>
- Multiple sessions support
- Secure authentication with X509 certificates
- 16,777,216 colors support
- Keyboard text selection
- Desktop notifications on terminal output
- Geolocation from browser
- May work on firefox too

WWW: https://pypi.python.org/pypi/butterfly

PR:		216957
Submitted by:	yuri@rawbw.com
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D9533
2017-02-13 18:00:21 +00:00

37 lines
882 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: butterfly
# REQUIRE: LOGIN
#
# Add the following line to /etc/rc.conf to enable butterfly:
#
# butterfly_enable="YES"
#
: ${butterfly_enable="NO"}
: ${butterfly_user="root"}
: ${butterfly_args="--unsecure"}
. /etc/rc.subr
name=butterfly
rcvar=butterfly_enable
pidfile=/var/run/${name}.pid
start_cmd="start_butterfly"
load_rc_config $name
start_butterfly() {
echo "Starting ${name}."
if ! [ -r %%ETCDIR%%/ssl/butterfly_localhost.crt -a %%ETCDIR%%/ssl/butterfly_localhost.key -a %%ETCDIR%%/ssl/butterfly_ca.crt ]; then
%%PREFIX%%/bin/butterfly.server.py --generate-certs --host=localhost &&
echo "${name}: generated the ssl certificate in %%ETCDIR%%/ssl"
fi
daemon -p $pidfile -u ${butterfly_user} %%PREFIX%%/bin/butterfly.server.py ${butterfly_args} >/var/log/${name}.log 2>&1
}
command="%%PYTHON_CMD%%"
run_rc_command "$1"