[Python-apps-commits] r718 - in packages/pyicqt/trunk (20 files)

nijel at users.alioth.debian.org nijel at users.alioth.debian.org
Thu Feb 28 16:27:31 UTC 2008


    Date: Thursday, February 28, 2008 @ 16:27:30
  Author: nijel
Revision: 718

Import of my package from
Vcs-Svn: svn://svn.cihar.com/debian-pyicqt/trunk
Vcs-Browser: http://viewsvn.cihar.com/debian-pyicqt/trunk

Added:
  packages/pyicqt/trunk/debian/
  packages/pyicqt/trunk/debian/README.Debian
  packages/pyicqt/trunk/debian/changelog
  packages/pyicqt/trunk/debian/compat
  packages/pyicqt/trunk/debian/control
  packages/pyicqt/trunk/debian/copyright
  packages/pyicqt/trunk/debian/init.d
  packages/pyicqt/trunk/debian/logrotate
  packages/pyicqt/trunk/debian/patches/
  packages/pyicqt/trunk/debian/patches/00list
  packages/pyicqt/trunk/debian/patches/01_header-dont-use-env.dpatch
  packages/pyicqt/trunk/debian/patches/02_adapt-default-config-options.dpatch
  packages/pyicqt/trunk/debian/postinst
  packages/pyicqt/trunk/debian/postrm
  packages/pyicqt/trunk/debian/pycompat
  packages/pyicqt/trunk/debian/pyicqt.dirs
  packages/pyicqt/trunk/debian/pyicqt.docs
  packages/pyicqt/trunk/debian/pyicqt.install
  packages/pyicqt/trunk/debian/rules
  packages/pyicqt/trunk/debian/watch

Added: packages/pyicqt/trunk/debian/README.Debian
===================================================================
--- packages/pyicqt/trunk/debian/README.Debian	                        (rev 0)
+++ packages/pyicqt/trunk/debian/README.Debian	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,18 @@
+pyicqt for Debian
+-----------------
+
+Avatars
+-------
+
+By default, pyicqt does _NOT_ support avatars. You will need to install
+python-imaging, comment the following configuration entry: <!--
+<disableAvatars/> -->, then restart the transport.
+
+Webinterface
+------------
+
+By default, pyicqt does_NOT_ support the built-in webinterface function since
+you will have to install 'python-nevow' before, uncomment 
+<!-- <webport>12345</webport> --> in the config of pyicqt then restart it.
+
+ -- Michal ÄŒihaÅ™ <nijel at debian.org>  Wed, 12 Dec 2007 16:45:27 +0900

