Date: Thu, 2 Oct 2014 08:59:03 +0000 (UTC) From: Pietro Cerutti <gahr@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369804 - in head/net-im: . tg tg/files Message-ID: <201410020859.s928x3DI050883@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gahr Date: Thu Oct 2 08:59:02 2014 New Revision: 369804 URL: https://svnweb.freebsd.org/changeset/ports/369804 QAT: https://qat.redports.org/buildarchive/r369804/ Log: - New port: net-im/tg -- a command-line client for the Telegram network WWW: https://github.com/vysheng/tg Added: head/net-im/tg/ head/net-im/tg/Makefile (contents, props changed) head/net-im/tg/distinfo (contents, props changed) head/net-im/tg/files/ head/net-im/tg/files/patch-main.c (contents, props changed) head/net-im/tg/pkg-descr (contents, props changed) Modified: head/net-im/Makefile Modified: head/net-im/Makefile ============================================================================== --- head/net-im/Makefile Thu Oct 2 08:14:45 2014 (r369803) +++ head/net-im/Makefile Thu Oct 2 08:59:02 2014 (r369804) @@ -152,6 +152,7 @@ SUBDIR += telepathy-qt4 SUBDIR += telepathy-salut SUBDIR += telepathy-sofiasip + SUBDIR += tg SUBDIR += tkabber SUBDIR += tkabber-plugins SUBDIR += tkabbur Added: head/net-im/tg/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/tg/Makefile Thu Oct 2 08:59:02 2014 (r369804) @@ -0,0 +1,32 @@ +# Created by: gahr +# $FreeBSD$ + +PORTNAME= tg +PORTVERSION= 1.0.5.1 +CATEGORIES= net-im + +MAINTAINER= gahr@FreeBSD.org +COMMENT= Command-line interface for Telegram + +LIB_DEPENDS= libconfig.so:${PORTSDIR}/devel/libconfig + +USE_GITHUB= yes +GH_ACCOUNT= vysheng +GH_TAGNAME= 1.0.5.1 +GH_COMMIT= 77bbb4c + +USES= execinfo gmake lua:52 readline +GNU_CONFIGURE= yes +CFLAGS+= -g -O0 + +PLIST_FILES= bin/telegram-cli \ + etc/tg-server.pub + +post-patch: + ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/main.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/telegram-cli ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${PREFIX}/etc + +.include <bsd.port.mk> Added: head/net-im/tg/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/tg/distinfo Thu Oct 2 08:59:02 2014 (r369804) @@ -0,0 +1,2 @@ +SHA256 (tg-1.0.5.1.tar.gz) = 42fcb2208a3534f15277fe466f9372db088910e7c5aa550b3e2269b84152aa31 +SIZE (tg-1.0.5.1.tar.gz) = 390920 Added: head/net-im/tg/files/patch-main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/tg/files/patch-main.c Thu Oct 2 08:59:02 2014 (r369804) @@ -0,0 +1,19 @@ +--- main.c.orig 2014-09-24 12:35:27.000000000 +0200 ++++ main.c 2014-10-02 10:22:46.000000000 +0200 +@@ -59,6 +59,7 @@ + + #include <grp.h> + #include <arpa/inet.h> ++#include <netinet/in.h> + + #include "telegram.h" + #include "loop.h" +@@ -803,7 +804,7 @@ + running_for_first_time (); + parse_config (); + +- tgl_set_rsa_key ("/etc/" PROG_NAME "/server.pub"); ++ tgl_set_rsa_key ("%%PREFIX%%/etc/tg-server.pub"); + tgl_set_rsa_key ("tg-server.pub"); + + Added: head/net-im/tg/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/tg/pkg-descr Thu Oct 2 08:59:02 2014 (r369804) @@ -0,0 +1,3 @@ +tg is a command-line interface for the Telegram instant-messaging network. + +WWW: https://github.com/vysheng/tg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410020859.s928x3DI050883>