Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2014 20:01:07 +0000 (UTC)
From:      Kris Moore <kmoore@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r372741 - in head/net-im: . telegram-cli telegram-cli/files
Message-ID:  <201411182001.sAIK17Bb034734@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmoore
Date: Tue Nov 18 20:01:07 2014
New Revision: 372741
URL: https://svnweb.freebsd.org/changeset/ports/372741
QAT: https://qat.redports.org/buildarchive/r372741/

Log:
  Command-line interface for Telegram. Uses readline interface.
  
  WWW: https://github.com/vysheng/tg

Added:
  head/net-im/telegram-cli/
  head/net-im/telegram-cli/Makefile   (contents, props changed)
  head/net-im/telegram-cli/distinfo   (contents, props changed)
  head/net-im/telegram-cli/files/
  head/net-im/telegram-cli/files/patch-main.c   (contents, props changed)
  head/net-im/telegram-cli/pkg-descr   (contents, props changed)
Modified:
  head/net-im/Makefile

Modified: head/net-im/Makefile
==============================================================================
--- head/net-im/Makefile	Tue Nov 18 18:32:22 2014	(r372740)
+++ head/net-im/Makefile	Tue Nov 18 20:01:07 2014	(r372741)
@@ -141,6 +141,7 @@
     SUBDIR += skype
     SUBDIR += skype-devel
     SUBDIR += skype4
+    SUBDIR += telegram-cli
     SUBDIR += telepathy-butterfly
     SUBDIR += telepathy-farsight
     SUBDIR += telepathy-gabble

Added: head/net-im/telegram-cli/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/telegram-cli/Makefile	Tue Nov 18 20:01:07 2014	(r372741)
@@ -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>

Added: head/net-im/telegram-cli/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/telegram-cli/distinfo	Tue Nov 18 20:01:07 2014	(r372741)
@@ -0,0 +1,2 @@
+SHA256 (telegram-cli-1.0.5.1.tar.gz) = 42fcb2208a3534f15277fe466f9372db088910e7c5aa550b3e2269b84152aa31
+SIZE (telegram-cli-1.0.5.1.tar.gz) = 390920

Added: head/net-im/telegram-cli/files/patch-main.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/telegram-cli/files/patch-main.c	Tue Nov 18 20:01:07 2014	(r372741)
@@ -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");
+ 
+ 

Added: head/net-im/telegram-cli/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/telegram-cli/pkg-descr	Tue Nov 18 20:01:07 2014	(r372741)
@@ -0,0 +1,3 @@
+Command-line interface for Telegram. Uses readline interface.
+
+WWW: https://github.com/vysheng/tg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411182001.sAIK17Bb034734>