Added: packages/pyicqt/trunk/debian/changelog
===================================================================
--- packages/pyicqt/trunk/debian/changelog	                        (rev 0)
+++ packages/pyicqt/trunk/debian/changelog	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,34 @@
+pyicqt (0.8b-1) unstable; urgency=low
+
+  * New upstream version (Closes: #461633).
+    - This version includes charset patches (Closes: #453959).
+  * New maintainer.
+  * Acknowledge my own NMUs:
+    - Fix crash with current twisted (Closes: #436935, #441023).
+    - Fix missing dependency (Closes: #439778).
+  * Fixed watch file (Closes: #456487).
+
+ -- Michal ÄŒihaÅ™ <nijel at debian.org>  Thu, 28 Feb 2008 15:44:07 +0100
+
+pyicqt (0.8a-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix crash with current twisted (Closes: #436935, #441023).
+  * Fix missing dependency (Closes: #439778).
+  * I know there could be done more for this package, but this is just a NMU
+    to fix most annoying breakages.
+
+ -- Michal ÄŒihaÅ™ <nijel at debian.org>  Tue, 16 Oct 2007 22:43:52 +0900
+
+pyicqt (0.8a-1) unstable; urgency=low
+
+  * Initial release (Closes: #406659)
+  * Added postinst, postrm and logrotate scripts. Thanks to Sam Morris
+    <sam at robots.org.uk>.
+  * Added patches/01_header-dont-use-env.dpatch in order to fulfill
+    policy section 10.4.
+  * Added patches/02_adapt-default-config-options.dpatch since pid
+    handling will be done by the system itself + several extensions e.g.
+    avatar and webinterface support need to be disabled by default.
+
+ -- Patrick Ringl <patrick_ at freenet.de>  Mon, 25 Jun 2007 16:24:52 +0200

Added: packages/pyicqt/trunk/debian/compat
===================================================================
--- packages/pyicqt/trunk/debian/compat	                        (rev 0)
+++ packages/pyicqt/trunk/debian/compat	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1 @@
+5

Added: packages/pyicqt/trunk/debian/control
===================================================================
--- packages/pyicqt/trunk/debian/control	                        (rev 0)
+++ packages/pyicqt/trunk/debian/control	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,29 @@
+Source: pyicqt
+Section: net
+Priority: extra
+Maintainer: Michal ÄŒihaÅ™ <nijel at debian.org>
+Build-Depends: debhelper (>= 5.0.37.2), dpatch
+Build-Depends-Indep: python-dev, python-central (>= 0.5)
+XS-Python-Version: current
+Standards-Version: 3.7.3
+Vcs-Svn: svn://svn.cihar.com/debian-pyicqt/trunk
+Vcs-Browser: http://viewsvn.cihar.com/debian-pyicqt/trunk
+Homepage: http://code.google.com/p/pyicqt/
+
+Package: pyicqt
+Architecture: all
+Depends: ${python:Depends}, 
+    ${misc:Depends},
+    python-twisted (>=2.0.0), 
+    python-twisted-web (>=0.5.0), 
+    python-twisted-words (>= 0.1.0), 
+    python-crypto, 
+    python-openssl, 
+    adduser
+Suggests: ejabber | jabberd | jabberd2
+Recommends: python-nevow (>= 0.4.1), python-mysqldb (>= 1.0.0), python-imaging
+XB-Python-Version: ${python:Versions}
+Description: ICQ transport for Jabber
+ PyICQt provides a gateway which allows Jabber users to communicate with their
+ contacts on the ICQ Messenger network. It can connect to any Jabber server
+ that supports the Connect component mechanism.

Added: packages/pyicqt/trunk/debian/copyright
===================================================================
--- packages/pyicqt/trunk/debian/copyright	                        (rev 0)
+++ packages/pyicqt/trunk/debian/copyright	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,274 @@
+This package was debianized by Michal ÄŒihaÅ™ <nijel at debian.org> on
+Wed, 12 Dec 2007 16:45:27 +0900.
+
+It was downloaded from http://code.google.com/p/pyicqt/
+
+Upstream Authors: Daniel Henninger <jadestorm at nc.rr.com>,
+                    James Bunton <james at delx.cjb.net>,
+                    Paul Clegg,
+                    Jonas Adahl,
+                    Magnus Henoch,
+                    Serge Trylis,
+                    Chris Carlin,
+                    Daniel Chandran,
+                    Martin von Loewis,
+                    Maarten Fonville,
+                    Christopher Zorn,
+                    Scott Dial,
+                    Paul Swartz <z3p at twistedmatrix.com>    
+ 
+Copyright:
+
+pyaimt is copyright (c) 2004-2007 Daniel Henninger
+
+	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.
+
+	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.
+
+	You should have received a copy of the GNU General Public License along
+	with this program; if not, write to the Free Software Foundation, Inc.,
+	51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+
+On Debian systems, the complete text of the GNU General Public
+License Version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
+
+
+The files src/twistfix/version.py and src/twistfix/__init__.py is Copyright (C) 2004-2006 James Bunton <james at delx.cjb.net>
+
+        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.
+
+        You should have received a copy of the GNU General Public License along
+        with this program; if not, write to the Free Software Foundation, Inc.,
+        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+
+On Debian systems, the complete text of the GNU General Public
+License Version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
+
+ 
+The files src/sasl.py and src/web/xmppcred.py are Copyright (C) 2005-2007 Christopher Zorn <tofu at thetofu.com> and OGG, LLC, http://onlinegamegroup.com
+
+	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.
+
+
+The files in src/twistfix/words/xish and src/twistfix/words/protocols/jabber/ are Copyright (C) 2001 Matthew W. Lefkowitz (Twisted, the Framework of Your Internet)
+
+	This library is free software; you can redistribute it and/or
+	modify it under the terms of version 2.1 of the GNU Lesser General Public
+	License as published by the Free Software Foundation
+
+	This library 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
+	Lesser General Public License for more details.
+
+	You should have received a copy of the GNU Lesser General Public
+	License along with this library; if not, write to the Free Software
+	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+On Debian systems, the complete text of the GNU Lesser General Public
+License Version 2.1, can be found in /usr/share/common-licenses/LGPL-2.1.
+
+The file src/tlib/oscar.py is Copyright (C) 2001-2005 Twisted Matrix Laboratories
+
+	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.
+
+
+The file src/tlib/ifcompat.py is Copyright (C) 2005 Divmod, Inc.
+
+	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.
+
+
+The file src/bool.py is Copyright (C) 2002 Guido van Rossum <guido at python.org>
+
+	A. HISTORY OF THE SOFTWARE
+	==========================
+	
+	Python was created in the early 1990s by Guido van Rossum at Stichting
+	Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
+	as a successor of a language called ABC.  Guido remains Python's
+	principal author, although it includes many contributions from others.	
+
+	In 1995, Guido continued his work on Python at the Corporation for
+	National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
+	in Reston, Virginia where he released several versions of the
+	software.
+	
+	In May 2000, Guido and the Python core development team moved to
+	BeOpen.com to form the BeOpen PythonLabs team.  In October of the same
+	year, the PythonLabs team moved to Digital Creations (now Zope
+	Corporation, see http://www.zope.com).  In 2001, the Python Software
+	Foundation (PSF, see http://www.python.org/psf/) was formed, a
+	non-profit organization created specifically to own Python-related
+	Intellectual Property.  Zope Corporation is a sponsoring member of
+	the PSF.
+	
+	All Python releases are Open Source (see http://www.opensource.org for
+	the Open Source Definition).  Historically, most, but not all, Python
+	releases have also been GPL-compatible; the table below summarizes
+	the various releases.
+	
+	    Release         Derived     Year        Owner       GPL-
+			    from                                compatible? (1)
+	
+	    0.9.0 thru 1.2              1991-1995   CWI         yes
+	    1.3 thru 1.5.2  1.2         1995-1999   CNRI        yes
+	    1.6             1.5.2       2000        CNRI        no
+	    2.0             1.6         2000        BeOpen.com  no
+	    1.6.1           1.6         2001        CNRI        yes (2)
+	    2.1             2.0+1.6.1   2001        PSF         no
+	    2.0.1           2.0+1.6.1   2001        PSF         yes
+	    2.1.1           2.1+2.0.1   2001        PSF         yes
+	    2.2             2.1.1       2001        PSF         yes
+	    2.1.2           2.1.1       2002        PSF         yes
+	    2.1.3           2.1.2       2002        PSF         yes
+	    2.2.1           2.2         2002        PSF         yes
+	    2.2.2           2.2.1       2002        PSF         yes
+	    2.2.3           2.2.2       2003        PSF         yes
+	    2.3             2.2.2       2002-2003   PSF         yes
+	    2.3.1           2.3         2002-2003   PSF         yes
+	    2.3.2           2.3.1       2002-2003   PSF         yes
+	    2.3.3           2.3.2       2002-2003   PSF         yes
+	    2.3.4           2.3.3       2004        PSF         yes
+	    2.3.5           2.3.4       2005        PSF         yes
+	    2.4             2.3         2004        PSF         yes
+	    2.4.1           2.4         2005        PSF         yes
+	    2.4.2           2.4.1       2005        PSF         yes
+	
+	Footnotes:
+	
+	(1) GPL-compatible doesn't mean that we're distributing Python under
+	    the GPL.  All Python licenses, unlike the GPL, let you distribute
+	    a modified version without making your changes open source.  The
+	    GPL-compatible licenses make it possible to combine Python with
+	    other software that is released under the GPL; the others don't.
+	
+	(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
+	    because its license has a choice of law clause.  According to
+	    CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
+	    is "not incompatible" with the GPL.
+	
+	Thanks to the many outside volunteers who have worked under Guido's
+	direction to make these releases possible.
+	
+	
+	B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
+	===============================================================
+	
+	PSF LICENSE AGREEMENT FOR PYTHON 2.4
+	------------------------------------
+	
+	1. This LICENSE AGREEMENT is between the Python Software Foundation
+	("PSF"), and the Individual or Organization ("Licensee") accessing and
+	otherwise using Python 2.4 software in source or binary form and its
+	associated documentation.
+	
+	2. Subject to the terms and conditions of this License Agreement, PSF
+	hereby grants Licensee a nonexclusive, royalty-free, world-wide
+	license to reproduce, analyze, test, perform and/or display publicly,
+	prepare derivative works, distribute, and otherwise use Python 2.4
+	alone or in any derivative version, provided, however, that PSF's
+	License Agreement and PSF's notice of copyright, i.e., "Copyright (c)
+	2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved"
+	are retained in Python 2.4 alone or in any derivative version prepared
+	by Licensee.
+	
+	3. In the event Licensee prepares a derivative work that is based on
+	or incorporates Python 2.4 or any part thereof, and wants to make
+	the derivative work available to others as provided herein, then
+	Licensee hereby agrees to include in any such work a brief summary of
+	the changes made to Python 2.4.
+	
+	4. PSF is making Python 2.4 available to Licensee on an "AS IS"
+	basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+	IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+	DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+	FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.4 WILL NOT
+	INFRINGE ANY THIRD PARTY RIGHTS.
+	
+	5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+	2.4 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+	A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.4,
+	OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+	
+	6. This License Agreement will automatically terminate upon a material
+	breach of its terms and conditions.
+	
+	7. Nothing in this License Agreement shall be deemed to create any
+	relationship of agency, partnership, or joint venture between PSF and
+	Licensee.  This License Agreement does not grant permission to use PSF
+	trademarks or trade name in a trademark sense to endorse or promote
+	products or services of Licensee, or any third party.
+	
+	8. By copying, installing or otherwise using Python 2.4, Licensee
+	agrees to be bound by the terms and conditions of this License
+	Agreement.
+
+
+The Debian packaging is (C) 2007, Michal ÄŒihaÅ™ <nijel at debian.org> (based
+on work of Patrick Ringl <patrick_ at freenet.de>) and is licensed under
+the GPL, see `/usr/share/common-licenses/GPL'.

Added: packages/pyicqt/trunk/debian/init.d
===================================================================
--- packages/pyicqt/trunk/debian/init.d	                        (rev 0)
+++ packages/pyicqt/trunk/debian/init.d	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,67 @@
+#! /bin/bash
+### BEGIN INIT INFO
+# Provides:          PYICQT
+# Required-Start:    $syslog
+# Required-Stop:     $syslog
+# Should-Start:      $local_fs
+# Should-Stop:       $local_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: starts ICQ transport for Jabber
+# Description:       starts PyICQt which provides a gateway that allows Jabber users to communicate with their
+#                    contacts on the ICQ Messenger network. It can connect to any Jabber server
+#                    that supports the Connect component mechanism.  
+### END INIT INFO
+set -e
+
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+NAME=pyicqt
+DESC="ICQ transport for Jabber"
+
+PIDDIR=/var/run/pyicqt
+PIDFILE=$PIDDIR/$NAME.pid
+USER=pyicqt
+GROUP=pyicqt
+
+SSD_OPTS="--pidfile=$PIDFILE --name=python --user=$USER"
+
+DAEMON=/usr/bin/python
+OPTIONS="/usr/share/pyicqt/PyICQt.py --config=/etc/pyicqt.conf.xml --background -o pid=$PIDFILE -o spooldir=/var/lib/pyicqt -d --log=/var/log/pyicqt/pyicqt.log"
+
+test -f $DAEMON || exit 0
+
+if test ! -e $PIDDIR; then
+	mkdir $PIDDIR
+	chown $USER:$GROUP $PIDDIR
+fi
+
+case "$1" in
+start)
+	echo -n "Starting $DESC: "
+	(start-stop-daemon --start $SSD_OPTS --startas "$DAEMON" --chuid "$USER" -- $OPTIONS)
+	if test "$?" = 0; then echo "$NAME."; fi
+	;;
+stop)
+	echo -n "Stopping $DESC: "
+	(start-stop-daemon --stop $SSD_OPTS --retry 10)
+	if test "$?" = 0; then echo "$NAME."; fi
+	;;
+reload|force-reload)
+	echo -n "Reloading $DESC configuration..."
+	(start-stop-daemon --stop $SSD_OPTS --signal HUP)
+	if test "$?" = 0; then echo 'done.'; fi
+	;;
+restart)
+	$0 stop
+	$0 start
+	;;
+*)
+	echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
+
+# vim: filetype=sh

Added: packages/pyicqt/trunk/debian/logrotate
===================================================================
--- packages/pyicqt/trunk/debian/logrotate	                        (rev 0)
+++ packages/pyicqt/trunk/debian/logrotate	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,12 @@
+/var/log/pyicqt/pyicqt.log {
+	daily
+	missingok
+	rotate 7
+	compress
+	delaycompress
+	notifempty
+	create 640 pyicqt adm
+	postrotate
+		invoke-rc.d pyicqt reload > /dev/null
+	endscript
+}

Added: packages/pyicqt/trunk/debian/patches/00list
===================================================================
--- packages/pyicqt/trunk/debian/patches/00list	                        (rev 0)
+++ packages/pyicqt/trunk/debian/patches/00list	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,2 @@
+01_header-dont-use-env
+02_adapt-default-config-options

Added: packages/pyicqt/trunk/debian/patches/01_header-dont-use-env.dpatch
===================================================================
--- packages/pyicqt/trunk/debian/patches/01_header-dont-use-env.dpatch	                        (rev 0)
+++ packages/pyicqt/trunk/debian/patches/01_header-dont-use-env.dpatch	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,15 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_header-dont-use-env.patch.dpatch by  <patrick_ at freenet.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+diff -Nur pyicq-t-0.8a/PyICQt.py pyicq-t-0.8a.new/PyICQt.py
+--- pyicq-t-0.8a/PyICQt.py	2007-06-04 03:10:36.000000000 +0200
++++ pyicq-t-0.8a.new/PyICQt.py	2007-06-08 23:33:59.000000000 +0200
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env python
+-
+ # Make 'cwd'/src in the PYTHONPATH
+ import sys, os, os.path
+ PATH = os.path.abspath(os.path.dirname(sys.argv[0]))


Property changes on: packages/pyicqt/trunk/debian/patches/01_header-dont-use-env.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pyicqt/trunk/debian/patches/02_adapt-default-config-options.dpatch
===================================================================
--- packages/pyicqt/trunk/debian/patches/02_adapt-default-config-options.dpatch	                        (rev 0)
+++ packages/pyicqt/trunk/debian/patches/02_adapt-default-config-options.dpatch	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,33 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_adapt-default-config-options.patch.dpatch by  <patrick_ at freenet.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+diff -Nur pyicq-t-0.8a/config_example.xml pyicq-t-0.8a.new/config_example.xml
+--- pyicq-t-0.8a/config_example.xml	2007-06-04 03:10:36.000000000 +0200
++++ pyicq-t-0.8a.new/config_example.xml	2007-06-08 22:49:12.000000000 +0200
+@@ -5,14 +5,6 @@
+ 	<!-- The component JID of the transport. Unless you're doing clustering, leave this alone -->
+ 	<!-- <compjid>icq1</compjid> -->
+ 
+-	<!-- The location of the spool directory.. if relative, relative to -->
+-	<!-- this directory.  Do not include the jid of the transport. -->
+-	<spooldir>.</spooldir>
+-
+-	<!-- The location of the PID file.. if relative, relative to this dir. -->
+-	<!-- Comment out if you do not want a pid file -->
+-	<pid>PyICQt.pid</pid>
+-
+ 	<!-- The IP address of the main Jabberd server -->
+ 	<mainServer>127.0.0.1</mainServer>
+ 
+@@ -139,7 +131,7 @@
+ 
+ 	<!-- Disable all avatar functionality. Might be necessary if you -->
+ 	<!-- do not have PIL installed. -->
+-	<!-- <disableAvatars/> -->
++	<disableAvatars/>
+ 
+ 	<!-- Enable web presence indicator.  This can increase ICQ spam. -->
+ 	<!-- <enableWebPresence/> -->


Property changes on: packages/pyicqt/trunk/debian/patches/02_adapt-default-config-options.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pyicqt/trunk/debian/postinst
===================================================================
--- packages/pyicqt/trunk/debian/postinst	                        (rev 0)
+++ packages/pyicqt/trunk/debian/postinst	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+configure)
+	if ! getent passwd pyicqt >/dev/null; then
+		adduser --system --disabled-login \
+			--no-create-home --home /var/lib/pyicqt \
+			--group \
+			pyicqt
+	fi
+	if ! dpkg-statoverride --list /var/lib/pyicqt >/dev/null; then
+		chown -R pyicqt:pyicqt    /var/lib/pyicqt
+	fi
+	if ! dpkg-statoverride --list /var/run/pyicqt >/dev/null; then
+		chown pyicqt:pyicqt       /var/run/pyicqt
+	fi
+	if test -n "$2" && dpkg --compare-versions "$2" le 0.11.1-4; then
+		if test -f /var/log/jabber/pyicqt.log*; then
+			mv /var/log/jabber/pyicqt.log* /var/log/pyicqt
+		fi
+	fi
+	if ! dpkg-statoverride --list /var/log/pyicqt >/dev/null; then
+		chown -R pyicqt:adm       /var/log/pyicqt
+	fi
+	;;
+abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+*)
+	echo "postinst called with unknown argument \`$1'" >&2
+	exit 1
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: packages/pyicqt/trunk/debian/postrm
===================================================================
--- packages/pyicqt/trunk/debian/postrm	                        (rev 0)
+++ packages/pyicqt/trunk/debian/postrm	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+purge)
+	rm -rf /var/lib/pyicqt
+	rm -rf /var/log/pyicqt
+	rm -rf /var/run/pyicqt
+	;;
+remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+	;;
+*)
+	echo "postrm called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: packages/pyicqt/trunk/debian/pycompat
===================================================================
--- packages/pyicqt/trunk/debian/pycompat	                        (rev 0)
+++ packages/pyicqt/trunk/debian/pycompat	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1 @@
+2

Added: packages/pyicqt/trunk/debian/pyicqt.dirs
===================================================================
--- packages/pyicqt/trunk/debian/pyicqt.dirs	                        (rev 0)
+++ packages/pyicqt/trunk/debian/pyicqt.dirs	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,3 @@
+var/lib/pyicqt
+var/log/pyicqt
+var/run/pyicqt

Added: packages/pyicqt/trunk/debian/pyicqt.docs
===================================================================
--- packages/pyicqt/trunk/debian/pyicqt.docs	                        (rev 0)
+++ packages/pyicqt/trunk/debian/pyicqt.docs	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,3 @@
+AUTHORS
+README
+NEWS

Added: packages/pyicqt/trunk/debian/pyicqt.install
===================================================================
--- packages/pyicqt/trunk/debian/pyicqt.install	                        (rev 0)
+++ packages/pyicqt/trunk/debian/pyicqt.install	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,4 @@
+src                usr/share/pyicqt
+data               usr/share/pyicqt
+PyICQt.py          usr/share/pyicqt
+config_example.xml etc

Added: packages/pyicqt/trunk/debian/rules
===================================================================
--- packages/pyicqt/trunk/debian/rules	                        (rev 0)
+++ packages/pyicqt/trunk/debian/rules	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,47 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+build: build-stamp
+
+build-stamp: patch-stamp
+	dh_testdir
+	cp config_example.xml pyicqt.conf.xml
+	chmod -x PyICQt.py
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp `find . -name '*.pyc'`
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	dh_install
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installinit
+	dh_installlogrotate
+	dh_compress
+	dh_fixperms
+	dh_pycentral
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch: build install
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install


Property changes on: packages/pyicqt/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pyicqt/trunk/debian/watch
===================================================================
--- packages/pyicqt/trunk/debian/watch	                        (rev 0)
+++ packages/pyicqt/trunk/debian/watch	2008-02-28 16:27:30 UTC (rev 718)
@@ -0,0 +1,2 @@
+version=3
+http://code.google.com/p/pyicqt/downloads/list http://pyicqt.googlecode.com/files/pyicq-t-(.*).tar.gz




More information about the Python-apps-commits mailing list