ports/154535: [UPDATE] dns/py-dnspython: update to 1.9.2 [feature safe]
Ruslan Mahmatkhanov
cvs-src at yandex.ru
Sat Feb 5 22:10:09 UTC 2011
>Number: 154535
>Category: ports
>Synopsis: [UPDATE] dns/py-dnspython: update to 1.9.2 [feature safe]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 05 22:10:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Ruslan Mahmatkhanov
>Release: 8.2-PRERELEASE
>Organization:
>Environment:
8.2-PRERELEASE i386
>Description:
- update to 1.9.2
- add option to depend on security/py-pycrypto (default off). it's needed for some parts of dnssec module to work.
- respect NOPORTEXAMPLES
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruNa py-dnspython.orig/Makefile py-dnspython/Makefile
--- py-dnspython.orig/Makefile 2010-03-20 22:12:44.000000000 +0300
+++ py-dnspython/Makefile 2011-02-06 00:54:50.000000000 +0300
@@ -6,7 +6,7 @@
#
PORTNAME= dnspython
-PORTVERSION= 1.8.0
+PORTVERSION= 1.9.2
CATEGORIES= dns python
MASTER_SITES= http://www.dnspython.org/kits/${PORTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,32 +17,45 @@
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+OPTIONS= PYCRYPTO "Enable pycrypto (part of dnssec needs it)" off
+
PORTDOCS= \
ChangeLog \
README \
TODO
EXAMPLE_FILES= \
ddns.py \
+ e164.py \
mx.py \
name.py \
reverse.py \
- xfr.py
+ reverse_name.py \
+ xfr.py \
+ zonediff.py
post-install:
# docs
-.ifndef(NOPORTDOCS)
+.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
# examples
+.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for file in ${EXAMPLE_FILES}
@${INSTALL_DATA} ${WRKSRC}/examples/${file} ${EXAMPLESDIR}
.endfor
+.endif
# permission safeness
@${CHMOD} -R ${SHAREMODE} ${PYTHONPREFIX_SITELIBDIR}/dns/*
@${CHMOD} -R a+X ${PYTHONPREFIX_SITELIBDIR}/dns/*
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PYCRYPTO)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto
+.endif
+
+.include <bsd.port.post.mk>
diff -ruNa py-dnspython.orig/distinfo py-dnspython/distinfo
--- py-dnspython.orig/distinfo 2010-03-20 22:12:44.000000000 +0300
+++ py-dnspython/distinfo 2011-02-05 23:49:58.000000000 +0300
@@ -1,3 +1,2 @@
-MD5 (dnspython-1.8.0.tar.gz) = 77f379e0cb21e11470a35359e6211c53
-SHA256 (dnspython-1.8.0.tar.gz) = 8e9fd938bb695e0c5332f095b07a5aa8e4597cd8cc24ee9be5a15b463d7437ba
-SIZE (dnspython-1.8.0.tar.gz) = 108588
+SHA256 (dnspython-1.9.2.tar.gz) = 6a7dfbe1a34880b45b94988cb48ba12667d9a635fd9df061ea0a24d6f8b5f7e0
+SIZE (dnspython-1.9.2.tar.gz) = 122408
diff -ruNa py-dnspython.orig/pkg-plist py-dnspython/pkg-plist
--- py-dnspython.orig/pkg-plist 2009-07-01 16:39:55.000000000 +0400
+++ py-dnspython/pkg-plist 2011-02-06 00:11:40.000000000 +0300
@@ -19,6 +19,9 @@
%%PYTHON_SITELIBDIR%%/dns/flags.py
%%PYTHON_SITELIBDIR%%/dns/flags.pyc
%%PYTHON_SITELIBDIR%%/dns/flags.pyo
+%%PYTHON_SITELIBDIR%%/dns/hash.py
+%%PYTHON_SITELIBDIR%%/dns/hash.pyc
+%%PYTHON_SITELIBDIR%%/dns/hash.pyo
%%PYTHON_SITELIBDIR%%/dns/inet.py
%%PYTHON_SITELIBDIR%%/dns/inet.pyc
%%PYTHON_SITELIBDIR%%/dns/inet.pyo
@@ -247,15 +250,16 @@
%%PYTHON_SITELIBDIR%%/dns/zone.py
%%PYTHON_SITELIBDIR%%/dns/zone.pyc
%%PYTHON_SITELIBDIR%%/dns/zone.pyo
-%%EXAMPLESDIR%%/ddns.py
-%%EXAMPLESDIR%%/mx.py
-%%EXAMPLESDIR%%/name.py
-%%EXAMPLESDIR%%/reverse.py
-%%EXAMPLESDIR%%/xfr.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ddns.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/e164.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mx.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/name.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/reverse.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/reverse_name.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xfr.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zonediff.py
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/dns/rdtypes/IN
@dirrm %%PYTHON_SITELIBDIR%%/dns/rdtypes/ANY
@dirrm %%PYTHON_SITELIBDIR%%/dns/rdtypes
@dirrm %%PYTHON_SITELIBDIR%%/dns
- at dirrm %%EXAMPLESDIR%%
- at dirrmtry %%PYTHON_SITELIBDIR%%
- at dirrmtry %%PYTHON_LIBDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list