freebsd-ports/www/tinyproxy/files/tinyproxy.sh.in
Ion-Mihai Tetcu 8b0082350e - Now users an rcNG script.
- Removes the (now) un-necessary pkg-message.
- Moves the configuration file to ${PREFIX}/etc/tinyproxy.conf
- bump PORTREVISION for above
- Pass maintainership to submiter.

Tinyproxy now installs a rcNG script.  To enable tinyproxy at boot
time, set the following in rc.conf(5):
  tinyproxy_enable="YES"
The confiration file for tinyproxy has been moved to
${PREFIX}/etc/tinyproxy.conf.  Any old configuration files will need
to be migrated over to the new location.

PR:		ports/96720
Submitted by:	Wesley Shields <wxs@csh.rit.edu> (new maintainer)
Approved by:	lawrance (mentor)
2006-05-16 12:29:42 +00:00

26 lines
592 B
Bash

#!/bin/sh
# PROVIDE: tinyproxy
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable tinyproxy:
# tinyproxy_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable tinyproxy
# tinyproxy_config (path): Set to "%%PREFIX%%/etc/tinyproxy.conf" by default.
#
. %%RC_SUBR%%
name="tinyproxy"
rcvar=`set_rcvar`
load_rc_config $name
: ${tinyproxy_enable="NO"}
: ${tinyproxy_config="%%PREFIX%%/etc/tinyproxy.conf"}
command=%%PREFIX%%/sbin/tinyproxy
command_args="-c $tinyproxy_config 2> /dev/null"
run_rc_command "$1"