[Python-modules-commits] r497 - in /packages/python-pysnmp3/trunk/debian: control control.in python-pysnmp3.postinst python-pysnmp3.prerm rules

jluebbe-guest at users.alioth.debian.org jluebbe-guest at users.alioth.debian.org
Sun May 7 16:43:20 UTC 2006


Author: jluebbe-guest
Date: Sun May  7 16:43:19 2006
New Revision: 497

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=497
Log:
Place the python modules in pysnmp/v3

Added:
    packages/python-pysnmp3/trunk/debian/control.in
    packages/python-pysnmp3/trunk/debian/python-pysnmp3.postinst
    packages/python-pysnmp3/trunk/debian/python-pysnmp3.prerm
Modified:
    packages/python-pysnmp3/trunk/debian/control
    packages/python-pysnmp3/trunk/debian/rules

Modified: packages/python-pysnmp3/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pysnmp3/trunk/debian/control?rev=497&op=diff
==============================================================================
--- packages/python-pysnmp3/trunk/debian/control (original)
+++ packages/python-pysnmp3/trunk/debian/control Sun May  7 16:43:19 2006
@@ -2,13 +2,14 @@
 Section: python
 Priority: optional
 Maintainer: Jan Luebbe <jluebbe at lasnet.de>
-Build-Depends-Indep: debhelper (>= 4.1.67), cdbs (>=0.4.26), python, python2.3-dev, python2.4-dev
+Build-Depends-Indep: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), python-dev
 Standards-Version: 3.6.2.1
 
 Package: python-pysnmp3
 Architecture: all
-Depends: ${python:Depends}
-Conflicts: python-pysnmp2, python-pysnmp4
+Depends: python (>= 2.3), python-support (>= 0.2)
+Conflicts: python2.3-pysnmp3, python2.4-pysnmp3
+Replaces: python2.3-pysnmp3, python2.4-pysnmp3
 Description: Python SNMP library for agents and managers (old development branch)
  This is a Python implementation of SNMP v.1/v.2c engine. Its general
  functionality is to assemble/disassemble SNMP messages from/into
@@ -19,41 +20,4 @@
  that it does not rely on any third party tool (it is not a wrapper!).
  .
  PySNMP 3.x is the old development branch.
- .
- This package is a dependency package, which depends on Debian's default
- Python version and respective python-pysnmp3 package version (currently 2.3).
 
-Package: python2.3-pysnmp3
-Architecture: all
-Depends: ${python:Depends}
-Conflicts: python2.3-pysnmp2, python2.3-pysnmp4
-Description: Python SNMP library for agents and managers (old development branch)
- This is a Python implementation of SNMP v.1/v.2c engine. Its general
- functionality is to assemble/disassemble SNMP messages from/into
- given SNMP Object IDs along with associated values. PySNMP also provides
- a few transport methods specific to TCP/IP networking.
- .
- PySNMP is written entirely in Python and is self-sufficient in terms
- that it does not rely on any third party tool (it is not a wrapper!).
- .
- PySNMP 3.x is the old development branch.
- .
- This package provides modules for Python 2.3
-
-Package: python2.4-pysnmp3
-Architecture: all
-Depends: ${python:Depends}
-Conflicts: python2.4-pysnmp2, python2.4-pysnmp4
-Description: Python SNMP library for agents and managers (old development branch)
- This is a Python implementation of SNMP v.1/v.2c engine. Its general
- functionality is to assemble/disassemble SNMP messages from/into
- given SNMP Object IDs along with associated values. PySNMP also provides
- a few transport methods specific to TCP/IP networking.
- .
- PySNMP is written entirely in Python and is self-sufficient in terms
- that it does not rely on any third party tool (it is not a wrapper!).
- .
- PySNMP 3.x is the old development branch.
- .
- This package provides modules for Python 2.4
-

