Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op
29 lines
625 B
Bash
29 lines
625 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: ncftpd
|
|
# REQUIRE: DAEMON
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable ncftpd:
|
|
#
|
|
# ncftpd_enable="YES"
|
|
# ncftpd_flags="-dq" # Not required
|
|
# ncftpd_config="/path/to/general.cf /path/to/domain.cf" # Not required
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="ncftpd"
|
|
rcvar=ncftpd_enable
|
|
|
|
load_rc_config $name
|
|
: ${ncftpd_enable:="NO"}
|
|
: ${ncftpd_flags:="-dq"}
|
|
: ${ncftpd_config:="%%PREFIX%%/etc/ncftpd/general.cf %%PREFIX%%/etc/ncftpd/domain.cf"}
|
|
|
|
command=%%PREFIX%%/sbin/${name}
|
|
required_files="${ncftpd_config}"
|
|
command_args="${ncftpd_flags} ${ncftpd_config}"
|
|
|
|
run_rc_command "$1"
|