net-im/purple-hangouts: Update to 20210630

Unfortunately upstream doesn't provide a changelog so you need to refer to
commit log instead

PR:		259685
Approved by:	mentors (implicit)
This commit is contained in:
Jose G. Juanino 2021-12-23 21:59:28 +01:00 committed by Daniel Engberg
parent ac417bb121
commit a49daaafcd
4 changed files with 9 additions and 45 deletions

View file

@ -1,12 +1,6 @@
# Created by: José García Juanino <jjuanino@gmail.com>
PORTNAME= purple-hangouts PORTNAME= purple-hangouts
PORTVERSION= 20190607 PORTVERSION= 20210630
PORTREVISION= 1
CATEGORIES= net-im CATEGORIES= net-im
MASTER_SITES= https://bitbucket.org/EionRobb/${PORTNAME}/get/
# Commit tag. Must be changed according with PORTVERSION.
DISTNAME= 3f7d89bf9ce2
MAINTAINER= jjuanino@gmail.com MAINTAINER= jjuanino@gmail.com
COMMENT= Hangouts plugin for libpurple COMMENT= Hangouts plugin for libpurple
@ -18,15 +12,11 @@ LIB_DEPENDS= libpurple.so:net-im/libpurple \
libjson-glib-1.0.so:devel/json-glib \ libjson-glib-1.0.so:devel/json-glib \
libprotobuf-c.so:devel/protobuf-c libprotobuf-c.so:devel/protobuf-c
USES= gmake gnome pkgconfig zip USES= gmake gnome pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= EionRobb
GH_TAGNAME= 55b9f01 # Change accordingly with PORTVERSION
USE_GNOME= glib20 USE_GNOME= glib20
PATCH_STRIP= -p1 --ignore-whitespace
WRKSRC= ${WRKDIR}/EionRobb-${PORTNAME}-${DISTNAME}
OPTIONS_DEFINE= NLS
NLS_USES= gettext
USE_LDCONFIG= yes USE_LDCONFIG= yes
PLIST_FILES= lib/purple-2/libhangouts.so \ PLIST_FILES= lib/purple-2/libhangouts.so \

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1560716336 TIMESTAMP = 1636228644
SHA256 (3f7d89bf9ce2.zip) = e5265fa947071ef2d6068e7493f6260b8078cc683aa6775d767e04ed3baa536b SHA256 (EionRobb-purple-hangouts-20210630-55b9f01_GH0.tar.gz) = a6dfd000f5cdc28b9cf423b91230facef172e44b2554bccd0a1e21df49b6b0e6
SIZE (3f7d89bf9ce2.zip) = 172287 SIZE (EionRobb-purple-hangouts-20210630-55b9f01_GH0.tar.gz) = 153325

View file

@ -1,26 +0,0 @@
From 55b9f01d040b240b794700f44d9c21a6cb51251e Mon Sep 17 00:00:00 2001
From: Eion Robb <eion@robbmob.com>
Date: Wed, 30 Jun 2021 09:53:47 +1200
Subject: [PATCH] Fix for 429 errors
Fixes issue #222
---
hangouts_auth.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hangouts_auth.c b/hangouts_auth.c
index 025f4f9..d988c3a 100644
--- a/hangouts_auth.c
+++ b/hangouts_auth.c
@@ -258,6 +258,11 @@ hangouts_auth_get_session_cookies_got_cb(PurpleHttpConnection *http_conn, Purple
return;
}
+ purple_http_cookie_jar_set(ha->cookie_jar, "__Secure-3PSID", NULL);
+ purple_http_cookie_jar_set(ha->cookie_jar, "__Host-3PLSID", NULL);
+ purple_http_cookie_jar_set(ha->cookie_jar, "__Secure-3PAPISID", NULL);
+ purple_http_cookie_jar_set(ha->cookie_jar, "__Host-GAPS", NULL);
+
//Restore the last_event_timestamp before it gets overridden by new events
last_event_timestamp = purple_account_get_int(ha->account, "last_event_timestamp_high", 0);
if (last_event_timestamp != 0) {

View file

@ -5,4 +5,4 @@ that aren't part of the XMPP interface, such as Group Chats,
synchronised history between devices and SMS support via Google synchronised history between devices and SMS support via Google
Voice. Voice.
WWW: https://bitbucket.org/EionRobb/purple-hangouts WWW: https://github.com/EionRobb/purple-hangouts