[Python-modules-commits] r19308 - in packages/python-ipcalc/trunk/debian (3 files)
mezgani-guest at users.alioth.debian.org
mezgani-guest at users.alioth.debian.org
Sun Nov 13 11:37:42 UTC 2011
Date: Sunday, November 13, 2011 @ 11:37:40
Author: mezgani-guest
Revision: 19308
Modify License to MIT
Modified:
packages/python-ipcalc/trunk/debian/README.source
packages/python-ipcalc/trunk/debian/control
packages/python-ipcalc/trunk/debian/copyright
Modified: packages/python-ipcalc/trunk/debian/README.source
===================================================================
--- packages/python-ipcalc/trunk/debian/README.source 2011-11-13 11:19:56 UTC (rev 19307)
+++ packages/python-ipcalc/trunk/debian/README.source 2011-11-13 11:37:40 UTC (rev 19308)
@@ -1,28 +1,58 @@
-ipcalc for Debian
------------------
+This package uses quilt to manage all modifications to the upstream
+source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
-This module allows you to perform IP subnet calculations, there is support for both IPv4 and IPv6 CIDR notation.
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
-Example Usage:
+ for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+ if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+ export QUILT_PATCHES=debian/patches
+ break
+ fi
+ done
->>> 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
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
- -- MEZGANI Ali <mezgani at nativelabs.org> Wed, 17 Jun 2009 01:33:25 +0200
+ quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+ quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches. Then, for every file that will be modified by this patch,
+run:
+
+ quilt add <file>
+
+before editing those files. You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly. After editing the files, run:
+
+ quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+ quilt import -P <patch> /path/to/patch
+ quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches. The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+ quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.
Modified: packages/python-ipcalc/trunk/debian/control
===================================================================
--- packages/python-ipcalc/trunk/debian/control 2011-11-13 11:19:56 UTC (rev 19307)
+++ packages/python-ipcalc/trunk/debian/control 2011-11-13 11:37:40 UTC (rev 19308)
@@ -14,7 +14,7 @@
Architecture: all
Depends: python, ${python:Depends}, ${misc:Depends}
Provides: ${python:Provides}
-Description: perform IP subnet calculations
+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.
Modified: packages/python-ipcalc/trunk/debian/copyright
===================================================================
--- packages/python-ipcalc/trunk/debian/copyright 2011-11-13 11:19:56 UTC (rev 19307)
+++ packages/python-ipcalc/trunk/debian/copyright 2011-11-13 11:37:40 UTC (rev 19308)
@@ -12,7 +12,6 @@
Copyright (C) 2008-2009 Wijnand Modderman
License:
- GPL-3
mezgani ali <handrix at gmail.com> wrote:
> Hi Modderman,
@@ -53,8 +52,7 @@
The Debian packaging is:
- Copyright (C) 2011 MEZGANI Ali <mezgani at nativelabs.org>
+ Copyright (C) 2009-2011 MEZGANI Ali <mezgani at nativelabs.org>
-and is licensed under the GPL version 3,
-see `/usr/share/common-licenses/GPL-3'.
+and is licensed under the MIT license,
More information about the Python-modules-commits
mailing list