Compare commits

..

No commits in common. "323f0091f88bf35b64e727d3f1e89c0b85e3b408" and "7b5a9e9eca4eb8ebf5aa8faaee9788602f2d4135" have entirely different histories.

3 changed files with 6 additions and 18 deletions

View File

@ -38,6 +38,6 @@ pre-test:
${SETENV} GOPATH="${WRKDIR}"
post-install:
${INSTALL_DATA} ${WRKSRC}/mynettcptable.conf.sample ${STAGEDIR}${PREFIX}/etc/
${INSTALL_DATA} ${WRKSRC}/mynettcptable.conf.sample ${STAGEDIR}${PREFIX}/etc
.include <bsd.port.mk>

View File

@ -29,23 +29,12 @@ load_rc_config $name
: ${mynettcptable_enable="NO"}
: ${mynettcptable_config="/usr/local/etc/mynettcptable.conf"}
: ${mynettcptable_loglevel="warn"}
: ${mynettcptable_user:="nobody"}
: ${mynettcptable_user:="mynettcptable"}
: ${mynettcptable_pidfile:="/var/run/mynettcptable.pid"}
: ${mynettcptable_logfile="/var/log/mynettcptable.log"}
pidfile="/var/run/${name}/${name}.pid"
mynettcptable_command="/usr/local/bin/mynettcptable"
start_precmd="mynettcptable_prestart"
command="/usr/sbin/daemon"
command_args="-P ${pidfile} -u ${mynettcptable_user} -r -f ${mynettcptable_command} -config=${mynettcptable_config} -logLevel=${mynettcptable_loglevel} -logLevel=${mynettcptable_loglevel} >> ${mynettcptable_logfile} 2>&1"
mynettcptable_prestart()
{
mkdir /var/run/${name} >/dev/null 2>&1
touch ${mynettcptable_logfile}
chown ${mynettcptable_user} /var/run/${name}
chown ${mynettcptable_user} ${mynettcptable_logfile}
}
command="/usr/local/bin/mynettcptable"
command_args="-config=\${mynettcptable_config} -logLevel=\${mynettcptable_loglevel} -logLevel=\${mynettcptable_loglevel} > ${mynettcptable_logfile} 2>&1"
start_cmd="/usr/sbin/daemon -u ${mynettcptable_user} ${command} ${command_args}"
run_rc_command "$1"

View File

@ -1,2 +1 @@
bin/mynettcptable
@sample etc/mynettcptable.conf.sample