Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2018 08:03:37 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479878 - in head: . dns dns/py-adns dns/py-adns/files net-p2p/py-tremc net-p2p/py-tremc/files
Message-ID:  <201809160803.w8G83bxx075826@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Sun Sep 16 08:03:36 2018
New Revision: 479878
URL: https://svnweb.freebsd.org/changeset/ports/479878

Log:
  net-p2p/py-tremc: update to v9.1
  
  * resurrect dns/py-adns@r439825
  
  Submitted by:	Alexandre C. GuimarĂ£es <lebarondemerde@privacychain.ch>
  Differential Revision:	https://reviews.freebsd.org/D16683

Added:
  head/dns/py-adns/
     - copied from r439825, head/dns/py-adns/
  head/dns/py-adns/files/
  head/dns/py-adns/files/patch-adnsmodule.c   (contents, props changed)
  head/net-p2p/py-tremc/files/
  head/net-p2p/py-tremc/files/patch-Makefile   (contents, props changed)
  head/net-p2p/py-tremc/pkg-plist   (contents, props changed)
Modified:
  head/MOVED
  head/dns/Makefile
  head/dns/py-adns/Makefile
  head/dns/py-adns/distinfo
  head/dns/py-adns/pkg-descr
  head/net-p2p/py-tremc/Makefile
  head/net-p2p/py-tremc/distinfo
  head/net-p2p/py-tremc/pkg-descr
  head/net-p2p/py-tremc/pkg-message

Modified: head/MOVED
==============================================================================
--- head/MOVED	Sun Sep 16 07:57:08 2018	(r479877)
+++ head/MOVED	Sun Sep 16 08:03:36 2018	(r479878)
@@ -9265,7 +9265,6 @@ audio/last-cmus||2017-04-30|Has expired: Unfetchable f
 audio/mehdiaplayer||2017-04-30|Has expired: Unfetchable for more than six months (google code has gone away)
 japanese/nhocr||2017-04-30|Has expired: Unfetchable for more than six months (google code has gone away)
 misc/xsw||2017-04-30|Has expired: Unfetchable for more than six months (google code has gone away)
-dns/py-adns||2017-04-30|Has expired: Unfetchable for more than six months (google code has gone away)
 dns/py-bonjour||2017-04-30|Has expired: Unfetchable for more than six months (google code has gone away)
 games/robocalypto||2017-04-30|Has expired: Unfetchable for more than six months (google code has gone away)
 games/libfov||2017-04-30|Has expired: Unfetchable for more than six months (google code has gone away)

Modified: head/dns/Makefile
==============================================================================
--- head/dns/Makefile	Sun Sep 16 07:57:08 2018	(r479877)
+++ head/dns/Makefile	Sun Sep 16 08:03:36 2018	(r479878)
@@ -183,6 +183,7 @@
     SUBDIR += powerdns-recursor
     SUBDIR += powerdns-recursor40
     SUBDIR += public_suffix_list
+    SUBDIR += py-adns
     SUBDIR += py-aiodns
     SUBDIR += py-cloudflare
     SUBDIR += py-dns

Modified: head/dns/py-adns/Makefile
==============================================================================
--- head/dns/py-adns/Makefile	Sun Apr 30 14:26:41 2017	(r439825)
+++ head/dns/py-adns/Makefile	Sun Sep 16 08:03:36 2018	(r479878)
@@ -2,29 +2,24 @@
 # $FreeBSD$
 
 PORTNAME=	adns
-PORTVERSION=	1.2.1
-PORTREVISION=	14
+DISTVERSION=	1.4
+DISTVERSIONSUFFIX=	-py1
 CATEGORIES=	dns python
-MASTER_SITES=	GOOGLE_CODE
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	adns-python-${PORTVERSION}
 
-MAINTAINER=	m.tsatsenko@gmail.com
-COMMENT=	Python Interface to adns, the asynchronous DNS library
+MAINTAINER=	lebarondemerde@privacychain.ch
+COMMENT=	Python module to resolve IPs to host names
 
-BROKEN=		Unfetchable (google code has gone away)
-DEPRECATED=	Unfetchable for more than six months (google code has gone away)
-EXPIRATION_DATE=	2017-04-30
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/GPL
 
 LIB_DEPENDS=	libadns.so:dns/adns
 
