From owner-svn-ports-all@freebsd.org Thu Aug 9 02:18:03 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0C1710756F0; Thu, 9 Aug 2018 02:18:02 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 84CD679BAF; Thu, 9 Aug 2018 02:18:02 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 66FD4131DF; Thu, 9 Aug 2018 02:18:02 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w792I2Zv077917; Thu, 9 Aug 2018 02:18:02 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w792I1O4077911; Thu, 9 Aug 2018 02:18:01 GMT (envelope-from zi@FreeBSD.org) Message-Id: <201808090218.w792I1O4077911@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Thu, 9 Aug 2018 02:18:01 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: zi X-SVN-Commit-Paths: in head/net: . fiche fiche/files X-SVN-Commit-Revision: 476716 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2018 02:18:03 -0000 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 +# $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 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