svn commit: r551547 - in head/net-im: . telegram-cli telegram-cli/files

Mateusz Piotrowski 0mp at FreeBSD.org
Mon Oct 5 22:45:15 UTC 2020


Author: 0mp
Date: Mon Oct  5 22:45:14 2020
New Revision: 551547
URL: https://svnweb.freebsd.org/changeset/ports/551547

Log:
  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.

Added:
  head/net-im/telegram-cli/
     - copied from r551546, head/net-im/telegram/
Deleted:
  head/net-im/telegram-cli/files/
Modified:
  head/net-im/Makefile
  head/net-im/telegram-cli/Makefile
  head/net-im/telegram-cli/distinfo
  head/net-im/telegram-cli/pkg-descr

Modified: head/net-im/Makefile
==============================================================================
--- head/net-im/Makefile	Mon Oct  5 22:40:26 2020	(r551546)
+++ head/net-im/Makefile	Mon Oct  5 22:45:14 2020	(r551547)
@@ -150,6 +150,7 @@
     SUBDIR += talkatu
     SUBDIR += teamwords
     SUBDIR += telegram
+    SUBDIR += telegram-cli
     SUBDIR += telegram-desktop
     SUBDIR += telegram-purple
     SUBDIR += telegramqml

Modified: head/net-im/telegram-cli/Makefile
==============================================================================
--- head/net-im/telegram/Makefile	Mon Oct  5 22:40:26 2020	(r551546)
+++ head/net-im/telegram-cli/Makefile	Mon Oct  5 22:45:14 2020	(r551547)
@@ -1,9 +1,8 @@
 # Created by: gahr
 # $FreeBSD$
 
-PORTNAME=	telegram
-PORTVERSION=	1.4.1.g20161227
-PORTREVISION=	7
+PORTNAME=	telegram-cli
+DISTVERSION=	20200106
 CATEGORIES=	net-im
 
 MAINTAINER=	0mp at FreeBSD.org
@@ -12,48 +11,38 @@ COMMENT=	Command-line interface for Telegram
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_mips=	Missing header
-BROKEN_mips64=	Missing header
-BROKEN_powerpc64=	Does not build: Assertion failed: (get_int () == TLS_SCHEMA_V2)
-
-DEPRECATED=	Upstream unmaintained; please migrate to net-im/telegram-cli
-EXPIRATION_DATE=	2021-01-14
-
 LIB_DEPENDS=	libconfig.so:devel/libconfig \
 		libevent.so:devel/libevent \
 		libjansson.so:devel/jansson
 
-USES=		gmake lua:52 pkgconfig readline ssl
+USES=		gmake lua pkgconfig readline ssl
 USE_GITHUB=	yes
-GH_ACCOUNT=	vysheng
-GH_PROJECT=	tg tgl:tgl tl-parser:tlparser
-GH_SUBDIR=	tgl:tgl tgl/tl-parser:tlparser
-GH_TAGNAME=	6547c0b ffb04ca:tgl 36bf190:tlparser
+GH_ACCOUNT=	kenorb-contrib
+GH_PROJECT=	tg
+GH_TUPLE=	kenorb-contrib:tgl:57f1bc4:tgl/tgl
 
-CFLAGS+=	-fcommon
-
 GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-python
 
-CONFLICTS_INSTALL=	telegram-cli
+CFLAGS+=	-fcommon
 
-PLIST_FILES=	bin/telegram-cli \
-		etc/telegram-cli/server.pub
-PORTDOCS=	*
+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
 
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-openssl-1.1.0
-.endif
-
 do-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/telegram-cli
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/telegram-cli ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${PREFIX}/etc/telegram-cli/server.pub
+	@${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} CHANGELOG README-LUA README.es README.md \
-		${STAGEDIR}${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>

Modified: head/net-im/telegram-cli/distinfo
==============================================================================
--- head/net-im/telegram/distinfo	Mon Oct  5 22:40:26 2020	(r551546)
+++ head/net-im/telegram-cli/distinfo	Mon Oct  5 22:45:14 2020	(r551547)
@@ -1,7 +1,5 @@
-TIMESTAMP = 1482845149
-SHA256 (vysheng-tg-1.4.1.g20161227-6547c0b_GH0.tar.gz) = 1e70d800d46e92ab71360db4fee8b63512d682986aa4d8d90adf49219ec17928
-SIZE (vysheng-tg-1.4.1.g20161227-6547c0b_GH0.tar.gz) = 307276
-SHA256 (vysheng-tgl-ffb04ca_GH0.tar.gz) = 2a2aafe6366e3a4c7df2af916c015fa0c0200094e785e69396ca6ff0ef612cd4
-SIZE (vysheng-tgl-ffb04ca_GH0.tar.gz) = 240798
-SHA256 (vysheng-tl-parser-36bf190_GH0.tar.gz) = 9c4222cfc39f1f58061678c2a22dac5d2391e2594d4ec00e5ab9a7c12e606789
-SIZE (vysheng-tl-parser-36bf190_GH0.tar.gz) = 66898
+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

Modified: head/net-im/telegram-cli/pkg-descr
==============================================================================
--- head/net-im/telegram/pkg-descr	Mon Oct  5 22:40:26 2020	(r551546)
+++ head/net-im/telegram-cli/pkg-descr	Mon Oct  5 22:45:14 2020	(r551547)
@@ -1,3 +1,4 @@
-tg is a command-line interface for the Telegram instant-messaging network.
+Telegram-cli is a command-line interface
+for the Telegram instant-messaging network.
 
-WWW: https://github.com/vysheng/tg
+WWW: https://github.com/kenorb-contrib/tg


More information about the svn-ports-all mailing list