Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Aug 2015 22:59:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 202113] [PATCH] net-im/telegram: update to 1.3.1, take maintainership
Message-ID:  <bug-202113-13-ewOI7pwRfX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202113-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202113-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202113

--- Comment #2 from Carlos J Puga Medina <cpm@fbsd.es> ---
Comment on attachment 159591
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D159591
Patch

>diff -urN /usr/ports/net-im/telegram.old/Makefile /usr/ports/net-im/telegr=
am/Makefile
>--- /usr/ports/net-im/telegram.old/Makefile	2015-05-07 19:26:05.000000000 =
+0200
>+++ /usr/ports/net-im/telegram/Makefile	2015-08-05 23:39:14.683611000 +0200
>@@ -2,34 +2,42 @@
> # $FreeBSD: head/net-im/telegram/Makefile 385640 2015-05-07 17:26:05Z mat=
 $
>=20
> PORTNAME=3D	telegram
>-PORTVERSION=3D	1.0.5.1
>-PORTREVISION=3D	1
>+PORTVERSION=3D	1.3.1
> CATEGORIES=3D	net-im
>+MASTER_SITES=3D	http://github.com/vysheng/tg/archive/:source1 \
>+		http://github.com/vysheng/tgl/archive/:source2 \
>+		http://github.com/vysheng/tl-parser/archive/:source3
>+DISTFILES=3D	1.3.1.tar.gz:source1 2.0.1.tar.gz:source2 master.zip:source3
>=20
>-MAINTAINER=3D	ports@FreeBSD.org
>+MAINTAINER=3D	cpm@fbsd.es
> COMMENT=3D	Command-line interface for Telegram
>=20
> LICENSE=3D	GPLv2
>+LICENSE_FILE=3D	${WRKSRC}/LICENSE
>=20
> LIB_DEPENDS=3D	libconfig.so:${PORTSDIR}/devel/libconfig \
>     		libevent.so:${PORTSDIR}/devel/libevent2
>=20
>-USE_GITHUB=3D	yes
>-GH_ACCOUNT=3D	vysheng
>-GH_PROJECT=3D	tg
>-
> USES=3D		execinfo gmake lua:52 ncurses pkgconfig readline
> USE_OPENSSL=3D	yes
> GNU_CONFIGURE=3D	yes
>=20
>+WRKSRC=3D	${WRKDIR}/tg-1.3.1
>+
> PLIST_FILES=3D	bin/telegram-cli \
>-		etc/tg-server.pub
>+		etc/telegram-cli/server.pub
>+PORTDOCS=3D	*
>=20
>-post-patch:
>-	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/main.c
>+post-extract:
>+	@${MV} ${WRKDIR}/tgl-2.0.1/* ${WRKSRC}/tgl
>+	@${MV} ${WRKDIR}/tl-parser-master/* ${WRKSRC}/tgl/tl-parser
>=20
> 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
>+	${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${PREFIX}/etc/telegra=
m-cli/server.pub
>+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
>+	(cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGELOG README-LUA README.es README.=
md \
>+		${STAGEDIR}${DOCSDIR})
>=20
> .include <bsd.port.mk>
>diff -urN /usr/ports/net-im/telegram.old/distinfo /usr/ports/net-im/telegr=
am/distinfo
>--- /usr/ports/net-im/telegram.old/distinfo	2015-05-07 19:26:05.000000000 =
+0200
>+++ /usr/ports/net-im/telegram/distinfo	2015-08-05 23:04:08.157598000 +0200
>@@ -1,2 +1,6 @@
>-SHA256 (vysheng-tg-1.0.5.1_GH0.tar.gz) =3D 5a78fd46e978ff450eda6f46644990=
42dddf053f4fe233fe3157499869646fb8
>-SIZE (vysheng-tg-1.0.5.1_GH0.tar.gz) =3D 390832
>+SHA256 (1.3.1.tar.gz) =3D b70b1d8b97b44086b64e467f81c6aceb8263092c26a8cf1=
a7d717eb1b5360415
>+SIZE (1.3.1.tar.gz) =3D 278051
>+SHA256 (2.0.1.tar.gz) =3D 549bbfc46715bae31b50a54cc21eefd61109cd28dcdddbe=
4e53726aec3d924f1
>+SIZE (2.0.1.tar.gz) =3D 250488
>+SHA256 (master.zip) =3D 14e9c78dae2b32acaf845121725ab694e21276959f0724247=
0ebb39a1934fdf5
>+SIZE (master.zip) =3D 82671
>diff -urN /usr/ports/net-im/telegram.old/files/patch-main.c /usr/ports/net=
-im/telegram/files/patch-main.c
>--- /usr/ports/net-im/telegram.old/files/patch-main.c	2014-10-02 10:59:02.=
000000000 +0200
>+++ /usr/ports/net-im/telegram/files/patch-main.c	1970-01-01 01:00:00.0000=
00000 +0100
>@@ -1,19 +0,0 @@
>---- 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 @@
>-=20
>- #include <grp.h>
>- #include <arpa/inet.h>
>-+#include <netinet/in.h>
>-=20
>- #include "telegram.h"
>- #include "loop.h"
>-@@ -803,7 +804,7 @@
>-   running_for_first_time ();
>-   parse_config ();
>-=20
>--  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");
>-=20
>-=20
>diff -urN /usr/ports/net-im/telegram.old/files/patch-mtproto-client.c /usr=
/ports/net-im/telegram/files/patch-mtproto-client.c
>--- /usr/ports/net-im/telegram.old/files/patch-mtproto-client.c	2014-10-02=
 12:19:08.000000000 +0200
>+++ /usr/ports/net-im/telegram/files/patch-mtproto-client.c	1970-01-01 01:=
00:00.000000000 +0100
>@@ -1,11 +0,0 @@
>---- mtproto-client.c.orig	2014-10-02 12:07:49.000000000 +0200
>-+++ mtproto-client.c	2014-10-02 12:08:13.000000000 +0200
>-@@ -80,7 +80,7 @@
>- #define MAX_NET_RES        (1L << 16)
>- //extern int log_level;
>-=20
>--#ifndef HAVE___BUILTIN_BSWAP32
>-+#if !defined(HAVE___BUILTIN_BSWAP32) && !defined(__FreeBSD__) && !define=
d(__OpenBSD__)
>- static inline unsigned __builtin_bswap32(unsigned x) {
>-   return ((x << 24) & 0xff000000 ) |
>-   ((x << 8) & 0x00ff0000 ) |
>diff -urN /usr/ports/net-im/telegram.old/files/patch-net.c /usr/ports/net-=
im/telegram/files/patch-net.c
>--- /usr/ports/net-im/telegram.old/files/patch-net.c	2014-10-02 12:19:08.0=
00000000 +0200
>+++ /usr/ports/net-im/telegram/files/patch-net.c	1970-01-01 01:00:00.00000=
0000 +0100
>@@ -1,15 +0,0 @@
>---- net.c.orig	2014-10-02 12:12:58.000000000 +0200
>-+++ net.c	2014-10-02 12:13:09.000000000 +0200
>-@@ -26,11 +26,11 @@
>- #include <string.h>
>- #include <stdlib.h>
>- #include <assert.h>
>-+#include <sys/types.h>
>- #include <netdb.h>
>- #include <netinet/in.h>
>- #include <netinet/tcp.h>
>- #include <sys/fcntl.h>
>--#include <sys/types.h>
>- #include <sys/socket.h>
>- #include <errno.h>
>- #include <stdio.h>

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202113-13-ewOI7pwRfX>