Added: packages/python-pysnmp3/trunk/debian/control.in
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pysnmp3/trunk/debian/control.in?rev=497&op=file
==============================================================================
--- packages/python-pysnmp3/trunk/debian/control.in (added)
+++ packages/python-pysnmp3/trunk/debian/control.in Sun May  7 16:43:19 2006
@@ -1,0 +1,23 @@
+Source: python-pysnmp3
+Section: python
+Priority: optional
+Maintainer: Jan Luebbe <jluebbe at lasnet.de>
+Build-Depends-Indep: @cdbs@, python-dev
+Standards-Version: 3.6.2.1
+
+Package: python-pysnmp3
+Architecture: all
+Depends: python (>= 2.3), python-support (>= 0.2)
+Conflicts: python2.3-pysnmp3, python2.4-pysnmp3
+Replaces: python2.3-pysnmp3, python2.4-pysnmp3
+Description: Python SNMP library for agents and managers (old development branch)
+ This is a Python implementation of SNMP v.1/v.2c engine. Its general
+ functionality is to assemble/disassemble SNMP messages from/into
+ given SNMP Object IDs along with associated values. PySNMP also provides
+ a few transport methods specific to TCP/IP networking.
+ .
+ PySNMP is written entirely in Python and is self-sufficient in terms
+ that it does not rely on any third party tool (it is not a wrapper!).
+ .
+ PySNMP 3.x is the old development branch.
+

Added: packages/python-pysnmp3/trunk/debian/python-pysnmp3.postinst
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pysnmp3/trunk/debian/python-pysnmp3.postinst?rev=497&op=file
==============================================================================
--- packages/python-pysnmp3/trunk/debian/python-pysnmp3.postinst (added)
+++ packages/python-pysnmp3/trunk/debian/python-pysnmp3.postinst Sun May  7 16:43:19 2006
@@ -1,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ] && which update-python-modules >/dev/null 2>&1; then
+        update-python-modules -i /usr/share/python-support/pysnmp3
+fi
+

Added: packages/python-pysnmp3/trunk/debian/python-pysnmp3.prerm
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pysnmp3/trunk/debian/python-pysnmp3.prerm?rev=497&op=file
==============================================================================
--- packages/python-pysnmp3/trunk/debian/python-pysnmp3.prerm (added)
+++ packages/python-pysnmp3/trunk/debian/python-pysnmp3.prerm Sun May  7 16:43:19 2006
@@ -1,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if which update-python-modules >/dev/null 2>&1; then
+        update-python-modules -c -i /usr/share/python-support/pysnmp3
+fi
+

Modified: packages/python-pysnmp3/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pysnmp3/trunk/debian/rules?rev=497&op=diff
==============================================================================
--- packages/python-pysnmp3/trunk/debian/rules (original)
+++ packages/python-pysnmp3/trunk/debian/rules Sun May  7 16:43:19 2006
@@ -1,13 +1,16 @@
 #!/usr/bin/make -f
 
+# python-distutils before debhelper to avoid it calling dh_python by itself
+include /usr/share/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
 
-DEB_INSTALL_DOCS_python2.3-pysnmp3 := docs examples
-DEB_INSTALL_DOCS_python2.4-pysnmp3 := docs examples
+DEB_PYTHON_INSTALL_ARGS_ALL += --install-lib usr/share/python-support/pysnmp3
+DEB_INSTALL_DOCS_python-pysnmp3 := docs examples
 
-binary-predeb/python2.3-pysnmp3::
-	rm -rf debian/python2.3-pysnmp3/usr/lib/python2.3/site-packages/pysnmp/test
+install/python-pysnmp3::
+	mv debian/python-pysnmp3/usr/share/python-support/pysnmp3/pysnmp \
+		debian/python-pysnmp3/usr/share/python-support/pysnmp3/v3
+	mkdir debian/python-pysnmp3/usr/share/python-support/pysnmp3/pysnmp
+	mv debian/python-pysnmp3/usr/share/python-support/pysnmp3/v3 \
+		debian/python-pysnmp3/usr/share/python-support/pysnmp3/pysnmp/
 
-binary-predeb/python2.4-pysnmp3::
-	rm -rf debian/python2.4-pysnmp3/usr/lib/python2.4/site-packages/pysnmp/test




More information about the Python-modules-commits mailing list