diff options
author | kmoore <kmoore@FreeBSD.org> | 2014-11-19 04:01:07 +0800 |
---|---|---|
committer | kmoore <kmoore@FreeBSD.org> | 2014-11-19 04:01:07 +0800 |
commit | ee8d8cd54bc7d0b3e760bb29eb94dcd7b6f88ef3 (patch) | |
tree | 55923ea93c32ccee4a34cf5652e922219897a04e /net-im | |
parent | 37a1f32f5e851b6e2934cb961a837a745045d704 (diff) | |
download | freebsd-ports-gnome-ee8d8cd54bc7d0b3e760bb29eb94dcd7b6f88ef3.tar.gz freebsd-ports-gnome-ee8d8cd54bc7d0b3e760bb29eb94dcd7b6f88ef3.tar.zst freebsd-ports-gnome-ee8d8cd54bc7d0b3e760bb29eb94dcd7b6f88ef3.zip |
Command-line interface for Telegram. Uses readline interface.
WWW: https://github.com/vysheng/tg
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/Makefile | 1 | ||||
-rw-r--r-- | net-im/telegram-cli/Makefile | 35 | ||||
-rw-r--r-- | net-im/telegram-cli/distinfo | 2 | ||||
-rw-r--r-- | net-im/telegram-cli/files/patch-main.c | 22 | ||||
-rw-r--r-- | net-im/telegram-cli/pkg-descr | 3 |
5 files changed, 63 insertions, 0 deletions
diff --git a/net-im/Makefile b/net-im/Makefile index 4cd1acfb01ea..393c8d4d70fa 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -141,6 +141,7 @@ SUBDIR += skype SUBDIR += skype-devel SUBDIR += skype4 + SUBDIR += telegram-cli SUBDIR += telepathy-butterfly SUBDIR += telepathy-farsight SUBDIR += telepathy-gabble diff --git a/net-im/telegram-cli/Makefile b/net-im/telegram-cli/Makefile new file mode 100644 index 000000000000..d42d7296ed0c --- /dev/null +++ b/net-im/telegram-cli/Makefile @@ -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> diff --git a/net-im/telegram-cli/distinfo b/net-im/telegram-cli/distinfo new file mode 100644 index 000000000000..e5c725c2eb5b --- /dev/null +++ b/net-im/telegram-cli/distinfo @@ -0,0 +1,2 @@ +SHA256 (telegram-cli-1.0.5.1.tar.gz) = 42fcb2208a3534f15277fe466f9372db088910e7c5aa550b3e2269b84152aa31 +SIZE (telegram-cli-1.0.5.1.tar.gz) = 390920 diff --git a/net-im/telegram-cli/files/patch-main.c b/net-im/telegram-cli/files/patch-main.c new file mode 100644 index 000000000000..b3344859e627 --- /dev/null +++ b/net-im/telegram-cli/files/patch-main.c @@ -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"); + + diff --git a/net-im/telegram-cli/pkg-descr b/net-im/telegram-cli/pkg-descr new file mode 100644 index 000000000000..ee03ea8499ca --- /dev/null +++ b/net-im/telegram-cli/pkg-descr @@ -0,0 +1,3 @@ +Command-line interface for Telegram. Uses readline interface. + +WWW: https://github.com/vysheng/tg |