Bug 233941 - [NEW PORT] net/microsocks: multithreaded, small, efficient SOCKS5 server
Summary: [NEW PORT] net/microsocks: multithreaded, small, efficient SOCKS5 server
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias Kortkamp
URL: https://github.com/rofl0r/microsocks
Keywords: feature
Depends on:
Blocks:
 
Reported: 2018-12-11 17:37 UTC by Neel Chauhan
Modified: 2019-01-25 07:09 UTC (History)
2 users (show)

See Also:


Attachments
Shar file for net/microsocks (Revision 1) (1.66 KB, text/plain)
2018-12-11 17:37 UTC, Neel Chauhan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neel Chauhan freebsd_committer freebsd_triage 2018-12-11 17:37:46 UTC
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 1 Nathan 2018-12-12 00:43:56 UTC
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 ?
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2018-12-12 04:05:21 UTC
(In reply to Nathan from comment #1)

LOCALBASE is configurable. PREFIX is also configurable, and defaults to LOCALBASE.
Comment 3 Nathan 2018-12-12 04:08:39 UTC
(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
Comment 4 Tobias Kortkamp freebsd_committer freebsd_triage 2019-01-25 07:08:33 UTC
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.
Comment 5 commit-hook freebsd_committer freebsd_triage 2019-01-25 07:09:07 UTC
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