summaryrefslogtreecommitdiff
path: root/ftp/ftp-proxy/files/ftp-proxy.in
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-04-19 11:07:29 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-04-19 11:07:29 +0000
commit9cdc02a73b1aaccfd28f270a751630d5ba7750d6 (patch)
treec96defa4a1c320b9512e6afa5ecc86b298d92e87 /ftp/ftp-proxy/files/ftp-proxy.in
parent- Update to 0.0.10 (diff)
- Update to 4.1p1
PR: 111410 Submitted by: Christian Ludwig <chrissicool@chrissicool.net> (maintainer)
Diffstat (limited to 'ftp/ftp-proxy/files/ftp-proxy.in')
-rw-r--r--ftp/ftp-proxy/files/ftp-proxy.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/ftp/ftp-proxy/files/ftp-proxy.in b/ftp/ftp-proxy/files/ftp-proxy.in
new file mode 100644
index 000000000000..2964fa4ef1c1
--- /dev/null
+++ b/ftp/ftp-proxy/files/ftp-proxy.in
@@ -0,0 +1,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).
+#
+
+. %%RC_SUBR%%
+
+name="ftpproxy"
+rcvar=${name}_enable
+
+load_rc_config $name
+
+: ${ftpproxy_enable="NO"}
+
+command="%%PREFIX%%/sbin/ftp-proxy"
+
+run_rc_command "$1"