diff -urN /usr/ports/ftp/pftpx/Makefile pftpx/Makefile --- /usr/ports/ftp/pftpx/Makefile Mon Dec 26 10:48:42 2005 +++ pftpx/Makefile Thu Jan 26 20:38:38 2006 @@ -18,6 +18,7 @@ MAN8= pftpx.8 PLIST_FILES= sbin/pftpx +USE_RC_SUBR= pftpx.sh .include diff -urN /usr/ports/ftp/pftpx/files/pftpx.sh.in pftpx/files/pftpx.sh.in --- /usr/ports/ftp/pftpx/files/pftpx.sh.in Thu Jan 1 03:00:00 1970 +++ pftpx/files/pftpx.sh.in Thu Jan 26 20:28:46 2006 @@ -0,0 +1,25 @@ +#!/bin/sh + +# PROVIDE: pftpx +# REQUIRE: DAEMON pf + +# +# Add the following lines to /etc/rc.conf to enable pftpx: +# +# pftpx_enable="YES" # YES or NO (default) +# pftpx_flags="" # pftpx command line flags +# + +. %%RC_SUBR%% + +name="pftpx" +rcvar=`set_rcvar` + +load_rc_config $name + +: ${pftpx_enable="NO"} +: ${pftpx_flags=""} + +command="%%PREFIX%%/sbin/${name}" + +run_rc_command "$1"