Created attachment 179999 [details] Patch based off of revision 434135 Fix configuration paths in CGIs and reports to include /usr/local/etc/rtg. Affects common.php, reports.pl, and 95.pl. This will fix the CGIs to almost work out of the box. Improve rtgtargmkr.pl to skip unresponsive routers rather than dying.
Hi, Andrew, Your patches are forcing PREFIX == /usr/local and that's a no-no. The normal approach is to use patching insert a %%PREFIX%% token into the various files and then use sed to convert that to the current value of ${PREFIX} as part of the post-patch: target. Does that make sense to you?
Created attachment 181232 [details] Patch that fixes PREFIX
I think I get it. Does the new patch fix that?
Created attachment 181234 [details] Fix typo in previous patch
Oh, and you need USES=ssl as well.
Created attachment 181235 [details] Now with USES=ssl too
Why does it need SSL?
One of the binaries links against libcrypto.so Adding 'USES=ssl' means it automatically links against the ports version of openssl or libressl if the user has specified one of those as a default.
Use 'poudriere testport' to find these sort of things.
Ok. Since it was just patches to some scripts I didn't bother testing much of the build. I presumed that the existing port was acceptable.
Are we able to continue on this, or are you waiting on something?
I'm waiting either for approval from the maintainer, or for the maintainer-timeout period to pass. After that, I'll go ahead and commit.
A commit references this bug: Author: matthew Date: Tue Apr 11 07:17:49 UTC 2017 New revision: 438250 URL: https://svnweb.freebsd.org/changeset/ports/438250 Log: Patch based off of revision 434135 Fix configuration paths in CGIs and reports to include /usr/local/etc/rtg. Affects common.php, reports.pl, and 95.pl. This will fix the CGIs to almost work out of the box. Improve rtgtargmkr.pl to skip unresponsive routers rather than dying. Add USES=ssl PR: 217108 Submitted by: andrew.fengler@scaleengine.com Approved by: maintainer timeout (15 days) Changes: head/net/rtg/Makefile head/net/rtg/files/patch-etc-rtgtargmkr.pl.in head/net/rtg/files/patch-etc_95.pl head/net/rtg/files/patch-etc_common.php.in head/net/rtg/files/patch-etc_report.pl