[Python-modules-commits] r15369 - in packages (18 files)

mezgani-guest at users.alioth.debian.org mezgani-guest at users.alioth.debian.org
Wed Jan 19 23:45:49 UTC 2011


    Date: Wednesday, January 19, 2011 @ 23:45:48
  Author: mezgani-guest
Revision: 15369

Team added to uploaders

Added:
  packages/debian/
  packages/debian/README.Debian
  packages/debian/README.source
  packages/debian/changelog
  packages/debian/compat
  packages/debian/control
  packages/debian/copyright
  packages/debian/files
  packages/debian/patches/
  packages/debian/patches/hex_toipv4.patch
  packages/debian/patches/network.patch
  packages/debian/patches/series
  packages/debian/rules
  packages/debian/source/
  packages/debian/source/format
  packages/debian/src/
  packages/debian/watch
  packages/pkg-info

Added: packages/debian/README.Debian
===================================================================
--- packages/debian/README.Debian	                        (rev 0)
+++ packages/debian/README.Debian	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,28 @@
+ipcalc for Debian
+-----------------
+
+This module allows you to perform IP subnet calculations, there is support for both IPv4 and IPv6 CIDR notation.
+
+Example Usage: 
+
+>>> from ipcalc import IP, Network
+>>> for x in Network('172.16.42.0/30'):
+...     print str(x)
+...
+172.16.42.0
+172.16.42.1
+172.16.42.2
+172.16.42.3
+>>> subnet = Network('2001:beef:babe::/48')
+>>> print str(subnet.network())
+2001:beef:babe:0000:0000:0000:0000:0000
+>>> print str(subnet.netmask())
+ffff:ffff:ffff:0000:0000:0000:0000:0000
+>>> '192.168.42.23' in Network('192.168.42.0/24')
+True
+>>> long(IP('fe80::213:ceff:fee8:c937'))
+338288524927261089654168587652869703991L
+>>> IP('127.1.2') == '127.1.0.2'
+True
+
+ -- MEZGANI Ali <mezgani at nativelabs.org>  Wed, 17 Jun 2009 01:33:25 +0200

Added: packages/debian/README.source
===================================================================
--- packages/debian/README.source	                        (rev 0)
+++ packages/debian/README.source	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,10 @@
+ipcalc for Debian
+-----------------
+
+Please to upgrade the Debian source package to a new upstream version:
+http://pypi.python.org/packages/source/i/ipcalc/
+
+For more information visit the project's web site at:
+http://code.maze.io/projects/ipcalc
+
+ -- MEZGANI Ali <mezgani at nativelabs.org>  Wed, 17 Jun 2009 01:33:25 +0200

