[Bug 184375] New port: net-mgmt/nagios-check_relayd_status Nagios plug-in to check on the status of relayd

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 7 17:13:25 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=184375

--- Comment #9 from John Marino <marino at FreeBSD.org> ---
no, don't it that way.

1) Rename files/check_relayd_status to files/check_relayd_status.in
2) change "#!/usr/local" to "#!@PREFIX@"
3) add a post-patch step something like

post-patch:
  ${SED} -e 's|@PREFIX@|${PREFIX}|' ${FILESDIR}/check_relayd_status.in \
  ${WRKSRC}/check_relayd_status

4) then change the INSTALL_SCRIPT command to install the script from there.


Alternatively, you can leave ${FILESDIR}/check_relayd_status alone, but copy it
to WRKSRC in post-patch, and then use shebangfix on it.  e.g. SHEBANGFILES=
check_relayd_status


So you have two ways to fix it.  the second might be preferable but either is
fine.  Did I explain it clearly?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list