--- pynetsnmp-0.28.14.orig/debian/rules +++ pynetsnmp-0.28.14/debian/rules @@ -0,0 +1,58 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PKGNAME:=python-pynetsnmp + +include /usr/share/dpatch/dpatch.make + +build: build-stamp +build-stamp: patch + dh_testdir + + python setup.py build + + touch $@ + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f install-stamp build-stamp + -python setup.py clean + find . -name \*.pyc | xargs rm -f + rm -rf build + dh_clean + +install: install-stamp +install-stamp: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + python setup.py install --root=debian/$(PKGNAME) + + dh_installdocs -A + touch install-stamp + +binary-arch: build install +# We have nothing to do by default. + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installexamples + dh_compress -X.py + dh_fixperms + dh_pysupport + python debian/libdeps >> debian/$(PKGNAME).substvars + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean-patched + --- pynetsnmp-0.28.14.orig/debian/examples +++ pynetsnmp-0.28.14/debian/examples @@ -0,0 +1 @@ +test/* --- pynetsnmp-0.28.14.orig/debian/watch +++ pynetsnmp-0.28.14/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://dev.zenoss.org/svn/trunk/inst/externallibs/ pynetsnmp-([0-9.]+).tar.gz --- pynetsnmp-0.28.14.orig/debian/README.Debian +++ pynetsnmp-0.28.14/debian/README.Debian @@ -0,0 +1,11 @@ +pynetsnmp for Debian +-------------------- + +pynetsnmp is very new and under heavy development. More functions, +Unit tests and a documentation will be added later. It was developed +to provide a well working twistedsnmp/pysnmp replacement for Zenoss. + +If you have any questions, please contact the Zenoss packaging team +at . + + -- Bernd Zeimetz Tue, 8 May 2007 19:07:24 +0200 --- pynetsnmp-0.28.14.orig/debian/svn-deblayout +++ pynetsnmp-0.28.14/debian/svn-deblayout @@ -0,0 +1 @@ +tagsUrl=svn+ssh://svn.debian.org/svn/pkg-zenoss/tags/packages/pynetsnmp --- pynetsnmp-0.28.14.orig/debian/compat +++ pynetsnmp-0.28.14/debian/compat @@ -0,0 +1 @@ +5 --- pynetsnmp-0.28.14.orig/debian/control +++ pynetsnmp-0.28.14/debian/control @@ -0,0 +1,25 @@ +Source: pynetsnmp +Section: python +Priority: optional +Maintainer: Bhavani Shankar +Build-Depends: debhelper (>= 5), python (>= 2.5), dpatch +Build-Depends-Indep: libsnmp-dev, python-support +Vcs-Svn: svn://svn.debian.org/svn/pkg-zenoss/packages/pynetsnmp/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-zenoss/packages/pynetsnmp/trunk/ +Standards-Version: 3.8.4 +XS-Python-Version: >= 2.5 +Homepage: http://www.zenoss.com/ + +Package: python-pynetsnmp +Architecture: all +Depends: ${python:Depends}, ${libsnmp:Depends}, ${misc:Depends}, python-twisted-core +Description: Python ctypes bindings for NET-SNMP with Twisted integration + pynetsnmp is a set of Python ctypes binding for NET-SNMP, an + implementation of the Simple Network Management Protocol (SNMP). + . + pynetsnmp is a replacement for the various Python bindings provided by + PySNMP* implementations (available as the Debian packages python-pysnmp*). + . + It also implements a glue with the Python Twisted Matrix networking + framework which replaces the TwistedSNMP implementation (available as the + python-twisted-snmp Debian package). --- pynetsnmp-0.28.14.orig/debian/copyright +++ pynetsnmp-0.28.14/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Bernd Zeimetz on +Tue, 8 May 2007 19:07:24 +0200. + +It was downloaded from http://dev.zenoss.org/svn/trunk/inst/externallibs/ + +Upstream Author: Eric C. Newton + +Copyright: Copyright © 2007 Zenoss, Inc. All rights reserved. + +License: + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License version 2 as published by + the Free Software Foundation. + + For complete information please visit: http://www.zenoss.com/oss/ + + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is © 2007, Bernd Zeimetz and +is maintained by Bhavani Shankar from March 2010 +licensed under the GPL 2, see above. + --- pynetsnmp-0.28.14.orig/debian/changelog +++ pynetsnmp-0.28.14/debian/changelog @@ -0,0 +1,151 @@ +pynetsnmp (0.28.14-1) unstable; urgency=low + + * New Maintainer Closes: #538261 + * New upstream version + * debian/control: + + Add myself as Maintainer + + Bump up Standards-Version to 3.8.4 + * debian/copyright: + + Mention my name as maintainer + + Update copyright symbol instead of depreceated (C) symbol + (I: Lintian) + * Add README.source for dpatch (W: Lintian) + + -- Bhavani Shankar Sun, 28 Mar 2010 17:00:53 +0530 + +pynetsnmp (0.28.13-3) unstable; urgency=low + + * QA upload. + * Build-depend on python (>= 2.5). + * Add XS-Python-Version field. + * Bump Standards-Version to 3.8.3. + * Remove python-ctypes from Depends (Closes: #562477). + + -- Luca Falavigna Sun, 27 Dec 2009 16:01:00 +0100 + +pynetsnmp (0.28.13-2) unstable; urgency=low + + * Orphaning the package + - setting maintainer to QA + - removing myself and Bernd (with consensus) from Uploaders + + -- Stefano Zacchiroli Fri, 24 Jul 2009 15:14:02 +0200 + +pynetsnmp (0.28.13-1) unstable; urgency=low + + * New upstream version. + * Fixing copyright informations. + * Dropping netsmnp.py-64bit patch, applied upstream. + * Bumping Standards-Version, no change needed. + + -- Bernd Zeimetz Sun, 17 May 2009 16:08:56 +0200 + +pynetsnmp (0.28.8-1) unstable; urgency=low + + * New upstream release. + + -- Bernd Zeimetz Wed, 16 Jul 2008 10:28:01 +0200 + +pynetsnmp (0.28.6-2) unstable; urgency=low + + * Fixing a bug which resulted in hangs on 64bit architectures. + Thanks to John Kozak. (Closes: #471980) + + -- Bernd Zeimetz Sun, 06 Apr 2008 15:53:54 +0200 + +pynetsnmp (0.28.6-1) unstable; urgency=low + + * New upstream version. + + -- Bernd Zeimetz Sun, 02 Mar 2008 23:32:53 +0100 + +pynetsnmp (0.28.4-1) unstable; urgency=low + + * New upstream version. + + -- Bernd Zeimetz Thu, 14 Feb 2008 23:10:00 +0100 + +pynetsnmp (0.28.1-1) unstable; urgency=low + + * New upstream version. + + -- Bernd Zeimetz Sun, 27 Jan 2008 02:13:39 +0100 + +pynetsnmp (0.28.0-1) unstable; urgency=medium + + * New upstream version. + * Medium urgency as requested by the RMs. + * debian/control: + - Updating my email address. + - Updating Standards-Version to 3.7.3. + - Adding dpatch to the build dependencies. + * debian/examples: + - Including test/* as examples. + * debian/libdeps: + - Relaxing libsnmp dependency to the current SONAME. + * debian/patches: + - Adding examples-import-fix.dpatch to make the test files working as + examples. + + -- Bernd Zeimetz Fri, 14 Dec 2007 22:47:52 +0100 + +pynetsnmp (0.27.0-1) unstable; urgency=low + + * New upstream version + * debian/libdeps: + - Replacing the gcc way to detect the libsnmp soname and version by a + Python script. + * debian/rules, debian/control: + - Getting rid of cdbs. + - We don't need to use patches since several versions now, removing + dpatch completely now. + * debian/control: + - Removing Homepage from the description, using the Homepage field now. + - Renaming XS-Vcs-* to Vcs-* as they're supported by dpkg now. + + -- Bernd Zeimetz Tue, 27 Nov 2007 13:41:47 +0100 + +pynetsnmp (0.26.8-1) unstable; urgency=low + + * New upstream version + * debian/control: + - Fixing our version number - this is not a native Debian package. + + -- Stefano Zacchiroli Mon, 03 Sep 2007 09:08:50 +0200 + +pynetsnmp (0.26.7) unstable; urgency=low + + * new upstream version + * debian/control: + - moving python-support, libsnmp-dev to Build-Depends-Indep as they're + not needed in the clean target of debian/rules + + -- Bernd Zeimetz Sun, 02 Sep 2007 13:13:45 +0200 + +pynetsnmp (0.26.5-1) unstable; urgency=low + + * new upstream version + + -- Bernd Zeimetz Fri, 20 Jul 2007 15:31:40 +0200 + +pynetsnmp (0.26.4-1) unstable; urgency=low + + [ Bernd Zeimetz ] + * new upstream version + * debian/patches: + - remove setup-version, integrated upstream + * debian/libdeps: + - adding a small test.c file to be able to figure out the right snmp + library dependency on build time + * debian/control, debian/rules: + - removing the hardcoded dep on libsnmp10, instead we build + debian/libdeps/test and use dh_shlibdeps on it. + + -- Stefano Zacchiroli Wed, 04 Jul 2007 09:18:33 +0200 + +pynetsnmp (0.26-1) unstable; urgency=low + + * Initial release (Closes: #425280) + + -- Bernd Zeimetz Sun, 20 May 2007 18:10:11 +0200 + --- pynetsnmp-0.28.14.orig/debian/README.source +++ pynetsnmp-0.28.14/debian/README.source @@ -0,0 +1,33 @@ +This package uses dpatch in order to apply patches to the upstream source. +Patches are stored in debian/patches and their filenames usually end in .dpatch . +For further details, see the man pages for dpatch and dpatch-edit-patch. + +All commands described below should be run from the top directory of the +package source tree, unless otherwise stated. + + * To generate the fully patched source, in a form ready for + editing, that would be built to create Debian packages, run: + + dpatch apply-all + + Note: It has been proposed that in future, this should happen + automatically when you run dpkg-source -x on a dpatch source + package. However, this proposal has apparently not yet been + implemented, so for now you have to do it yourself like this. + + * To modify the source and save those modifications so that + they will be applied when building the package, pick a + suitably informative patch file name, for example + 01_add_README.source_file.dpatch, and then run: + + dpatch-edit-patch 01_add_README.source_file.dpatch + + This will place you in a new shell in a temporary copy of the + source tree. Make your desired modifications to it, and then + exit the shell to create the patch file containing them (this + file will appear in debian/patches). + + * To remove source modifications that are currently being + applied when building the package, run: + + dpatch deapply-all --- pynetsnmp-0.28.14.orig/debian/libdeps +++ pynetsnmp-0.28.14/debian/libdeps @@ -0,0 +1,13 @@ +#!/usr/bin/python + +import os +import re + +child_stdin, child_stdout = os.popen2('dpkg -s libsnmp-dev') +output = child_stdout.read() +child_stdout.close() +child_stdin.close() + +version = re.findall(r'^Depends:.*(libsnmp[0-9]+) \([^)]+\)', output, re.M)[0] + +print "libsnmp:Depends=" + version --- pynetsnmp-0.28.14.orig/debian/patches/00dpatch.conf +++ pynetsnmp-0.28.14/debian/patches/00dpatch.conf @@ -0,0 +1,2 @@ +conf_debianonly=1 +conf_origtargzpath=../tarballs --- pynetsnmp-0.28.14.orig/debian/patches/examples-import-fix.dpatch +++ pynetsnmp-0.28.14/debian/patches/examples-import-fix.dpatch @@ -0,0 +1,62 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## examples-import-fix.dpatch by Bernd Zeimetz +## +## DP: Fixiing tests to work as example + +@DPATCH@ +diff -urNad pynetsnmp~/test/get.py pynetsnmp/test/get.py +--- pynetsnmp~/test/get.py 2007-10-29 18:17:44.000000000 +0100 ++++ pynetsnmp/test/get.py 2009-05-17 16:00:37.000000000 +0200 +@@ -1,5 +1,5 @@ +-import netsnmp +-import twistedsnmp ++from pynetsnmp import netsnmp ++from pynetsnmp import twistedsnmp + import sys + + from twisted.internet import reactor +diff -urNad pynetsnmp~/test/getbulk.py pynetsnmp/test/getbulk.py +--- pynetsnmp~/test/getbulk.py 2007-10-29 18:17:44.000000000 +0100 ++++ pynetsnmp/test/getbulk.py 2009-05-17 16:00:37.000000000 +0200 +@@ -1,5 +1,5 @@ +-import netsnmp +-import twistedsnmp ++from pynetsnmp import netsnmp ++from pynetsnmp import twistedsnmp + import sys + + from twisted.internet import reactor +diff -urNad pynetsnmp~/test/trap.py pynetsnmp/test/trap.py +--- pynetsnmp~/test/trap.py 2007-10-30 14:30:19.000000000 +0100 ++++ pynetsnmp/test/trap.py 2009-05-17 16:00:37.000000000 +0200 +@@ -1,8 +1,8 @@ +-import netsnmp ++from pynetsnmp import netsnmp + from ctypes import * + from CONSTANTS import * + +-import twistedsnmp ++from pynetsnmp import twistedsnmp + from twisted.internet import reactor, defer + + def translateOid(oid): +diff -urNad pynetsnmp~/test/twistget.py pynetsnmp/test/twistget.py +--- pynetsnmp~/test/twistget.py 2007-04-07 20:48:28.000000000 +0200 ++++ pynetsnmp/test/twistget.py 2009-05-17 16:00:37.000000000 +0200 +@@ -1,4 +1,4 @@ +-from twistedsnmp import AgentProxy ++from pynetsnmp.twistedsnmp import AgentProxy + from twisted.python import failure + from twisted.internet import reactor + +diff -urNad pynetsnmp~/test/walk.py pynetsnmp/test/walk.py +--- pynetsnmp~/test/walk.py 2007-10-29 18:17:44.000000000 +0100 ++++ pynetsnmp/test/walk.py 2009-05-17 16:00:37.000000000 +0200 +@@ -1,5 +1,5 @@ +-import netsnmp +-import twistedsnmp ++from pynetsnmp import netsnmp ++from pynetsnmp import twistedsnmp + import sys + + from twisted.internet import reactor, defer --- pynetsnmp-0.28.14.orig/debian/patches/00list +++ pynetsnmp-0.28.14/debian/patches/00list @@ -0,0 +1 @@ +examples-import-fix