diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2018-08-09 02:18:00 +0000 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2018-08-09 02:18:00 +0000 |
commit | 90b50381f287d1f5733e335f47c642915845b49f (patch) | |
tree | 3079aa20924aa606ee36646dd0fefefa72be8ba2 | |
parent | math/py-pyodesys: Update 0.11.15 -> 0.11.16 (diff) |
New port: net/fiche:
Command line pastebin for sharing terminal output.
Note: fiche requires a separate web-server to serve the pastebin
content.
WWW: http://termbin.com/
Notes
Notes:
svn path=/head/; revision=476716
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/fiche/Makefile | 27 | ||||
-rw-r--r-- | net/fiche/distinfo | 3 | ||||
-rw-r--r-- | net/fiche/files/fiche.in | 43 | ||||
-rw-r--r-- | net/fiche/files/pkg-message.in | 15 | ||||
-rw-r--r-- | net/fiche/pkg-descr | 6 | ||||
-rw-r--r-- | net/fiche/pkg-plist | 6 |
7 files changed, 101 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index bc76f9aaf0b6..1d6b565b3005 100644 --- a/net/Makefile +++ b/net/Makefile @@ -148,6 +148,7 @@ SUBDIR += exabgp SUBDIR += exaddos SUBDIR += fb + SUBDIR += fiche SUBDIR += file2pcap SUBDIR += findmtu SUBDIR += flower diff --git a/net/fiche/Makefile b/net/fiche/Makefile new file mode 100644 index 000000000000..65d36767ce24 --- /dev/null +++ b/net/fiche/Makefile @@ -0,0 +1,27 @@ +# Created by: Ryan Steinmetz <zi@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= fiche +PORTVERSION= 0.9.1 +CATEGORIES= net +MASTER_SITES= GH + +MAINTAINER= zi@FreeBSD.org +COMMENT= Command line pastebin for sharing terminal output + +LICENSE= MIT + +USERS= ${PORTNAME} +GROUPS= ${PORTNAME} + +USE_GITHUB= yes +GH_ACCOUNT= solusipse + +USE_RC_SUBR= ${PORTNAME} +SUB_FILES= pkg-message + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/sbin ${STAGEDIR}${WWWDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin + +.include <bsd.port.mk> diff --git a/net/fiche/distinfo b/net/fiche/distinfo new file mode 100644 index 000000000000..70150bf8bae5 --- /dev/null +++ b/net/fiche/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1533777298 +SHA256 (solusipse-fiche-0.9.1_GH0.tar.gz) = f0cb279a2c2a4c0d1debcf56785fd8731a1427d2524221678cf69c9aaa85e831 +SIZE (solusipse-fiche-0.9.1_GH0.tar.gz) = 10246 diff --git a/net/fiche/files/fiche.in b/net/fiche/files/fiche.in new file mode 100644 index 000000000000..468e88969c9f --- /dev/null +++ b/net/fiche/files/fiche.in @@ -0,0 +1,43 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: fiche +# REQUIRE: NETWORKING SERVERS +# BEFORE: DAEMON +# KEYWORD: shutdown + +# +# Add some of the following variables to /etc/rc.conf to configure fiche: +# fiche_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable fiche. +# fiche_domain (str): Default "localhost" +# fiche_output (str): Default "/usr/local/www/fiche" +# fiche_logfile (str): Default "/var/log/fiche/fiche.log" + +. /etc/rc.subr + +name="fiche" +rcvar=fiche_enable + +load_rc_config $name + +: ${fiche_enable="NO"} +: ${fiche_pidfile="/var/run/${name}.pid"} +: ${fiche_output="%%WWWDIR%%"} +: ${fiche_domain="localhost"} +: ${fiche_logfile="/var/log/${name}/${name}.log"} + +start_precmd="${name}_prestart" +pidfile="${fiche_pidfile}" +procname="%%PREFIX%%/sbin/fiche" + +command="/usr/sbin/daemon" +command_args="-fp ${pidfile} %%PREFIX%%/sbin/fiche -o ${fiche_output} -d ${fiche_domain} -l ${fiche_logfile}" + +fiche_prestart() { + install -d -o 477 -g 477 -m 755 /var/log/${name} +} + +run_rc_command "$1" diff --git a/net/fiche/files/pkg-message.in b/net/fiche/files/pkg-message.in new file mode 100644 index 000000000000..ded3977093df --- /dev/null +++ b/net/fiche/files/pkg-message.in @@ -0,0 +1,15 @@ +=========================================================================== +Please set the hostname of your fiche server by running: +sysrc fiche_domain="mypaste.domain.com" + +You'll still need a separate webserver configured to serve the content that +fiche produces in %%WWWDIR%%. + +An example nginx config may be found here: +https://github.com/solusipse/fiche + +If you wish to serve the content over HTTPS, please run the following to +ensure that fiche hands out URLs prefixed with https://: + +sysrc fiche_flags="-S" +=========================================================================== diff --git a/net/fiche/pkg-descr b/net/fiche/pkg-descr new file mode 100644 index 000000000000..064588b06ecd --- /dev/null +++ b/net/fiche/pkg-descr @@ -0,0 +1,6 @@ +Command line pastebin for sharing terminal output. + +Note: fiche requires a separate web-server to serve the pastebin +content. + +WWW: http://termbin.com/ diff --git a/net/fiche/pkg-plist b/net/fiche/pkg-plist new file mode 100644 index 000000000000..0019c10f5459 --- /dev/null +++ b/net/fiche/pkg-plist @@ -0,0 +1,6 @@ +sbin/fiche +@owner fiche +@group fiche +@dir %%WWWDIR%% +@owner +@group |