[Pkg-zenoss-commits] r17 - in packages/pynetsnmp/trunk: . debian debian/patches

Bernd Zeimetz bzed-guest at alioth.debian.org
Tue May 8 21:13:13 UTC 2007


Author: bzed-guest
Date: 2007-05-08 21:13:13 +0000 (Tue, 08 May 2007)
New Revision: 17

Added:
   packages/pynetsnmp/trunk/debian/
   packages/pynetsnmp/trunk/debian/README.Debian
   packages/pynetsnmp/trunk/debian/changelog
   packages/pynetsnmp/trunk/debian/compat
   packages/pynetsnmp/trunk/debian/control
   packages/pynetsnmp/trunk/debian/copyright
   packages/pynetsnmp/trunk/debian/patches/
   packages/pynetsnmp/trunk/debian/patches/00list
   packages/pynetsnmp/trunk/debian/patches/build-constants.dpatch
   packages/pynetsnmp/trunk/debian/patches/genconstants-fix.dpatch
   packages/pynetsnmp/trunk/debian/pycompat
   packages/pynetsnmp/trunk/debian/rules
Modified:
   packages/pynetsnmp/trunk/CONSTANTS.py
Log:
[svn-inject] Applying Debian modifications to trunk

Modified: packages/pynetsnmp/trunk/CONSTANTS.py
===================================================================
--- packages/pynetsnmp/trunk/CONSTANTS.py	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/CONSTANTS.py	2007-05-08 21:13:13 UTC (rev 17)
@@ -10,6 +10,9 @@
 SNMP_CALLBACK_POST_PREMIB_READ_CONFIG = 3
 SNMP_CALLBACK_LOGGING = 4
 SNMP_CALLBACK_SESSION_INIT = 5
+NETSNMP_CALLBACK_HIGHEST_PRIORITY = -1024
+NETSNMP_CALLBACK_DEFAULT_PRIORITY = 0
+NETSNMP_CALLBACK_LOWEST_PRIORITY = 1024
 PARSE_PACKET = 0
 DUMP_PACKET = 1
 MAX_SUBID = 0xFFFFFFFF
@@ -167,6 +170,7 @@
 UCD_MSG_FLAG_ALWAYS_IN_VIEW = 0x800
 UCD_MSG_FLAG_PDU_TIMEOUT = 0x1000
 UCD_MSG_FLAG_ONE_PASS_ONLY = 0x2000
+UCD_MSG_FLAG_TUNNELED = 0x4000
 SNMP_VIEW_INCLUDED = 1
 SNMP_VIEW_EXCLUDED = 2
 SNMP_OID_INTERNET = 1, 3, 6, 1


Property changes on: packages/pynetsnmp/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages/pynetsnmp/trunk/debian/README.Debian
===================================================================
--- packages/pynetsnmp/trunk/debian/README.Debian	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/README.Debian	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1,6 @@
+pynetsnmp for Debian
+--------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Bernd Zeimetz <bernd at bzed.de>  Tue,  8 May 2007 19:07:24 +0200

Added: packages/pynetsnmp/trunk/debian/changelog
===================================================================
--- packages/pynetsnmp/trunk/debian/changelog	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/changelog	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1,6 @@
+pynetsnmp (0.22-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Bernd Zeimetz <bernd at bzed.de>  Tue,  8 May 2007 19:07:24 +0200
+

Added: packages/pynetsnmp/trunk/debian/compat
===================================================================
--- packages/pynetsnmp/trunk/debian/compat	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/compat	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1 @@
+5

Added: packages/pynetsnmp/trunk/debian/control
===================================================================
--- packages/pynetsnmp/trunk/debian/control	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/control	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1,16 @@
+Source: pynetsnmp
+Section: python
+Priority: optional
+Maintainer: Zenoss Packaging Team <pkg-zenoss-team at lists.alioth.debian.org>
+Uploaders: Bernd Zeimetz <bernd at bzed.de>
+Build-Depends: cdbs, debhelper (>= 5), debhelper (>= 5), python, python-support (>= 0.4), libsnmp10-dev
+Standards-Version: 3.7.2
+
+Package: python-pynetsnmp
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends},
+ python-ctypes, python-twisted-core, libsnmp10
+Description: ctypes wrapper for net-snmp
+ yes - ## FIXME ###
+ .
+  Homepage: http://www.zenoss.com/

Added: packages/pynetsnmp/trunk/debian/copyright
===================================================================
--- packages/pynetsnmp/trunk/debian/copyright	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/copyright	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1,31 @@
+This package was debianized by Bernd Zeimetz <bernd at bzed.de> 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 <ecn at zenoss.com>
+
+Copyright: Copyright (c) 2007 Zenoss, Inc. All rights reserved.
+
+License:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2007, Bernd Zeimetz <bernd at bzed.de> and
+is licensed under the GPL, see above.
+

