57df33407a
Updates net/Geomyidae[1] gopher server package to current release (0.12) which includes the following changes: - fixes script.cgi user/group permissions security issue [2] - changes the default logging level from 7 to 15 - updates files/Geomyidae.sh and Geomyidae.8 [1] http://www.r-36.net/ [2] patch by jneitzel@freeshell.org (I only tested install and deinstall -- reed.)
59 lines
1.5 KiB
Bash
59 lines
1.5 KiB
Bash
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: Geomyidae.sh,v 1.2 2008/08/12 14:59:44 reed Exp $
|
|
#
|
|
|
|
# PROVIDE: Geomyidae
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
#. /etc/rc.subr
|
|
|
|
name="Geomyidae"
|
|
rcvar="$name"
|
|
command="@PREFIX@/sbin/$name"
|
|
|
|
#####################################################
|
|
# Geomyidae Options Setion - "?" => Geomyidae(8) #
|
|
# Uncomment & define options (defaults are shown) #
|
|
#####################################################
|
|
#
|
|
#LOGFILE="-l /var/log/gopherd.log"
|
|
#LOGLEVEL="-v 15"
|
|
#HTDOCS="-b /var/gopher"
|
|
#PORT="-p 70"
|
|
#SPORT="-o 70"
|
|
#USR="-u $USER"
|
|
#GRP="-g $GROUP"
|
|
#HOST="-h localhost"
|
|
#IP="-i 127.0.0.1"
|
|
|
|
######################################################
|
|
# Now remove any UNDEFINED options from line below: #
|
|
######################################################
|
|
#
|
|
command_args="$LOGFILE $LOGLEVEL $HTDOCS $PORT $SPORT $USR $GRP $HOST $IP"
|
|
|
|
|
|
######################################################
|
|
# Uncomment this section if a PID file is desired #
|
|
######################################################
|
|
#
|
|
#pidfile="/var/run/${name}.pid"
|
|
#start_cmd="Geomyidae_start"
|
|
#
|
|
#Geomyidae_start()
|
|
#{
|
|
# echo "Starting $name"
|
|
# $name $command_args
|
|
# pgrep -x $name > $pidfile
|
|
#}
|
|
|
|
######################################################
|
|
# Lastly, add the following to /etc/rc.conf: #
|
|
# "Geomyidae=YES" (without the quotes) #
|
|
######################################################
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|