Added: packages/debian/changelog
===================================================================
--- packages/debian/changelog	                        (rev 0)
+++ packages/debian/changelog	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,19 @@
+python-ipcalc (0.3-2) unstable; urgency=low
+
+  * debian/control: Change address of maintainer.
+    Bumped Standards-Version to 3.9.1.
+    Fix the new homepage and new developer maintainer.
+  * debian/patches: Fixes to solve mask issue and adding hex_2ipv4 routine.
+    Thanks Piotr Lewandowski reporting.
+   (Closes: #548324)
+  * debian/copyright: New developer copyright.
+  * debian/rules: Adding quilt support.
+  * debian/watch: Fix the new homepage.
+
+ -- MEZGANI Ali <mezgani at nativelabs.org>  Wed, 12 Jan 2011 03:05:15 +0100
+
+python-ipcalc (0.3-1) unstable; urgency=low
+
+  * Initial release (Closes: #533437) 
+
+ -- MEZGANI Ali <mezgani at nativelabs.org>  Wed, 17 Jun 2009 01:33:25 +0200

Added: packages/debian/compat
===================================================================
--- packages/debian/compat	                        (rev 0)
+++ packages/debian/compat	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1 @@
+7

Added: packages/debian/control
===================================================================
--- packages/debian/control	                        (rev 0)
+++ packages/debian/control	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,21 @@
+Source: python-ipcalc
+Section: python
+Priority: optional
+Uploaders: Evgeni Golov <evgeni at debian.org>, Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Maintainer: MEZGANI Ali <mezgani at nativelabs.org>
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-ipcalc/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-ipcalc/trunk/
+Build-Depends: debhelper (>= 7), python-support, quilt (>= 0.46-7) 
+Standards-Version: 3.9.1 
+Homepage: http://dev.tehmaze.com/projects/ipcalc
+XB-Python-Version: ${python:Versions}
+
+Package: python-ipcalc
+Architecture: all
+Depends: python, ${python:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
+Description: perform IP subnet calculations
+ returns the network address, netmask, network address in hexadecimal
+ and CIDR notation, min/max IP addresses, broadcast address and
+ the number of subnets.
+ There is support for both IPv4 and IPv6.

Added: packages/debian/copyright
===================================================================
--- packages/debian/copyright	                        (rev 0)
+++ packages/debian/copyright	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,58 @@
+This package was debianized by MEZGANI Ali <mezgani at nativelabs.org> on
+Wed, 17 Jun 2009 01:33:25 +0200.
+
+It was downloaded from http://dev.tehmaze.com/projects/ipcalc 
+
+Upstream Author:
+
+    Wijnand Modderman <wijnand at freecode.nl>
+ 
+Copyright:
+
+    Copyright (C) 2008-2009 Wijnand Modderman 
+
+License:
+	mezgani ali <handrix at gmail.com> wrote:
+	>    Hi Modderman,
+	>    Please can tell me what is the License of your python's modules ipcalc ?
+
+	I'll add a LICENSE file to the file repository located at
+	http://code.maze.io/projects/ipcalc
+
+	All my code is released under the MIT-license, which reads as follows:
+	
+	Copyright (c) 2008-2009 Wijnand Modderman <wijnand at freecode.nl>
+
+	Permission is hereby granted, free of charge, to any person
+	obtaining a copy of this software and associated documentation
+	files (the "Software"), to deal in the Software without
+	restriction, including without limitation the rights to use,
+	copy, modify, merge, publish, distribute, sublicense, and/or sell
+	copies of the Software, and to permit persons to whom the
+	Software is furnished to do so, subject to the following
+	conditions:
+
+	The above copyright notice and this permission notice shall be
+	included in all copies or substantial portions of the Software.
+
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+	OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+	NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+	HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+	WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+	OTHER DEALINGS IN THE SOFTWARE.
+	--
+	Regards,
+
+	Wijnand Modderman
+	
+
+The Debian packaging is:
+
+    Copyright (C) 2009 MEZGANI Ali <mezgani at nativelabs.org>
+
+and is licensed under the GPL version 3, 
+see `/usr/share/common-licenses/GPL-3'.
+

Added: packages/debian/files
===================================================================
--- packages/debian/files	                        (rev 0)
+++ packages/debian/files	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1 @@
+python-ipcalc_0.3-2_all.deb python optional

Added: packages/debian/patches/hex_toipv4.patch
===================================================================
--- packages/debian/patches/hex_toipv4.patch	                        (rev 0)
+++ packages/debian/patches/hex_toipv4.patch	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,34 @@
+Index: python-ipcalc-0.3/src/ipcalc.py
+===================================================================
+--- python-ipcalc-0.3.orig/src/ipcalc.py	2011-01-13 21:54:22.000000000 +0000
++++ python-ipcalc-0.3/src/ipcalc.py	2011-01-13 21:54:29.000000000 +0000
+@@ -34,6 +34,7 @@
+ __version__ = '0.3'
+ 
+ import types, socket
++import socket
+ 
+ class IP(object):
+     '''
+@@ -168,6 +169,21 @@
+             return '%08x' % self.ip
+         else:
+             return '%032x' % self.ip
++ 
++    def hex_toipv4(self, address):
++         '''
++         Return the Doted decimal notation
++         from a hexadecimal form
++ 
++         >>> ip = IP()
++         >>> print ip.kex_toipv4(F91B8C29)
++         41.140.27.249
++         '''
++         addr_long = int(address,16)
++         hex(addr_long)
++         struct.pack("<L", addr_long)
++         return socket.inet_ntoa(struct.pack("<L", addr_long))
++ 
+ 
+     def subnet(self):
+         return self.mask

Added: packages/debian/patches/network.patch
===================================================================
--- packages/debian/patches/network.patch	                        (rev 0)
+++ packages/debian/patches/network.patch	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,23 @@
+Index: python-ipcalc-0.3/src/ipcalc.py
+===================================================================
+--- python-ipcalc-0.3.orig/src/ipcalc.py	2011-01-12 03:27:23.000000000 +0000
++++ python-ipcalc-0.3/src/ipcalc.py	2011-01-12 03:28:21.000000000 +0000
+@@ -453,7 +453,8 @@
+         192.168.114.2
+         192.168.114.3
+         '''
+-        for ip in [IP(long(self)+x) for x in xrange(0, self.size())]:
++        net=Network(IP(self)).network()
++        for ip in [ IP(long(net)+x+1)  for x in xrange(0, self.size()+1)]:
+             yield ip
+ 
+     def has_key(self, ip):
+@@ -476,7 +477,7 @@
+         >>> print net.size()
+         256
+         '''
+-        return 2 ** ((self.version() == 4 and 32 or 128) - self.mask)
++        return 2 ** ((self.version() == 4 and 32 or 128) - self.mask) - 2
+ 
+ if __name__ == '__main__':
+     tests = [

Added: packages/debian/patches/series
===================================================================
--- packages/debian/patches/series	                        (rev 0)
+++ packages/debian/patches/series	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,2 @@
+network.patch
+hex_toipv4.patch

Added: packages/debian/rules
===================================================================
--- packages/debian/rules	                        (rev 0)
+++ packages/debian/rules	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,3 @@
+#!/usr/bin/make -f
+%:
+	dh $@ --with quilt


Property changes on: packages/debian/rules
___________________________________________________________________
Added: svn:executable
   + 

Added: packages/debian/source/format
===================================================================
--- packages/debian/source/format	                        (rev 0)
+++ packages/debian/source/format	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1 @@
+1.0

Added: packages/debian/watch
===================================================================
--- packages/debian/watch	                        (rev 0)
+++ packages/debian/watch	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/i/ipcalc/ipcalc-(.*)\.tar\.gz

Added: packages/pkg-info
===================================================================
--- packages/pkg-info	                        (rev 0)
+++ packages/pkg-info	2011-01-19 23:45:48 UTC (rev 15369)
@@ -0,0 +1,13 @@
+Metadata-Version: 1.0
+Name: ipcalc
+Version: 0.3
+Summary: IP subnet calculator
+Home-page: http://dev.tehmaze.com/projects/ipcalc
+Author: Wijnand Modderman
+Author-email: python at tehmaze.com
+License: MIT
+Platform: any 
+Description: 
+        This module allows you to perform IP subnet calculations, 
+	there is support for both IPv4 and IPv6 CIDR notation.
+        




More information about the Python-modules-commits mailing list