mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
64a9bb8abd
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>
31 lines
606 B
Bash
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"
|