aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/py-snmp4
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2014-02-10 00:41:53 +0800
committerrm <rm@FreeBSD.org>2014-02-10 00:41:53 +0800
commit09a303a045f9b4706d83171c7dacdd1592071e7b (patch)
tree9a5a071e6033998fac0776002fd35c9f5523f34c /net-mgmt/py-snmp4
parent767bd038aace3f019a018fd02469159c3d703b15 (diff)
downloadfreebsd-ports-gnome-09a303a045f9b4706d83171c7dacdd1592071e7b.tar.gz
freebsd-ports-gnome-09a303a045f9b4706d83171c7dacdd1592071e7b.tar.zst
freebsd-ports-gnome-09a303a045f9b4706d83171c7dacdd1592071e7b.zip
- update py-snmp4 to 4.2.5 and py-snmp4-apps to 0.3.4
- convert to auto-generated auto-plist - convert to optionsng for DOCS and EXAMPLES - remove NO_STAGE while here: - update LICENSE (count clauses) - do not use deprecated easy_install and unneeded PYDISTUTILS_* knobs - make DOCSDIR and EXAPLESDIR contain ${PYTHON_PKGNAMEPREFIX} in it, because that ports may be installed for different python versions simultaneously - use common idiom for installing DOCS and EXAMPLES - install DOCS and EXAMPLES into stage area uncoditioanlly - remove inclusions of bsd.port.options.mk - bump PORTREVISION for py-snmp4-mibs, because package is changed - replace /bin/bash with /bin/sh in py-snmp4-mibs rebuild-pysnmp-mibs script PR: 186190 Submitted by: olgeni Approved by: Martin Jackson <mhjacks@swbell.net> (maintainer)
Diffstat (limited to 'net-mgmt/py-snmp4')
-rw-r--r--net-mgmt/py-snmp4/Makefile42
-rw-r--r--net-mgmt/py-snmp4/distinfo4
-rw-r--r--net-mgmt/py-snmp4/pkg-plist54
3 files changed, 18 insertions, 82 deletions
diff --git a/net-mgmt/py-snmp4/Makefile b/net-mgmt/py-snmp4/Makefile
index a12bdaefe483..f1741d3dd8ed 100644
--- a/net-mgmt/py-snmp4/Makefile
+++ b/net-mgmt/py-snmp4/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= snmp4
-PORTVERSION= 4.2.3
+PORTVERSION= 4.2.5
CATEGORIES= net-mgmt python
MASTER_SITES= CHEESESHOP \
SF/pysnmp/pysnmp/${PORTVERSION}
@@ -12,40 +12,30 @@ DISTNAME= pysnmp-${PORTVERSION}
MAINTAINER= mhjacks@swbell.net
COMMENT= SNMP framework for Python
-LICENSE= BSD
+LICENSE= BSD2CLAUSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>=0.1.2:${PORTSDIR}/devel/py-asn1 \
${PYTHON_PKGNAMEPREFIX}pycrypto>=2.4.1:${PORTSDIR}/security/py-pycrypto
-CONFLICTS= py??-snmp2-[0-9]*
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
-# Python3 ready
-USE_PYTHON= yes
-USE_PYDISTUTILS= easy_install
-PYDISTUTILS_PKGNAME= pysnmp
-EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
-DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
+DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= *
+PORTEXAMPLES= *
-BASEDOCS= CHANGES \
- README \
- TODO
+BASEDOCS= CHANGES README TODO
-NO_STAGE= yes
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for f in ${BASEDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
- @${CP} -Rv ${WRKSRC}/docs/* ${DOCSDIR}
-.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
-.for d in examples tools
- @${CP} -Rv ${WRKSRC}/${d}/* ${EXAMPLESDIR}
-.endfor
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${BASEDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+ (cd ${WRKSRC}/tools && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
diff --git a/net-mgmt/py-snmp4/distinfo b/net-mgmt/py-snmp4/distinfo
index 5c89fae99c4f..4c3db53289f4 100644
--- a/net-mgmt/py-snmp4/distinfo
+++ b/net-mgmt/py-snmp4/distinfo
@@ -1,2 +1,2 @@
-SHA256 (pysnmp-4.2.3.tar.gz) = 4883e49c01570f23ab665cd9b046d8b42f9c652e36ea1cf6996823b283a74ece
-SIZE (pysnmp-4.2.3.tar.gz) = 200868
+SHA256 (pysnmp-4.2.5.tar.gz) = c46e65d99a604f690b3d5800e2f6e26e1ed9a3c7f7e17e7b4b4d897150f7077f
+SIZE (pysnmp-4.2.5.tar.gz) = 225014
diff --git a/net-mgmt/py-snmp4/pkg-plist b/net-mgmt/py-snmp4/pkg-plist
deleted file mode 100644
index 1c2369013795..000000000000
--- a/net-mgmt/py-snmp4/pkg-plist
+++ /dev/null
@@ -1,54 +0,0 @@
-bin/build-pysnmp-mib
-bin/libsmi2pysnmp
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/build-pysnmp-mib
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/libsmi2pysnmp
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smi/backend.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smi/instrum.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smi/view.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v1arch/agent/cmdrsp.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v1arch/agent/ntforg.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v1arch/manager/bulkgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v1arch/manager/getgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v1arch/manager/nextgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v1arch/manager/ntfrcv.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v1arch/manager/setgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/agent/cmdrsp.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/agent/ntforg.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/manager/bulkgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/manager/getgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/manager/nextgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/manager/ntfrcv.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/manager/setgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/oneliner/agent/ntforg.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/oneliner/manager/async/getgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/oneliner/manager/async/nextgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/oneliner/manager/bulkgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/oneliner/manager/getgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/oneliner/manager/nextgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/oneliner/manager/setgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/proxy/1to3.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/proxy/cmdproxy.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/twisted/agent/cmdrsp.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/twisted/agent/ntforg.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/twisted/manager/bulkgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/twisted/manager/getgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/twisted/manager/nextgen.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/twisted/manager/ntfrcv.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/v3arch/twisted/manager/setgen.py
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/twisted/manager
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/twisted/agent
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/twisted
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/proxy
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/oneliner/manager/async
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/oneliner/manager
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/oneliner/agent
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/oneliner
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/manager
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch/agent
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v3arch
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v1arch/manager
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v1arch/agent
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/v1arch
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/smi
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%