-PROJECTHOST=	adns-python
-USES=		python
-USE_PYTHON=	distutils autoplist
+USES=		localbase python:3.4+
+USE_PYTHON=	autoplist distutils
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|^\(include_dirs = \).*$$|\1\["${LOCALBASE}/include"\]|g' \
-		-e 's|^\(library_dirs = \).*$$|\1\["${LOCALBASE}/lib"\]|g' \
-		${WRKSRC}/setup.py
+	@${REINPLACE_CMD} -e 's|1.4-py1|1.4|g' ${WRKSRC}/setup.py
 
 .include <bsd.port.mk>

Modified: head/dns/py-adns/distinfo
==============================================================================
--- head/dns/py-adns/distinfo	Sun Apr 30 14:26:41 2017	(r439825)
+++ head/dns/py-adns/distinfo	Sun Sep 16 08:03:36 2018	(r479878)
@@ -1,2 +1,3 @@
-SHA256 (adns-python-1.2.1.tar.gz) = 30f4ae0c40f6b09b0fad60c1aa4b4b9ff250e62f6e5e6cc112949f880359a23e
-SIZE (adns-python-1.2.1.tar.gz) = 18252
+TIMESTAMP = 1537084332
+SHA256 (adns-1.4-py1.tar.gz) = 675567453caf5843fabd1c2312aad13a93b61c3699dda2ceba67f1a2687ccddc
+SIZE (adns-1.4-py1.tar.gz) = 18868

Added: head/dns/py-adns/files/patch-adnsmodule.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/py-adns/files/patch-adnsmodule.c	Sun Sep 16 08:03:36 2018	(r479878)
@@ -0,0 +1,10 @@
+--- adnsmodule.c.orig        2018-08-11 22:10:36 UTC
++++ adnsmodule.c
+@@ -6,6 +6,7 @@ any later version.
+ */
+ 
+ #include <Python.h>
++#include <sys/endian.h>
+ #include <adns.h>
+ #include <string.h>
+ #include <assert.h>

Modified: head/dns/py-adns/pkg-descr
==============================================================================
--- head/dns/py-adns/pkg-descr	Sun Apr 30 14:26:41 2017	(r439825)
+++ head/dns/py-adns/pkg-descr	Sun Sep 16 08:03:36 2018	(r479878)
@@ -1,4 +1,8 @@
-The adns module provides an interface to
-the GNU adns asynchronous DNS resolver library.
+Python module to resolve IPs to host names.
 
-WWW: http://code.google.com/p/adns-python/
+python3-adns is a Python 3 module that interfaces to the adns: an advanced easy
+to use, asynchronous-capable DNS client library and utilities. Adns is a
+resolver library for C (and C++) programs, and a collection of useful DNS
+resolver utilities.
+
+WWW: https://github.com/trolldbois/python3-adns/

Modified: head/net-p2p/py-tremc/Makefile
==============================================================================
--- head/net-p2p/py-tremc/Makefile	Sun Sep 16 07:57:08 2018	(r479877)
+++ head/net-p2p/py-tremc/Makefile	Sun Sep 16 08:03:36 2018	(r479878)
@@ -1,7 +1,8 @@
 # $FreeBSD$
 
 PORTNAME=	tremc
-DISTVERSION=	g20180106
+DISTVERSION=	0.9.1-11
+DISTVERSIONSUFFIX=	-g54a873f
 CATEGORIES=	net-p2p python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -13,28 +14,17 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		python:3.4+ shebangfix
 USE_GITHUB=	yes
-GH_ACCOUNT=	louipc
-GH_TAGNAME=	dfbde72
 NO_ARCH=	yes
 NO_BUILD=	yes
 SHEBANG_FILES=	${PORTNAME}
 
-PLIST_FILES=	bin/${PORTNAME} \
-		man/man1/${PORTNAME}.1.gz \
-		share/bash-completion/completions/${PORTNAME}
+OPTIONS_DEFINE=	ADNS GEOIP PYPERCLIP
+OPTIONS_DEFAULT=	ADNS GEOIP PYPERCLIP
 
-OPTIONS_DEFINE=	GEOIP XEROX
+PYPERCLIP_DESC=	Copy magnet links to the system clipboard
 
-XEROX_DESC=	Copy magnet links to the system clipboard
-
-GEOIP_RUN_DEPENDS=	${PYTHON_SITELIBDIR}/GeoIP.so:net/py-GeoIP@${PY_FLAVOR}
-XEROX_RUN_DEPENDS=	${PYTHON_SITELIBDIR}/xerox/__init__.py:devel/py-xerox@${PY_FLAVOR}
-
-do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
-	${INSTALL} -d ${STAGEDIR}${PREFIX}/share/bash-completion/completions
-	${INSTALL_DATA} ${WRKSRC}/completion/bash/${PORTNAME}.sh \
-		${STAGEDIR}${PREFIX}/share/bash-completion/completions/${PORTNAME}
+ADNS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}adns>=:dns/py-adns@${PY_FLAVOR}
+GEOIP_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}GeoIP>=0:net/py-GeoIP@${PY_FLAVOR}
+PYPERCLIP_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyperclip>=0:devel/py-pyperclip@${PY_FLAVOR}
 
 .include <bsd.port.mk>

