1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Command-line interface for Telegram. Uses readline interface.

WWW: https://github.com/vysheng/tg
This commit is contained in:
Kris Moore 2014-11-18 20:01:07 +00:00
parent 74d7107830
commit 473a5d89df
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372741
5 changed files with 63 additions and 0 deletions

View File

@ -141,6 +141,7 @@
SUBDIR += skype
SUBDIR += skype-devel
SUBDIR += skype4
SUBDIR += telegram-cli
SUBDIR += telepathy-butterfly
SUBDIR += telepathy-farsight
SUBDIR += telepathy-gabble

View File

@ -0,0 +1,35 @@
# Created by: kmoore@FreeBSD.org
# $FreeBSD$
PORTNAME= telegram-cli
DISTVERSION= 1.0.5.1
CATEGORIES= net-im
MAINTAINER= kmoore@FreeBSD.org
COMMENT= Telegram CLI messaging client
LICENSE= GPLv2
LIB_DEPENDS= libconfig.so:${PORTSDIR}/devel/libconfig
USE_GITHUB= yes
GH_ACCOUNT= vysheng
GH_COMMIT= 77bbb4c
GH_TAGNAME= 1.0.5.1
GH_PROJECT= tg
USES= libtool execinfo lua gmake
HAS_CONFIGURE= yes
PLIST_FILES= bin/telegram-cli \
etc/telegram-cli/server.pub
.include <bsd.port.pre.mk>
pre-configure:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/main.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/telegram-cli ${STAGEDIR}${LOCALBASE}/bin/telegram-cli
@${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/telegram-cli
${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${LOCALBASE}/etc/telegram-cli/server.pub
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
SHA256 (telegram-cli-1.0.5.1.tar.gz) = 42fcb2208a3534f15277fe466f9372db088910e7c5aa550b3e2269b84152aa31
SIZE (telegram-cli-1.0.5.1.tar.gz) = 390920

View File

@ -0,0 +1,22 @@
--- main.c.orig 2014-09-24 06:35:27.000000000 -0400
+++ main.c 2014-11-18 10:30:56.677155518 -0500
@@ -29,6 +29,10 @@
#include <termios.h>
#include <unistd.h>
#include <assert.h>
+#ifdef __FreeBSD__
+#include <sys/socket.h>
+#include <netinet/in.h>
+#endif
#if (READLINE == GNU)
#include <readline/readline.h>
#else
@@ -803,7 +807,7 @@
running_for_first_time ();
parse_config ();
- tgl_set_rsa_key ("/etc/" PROG_NAME "/server.pub");
+ tgl_set_rsa_key ("%%LOCALBASE%%/etc/" PROG_NAME "/server.pub");
tgl_set_rsa_key ("tg-server.pub");

View File

@ -0,0 +1,3 @@
Command-line interface for Telegram. Uses readline interface.
WWW: https://github.com/vysheng/tg