ports/ftp/wzdftpd/files/wzdftpd.in
Alexey Dokuchaev 01dd3d3c6a ftp/wzdftpd: the port had been further improved (+)
- Unbreak the build against OpenSSL (untested)
- Do not install useless static libraries
- Build with PAM support (and enable by default)
- Annotate installed sample configuration file as @sample
- Minor textual nits in rc script and port description
2021-07-08 12:48:24 +00:00

22 lines
439 B
Bash

#!/bin/sh
# PROVIDE: wzdftpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable wzdftpd:
# wzdftpd_enable="YES"
# wzdftpd_flags="<set as needed>"
wzdftpd_enable=${wzdftpd_enable:-"NO"} # Enable wzdftpd
. /etc/rc.subr
name="wzdftpd"
rcvar=wzdftpd_enable
command="%%PREFIX%%/sbin/${name}"
required_files="%%PREFIX%%/etc/wzdftpd/wzd.cfg"
load_rc_config $name
run_rc_command "$1"