Created attachment 200006 [details] Diff with the port New port net/mtg. That application is created by community, pure Golang implementation of MTProto Proxy for Telegram messenger which helps people to use it in case of original servers of Telegram is blocked by someone. Source: https://github.com/9seconds/mtg
Comment on attachment 200006 [details] Diff with the port COMMENT= Mtg is a Golang implementation of MTProto proxy server for Telegram Don't include port name in comment I haven't looked at the source, but if it has a license file, needs to be put in LICENSE_FILE=
Created attachment 200439 [details] Diff with the port Description is updated, LICENSE_FILE added.
I'm sorry, but I'm rejecting this. The port opens network connections during the build which our package building tool Poudriere doesn't allow. If you can fix this please reopen. Look at some Go ports on how they build themselves for inspiration for example devel/grv.
Created attachment 232019 [details] mtg.patch (In reply to Tobias Kortkamp from comment #3) Updated version of the port in the attachment. The port hasn't opened network connections during the build anymore.
Reopen it in case Boris Korzun will maintain it in future. Unfortunately I have no resources and needs to do that.
Created attachment 232034 [details] mtg.patch (In reply to Anton from comment #5) Ok. I can take a maintainership.
Created attachment 232652 [details] mtg.patch Updated to 2.1.6.
Created attachment 239386 [details] mtg.patch Update to 2.1.7
^Triage: maintainer-feedback has no relevance for new ports.
Created attachment 258526 [details] mtg.patch
Returning this to the pool to let someone else decide
(In reply to Boris Korzun from comment #10) Hello, Boris. It looks like this string in the rc.d script doesn't work as expected: command_args="-f -t ${name} ${mtg_syslog_output_flags} -P ${pidfile} %%PREFIX%%/bin/mtg ${mtg_args}" "service mtg start" does nothing for me (FreeBSD 14.3). No mtg process starts. This string works fine, so i solved my personal trouble: command_args="-f -t ${name} ${mtg_syslog_output_flags} -P ${pidfile} /usr/local/bin/mtg ${mtg_args}" I'm not a ports hacker and can't fix it properly or explain why it happens. Thanks for your work!
I'd suggest including the example config file from the original repository as /usr/local/etc/mtg.toml{.example}: https://github.com/9seconds/mtg/blob/master/example.config.toml You might also add a default value for: mtg_args="run /usr/local/etc/mtg.toml"
The fact that nobody has committed this really simple port for 7 years is a shame. This port is extremely useful for countries with restricted Internet access. It's not just "a proxy" - it's the ability to communicate despite restrictions, feeling much more like a VPN solution. So, guys, could you please review and commit the port? Thanks in advance.
Created attachment 268170 [details] mtg.patch Update to 2.1.9, also added sample config. (In reply to Andrey Khlebutin from comment #12) > It looks like this string in the rc.d script doesn't work as expected I've tested on FreeBSD 14-stable, but haven't faced with the trouble. Have you tested by `make port install`? (In reply to Andrey Khlebutin from comment #13) > I'd suggest including the example config file from the original repository Ok, added. Please check the patch.
(In reply to Boris Korzun from comment #15) It looks like it was my fault - everything works fine now! Thank you!
(In reply to Boris Korzun from comment #15) It looks like there's a typo in the rc.d/mtg script: > # mtg_syslog_enable (string): Set to YES to enable syslog output but the "mtg_syslog_output_enable" variable is checked later: > if checkyesno mtg_syslog_output_enable; then > ...
Created attachment 268208 [details] mtg.patch Update to 2.1.10 (In reply to Andrey Khlebutin from comment #17) Yep, it's just a typo in a comment. Fixed. Thx.
Created attachment 268396 [details] mtg.patch Updated to 2.1.12.
Looking forward to seeing this port in pkgs. There is an update 2.1.13 in the upstream
Created attachment 268510 [details] mtg.patch (In reply to Ivan from comment #20) Updated to 2.1.13