[Python-modules-commits] r236 - in /packages/impacket/trunk/debian: changelog control control.in python-impacket.postinst python-impacket.prerm rules

arnau-guest at users.alioth.debian.org arnau-guest at users.alioth.debian.org
Tue Apr 18 19:19:02 UTC 2006


Author: arnau-guest
Date: Tue Apr 18 19:19:01 2006
New Revision: 236

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=236
Log:
Use python-support.


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

Modified: packages/impacket/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/impacket/trunk/debian/changelog?rev=236&op=diff
==============================================================================
--- packages/impacket/trunk/debian/changelog (original)
+++ packages/impacket/trunk/debian/changelog Tue Apr 18 19:19:01 2006
@@ -1,3 +1,10 @@
+impacket (0.9.5.2-2) unstable; urgency=low
+
+  * Use python-support and then remove python2.3-impacket and
+    python2.4-impacket packages.
+
+ -- Arnaud Fontaine <arnaud at andesi.org>  Tue, 18 Apr 2006 19:45:47 +0200
+
 impacket (0.9.5.2-1) unstable; urgency=low
 
   * Initial release. Closes: #361966.

Modified: packages/impacket/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/impacket/trunk/debian/control?rev=236&op=diff
==============================================================================
--- packages/impacket/trunk/debian/control (original)
+++ packages/impacket/trunk/debian/control Tue Apr 18 19:19:01 2006
@@ -2,32 +2,13 @@
 Section: python
 Priority: optional
 Maintainer: Arnaud Fontaine <arnaud at andesi.org>
-Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>, Gustavo Franco <stratus at debian.org>
-Build-Depends-Indep: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), patchutils (>= 0.2.25), python-dev (>= 2.3), python2.3-dev, python2.4-dev
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends-Indep: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), patchutils (>= 0.2.25), python-support, python-dev
 Standards-Version: 3.6.2.1
 
 Package: python-impacket
 Architecture: all
-Depends: python2.3-impacket
-Recommends: python-pcapy
-Suggests: python-impacket-doc
-Description: Python module to easily build and dissect network protocols
- This is a "dummy" package that will cause the Impacket package for Debian's
- default Python version to always be present on your system.
- .
-  Homepage: http://oss.coresecurity.com/projects/impacket.html
-
-Package: python-impacket-doc
-Architecture: all
-Section: doc
-Description: Python module to easily build and dissect network protocols
- This package contains the documentation for Impacket.
- .
-  Homepage: http://oss.coresecurity.com/projects/impacket.html
-
-Package: python2.3-impacket
-Architecture: all
-Depends: ${python:Depends}
+Depends: python (>=2.3)
 Recommends: python-pcapy
 Suggests: python-impacket-doc
 Description: Python module to easily build and dissect network protocols
@@ -43,28 +24,12 @@
  object  oriented API  makes  it  simple to  work  with deep  protocol
  hierarchies.
  .
- This package is for Python 2.3.
+  Homepage: http://oss.coresecurity.com/projects/impacket.html
+
+Package: python-impacket-doc
+Architecture: all
+Section: doc
+Description: Python module to easily build and dissect network protocols
+ This package contains the documentation for Impacket.
  .
   Homepage: http://oss.coresecurity.com/projects/impacket.html
-
-Package: python2.4-impacket
-Architecture: all
-Depends: ${python:Depends}
-Recommends: python-pcapy
-Suggests: python-impacket-doc
-Description: Python module to easily build and dissect network protocols
- Impacket  is a  collection  of Python  classes  focused on  providing
- access  to network  packets.   Impacket allows  Python developers  to
- craft and decode network packets in simple and consistent manner.  It
- includes support for low-level protocols  such as IP, UDP and TCP, as
- well as higher-level protocols such as NMB and SMB.
- .
- Impacket is highly  effective when used in conjunction  with a packet
- capture utility or package such as Pcapy.  Packets can be constructed
- From  scratch, as  well as  parsed from  raw data.   Furthermore, the
- object  oriented API  makes  it  simple to  work  with deep  protocol
- hierarchies.
- .
- This package is for Python 2.4.
- .
-  Homepage: http://oss.coresecurity.com/projects/impacket.html

Modified: packages/impacket/trunk/debian/control.in
URL: http://svn.debian.org/wsvn/python-modules/packages/impacket/trunk/debian/control.in?rev=236&op=diff
==============================================================================
--- packages/impacket/trunk/debian/control.in (original)
+++ packages/impacket/trunk/debian/control.in Tue Apr 18 19:19:01 2006
@@ -2,32 +2,13 @@
 Section: python
 Priority: optional
 Maintainer: Arnaud Fontaine <arnaud at andesi.org>
-Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>, Gustavo Franco <stratus at debian.org>
-Build-Depends: @cdbs@, python-dev (>= 2.3), python2.3-dev, python2.4-dev
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends-Indep: @cdbs@, python-support, python-dev
 Standards-Version: 3.6.2.1
 
 Package: python-impacket
 Architecture: all
-Depends: python2.3-impacket
-Recommends: python-pcapy
-Suggests: python-impacket-doc
-Description: Python module to easily build and dissect network protocols
- This is a "dummy" package that will cause the Impacket package for Debian's
- default Python version to always be present on your system.
- .
-  Homepage: http://oss.coresecurity.com/projects/impacket.html
-
-Package: python-impacket-doc
-Architecture: all
-Section: doc
-Description: Python module to easily build and dissect network protocols
- This package contains the documentation for Impacket.
- .
-  Homepage: http://oss.coresecurity.com/projects/impacket.html
-
-Package: python2.3-impacket
-Architecture: all
-Depends: ${python:Depends}
+Depends: python (>=2.3)
 Recommends: python-pcapy
 Suggests: python-impacket-doc
 Description: Python module to easily build and dissect network protocols
@@ -43,28 +24,12 @@
  object  oriented API  makes  it  simple to  work  with deep  protocol
  hierarchies.
  .
- This package is for Python 2.3.
+  Homepage: http://oss.coresecurity.com/projects/impacket.html
+
+Package: python-impacket-doc
+Architecture: all
+Section: doc
+Description: Python module to easily build and dissect network protocols
+ This package contains the documentation for Impacket.
  .
   Homepage: http://oss.coresecurity.com/projects/impacket.html
-
-Package: python2.4-impacket
-Architecture: all
-Depends: ${python:Depends}
-Recommends: python-pcapy
-Suggests: python-impacket-doc
-Description: Python module to easily build and dissect network protocols
- Impacket  is a  collection  of Python  classes  focused on  providing
- access  to network  packets.   Impacket allows  Python developers  to
- craft and decode network packets in simple and consistent manner.  It
- includes support for low-level protocols  such as IP, UDP and TCP, as
- well as higher-level protocols such as NMB and SMB.
- .
- Impacket is highly  effective when used in conjunction  with a packet
- capture utility or package such as Pcapy.  Packets can be constructed
- From  scratch, as  well as  parsed from  raw data.   Furthermore, the
- object  oriented API  makes  it  simple to  work  with deep  protocol
- hierarchies.
- .
- This package is for Python 2.4.
- .
-  Homepage: http://oss.coresecurity.com/projects/impacket.html

Added: packages/impacket/trunk/debian/python-impacket.postinst
URL: http://svn.debian.org/wsvn/python-modules/packages/impacket/trunk/debian/python-impacket.postinst?rev=236&op=file
==============================================================================
--- packages/impacket/trunk/debian/python-impacket.postinst (added)
+++ packages/impacket/trunk/debian/python-impacket.postinst Tue Apr 18 19:19:01 2006
@@ -1,0 +1,9 @@
+#!/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/impacket
+fi

Added: packages/impacket/trunk/debian/python-impacket.prerm
URL: http://svn.debian.org/wsvn/python-modules/packages/impacket/trunk/debian/python-impacket.prerm?rev=236&op=file
==============================================================================
--- packages/impacket/trunk/debian/python-impacket.prerm (added)
+++ packages/impacket/trunk/debian/python-impacket.prerm Tue Apr 18 19:19:01 2006
@@ -1,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if which update-python-modules >/dev/null 2>&1; then
+        update-python-modules -c -i /usr/share/python-support/impacket
+fi

Modified: packages/impacket/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/impacket/trunk/debian/rules?rev=236&op=diff
==============================================================================
--- packages/impacket/trunk/debian/rules (original)
+++ packages/impacket/trunk/debian/rules Tue Apr 18 19:19:01 2006
@@ -1,13 +1,24 @@
 #!/usr/bin/make -f
 # -*- mode: makefile; coding: utf-8 -*-
 
-# Common rules
+# python-distutils before debhelper to avoid it calling dh_python
+# 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
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 # Don't compress .py file
 DEB_COMPRESS_EXCLUDE := .py
+
+# python-support stuff (based on python-cherrypy, thanks to its
+# maintainer)
+DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0
+PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)
+
+common-binary-post-install-indep::
+	mkdir -p debian/python-impacket/usr/share/python-support/impacket/
+	mv debian/python-impacket/usr/lib/python${PYVER}/site-packages/* \
+		debian/python-impacket/usr/share/python-support/impacket/
 
 $(patsubst %,binary-install/%,$(filter-out python-impacket-doc,$(DEB_ALL_PACKAGES)))::
 	cp debian/README.Debian \




More information about the Python-modules-commits mailing list