summaryrefslogtreecommitdiff
path: root/ftp/ftp-proxy/files/ftp-proxy.in
blob: ed74e5a0d7ce4ec30a3ea89af671058d41f205dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# PROVIDE: ftp-proxy
# REQUIRE: DAEMON pf
#
# Add the following lines to /etc/rc.conf to enable ftp-proxy:
#
# ftpproxy_enable (bool)	Set to "YES" to enable ftp-proxy.
#				Default is "NO".
# ftpproxy_flags (flags):	Set extra flags to ftp-proxy.
#				Default is "". See ftp-proxy(8).
#

. /etc/rc.subr

name="ftpproxy"
rcvar=${name}_enable

load_rc_config $name

: ${ftpproxy_enable="NO"}

command="%%PREFIX%%/sbin/ftp-proxy"

run_rc_command "$1"