- Add amd64 support for 6.x and 7.x - Remove 5.x support - Update startup script to rcNG - Fix docs handling - Cleanup and tweaks PR: ports/127527 Submitted by: OH Changsun <oh@xbsd.kr>
28 lines
610 B
Bash
28 lines
610 B
Bash
#!/bin/sh
|
|
|
|
# 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
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="ncftpd"
|
|
rcvar=`set_rcvar`
|
|
|
|
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"
|