Index: head/net/fiche/Makefile =================================================================== --- head/net/fiche/Makefile (revision 535720) +++ head/net/fiche/Makefile (revision 535721) @@ -1,28 +1,28 @@ # Created by: Ryan Steinmetz # $FreeBSD$ PORTNAME= fiche PORTVERSION= 0.9.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MAINTAINER= zi@FreeBSD.org COMMENT= Command line pastebin for sharing terminal output LICENSE= MIT USERS= ${PORTNAME} GROUPS= ${PORTNAME} USES= compiler:c++11-lang 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 Index: head/net/fiche/files/fiche.in =================================================================== --- head/net/fiche/files/fiche.in (revision 535720) +++ head/net/fiche/files/fiche.in (revision 535721) @@ -1,43 +1,49 @@ #!/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_options (str): Additional flags Default "" # 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_options=""} : ${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}" +command_args="-fp ${pidfile} %%PREFIX%%/sbin/fiche \ + -o ${fiche_output} \ + -d ${fiche_domain} \ + -l ${fiche_logfile} \ + ${fiche_options}" fiche_prestart() { install -d -o 477 -g 477 -m 755 /var/log/${name} } run_rc_command "$1" Index: head/net/fiche/pkg-descr =================================================================== --- head/net/fiche/pkg-descr (revision 535720) +++ head/net/fiche/pkg-descr (revision 535721) @@ -1,6 +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/ +WWW: https://github.com/solusipse/fiche