Page MenuHomeFreeBSD

D16683.id46571.diff
No OneTemporary

D16683.id46571.diff

Index: dns/Makefile
===================================================================
--- dns/Makefile
+++ dns/Makefile
@@ -184,6 +184,7 @@
SUBDIR += powerdns-recursor
SUBDIR += powerdns-recursor40
SUBDIR += public_suffix_list
+ SUBDIR += py-adns
SUBDIR += py-aiodns
SUBDIR += py-cloudflare
SUBDIR += py-dns
Index: dns/py-adns/Makefile
===================================================================
--- /dev/null
+++ dns/py-adns/Makefile
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+PORTNAME= adns
+DISTVERSION= 1.4
+DISTVERSIONSUFFIX= -py1
+CATEGORIES= dns python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= lebarondemerde@privacychain.ch
+COMMENT= Python module to resolve IPs to host names
+
+LICENSE= GPL
+LICENSE_FILE= ${WRKSRC}/GPL
+
+RUN_DEPENDS= adnshost:dns/adns
+
+USES= localbase python:3.4+
+USE_PYTHON= autoplist distutils
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|1.4-py1|1.4|g' ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
Index: dns/py-adns/distinfo
===================================================================
--- /dev/null
+++ dns/py-adns/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1531083734
+SHA256 (adns-1.4-py1.tar.gz) = 675567453caf5843fabd1c2312aad13a93b61c3699dda2ceba67f1a2687ccddc
+SIZE (adns-1.4-py1.tar.gz) = 18868
Index: dns/py-adns/files/patch-adnsmodule.c
===================================================================
--- /dev/null
+++ dns/py-adns/files/patch-adnsmodule.c
@@ -0,0 +1,10 @@
+--- adnsmodule.c.orig 2018-07-08 23:27:28 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>
Index: dns/py-adns/pkg-descr
===================================================================
--- /dev/null
+++ dns/py-adns/pkg-descr
@@ -0,0 +1,8 @@
+Python module to resolve IPs to host names.
+
+adns-python is a Python 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: http://pydns.sourceforge.net/
Index: net-p2p/py-tremc/Makefile
===================================================================
--- net-p2p/py-tremc/Makefile
+++ net-p2p/py-tremc/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= tremc
-DISTVERSION= g20180106
+DISTVERSION= 0.9.1
CATEGORIES= net-p2p python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,28 +13,18 @@
USES= python:3.4+ shebangfix
USE_GITHUB= yes
-GH_ACCOUNT= louipc
-GH_TAGNAME= dfbde72
+GH_TAGNAME= 2e04fa9
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= ADNSGEOIP PYPERCLIP
-OPTIONS_DEFINE= GEOIP XEROX
-
-XEROX_DESC= Copy magnet links to the system clipboard
+PYPERCLIP_DESC= Copy magnet links to the system clipboard
+ADNS_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/adns/__init__.py:dns/py-adns${PY_FLAVOR}
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}
+PYPERCLIP_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyperclip/__init__.py:devel/py-pyperclip@${PY_FLAVOR}
.include <bsd.port.mk>
Index: net-p2p/py-tremc/distinfo
===================================================================
--- net-p2p/py-tremc/distinfo
+++ net-p2p/py-tremc/distinfo
@@ -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 = 1530893754
+SHA256 (tremc-tremc-0.9.1-2e04fa9_GH0.tar.gz) = 2497750cca6d52675019066c0c033e22980bca6c65c93b2c83e900fa00f6580f
+SIZE (tremc-tremc-0.9.1-2e04fa9_GH0.tar.gz) = 315435
Index: net-p2p/py-tremc/files/patch-Makefile
===================================================================
--- /dev/null
+++ net-p2p/py-tremc/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2018-07-02 14:29:43 UTC
++++ Makefile
+@@ -2,7 +2,7 @@
+
+ install:
+ install -d "${DESTDIR}${PREFIX}/share/man/man1"
+- install -m 644 tremc.1 "${DESTDIR}${PREFIX}/share/man/man1/tremc.1"
++ 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"
Index: net-p2p/py-tremc/pkg-descr
===================================================================
--- net-p2p/py-tremc/pkg-descr
+++ net-p2p/py-tremc/pkg-descr
@@ -4,4 +4,4 @@
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
Index: net-p2p/py-tremc/pkg-message
===================================================================
--- net-p2p/py-tremc/pkg-message
+++ net-p2p/py-tremc/pkg-message
@@ -1,10 +1,22 @@
-###################################################################
+##########################################################################
-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
+
+##########################################################################
Index: net-p2p/py-tremc/pkg-plist
===================================================================
--- /dev/null
+++ net-p2p/py-tremc/pkg-plist
@@ -0,0 +1,5 @@
+bin/tremc
+man/man1/tremc.1.gz
+share/bash-completion/completions/tremc
+share/zsh/site-functions/_tremc
+@dir share/man/man1

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 22, 9:45 PM (4 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24069099
Default Alt Text
D16683.id46571.diff (6 KB)

Event Timeline