From 20101b8a1db8a9db487770cddfcefcf6509bf81c Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Mon, 5 Oct 2020 22:45:14 +0000 Subject: [PATCH] Add net-im/telegram-cli Telegram-cli is a command-line interface for the Telegram instant-messaging network. WWW: https://github.com/kenorb-contrib/tg This is a repocopy of net-im/telegram. There are 2 reasons for it: 1. net-im/telegram upstream (https://github.com/vysheng/tg) is not active anymore. Telegram CLI is being maintained by a community gathered around a fork on GitHub: https://github.com/kenorb-contrib/tg. People might want to stick to the original version of Telegram CLI, so let's give them an option to do that. 2. Most other packaging systems package this piece of software as telegram-cli (see https://repology.org/project/telegram-cli/versions). Let's take this opportunity to have a package name consistent with other projects. --- net-im/Makefile | 1 + net-im/telegram-cli/Makefile | 48 +++++++++++++++++++++++++++++++++++ net-im/telegram-cli/distinfo | 5 ++++ net-im/telegram-cli/pkg-descr | 4 +++ 4 files changed, 58 insertions(+) create mode 100644 net-im/telegram-cli/Makefile create mode 100644 net-im/telegram-cli/distinfo create mode 100644 net-im/telegram-cli/pkg-descr diff --git a/net-im/Makefile b/net-im/Makefile index 8d1d4558815d..f9afa47f900c 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -150,6 +150,7 @@ SUBDIR += talkatu SUBDIR += teamwords SUBDIR += telegram + SUBDIR += telegram-cli SUBDIR += telegram-desktop SUBDIR += telegram-purple SUBDIR += telegramqml diff --git a/net-im/telegram-cli/Makefile b/net-im/telegram-cli/Makefile new file mode 100644 index 000000000000..bbc941e4dd49 --- /dev/null +++ b/net-im/telegram-cli/Makefile @@ -0,0 +1,48 @@ +# Created by: gahr +# $FreeBSD$ + +PORTNAME= telegram-cli +DISTVERSION= 20200106 +CATEGORIES= net-im + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Command-line interface for Telegram + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libconfig.so:devel/libconfig \ + libevent.so:devel/libevent \ + libjansson.so:devel/jansson + +USES= gmake lua pkgconfig readline ssl +USE_GITHUB= yes +GH_ACCOUNT= kenorb-contrib +GH_PROJECT= tg +GH_TUPLE= kenorb-contrib:tgl:57f1bc4:tgl/tgl + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-python + +CFLAGS+= -fcommon + +CONFLICTS_INSTALL= telegram + +PLIST_FILES= ${ETCDIR}/server.pub \ + bin/${PORTNAME} \ + share/man/man1/${PORTNAME}.1.gz +PORTDOCS= CHANGELOG README-LUA README.es README.md + +OPTIONS_DEFINE= DOCS + +do-install: + @${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${ETCDIR}/server.pub + ${INSTALL_MAN} ${WRKSRC}/telegram.1 ${STAGEDIR}${PREFIX}/share/man/man1/${PORTNAME}.1 + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) + +.include diff --git a/net-im/telegram-cli/distinfo b/net-im/telegram-cli/distinfo new file mode 100644 index 000000000000..e75bd71afffb --- /dev/null +++ b/net-im/telegram-cli/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1601931813 +SHA256 (kenorb-contrib-tg-20200106_GH0.tar.gz) = 824504804e8c0bb20943d765ba54feaacda7b2ec34735da0cfe5d5e61348d519 +SIZE (kenorb-contrib-tg-20200106_GH0.tar.gz) = 167428 +SHA256 (kenorb-contrib-tgl-57f1bc4_GH0.tar.gz) = 1d0cec7cf19ee90bf8a6c43a9835c87f28c33593f6b508be608cf3842d3d218a +SIZE (kenorb-contrib-tgl-57f1bc4_GH0.tar.gz) = 271320 diff --git a/net-im/telegram-cli/pkg-descr b/net-im/telegram-cli/pkg-descr new file mode 100644 index 000000000000..80dd209a5d05 --- /dev/null +++ b/net-im/telegram-cli/pkg-descr @@ -0,0 +1,4 @@ +Telegram-cli is a command-line interface +for the Telegram instant-messaging network. + +WWW: https://github.com/kenorb-contrib/tg