Created attachment 200046 [details] Shar file for net/microsocks (Revision 1) MicroSocks is a SOCKS5 service that you can run on your remote boxes to tunnel connections through them, if for some reason SSH doesn't cut it for you. WWW: https://github.com/rofl0r/microsocks
Comment on attachment 200046 [details] Shar file for net/microsocks (Revision 1) Xpost-patch: X @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Makefile ${LOCALBASE} = /usr/local ; why the need to use ?
(In reply to Nathan from comment #1) LOCALBASE is configurable. PREFIX is also configurable, and defaults to LOCALBASE.
(In reply to Kubilay Kocak from comment #2) True, didn't think about it being configurable. I though of it more of changing /usr/local to /usr/local
Committed with some changes. Thanks! I took the liberty of also updating it to 1.0.1, which had two small bug fixes: https://github.com/rofl0r/microsocks/compare/v1.0.0...v1.0.1 Using LOCALBASE here is wrong. LOCALBASE is were dependencies come from, PREFIX is were the port is installed into. The `prefix` variable in microsock's Makefile is never used since we roll our own do-install target here, so there is little point in even patching it. In fact patching it here is never necessary. If we had to change it something like MAKE_ARGS= prefix=${PREFIX} to override it would get the job done in a cleaner way.
A commit references this bug: Author: tobik Date: Fri Jan 25 07:08:11 UTC 2019 New revision: 491126 URL: https://svnweb.freebsd.org/changeset/ports/491126 Log: New port: net/microsocks MicroSocks is a SOCKS5 service that you can run on your remote boxes to tunnel connections through them, if for some reason SSH does not cut it for you. WWW: https://github.com/rofl0r/microsocks PR: 233941 Submitted by: neel@neelc.org Changes: head/net/Makefile head/net/microsocks/ head/net/microsocks/Makefile head/net/microsocks/distinfo head/net/microsocks/pkg-descr