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.
This commit is contained in:
Mateusz Piotrowski
2020-10-05 22:45:14 +00:00
parent 7ec4af8c44
commit 20101b8a1d
4 changed files with 58 additions and 0 deletions
+1
View File
@@ -150,6 +150,7 @@
SUBDIR += talkatu
SUBDIR += teamwords
SUBDIR += telegram
SUBDIR += telegram-cli
SUBDIR += telegram-desktop
SUBDIR += telegram-purple
SUBDIR += telegramqml
+48
View File
@@ -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 <bsd.port.mk>
+5
View File
@@ -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
+4
View File
@@ -0,0 +1,4 @@
Telegram-cli is a command-line interface
for the Telegram instant-messaging network.
WWW: https://github.com/kenorb-contrib/tg