Index: head/security/py-certstream/Makefile =================================================================== --- head/security/py-certstream/Makefile (revision 501839) +++ head/security/py-certstream/Makefile (revision 501840) @@ -1,27 +1,28 @@ # $FreeBSD$ PORTNAME= certstream PORTVERSION= 1.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= antoine@FreeBSD.org COMMENT= Library for receiving certificate transparency list updates LICENSE= MIT BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}termcolor>=0:devel/py-termcolor@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}websocket-client>=0:www/py-websocket-client@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}termcolor>=0:devel/py-termcolor@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}websocket-client>=0:www/py-websocket-client@${PY_FLAVOR} -NO_ARCH= yes USES= python USE_PYTHON= distutils autoplist concurrent + +NO_ARCH= yes post-patch: @${REINPLACE_CMD} 's,==.*,,' ${WRKSRC}/requirements.txt .include Index: head/security/py-certstream/files/patch-certstream_core.py =================================================================== --- head/security/py-certstream/files/patch-certstream_core.py (nonexistent) +++ head/security/py-certstream/files/patch-certstream_core.py (revision 501840) @@ -0,0 +1,32 @@ +--- certstream/core.py.orig 2018-03-02 11:20:56 UTC ++++ certstream/core.py +@@ -27,12 +27,12 @@ class CertStreamClient(WebSocketApp): + on_error=self._on_error, + ) + +- def _on_open(self, instance): ++ def _on_open(self): + logging.info("Connection established to CertStream! Listening for events...") + if self.on_open_handler: +- self.on_open_handler(instance) ++ self.on_open_handler() + +- def _on_message(self, _, message): ++ def _on_message(self, message): + frame = json.loads(message) + + if frame.get('message_type', None) == "heartbeat" and self.skip_heartbeats: +@@ -40,11 +40,11 @@ class CertStreamClient(WebSocketApp): + + self.message_callback(frame, self._context) + +- def _on_error(self, instance, ex): ++ def _on_error(self, ex): + if type(ex) == KeyboardInterrupt: + raise + if self.on_error_handler: +- self.on_error_handler(instance, ex) ++ self.on_error_handler(ex) + logging.error("Error connecting to CertStream - {} - Sleeping for a few seconds and trying again...".format(ex)) + + def listen_for_events(message_callback, url, skip_heartbeats=True, setup_logger=True, on_open=None, on_error=None, **kwargs): Property changes on: head/security/py-certstream/files/patch-certstream_core.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property