pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-smi: Update to 0.3.3



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Apr 5 13:13:21 2019 +0200
Changeset:	ae00596caf70ad2a54bcd7c41da12d5ad976f73b

Modified Files:
	py-smi/Makefile
	py-smi/PLIST
	py-smi/distinfo
Added Files:
	py-smi/ALTERNATIVES

Log Message:
py-smi: Update to 0.3.3

pkgsrc changes:
- Add support for ALTERNATIVES and install versioned programs in bin/

Changes:
Revision 0.3.3, 29-12-2018
--------------------------
- Added mibcopy.py documentation
- Copyright notice bumped up to year 2019

Revision 0.3.2, 22-10-2018
--------------------------
- Bumped upper Python version to 3.7 and enabled pip cache
- Exit code indication of the command-line tools aligned with
  sysexits.h to report more useful termination status

Revision 0.3.1, 10-06-2018
--------------------------
- Fixed pysnmp lower version in test-requirements.txt
- Fixed compiler crash when building comments at a platform which
  has broken users/groups databases

Revision 0.3.0, 29-04-2018
--------------------------
- The `mibcopy` tool implemented to copy MIB modules from files with
  potentially messed up names into a directory under canonical MIB
  names picking up the latest MIB revision along the way.
- ZIP archive reader implemented to pull ASN.1 MIB files from .zip
  archives pretty much in the same way as from plain directories
- HTTP/S proxy support added (through respecting `http_proxy` environment
  variable) by switching from `httplib` to `urllib2` internally
- Copyright notice bumped up to year 2018
- Project site in the docs changes from SourceForge to snmplabs.com
- PRODUCT-RELEASE generation added to the JSON code generator
- Added special handling of BITS-like DEFVAL syntax for Integers
  that occurs in buggy MIBs
- Fixed missing REVISIONS generations in MODULE-IDENTITY

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ae00596caf70ad2a54bcd7c41da12d5ad976f73b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-smi/ALTERNATIVES | 2 ++
 py-smi/Makefile     | 8 +++++++-
 py-smi/PLIST        | 3 ++-
 py-smi/distinfo     | 8 ++++----
 4 files changed, 15 insertions(+), 6 deletions(-)

diffs:
diff --git a/py-smi/ALTERNATIVES b/py-smi/ALTERNATIVES
new file mode 100644
index 0000000000..7c794df6fc
--- /dev/null
+++ b/py-smi/ALTERNATIVES
@@ -0,0 +1,2 @@
+bin/mibcopy.py @PREFIX@/bin/mibcopy-@PYVERSSUFFIX@.py 
+bin/mibdump.py @PREFIX@/bin/mibdump-@PYVERSSUFFIX@.py 
diff --git a/py-smi/Makefile b/py-smi/Makefile
index e29b981829..5a4d5e7aa2 100644
--- a/py-smi/Makefile
+++ b/py-smi/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	pysmi-0.2.2
+DISTNAME=	pysmi-0.3.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	net python
 MASTER_SITES=	${MASTER_SITE_PYPI:=p/pysmi/}
@@ -14,5 +14,11 @@ DEPENDS+=	${PYPKGPREFIX}-ply-[0-9]*:../../devel/py-ply
 
 USE_LANGUAGES=	# none
 
+post-install:
+	for f in mibcopy mibdump; do \
+	${MV} ${DESTDIR}${PREFIX}/bin/$$f.py \
+	    ${DESTDIR}${PREFIX}/bin/$$f-${PYVERSSUFFIX}.py || ${TRUE}; \
+	done
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-smi/PLIST b/py-smi/PLIST
index bb8db7f946..23d3450a70 100644
--- a/py-smi/PLIST
+++ b/py-smi/PLIST
@@ -1,5 +1,6 @@
 @comment $NetBSD$
-bin/mibdump.py
+bin/mibcopy-${PYVERSSUFFIX}.py
+bin/mibdump-${PYVERSSUFFIX}.py
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
diff --git a/py-smi/distinfo b/py-smi/distinfo
index 9a72635393..54751953a3 100644
--- a/py-smi/distinfo
+++ b/py-smi/distinfo
@@ -1,6 +1,6 @@
 $NetBSD$
 
-SHA1 (pysmi-0.2.2.tar.gz) = 2ef4710956e5f2ab6ba23555501055639c544193
-RMD160 (pysmi-0.2.2.tar.gz) = ef4c2924342f8a8edf8c8c0a1611877e0a0a0e5c
-SHA512 (pysmi-0.2.2.tar.gz) = 64c3f6877d4485ba166077110cd4caaa03676ae7ac1681971feff73c091234c32d7e08517dba3eb75e87841a6dae43812fbfbf32d8858c0ab40591d5b456ba62
-Size (pysmi-0.2.2.tar.gz) = 90568 bytes
+SHA1 (pysmi-0.3.3.tar.gz) = 55caa2116fa7a8105beac50cd5940e202ef27adb
+RMD160 (pysmi-0.3.3.tar.gz) = 1754bcd06a4d36ae89e2dc9c5f7f0d215f70cb03
+SHA512 (pysmi-0.3.3.tar.gz) = 8bae8cf396fc4115adf8711eadda9042f99d6a69edfa31345d88bc31a5b4ad9ce1e7da8d599a52acac536baf6741ac650bacf62d36e994db79b73169cd9897d2
+Size (pysmi-0.3.3.tar.gz) = 94674 bytes


Home | Main Index | Thread Index | Old Index