Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 658542

Summary: net-proxy/mtproxy: MT-Proto proxy
Product: Gentoo Linux Reporter: Anna Tikhomirova <vamp>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: UNCONFIRMED ---    
Severity: normal CC: alexander, hydrapolic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mtproxy-9999.ebuild
metadata.xml
mtproxy-9999-compile-flags.patch
mtproxy-config.service
mtproxy-config.timer
mtproxy.conf
mtproxy.service
mtproxy.sh
metadata.xml
mtproxy.sh
mtproxy-9999.ebuild
mtproxy-9999-compile-flags.patch
mtproxy.conf
mtproxy.service
mtproxy-config.service
mtproxy-config.timer

Description Anna Tikhomirova 2018-06-19 22:44:48 UTC
Created attachment 536466 [details]
mtproxy-9999.ebuild

Hello.

Here is the ebuild for the official implementation of Telegram Messenger MTProxy Server.

There is one downside. I only have Gentoo with systemd so I didn't write OpenRC init.d scripts. In other it is fully functional, including Makefile patch for Gentoo build system.
Comment 1 Anna Tikhomirova 2018-06-19 22:45:47 UTC
Created attachment 536468 [details]
metadata.xml
Comment 2 Anna Tikhomirova 2018-06-19 22:46:28 UTC
Created attachment 536470 [details, diff]
mtproxy-9999-compile-flags.patch
Comment 3 Anna Tikhomirova 2018-06-19 22:46:59 UTC
Created attachment 536474 [details]
mtproxy-config.service
Comment 4 Anna Tikhomirova 2018-06-19 22:47:27 UTC
Created attachment 536476 [details]
mtproxy-config.timer
Comment 5 Anna Tikhomirova 2018-06-19 22:48:09 UTC
Created attachment 536478 [details]
mtproxy.conf
Comment 6 Anna Tikhomirova 2018-06-19 22:48:45 UTC
Created attachment 536480 [details]
mtproxy.service
Comment 7 Anna Tikhomirova 2018-06-19 22:49:23 UTC
Created attachment 536482 [details]
mtproxy.sh
Comment 8 Jimmy.Jazz 2018-06-20 15:41:11 UTC
ebuild mtproxy-9999.ebuild digest command gives 
 External commands disallowed while sourcing ebuild:

please, do sed -i.saved 's:\x0D$::' to convert the files format from dos to unix

adding  -Wno-error=format-security to CFLAGS was necessary too

thx
Comment 9 Anna Tikhomirova 2018-06-20 16:00:57 UTC
(In reply to Jimmy.Jazz from comment #8)
> please, do sed -i.saved 's:\x0D$::' to convert the files format from dos to
> unix

My original files have correct unix line endings. However I used "paste text as attachment" option to attach them. I'll try to attach the files directly.
Comment 10 Anna Tikhomirova 2018-06-20 16:02:34 UTC
Created attachment 536504 [details]
metadata.xml
Comment 11 Anna Tikhomirova 2018-06-20 16:03:00 UTC
Created attachment 536508 [details]
mtproxy.sh
Comment 12 Anna Tikhomirova 2018-06-20 16:03:26 UTC
Created attachment 536510 [details]
mtproxy-9999.ebuild
Comment 13 Anna Tikhomirova 2018-06-20 16:03:47 UTC
Created attachment 536512 [details, diff]
mtproxy-9999-compile-flags.patch
Comment 14 Anna Tikhomirova 2018-06-20 16:04:09 UTC
Created attachment 536514 [details]
mtproxy.conf
Comment 15 Anna Tikhomirova 2018-06-20 16:04:27 UTC
Created attachment 536516 [details]
mtproxy.service
Comment 16 Anna Tikhomirova 2018-06-20 16:04:43 UTC
Created attachment 536520 [details]
mtproxy-config.service
Comment 17 Anna Tikhomirova 2018-06-20 16:05:02 UTC
Created attachment 536522 [details]
mtproxy-config.timer
Comment 18 Anna Tikhomirova 2018-06-20 16:11:56 UTC
(In reply to Jimmy.Jazz from comment #8)

> adding  -Wno-error=format-security to CFLAGS was necessary too

Did you encounter any compile error? How to reproduce this? I'm getting no errors and warnings with sys-devel/gcc: 6.4.0-r1::gentoo and standard ("-O2 -march=<my_arch> -pipe") or even empty CFLAGS.