mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
72e48206fb
main aims are continuous, non-blocking downloads and smooth scanning of dynamic and password protected HTTP traffic. Havp antivirus proxy has a parent and transparent proxy mode. It can be used with squid or standalone. WWW: http://www.server-side.de/ PR: ports/99073 Submitted by: Elisey Savateev <b3k@mail.ru>
34 lines
593 B
Bash
34 lines
593 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: havp
|
|
# REQUIRE: DAEMON cleanvar
|
|
# BEFORE: LOGIN
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable c-icap:
|
|
#
|
|
# havp_enable="YES"
|
|
#
|
|
# See '%%PREFIX%%/sbin/havp --help' for flags
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="havp"
|
|
rcvar=`set_rcvar`
|
|
|
|
command="%%PREFIX%%/sbin/$name"
|
|
pidfile="%%RUN_DIR%%/${name}.pid"
|
|
required_dirs="%%TMP_DIR%%"
|
|
required_files="%%PREFIX%%/etc/havp/blacklist %%PREFIX%%/etc/havp/havp.config %%PREFIX%%/etc/havp/whitelist"
|
|
|
|
# read settings, set default values
|
|
load_rc_config "$name"
|
|
: ${havp_enable="NO"}
|
|
: ${havp_flags=""}
|
|
|
|
run_rc_command "$1"
|