FreeBSD Bugzilla – Attachment 200006 Details for
Bug 233908
[NEW PORT] net/mtg: Community implementation of TMProto Proxy for Telegram
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Diff with the port
mtg.diff (text/plain), 4.69 KB, created by
Anton
on 2018-12-10 11:46:21 UTC
(
hide
)
Description:
Diff with the port
Filename:
MIME Type:
Creator:
Anton
Created:
2018-12-10 11:46:21 UTC
Size:
4.69 KB
patch
obsolete
>Index: net/mtg/Makefile >=================================================================== >--- net/mtg/Makefile (nonexistent) >+++ net/mtg/Makefile (working copy) >@@ -0,0 +1,36 @@ >+# $FreeBSD$ >+ >+PORTNAME= mtg >+DISTVERSION= 0.15.1 >+CATEGORIES= net >+ >+MAINTAINER= onlinehead@gmail.com >+COMMENT= Mtg is a Golang implementation of MTProto proxy server for Telegram >+ >+LICENSE= MIT >+ >+BUILD_DEPENDS= git:devel/git >+ >+USES= go >+ >+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} >+ >+USE_GITHUB= yes >+GH_ACCOUNT= 9seconds >+GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} >+ >+MAKE_ENV+= GO111MODULE=on >+USE_RC_SUBR= mtg >+ >+post-patch: >+ @${MKDIR} ${WRKSRC}/src/golang.org >+ >+do-build: >+ @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \ >+ ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GO111MODULE=on go build -ldflags \ >+ "-s -w -X 'main.version=v${DISTVERSION}'" -o mtg; >+ >+do-install: >+ ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/mtg ${STAGEDIR}${PREFIX}/bin/mtg >+ >+.include <bsd.port.mk> > >Property changes on: net/mtg/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net/mtg/distinfo >=================================================================== >--- net/mtg/distinfo (nonexistent) >+++ net/mtg/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1544396609 >+SHA256 (9seconds-mtg-0.15.1_GH0.tar.gz) = 95a59b4a7281d38ae6dacc4fe537dbf87af7b8500949a8c478226cf2d31cd1db >+SIZE (9seconds-mtg-0.15.1_GH0.tar.gz) = 37372 > >Property changes on: net/mtg/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net/mtg/files/mtg.in >=================================================================== >--- net/mtg/files/mtg.in (nonexistent) >+++ net/mtg/files/mtg.in (working copy) >@@ -0,0 +1,31 @@ >+#!/bin/sh >+# $FreeBSD$ >+# >+# PROVIDE: mtg >+# REQUIRE: DAEMON NETWORKING LOGIN >+# KEYWORD: shutdown >+# >+# Add following lines to /etc/rc.conf to enable the MTG: >+# >+# mtg_enabl (bool): Set NO by default >+# Set YES to enable daemon >+# >+# >+# mtg_args (str): CLI arguments for mtg. >+# Use `mtg --help` to get instruction. >+. /etc/rc.subr >+ >+name="mtg" >+rcvar=mtg_enable >+mtg_command="/usr/local/bin/${name}" >+pidfile="/var/run/${name}.pid" >+ >+load_rc_config $name >+ >+: ${mtg_enable:=no} >+: ${mtg_args:=""} >+ >+command="/usr/sbin/daemon" >+command_args="-P ${pidfile} -S -T ${name} -r -f ${mtg_command} ${mtg_args}" >+ >+run_rc_command "$1" > >Property changes on: net/mtg/files/mtg.in >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net/mtg/pkg-descr >=================================================================== >--- net/mtg/pkg-descr (nonexistent) >+++ net/mtg/pkg-descr (working copy) >@@ -0,0 +1,9 @@ >+Mtg is an implementation of MTProto proxy in golang which is intended to be: >+ >+- Lightweight. It has to consume as less resources as possible but not by losing maintainability. >+- Easily deployable. I strongly believe that Telegram proxies should follow the way >+ of ShadowSocks: promoted channels is a strange way of doing business I suppose. >+- Single secret. I think that multiple secrets solves no problems and just complexify software. >+- No management WebUI. This is an implementation of simple lightweight proxy. >+ >+WWW: https://github.com/9seconds/mtg > >Property changes on: net/mtg/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net/mtg/pkg-plist >=================================================================== >--- net/mtg/pkg-plist (nonexistent) >+++ net/mtg/pkg-plist (working copy) >@@ -0,0 +1,2 @@ >+bin/mtg >+etc/rc.d/mtg > >Property changes on: net/mtg/pkg-plist >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233908
:
200006
|
200439
|
232019
|
232034
|
232652
|
239386