--- pysilc-0.5.orig/debian/control +++ pysilc-0.5/debian/control @@ -0,0 +1,26 @@ +Source: pysilc +Section: python +Priority: optional +Maintainer: Debian Python Modules Team +Uploaders: Stefano Rivera +Build-Depends: quilt (>= 0.46-7), debhelper (>= 7.0.50~), python-support (>= 0.6), libsilc-dev, + python-all-dev, python-all-dbg +XS-Python-Version: >= 2.5 +Standards-Version: 3.8.4 +Homepage: http://www.liquidx.net/pysilc/ +Vcs-Svn: svn://svn.debian.org/python-modules/packages/pysilc/trunk/ +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pysilc/trunk/ + +Package: python-silc +Architecture: any +Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} +Description: Python bindings for SILC + PySilc is a near-complete set of Python bindings for creating SILC clients + using the silc-toolkit. It allows developers to write simple bots and clients + for connecting to SILC servers. + . + SILC (Secure Internet Live Conferencing) is a network protocol designed to + provide end-to-end security for conferencing services. SILC has a command set + and a user interface similar to IRC, but the network protocol is completely + different as it supports public key strong cryptography and a different + network model. --- pysilc-0.5.orig/debian/changelog +++ pysilc-0.5/debian/changelog @@ -0,0 +1,11 @@ +pysilc (0.5-1~ppa+8~intrepid) intrepid; urgency=low + + * Build for intrepid + + -- Stefano Rivera Sun, 31 Jan 2010 01:19:37 +0200 + +pysilc (0.5-1) unstable; urgency=low + + * Initial release (Closes: #564605) + + -- Stefano Rivera Thu, 28 Jan 2010 13:02:23 +0200 --- pysilc-0.5.orig/debian/docs +++ pysilc-0.5/debian/docs @@ -0,0 +1 @@ +README --- pysilc-0.5.orig/debian/compat +++ pysilc-0.5/debian/compat @@ -0,0 +1 @@ +7 --- pysilc-0.5.orig/debian/python-silc.examples +++ pysilc-0.5/debian/python-silc.examples @@ -0,0 +1 @@ +examples/* --- pysilc-0.5.orig/debian/watch +++ pysilc-0.5/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts=downloadurlmangle=s/prdownload/download/ \ + http://developer.berlios.de/project/showfiles.php?group_id=6260 \ + http://prdownload.berlios.de/python-silc/pysilc-(.*).tar.bz2 --- pysilc-0.5.orig/debian/copyright +++ pysilc-0.5/debian/copyright @@ -0,0 +1,51 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135 +Name: pysilc +Maintainer: Alastair Tse +Source: http://www.liquidx.net/pysilc/ + +Files: * +Copyright: + 2006, Alastair Tse + 2007, Martynas Venckus +License: BSD + This program is free software; you can redistributed it and/or modify + it under the terms of the BSD License. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 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. + * Neither the name of the pysilc nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 THE COPYRIGHT OWNER OR 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, WHETHER IN + +Files: debian/* +Copyright: + 2009, Michael Gorven + 2010, Stefano Rivera +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + . + On Debian systems, the complete text of the GNU General Public License + version 2 can be found in the /usr/share/common-licenses/GPL-2 file. --- pysilc-0.5.orig/debian/rules +++ pysilc-0.5/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh --with quilt $@ + +override_dh_auto_install: + dh_auto_install --destdir=debian/tmp --- pysilc-0.5.orig/debian/source/format +++ pysilc-0.5/debian/source/format @@ -0,0 +1 @@ +1.0 --- pysilc-0.5.orig/debian/patches/failure-method.diff +++ pysilc-0.5/debian/patches/failure-method.diff @@ -0,0 +1,44 @@ +Description: SilcClient calls failure on a connection failure, yet the examples + don't show this, leading to the rather confusing "AttributeError" when you run + the example script. +Author: Stefano Rivera +Forwarded: http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2914&group_id=6260 +Last-Update: 2010-01-24 + +--- a/README ++++ b/README +@@ -84,6 +84,9 @@ + def disconnected(self): + print "* Disconnected" + ++ def failure(self): ++ print "* Connection failure" ++ + # catch responses to commands + + def command_reply_join(self, channel, name, topic, hmac, x, y, +--- a/examples/demo.py ++++ b/examples/demo.py +@@ -42,6 +42,10 @@ + print 'SILC: Disconnected from server.' + self.isconnected = False + ++ def failure(self): ++ print "SILC: Connection failure" ++ self.isconnected = False ++ + def command(self, success, code, command, status): + print 'SILC: Command:', success, code, command, status + +--- a/examples/echo.py ++++ b/examples/echo.py +@@ -22,6 +22,9 @@ + def disconnected(self, msg): + print "* Disconnected: %s" % msg + ++ def failure(self): ++ print "* Connection Failure" ++ + # catch responses to commands + + def command_reply_join(self, channel, name, topic, hmac, x, y, --- pysilc-0.5.orig/debian/patches/fix-build.diff +++ pysilc-0.5/debian/patches/fix-build.diff @@ -0,0 +1,17 @@ +Description: libiconv isn't available or necessary on Debian. +Author: Michael Gorven +Last-Update: 2010-01-16 + +=== modified file 'pysilc-0.5/setup.py' +--- pysilc-0.5.orig/setup.py 2009-02-12 15:35:41 +0000 ++++ pysilc-0.5/setup.py 2009-02-12 16:16:26 +0000 +@@ -15,7 +15,7 @@ + '/usr/local/include/silc-toolkit', + '/usr/include/silc', + '/usr/local/include/silc'], +- libraries = ['iconv', 'silc', 'silcclient'], ++ libraries = ['silc', 'silcclient'], + depends = ['src/pysilc_callbacks.c', + 'src/pysilc_channel.c', + 'src/pysilc_user.c', + --- pysilc-0.5.orig/debian/patches/fix-segfaults.diff +++ pysilc-0.5/debian/patches/fix-segfaults.diff @@ -0,0 +1,30 @@ +Description: Fixes segfaults. +Origin: http://developer.berlios.de/patch/?func=detailpatch&patch_id=2571&group_id=6260 +Forwarded: http://developer.berlios.de/patch/?func=detailpatch&patch_id=2571&group_id=6260 +Last-Update: 2008-09-29 + +=== modified file 'pysilc-0.5/src/pysilc_callbacks.c' +--- pysilc-0.5.orig/src/pysilc_callbacks.c 2009-02-12 15:35:41 +0000 ++++ pysilc-0.5/src/pysilc_callbacks.c 2009-02-14 22:42:12 +0000 +@@ -825,6 +825,7 @@ + if (tmpstr) + context->topic = strdup(tmpstr); + tmpstr = va_arg(va, char *); ++ if (tmpstr) + context->cipher = strdup(tmpstr); + tmpstr = va_arg(va, char *); + if (tmpstr) + +=== modified file 'pysilc-0.5/src/pysilc_channel.c' +--- pysilc-0.5.orig/src/pysilc_channel.c 2009-02-12 15:35:41 +0000 ++++ pysilc-0.5/src/pysilc_channel.c 2009-02-14 22:42:12 +0000 +@@ -16,6 +16,8 @@ + + static PyObject *PySilcChannel_New(SilcChannelEntry channel) + { ++ if (!channel) ++ return NULL; + PySilcChannel *pychannel = (PySilcChannel *)PyObject_New(PySilcChannel, &PySilcChannel_Type); + if (!pychannel) + return NULL; + --- pysilc-0.5.orig/debian/patches/client_id.diff +++ pysilc-0.5/debian/patches/client_id.diff @@ -0,0 +1,19 @@ +Description: Corrects the number of bytes in SilcUser.user_id. +Author: Michael Gorven +Forwarded: http://developer.berlios.de/patch/?func=detailpatch&patch_id=2694&group_id=6260 +Last-Update: 2009-02-12 + +=== modified file 'pysilc-0.5/src/pysilc_user.c' +--- a/src/pysilc_user.c ++++ b/src/pysilc_user.c +@@ -149,9 +149,7 @@ + if (PyObject_Cmp(temp, name, &result) == -1) + goto cleanup; + if (result == 0) { +- char buf[224]; +- memcpy(&buf, &(pyuser->silcobj->id), 224); +- value = PyString_FromStringAndSize(buf, 224); ++ value = PyString_FromStringAndSize(&(pyuser->silcobj->id), sizeof(SilcClientID)); + goto cleanup; + } + --- pysilc-0.5.orig/debian/patches/series +++ pysilc-0.5/debian/patches/series @@ -0,0 +1,4 @@ +failure-method.diff +fix-build.diff +client_id.diff +fix-segfaults.diff