Added pyicq-t 0.8 closing bug #88283.
authorMaurice van der Pot <griffon26@gentoo.org>
Sat, 28 Apr 2007 23:34:00 +0000 (23:34 +0000)
committerMaurice van der Pot <griffon26@gentoo.org>
Sat, 28 Apr 2007 23:34:00 +0000 (23:34 +0000)
Package-Manager: portage-2.1.2.4

net-im/pyicq-t/ChangeLog [new file with mode: 0644]
net-im/pyicq-t/Manifest [new file with mode: 0644]
net-im/pyicq-t/files/digest-pyicq-t-0.8 [new file with mode: 0644]
net-im/pyicq-t/files/pyicq-t-0.8-initd [new file with mode: 0644]
net-im/pyicq-t/files/pyicq-t-0.8-twisted-2.5.patch [new file with mode: 0644]
net-im/pyicq-t/metadata.xml [new file with mode: 0644]
net-im/pyicq-t/pyicq-t-0.8.ebuild [new file with mode: 0644]

diff --git a/net-im/pyicq-t/ChangeLog b/net-im/pyicq-t/ChangeLog
new file mode 100644 (file)
index 0000000..f0aff71
--- /dev/null
@@ -0,0 +1,12 @@
+# ChangeLog for net-im/pyicq-t
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/ChangeLog,v 1.1 2007/04/28 23:34:00 griffon26 Exp $
+
+*pyicq-t-0.8 (28 Apr 2007)
+
+  28 Apr 2007; Maurice van der Pot <griffon26@gentoo.org>
+  +files/pyicq-t-0.8-initd, +files/pyicq-t-0.8-twisted-2.5.patch,
+  +metadata.xml, +pyicq-t-0.8.ebuild:
+  Added pyicq-t 0.8 ebuild from sunrise overlay (closes bug #88283). 
+  Thanks to all involved for creating and maintaining the ebuild.
+
diff --git a/net-im/pyicq-t/Manifest b/net-im/pyicq-t/Manifest
new file mode 100644 (file)
index 0000000..e278ecb
--- /dev/null
@@ -0,0 +1,24 @@
+AUX pyicq-t-0.8-initd 708 RMD160 ff263f8e8b3f274311420272d336a2d435e5b16e SHA1 b27ae59bce92b027a66322d9056a421e859e2d21 SHA256 fe443132e15e518fd2d4b19304b9841bed54cb2a658ba89ffb4c7377ecc14bd1
+MD5 8a110ceab5e387709f5d761d8422ecb6 files/pyicq-t-0.8-initd 708
+RMD160 ff263f8e8b3f274311420272d336a2d435e5b16e files/pyicq-t-0.8-initd 708
+SHA256 fe443132e15e518fd2d4b19304b9841bed54cb2a658ba89ffb4c7377ecc14bd1 files/pyicq-t-0.8-initd 708
+AUX pyicq-t-0.8-twisted-2.5.patch 838 RMD160 594f7b55272e8d30fb7a94f65bcaf19bbf3a8ccb SHA1 90cbcde60e74e671ab3b020cef5b4c917f17d937 SHA256 3f557aa1a2249b23e1c4b282d89b01903296208987e13019b681abe7561ccf44
+MD5 d7472d0dbab5c4e6bf36bc5c02383fc8 files/pyicq-t-0.8-twisted-2.5.patch 838
+RMD160 594f7b55272e8d30fb7a94f65bcaf19bbf3a8ccb files/pyicq-t-0.8-twisted-2.5.patch 838
+SHA256 3f557aa1a2249b23e1c4b282d89b01903296208987e13019b681abe7561ccf44 files/pyicq-t-0.8-twisted-2.5.patch 838
+DIST pyicq-t-0.8.tar.gz 163250 RMD160 f21a3b1e0ccc088683acb1cc5fefdce20c9c15b5 SHA1 6b2310dd58e31738f7f580129c26fba974b85314 SHA256 ef914750f07ba74437230cd626a6248ff6a5d7b3fe777b2df3a8be8741c3f811
+EBUILD pyicq-t-0.8.ebuild 1741 RMD160 793245dfbbafd7f2b59d4189b945bb5242a0b319 SHA1 21b410d0a5ef6a404073aea9d839496033365765 SHA256 3db368773f912627ce437e3ed288053f25aacdd67e1d36b94c3a3135ab790517
+MD5 a8388f177c854fc2521a9f0ba3e58cec pyicq-t-0.8.ebuild 1741
+RMD160 793245dfbbafd7f2b59d4189b945bb5242a0b319 pyicq-t-0.8.ebuild 1741
+SHA256 3db368773f912627ce437e3ed288053f25aacdd67e1d36b94c3a3135ab790517 pyicq-t-0.8.ebuild 1741
+MISC ChangeLog 442 RMD160 c24c13d8d6836fcc9a181f2bbcc1a02517508d16 SHA1 9a00d16d5cd27e3164d83460fdf5ea9223f71549 SHA256 7ea4956b15cbeee4508588c9c4307bb8e91946b991cee12888af87f83c248181
+MD5 318808b12380ec238c2735fcb3aaf455 ChangeLog 442
+RMD160 c24c13d8d6836fcc9a181f2bbcc1a02517508d16 ChangeLog 442
+SHA256 7ea4956b15cbeee4508588c9c4307bb8e91946b991cee12888af87f83c248181 ChangeLog 442
+MISC metadata.xml 298 RMD160 e03dc9b38514dc2fea68b202307c1ea5328d7d92 SHA1 2d099585d5b52c62826ad39d86078e15c68b4e40 SHA256 9ed70c45c492697db340b6bda07fcb1c3a3c1522f0dfe3c9b8512059e1d0d899
+MD5 369dc45684d8c89afb1e337f1a859d25 metadata.xml 298
+RMD160 e03dc9b38514dc2fea68b202307c1ea5328d7d92 metadata.xml 298
+SHA256 9ed70c45c492697db340b6bda07fcb1c3a3c1522f0dfe3c9b8512059e1d0d899 metadata.xml 298
+MD5 37e392575d9dbc41d18a4a2f7e14a9e4 files/digest-pyicq-t-0.8 235
+RMD160 cefa1e5cc5970c8513ba6a4ac00edffe8f5bd667 files/digest-pyicq-t-0.8 235
+SHA256 91bcd74096e32de2e2a18beab116dba2b0989fc9c3762d8c4762316a30583443 files/digest-pyicq-t-0.8 235
diff --git a/net-im/pyicq-t/files/digest-pyicq-t-0.8 b/net-im/pyicq-t/files/digest-pyicq-t-0.8
new file mode 100644 (file)
index 0000000..372563c
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 0929aa4b726d8718e1b8c8cb900fa114 pyicq-t-0.8.tar.gz 163250
+RMD160 f21a3b1e0ccc088683acb1cc5fefdce20c9c15b5 pyicq-t-0.8.tar.gz 163250
+SHA256 ef914750f07ba74437230cd626a6248ff6a5d7b3fe777b2df3a8be8741c3f811 pyicq-t-0.8.tar.gz 163250
diff --git a/net-im/pyicq-t/files/pyicq-t-0.8-initd b/net-im/pyicq-t/files/pyicq-t-0.8-initd
new file mode 100644 (file)
index 0000000..29d8cb4
--- /dev/null
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/files/pyicq-t-0.8-initd,v 1.1 2007/04/28 23:34:00 griffon26 Exp $
+
+depend() {
+       need net
+       use jabber-server
+}
+
+start() {
+       ebegin "Starting ICQ Jabber Transport"
+       start-stop-daemon --start --pidfile /var/run/jabber/pyicq-t.pid --chuid jabber:jabber \
+               --exec /usr/bin/python /usr/lib/python2.4/site-packages/pyicq-t/pyicq-t.py -- \
+               -b -c /etc/jabber/pyicq-t.xml -l /var/log/jabber/pyicq-t.log
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping ICQ Jabber Transport"
+       start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pyicq-t.pid
+       eend $?
+}
diff --git a/net-im/pyicq-t/files/pyicq-t-0.8-twisted-2.5.patch b/net-im/pyicq-t/files/pyicq-t-0.8-twisted-2.5.patch
new file mode 100644 (file)
index 0000000..f38b73d
--- /dev/null
@@ -0,0 +1,15 @@
+diff -ruN pyicq-t-0.8/src/main.py pyicq-t-0.8-fixed/src/main.py
+--- pyicq-t-0.8/src/main.py    2006-09-30 21:44:21.000000000 +0200
++++ pyicq-t-0.8-fixed/src/main.py      2007-04-28 14:37:15.000000000 +0200
+@@ -89,7 +89,10 @@
+       import signal
+       signal.signal(signal.SIGHUP, reloadConfig)
+       # Load scripts for PID and daemonizing
+-      from twisted.scripts import twistd
++      try:
++              from twisted.scripts import _twistd_unix as twistd
++      except:
++              from twisted.scripts import twistd
+ selectWarning = "Unable to install any good reactors (kqueue, cf, epoll, poll).\nWe fell back to using select. You may have scalability problems.\nThis reactor will not support more than 1024 connections +at a time.  You may silence this message by choosing 'select' or 'default' as your reactor in the transport config."
+ if config.reactor and len(config.reactor) > 0:
diff --git a/net-im/pyicq-t/metadata.xml b/net-im/pyicq-t/metadata.xml
new file mode 100644 (file)
index 0000000..569709b
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-im</herd>
+<maintainer>
+  <email>griffon26@gentoo.org</email>
+</maintainer>
+       <longdescription>Python based jabber transport for ICQ</longdescription>
+</pkgmetadata>
diff --git a/net-im/pyicq-t/pyicq-t-0.8.ebuild b/net-im/pyicq-t/pyicq-t-0.8.ebuild
new file mode 100644 (file)
index 0000000..1977044
--- /dev/null
@@ -0,0 +1,67 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/pyicq-t/pyicq-t-0.8.ebuild,v 1.1 2007/04/28 23:34:00 griffon26 Exp $
+
+NEED_PYTHON=2.3
+
+inherit eutils multilib python
+
+DESCRIPTION="Python based jabber transport for ICQ"
+HOMEPAGE="http://pyicq-t.blathersource.org/"
+SRC_URI="http://www.blathersource.org/download.php/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="webinterface"
+
+DEPEND="net-im/jabber-base"
+RDEPEND="${DEPEND}
+       >=dev-python/twisted-2.2.0
+       >=dev-python/twisted-words-0.1.0
+       >=dev-python/twisted-web-0.5.0
+       webinterface? ( >=dev-python/nevow-0.4.1 )
+       >=dev-python/imaging-1.1"
+
+src_unpack() {
+       unpack ${A} && cd "${S}" || die "unpack failed"
+
+       epatch "${FILESDIR}/${P}-twisted-2.5.patch"
+}
+
+src_install() {
+       local inspath
+
+       python_version
+       inspath=/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+       insinto ${inspath}
+       doins -r data src tools
+       newins PyICQt.py ${PN}.py
+
+       insinto /etc/jabber
+       newins config_example.xml ${PN}.xml
+       fperms 600 /etc/jabber/${PN}.xml
+       fowners jabber:jabber /etc/jabber/${PN}.xml
+       dosed \
+               "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \
+               /etc/jabber/${PN}.xml
+       dosed \
+               "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
+               /etc/jabber/${PN}.xml
+
+       newinitd "${FILESDIR}/${PN}-0.8-initd" ${PN}
+       dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN}
+}
+
+pkg_postinst() {
+       python_version
+       python_mod_optimize ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+
+       elog "A sample configuration file has been installed in /etc/jabber/${PN}.xml."
+       elog "Please edit it and the configuration of your Jabber server to match."
+}
+
+pkg_postrm() {
+       python_version
+       python_mod_cleanup ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+}