Date: Thu, 9 Aug 2018 02:18:01 +0000 (UTC) From: Ryan Steinmetz <zi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r476716 - in head/net: . fiche fiche/files Message-ID: <201808090218.w792I1O4077911@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zi Date: Thu Aug 9 02:18:00 2018 New Revision: 476716 URL: https://svnweb.freebsd.org/changeset/ports/476716 Log: 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/ Added: head/net/fiche/ head/net/fiche/Makefile (contents, props changed) head/net/fiche/distinfo (contents, props changed) head/net/fiche/files/ head/net/fiche/files/fiche.in (contents, props changed) head/net/fiche/files/pkg-message.in (contents, props changed) head/net/fiche/pkg-descr (contents, props changed) head/net/fiche/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Thu Aug 9 00:31:44 2018 (r476715) +++ head/net/Makefile Thu Aug 9 02:18:00 2018 (r476716) @@ -148,6 +148,7 @@ SUBDIR += exabgp SUBDIR += exaddos SUBDIR += fb + SUBDIR += fiche SUBDIR += file2pcap SUBDIR += findmtu SUBDIR += flower Added: head/net/fiche/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fiche/Makefile Thu Aug 9 02:18:00 2018 (r476716) @@ -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> Added: head/net/fiche/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fiche/distinfo Thu Aug 9 02:18:00 2018 (r476716) @@ -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 Added: head/net/fiche/files/fiche.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fiche/files/fiche.in Thu Aug 9 02:18:00 2018 (r476716) @@ -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" Added: head/net/fiche/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fiche/files/pkg-message.in Thu Aug 9 02:18:00 2018 (r476716) @@ -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" +=========================================================================== Added: head/net/fiche/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fiche/pkg-descr Thu Aug 9 02:18:00 2018 (r476716) @@ -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/ Added: head/net/fiche/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fiche/pkg-plist Thu Aug 9 02:18:00 2018 (r476716) @@ -0,0 +1,6 @@ +sbin/fiche +@owner fiche +@group fiche +@dir %%WWWDIR%% +@owner +@group
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808090218.w792I1O4077911>