Commit 7aea9024 authored by Martin's avatar Martin

add Debian files from 1.02-2

parent 7270a5c1
python-socksipy (1.02-2) unstable; urgency=low
* QA upload.
* Add support for python3: (Closes: #766752)
- New patch unicode_domain for unicode destination address, which is python3
default.
- New python3-socksipy binary package in control
- Updated debian/rules for python2 + python3 packages.
* Bump standards-version to 3.9.6: No change required.
* Updated copyright file to DEP5 format.
-- Jean-Michel Nirgal Vourgère <jmv_deb@nirgal.com> Sat, 25 Oct 2014 18:22:12 +0200
python-socksipy (1.02-1) unstable; urgency=medium
[ Jari Aalto ]
* Remove deprecated dpatch and upgrade to packaging format "3.0
quilt". (Closes: #664379)
[ Dimitri John Ledkov ]
* QA upload.
* New upstream release. (Closes: #604836)
* Update upstream in watch file.
* Drop setup.py patch.
* New upstream release.
* Rebuild tarball, with corrected file permissions.
-- Dimitri John Ledkov <dimitri.j.ledkov@linux.intel.com> Mon, 13 Oct 2014 12:26:15 +0100
python-socksipy (1.0-2) unstable; urgency=low
* Orphan package (cf. #700554).
[ Sandro Tosi ]
* debian/control
- switch Vcs-Browser field to viewsvn
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.
[ Andrea Colangelo ]
* Convert to dh_python2 (Closes: #617030). Patch from Ubuntu, thanks to
Andrew Starr-Bochicchio for forwarding it.
[ Sebastian Ramacher ]
* debian/rules: Convert to dh(1).
* debian/control:
- Change Maintainer to Debian QA Group and remove Uploaders.
- Bump Standards-Version to 3.9.4.
- Bump dpatch in Build-Depends to >= 2.0.32 for dh integration.
- Bump debhelper in Build-Depends to >= 9.
- Add ${misc:Depends} to Depends.
- Remove Provides.
- Remove XS-Python-Version.
-- Sebastian Ramacher <sramacher@debian.org> Wed, 26 Jun 2013 16:58:19 +0200
python-socksipy (1.0-1) unstable; urgency=low
* Initial release (Closes: #467222)
-- Thomas Bläsing <thomasbl@pool.math.tu-berlin.de> Tue, 14 Oct 2008 00:07:51 +0200
Source: python-socksipy
Section: python
Priority: optional
Maintainer: Debian QA Group <packages@qa.debian.org>
Standards-Version: 3.9.6
Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python3-all, dh-python
Homepage: http://socksipy.sourceforge.net/
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-socksipy/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-socksipy/trunk/
Package: python-socksipy
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}
Description: Python 2 SOCKS client module
This module was designed to allow developers of Python
software that uses the Internet or another TCP/IP-based
network to add support for connection through a SOCKS proxy
server with as much ease as possible.
.
This is the Python 2 version.
Package: python3-socksipy
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}
Description: Python 3 SOCKS client module
This module was designed to allow developers of Python
software that uses the Internet or another TCP/IP-based
network to add support for connection through a SOCKS proxy
server with as much ease as possible.
.
This is the Python 3 version.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: SocksiPy
Upstream-Contact: motoma@gmail.com
Source: https://code.google.com/p/socksipy-branch/
Files:*
Copyright: 2006-2008 Dan Haim <negativeiq@users.sourceforge.net>
2007-2010 Mario Vilas
License: BSD-2-clause
License: BSD-2-clause
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of Dan Haim nor the names of his contributors may be used
to endorse or promote products derived from this software without specific
prior written permission.
.
THIS SOFTWARE IS PROVIDED BY DAN HAIM "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL DAN HAIM OR HIS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMANGE.
Description: Allows destination address to be unicode
.
This allows the package to run using python3.
Author: Jean-Michel Nirgal Vourgère <jmv_deb@nirgal.com>
Bug-Debian: https://bugs.debian.org/766752
Forwarded: no
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2014-10-25
Index: python-socksipy-1.02/socks.py
===================================================================
--- python-socksipy-1.02.orig/socks.py
+++ python-socksipy-1.02/socks.py
@@ -212,7 +212,12 @@ class socksocket(socket.socket):
if self.__proxy[3]:
# Resolve remotely
ipaddr = None
- req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + destaddr
+ if type(destaddr) != type(b''): # python3
+ destaddr_bytes = destaddr.encode()
+ # TODO: support "xn--" prefixes as defined by RFC 3490
+ else:
+ destaddr_bytes = destaddr
+ req = req + chr(0x03).encode() + chr(len(destaddr_bytes)).encode() + destaddr_bytes
else:
# Resolve locally
ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
usr/lib/python2.*/*-packages/*
usr/lib/python3/*-packages/*
#!/usr/bin/make -f
%:
dh $@ --with python2,python3
override_dh_auto_clean:
dh_auto_clean
rm -rf build
override_dh_auto_build:
dh_auto_build
set -ex; for python in $(shell py3versions -r); do \
$$python setup.py build --build-lib=$(CURDIR)/debian/tmp; \
done;
override_dh_auto_install:
dh_auto_install
set -ex; for python in $(shell py3versions -r); do \
$$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
done;
cp socks.py $(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/
version=2
http://code.google.com/p/socksipy-branch/downloads/list?can=1 .*/SocksiPy-branch-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment