1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/www/ziproxy/files/ziproxy.in
Ion-Mihai Tetcu 64a9bb8abd Ziproxy is forwarding, non-caching, compressing proxy server. It
squeezes images by converting them to low quality jpegs and
optionally can also gzip HTML and other text-like data. It is
intended to free bandwidth on dialup connections.

WWW: http://ziproxy.sourceforge.net/

PR:		ports/101070
Submitted by:	Pankov Pavel <pankov_p at mail.ru>
2006-08-01 01:20:33 +00:00

31 lines
606 B
Bash

#!/bin/sh
# PROVIDE: ziproxy
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# ziproxy_enable (bool): Set to NO by default.
# Set it to YES to enable ziproxy.
# ziproxy_config (path): Set to %%PREFIX%%/etc/ziproxy.conf
# by default.
#
. "%%RC_SUBR%%"
name="ziproxy"
rcvar=${name}_enable
command=%%PREFIX%%/bin/${name}
pidfile=/var/run/${name}.pid
load_rc_config $name
: ${ziproxy_enable="NO"}
: ${ziproxy_config="%%PREFIX%%/etc/ziproxy.conf"}
command_args="-d -c ${ziproxy_config}"
run_rc_command "$1"