FreeBSD Bugzilla – Attachment 179841 Details for
Bug 216957
[NEW PORT] www/butterfly: Web terminal based on websocket and tornado
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar archive
butterfly.shar (text/plain), 5.61 KB, created by
Yuri Victorovich
on 2017-02-10 17:08:14 UTC
(
hide
)
Description:
shar archive
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2017-02-10 17:08:14 UTC
Size:
5.61 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># www/butterfly ># www/butterfly/Makefile ># www/butterfly/distinfo ># www/butterfly/pkg-descr ># www/butterfly/files ># www/butterfly/files/patch-butterfly.server.py ># www/butterfly/files/butterfly.in ># www/butterfly/files/pkg-message.in ># www/butterfly/pkg-plist ># >echo c - www/butterfly >mkdir -p www/butterfly > /dev/null 2>&1 >echo x - www/butterfly/Makefile >sed 's/^X//' >www/butterfly/Makefile << '8c02e05f3e6f07e234bf17f6dfcceb4b' >X# Created by: Yuri Victorovich <yuri@rawbw.com> >X# $FreeBSD$ >X >XPORTNAME= butterfly >XPORTVERSION= 2.0.1 >XCATEGORIES= www >XMASTER_SITES= CHEESESHOP >X >XMAINTAINER= yuri@rawbw.com >XCOMMENT= Web terminal based on websocket and tornado >X >XLICENSE= GPLv3 >X >XRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl \ >X ${PYTHON_PKGNAMEPREFIX}tornado>0:www/py-tornado \ >X ${PYTHON_PKGNAMEPREFIX}libsass>0:www/py-libsass >X >XUSES= python >XUSE_PYTHON= autoplist distutils >XNO_ARCH= yes >XUSE_RC_SUBR= butterfly >XSUB_FILES= pkg-message >XSUB_LIST+= PYTHON_CMD=${PYTHON_CMD} >X >Xpost-stage: >X @${REINPLACE_CMD} -i '' -e "s|^butterfly_dir = os.path.join(ev, 'butterfly')|butterfly_dir = '${PREFIX}/etc/butterfly'|g" \ >X ${STAGEDIR}${PREFIX}/bin/butterfly.server.py >X @${MKDIR} ${STAGEDIR}${PREFIX}/etc/butterfly/ssl >X @${CP} ${WRKSRC}/butterfly/butterfly.conf.default ${STAGEDIR}${ETCDIR}/butterfly.conf.sample >X >X.include <bsd.port.mk> >8c02e05f3e6f07e234bf17f6dfcceb4b >echo x - www/butterfly/distinfo >sed 's/^X//' >www/butterfly/distinfo << '5cae558c5b581ea6168c052348947272' >XTIMESTAMP = 1486684509 >XSHA256 (butterfly-2.0.1.tar.gz) = 93ecdef71b62e1809a48a706ac2ae86fdbeea6d722970cda99969bccad8ba7ef >XSIZE (butterfly-2.0.1.tar.gz) = 1042304 >5cae558c5b581ea6168c052348947272 >echo x - www/butterfly/pkg-descr >sed 's/^X//' >www/butterfly/pkg-descr << 'e2430fd8f28107adb084694da555cc63' >XButterfly is a xterm compatible terminal that runs in your browser. >X >XFeatures >X >X* xterm compatible (support for a lot of unused features) >X* Native browser scroll and search >X* Theming in css/sass (18 preset themes) endless possibilities >X* HTML in your terminal, cat images and use <table> >X* Multiple sessions support >X* Secure authentication with X509 certificates >X* 16,777,216 colors support >X* Keyboard text selection >X* Desktop notifications on terminal output >X* Geolocation from browser >X* May work on firefox too >X >XWWW: https://pypi.python.org/pypi/butterfly >XWWW: https://github.com/paradoxxxzero >e2430fd8f28107adb084694da555cc63 >echo c - www/butterfly/files >mkdir -p www/butterfly/files > /dev/null 2>&1 >echo x - www/butterfly/files/patch-butterfly.server.py >sed 's/^X//' >www/butterfly/files/patch-butterfly.server.py << '97f38de3d025424a948308b7963a1eea' >X--- butterfly.server.py.orig 2017-02-10 00:08:34 UTC >X+++ butterfly.server.py >X@@ -20,7 +20,7 @@ >X import tornado.options >X import tornado.ioloop >X import tornado.httpserver >X-import tornado_systemd >X+#import tornado_systemd >X import logging >X import webbrowser >X import uuid >X@@ -295,13 +295,13 @@ else: >X from butterfly import application >X application.butterfly_dir = butterfly_dir >X log.info('Starting server') >X-http_server = tornado_systemd.SystemdHTTPServer( >X+http_server = tornado.httpserver.HTTPServer( >X application, ssl_options=ssl_opts) >X http_server.listen(port, address=host) >X >X-if http_server.systemd: >X- os.environ.pop('LISTEN_PID') >X- os.environ.pop('LISTEN_FDS') >X+#if http_server.systemd: >X+# os.environ.pop('LISTEN_PID') >X+# os.environ.pop('LISTEN_FDS') >X >X log.info('Starting loop') >X >97f38de3d025424a948308b7963a1eea >echo x - www/butterfly/files/butterfly.in >sed 's/^X//' >www/butterfly/files/butterfly.in << '713698016ec023c6cd35636d70a1b31a' >X#!/bin/sh >X# >X# $FreeBSD$ >X# >X# PROVIDE: butterfly >X# REQUIRE: LOGIN >X# >X# Add the following line to /etc/rc.conf to enable butterfly: >X# >X# butterfly_enable="YES" >X# >X >X: ${butterfly_enable="NO"} >X: ${butterfly_user="root"} >X: ${butterfly_args="--unsecure"} >X >X. /etc/rc.subr >X >Xname=butterfly >Xrcvar=butterfly_enable >Xpidfile=/var/run/${name}.pid >Xstart_cmd="start_butterfly" >X >Xload_rc_config $name >X >Xstart_butterfly() { >X echo "Starting ${name}." >X if ! [ -r %%ETCDIR%%/ssl/butterfly_localhost.crt -a %%ETCDIR%%/ssl/butterfly_localhost.key -a %%ETCDIR%%/ssl/butterfly_ca.crt ]; then >X %%PREFIX%%/bin/butterfly.server.py --generate-certs --host=localhost && >X echo "${name}: generated the ssl certificate in %%ETCDIR%%/ssl" >X fi >X daemon -p $pidfile -u ${butterfly_user} %%PREFIX%%/bin/butterfly.server.py ${butterfly_args} >/var/log/${name}.log 2>&1 >X} >X >Xcommand="%%PYTHON_CMD%%" >Xrun_rc_command "$1" >713698016ec023c6cd35636d70a1b31a >echo x - www/butterfly/files/pkg-message.in >sed 's/^X//' >www/butterfly/files/pkg-message.in << '78063f31bd1254a4b1603878db33721e' >X====================================================================== >XYou installed butterfly, the web terminal that works through your >Xbrowser. >X >XIt is recommended to run butterfly as a service: >X# sysrc butterfly_enable="YES" >X# service butterfly start >X >XTo access butterfly please navigate to: >Xhttp://localhost:57575 >X >XThe port and other parameters can be configured in >X%%ETCDIR%%/butterfly.conf >X====================================================================== >78063f31bd1254a4b1603878db33721e >echo x - www/butterfly/pkg-plist >sed 's/^X//' >www/butterfly/pkg-plist << '446599ea05d223457c3dcc681aa83422' >X@sample %%ETCDIR%%/butterfly.conf.sample >X@dir %%ETCDIR%%/ssl >446599ea05d223457c3dcc681aa83422 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 216957
:
179818
|
179824
| 179841