Added: packages/pynetsnmp/trunk/debian/patches/00list
===================================================================
--- packages/pynetsnmp/trunk/debian/patches/00list	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/patches/00list	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1,2 @@
+build-constants
+genconstants-fix

Added: packages/pynetsnmp/trunk/debian/patches/build-constants.dpatch
===================================================================
--- packages/pynetsnmp/trunk/debian/patches/build-constants.dpatch	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/patches/build-constants.dpatch	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1,36 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## build-constants.dpatch by Bernd Zeimetz <bernd at bzed.de>
+##
+## DP: generating the CONSTANTS.py from setup.py.
+
+ at DPATCH@
+diff -urNad pynetsnmp-0.22~/setup.py pynetsnmp-0.22/setup.py
+--- pynetsnmp-0.22~/setup.py	2007-05-08 22:50:48.000000000 +0200
++++ pynetsnmp-0.22/setup.py	2007-05-08 22:51:38.000000000 +0200
+@@ -1,11 +1,26 @@
++from distutils.command.build import build as _build
++from distutils.command.clean import clean as _clean
+ from distutils.core import setup
+ 
+ import genconstants
+ 
++
++class clean(_clean):
++    def run(self):
++        if os.path.exists("CONSTANTS.py"):
++            os.remove("CONSTANTS.py")
++        _clean.run(self)
++
++class build(_build):
++    def run(self):
++        genconstants.make_imports()
++        _build_py.run(self)
++
+ setup(name='pynetsnmp',
+       description='ctypes wrapper for net-snmp',
+       author='Eric C. Newton',
+       author_email='ecn at zenoss.com',
++      cmdclass={'build': build, 'clean' : clean},
+       package_dir = {'pynetsnmp':'.',},
+       packages = ['pynetsnmp',],
+       )


Property changes on: packages/pynetsnmp/trunk/debian/patches/build-constants.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pynetsnmp/trunk/debian/patches/genconstants-fix.dpatch
===================================================================
--- packages/pynetsnmp/trunk/debian/patches/genconstants-fix.dpatch	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/patches/genconstants-fix.dpatch	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1,27 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## genconstants-fix.dpatch by Bernd Zeimetz <bernd at bzed.de>
+##
+## DP: adding the missing os import
+
+ at DPATCH@
+diff -urNad pynetsnmp-0.22~/genconstants.py pynetsnmp-0.22/genconstants.py
+--- pynetsnmp-0.22~/genconstants.py	2007-05-08 23:11:36.000000000 +0200
++++ pynetsnmp-0.22/genconstants.py	2007-05-08 23:11:52.000000000 +0200
+@@ -1,4 +1,5 @@
+ import re
++import os
+ 
+ def process(f, output):
+     lines = open('/usr/include/net-snmp/library/%s.h' % f).readlines()
+diff -urNad pynetsnmp-0.22~/setup.py pynetsnmp-0.22/setup.py
+--- pynetsnmp-0.22~/setup.py	2007-05-08 23:11:51.000000000 +0200
++++ pynetsnmp-0.22/setup.py	2007-05-08 23:12:14.000000000 +0200
+@@ -14,7 +14,7 @@
+ class build(_build):
+     def run(self):
+         genconstants.make_imports()
+-        _build_py.run(self)
++        _build.run(self)
+ 
+ setup(name='pynetsnmp',
+       description='ctypes wrapper for net-snmp',


Property changes on: packages/pynetsnmp/trunk/debian/patches/genconstants-fix.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pynetsnmp/trunk/debian/pycompat
===================================================================
--- packages/pynetsnmp/trunk/debian/pycompat	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/pycompat	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1 @@
+2

Added: packages/pynetsnmp/trunk/debian/rules
===================================================================
--- packages/pynetsnmp/trunk/debian/rules	2007-05-08 21:13:06 UTC (rev 16)
+++ packages/pynetsnmp/trunk/debian/rules	2007-05-08 21:13:13 UTC (rev 17)
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+  
+DEB_PYTHON_SYSTEM=pysupport
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+configure/python-pynetsnmp::
+	mv CONSTANTS.py CONSTANTS.py_orig
+
+cleanbuilddir/python-pynetsnmp::
+	-[ -f CONSTANTS.py_orig ] && rm -f CONSTANTS.py && mv CONSTANTS.py_orig CONSTANTS.py
+	find . -name \*.pyc -exec rm {} \;


Property changes on: packages/pynetsnmp/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-zenoss-commits mailing list