Modified: head/net-p2p/py-tremc/distinfo
==============================================================================
--- head/net-p2p/py-tremc/distinfo	Sun Sep 16 07:57:08 2018	(r479877)
+++ head/net-p2p/py-tremc/distinfo	Sun Sep 16 08:03:36 2018	(r479878)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1520992066
-SHA256 (louipc-tremc-g20180106-dfbde72_GH0.tar.gz) = 7f86c41fb9e4d343528cdde4f5f942ccb105cd188206c825df8100874360efbb
-SIZE (louipc-tremc-g20180106-dfbde72_GH0.tar.gz) = 315396
+TIMESTAMP = 1535129531
+SHA256 (tremc-tremc-0.9.1-11-g54a873f_GH0.tar.gz) = 8b404bf028938631a29986cd2c613f75c9b0a0e0674450d76abf1c81e68c1c97
+SIZE (tremc-tremc-0.9.1-11-g54a873f_GH0.tar.gz) = 315484

Added: head/net-p2p/py-tremc/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/py-tremc/files/patch-Makefile	Sun Sep 16 08:03:36 2018	(r479878)
@@ -0,0 +1,14 @@
+--- Makefile.orig	2018-08-13 15:08:26 UTC
++++ Makefile
+@@ -1,8 +1,8 @@
+ .PHONY: install
+ 
+ install:
+-	install -d "${DESTDIR}${PREFIX}/share/man/man1"
+-	install -m 644 tremc.1 "${DESTDIR}${PREFIX}/share/man/man1/tremc.1"
++	install -d "${DESTDIR}${MANPREFIX}/man/man1"
++	install -m 644 tremc.1 "${DESTDIR}${MANPREFIX}/man/man1"
+ 	install -d "${DESTDIR}${PREFIX}/bin"
+ 	install -m 755 tremc "${DESTDIR}${PREFIX}/bin/tremc"
+ 	install -d "${DESTDIR}${PREFIX}/share/bash-completion/completions"
+

Modified: head/net-p2p/py-tremc/pkg-descr
==============================================================================
--- head/net-p2p/py-tremc/pkg-descr	Sun Sep 16 07:57:08 2018	(r479877)
+++ head/net-p2p/py-tremc/pkg-descr	Sun Sep 16 08:03:36 2018	(r479878)
@@ -4,4 +4,4 @@ Python3 fork of the no longer maintained transmission-
 extra modifications have been included and development will follow the
 original project as much as possible.
 
-WWW: https://github.com/louipc/tremc
+WWW: https://github.com/tremc/tremc

Modified: head/net-p2p/py-tremc/pkg-message
==============================================================================
--- head/net-p2p/py-tremc/pkg-message	Sun Sep 16 07:57:08 2018	(r479877)
+++ head/net-p2p/py-tremc/pkg-message	Sun Sep 16 08:03:36 2018	(r479878)
@@ -1,10 +1,24 @@
-###################################################################
+##########################################################################
 
-Please do run "tremc --create-config" to create the configuration
-file with default values.
+Authentication and host/port can be set via command line with one of these
+patterns:
 
-NOTE: A config file won't be created unless you provide this
-option at least once. After that, it is rewritten whenever tremc
-exits.
+$ tremc -c homeserver
 
-###################################################################
+
+
+$ tremc -c homeserver:1234
+
+$ tremc -c johndoe:secretbirthday@homeserver
+
+$ tremc -c johndoe:secretbirthday@homeserver:1234
+
+You can write this (and other) stuff into a configuration file:
+
+$ tremc -c johndoe:secretbirthday@homeserver:1234 --create-config
+
+No configuration file is created automatically. You must create it.
+
+$ tremc --create-config
+
+##########################################################################

Added: head/net-p2p/py-tremc/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/py-tremc/pkg-plist	Sun Sep 16 08:03:36 2018	(r479878)
@@ -0,0 +1,4 @@
+bin/tremc
+man/man1/tremc.1.gz
+share/bash-completion/completions/tremc
+share/zsh/site-functions/_tremc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809160803.w8G83bxx075826>