diff options
Diffstat (limited to 'net-im/pyicq-t')
-rw-r--r-- | net-im/pyicq-t/Manifest | 9 | ||||
-rw-r--r-- | net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 | 23 | ||||
-rw-r--r-- | net-im/pyicq-t/files/pyicq-t-0.8.1.5-pillow-imaging.patch | 36 | ||||
-rw-r--r-- | net-im/pyicq-t/files/pyicq-t-0.8.1.5-python26-warnings.diff | 118 | ||||
-rw-r--r-- | net-im/pyicq-t/files/pyicq-t.service | 10 | ||||
-rw-r--r-- | net-im/pyicq-t/metadata.xml | 13 | ||||
-rw-r--r-- | net-im/pyicq-t/pyicq-t-0.8.1.5-r6.ebuild | 63 |
7 files changed, 272 insertions, 0 deletions
diff --git a/net-im/pyicq-t/Manifest b/net-im/pyicq-t/Manifest new file mode 100644 index 000000000000..dd11a0334ae0 --- /dev/null +++ b/net-im/pyicq-t/Manifest @@ -0,0 +1,9 @@ +AUX pyicq-t-0.8-initd-r1 606 SHA256 1a4fdd4c028374e8aaa5e6747c3d6740a4f4061445ae1f170b3a559a157d67c6 SHA512 f8563a7ec081ecbef2f40f7c923ceb43b6abe0ff016df57540fedf3feeff1e06f19fa777324ae97937c46c85344db25ffa7097d259c0e2f4c6bad9b7eaf30971 WHIRLPOOL 7d21acf866e746d8df35d27aa09077055322ec8ce06c8bb94c4c19ce188cdcf04945e15d67fbadd4c7e272e5262a96090dd4d13fd5666035c8b624ae051ae8dc +AUX pyicq-t-0.8.1.5-pillow-imaging.patch 1236 SHA256 cab74a08da743737a7ee5956e74eb3e40a279bb83d74729d59689c03ccc5d645 SHA512 e7e454493286e02e525cdc6d8b63fbb102eca0f242f046ec30f7541ff1a9579b43bad2250d34a7049d06c9958e4d93304d5f873b84cf2af6fbcaef726a8a5d5b WHIRLPOOL 3378a5dbc1b7502caa65c6e026a37427f32ca8ddffe924aa831c9f51f321605fcee01053a23cdab63ec8840eac5b09d80a3ab88f99e6e1bae656f3c25ff228ac +AUX pyicq-t-0.8.1.5-python26-warnings.diff 3485 SHA256 6e5eff6faf6e87535401a4c697a4d23f35270ecfda1ac56ab73c491cc7baa34a SHA512 8b7cb353ff2c6259525909b62a6d552116339fe8489d747f7310fa9013011b6028c0f0dc165307ff5b9fe9da9517852c3e4158eb6f05a51f987e9cf2a969b949 WHIRLPOOL 387207927e4c0a68f0adeaf7cc3c8201aa0c21e4481e87ad776c7c9f2b45cfb0f7f190e2557f8c7a1f55960dc3831fca2e17109314605ca997da6d66e750f855 +AUX pyicq-t.service 223 SHA256 aef74fac046f4d9ba0beb84d9c8ac7cfcb69baadf7792707e9f7d53756aa826a SHA512 e1df68340f54bc6568308fefcc723323358c27b143cd3258f451ebf06e5f6ac0a7b66d7567543212e5924144164e0d9a2121fb96fa2721b234399a19127850c6 WHIRLPOOL 75ce17d110fa7084e323551eb4819f9407db11dae2a54e0d838447ddcedf7178189c27b46c859cda71a0b5e80dbae28bfb14bc5c9a32ca9ce1d8f538d3077c20 +DIST pyicqt-0.8.1.5.tar.gz 183865 SHA256 15ffa7b7d8f2d749492eec3b87bf64f8a429452282ca14e36ba5aee45b5322df SHA512 5b83adf86746c2af60bed2759c7d4e3a3839bea532e0882a6dc087aee5e0afa1320c6d2d2296a667ec45c5b36be879034f079fd30cef924e8db5f66a2f1d3fde WHIRLPOOL 91a51c81d32bc688d4ffb6f4623ae1efe7e5dc5d524b7fd2f519720dc81078d6547ea64a5311bcfcfae0ad77f8fe7ab933f5b63e3f2887fe4671c71b2a6848d9 +EBUILD pyicq-t-0.8.1.5-r6.ebuild 1732 SHA256 b69172ad71c3b5e0f9515f08ebec3cee97719ee99383114588daf5ad8cc1b2c2 SHA512 b25404c4d29d8542efa53ed1266be9d663fd191b43140de7b9fe326dd67a94994d399000582efc05e77a42f7f85c72c64e87df73d381280b9dfd00f551d0be08 WHIRLPOOL 5a4000d0bbb2930392565d99251f91b59d391b7fffb87be71df0d2be182c6f709492aacc93a73b3723cf9c8590749a2df189294acac6b17c99f3feede49ebc69 +MISC ChangeLog 3837 SHA256 e254c7719aa878cd2c53843c69dc8faf50d6d4bb93d315cc6e30759b27ee3d36 SHA512 b83ea5582b0349d5df426bc1d9356b34d1fc0b681783270f0bff59fe7f4d87f50b9f92dcb1f3e0d37767f760c1d9d8dc6e31597d583a79206513e50ee3b94a1a WHIRLPOOL e6c77a40e9cf0bf581d358e61c0226b72bf1ed9887f8ad09e38dfcbe9a6d6bacaf1945452317dd939b50dceb610fecd1ab8bf383ec57bb99618b635a27c1ec40 +MISC ChangeLog-2015 5702 SHA256 442b475d3220b3391cd2236287ee8ae9b46fb2ce42d260eb5f1b18ee8a50ae56 SHA512 1948e68d2d066710b31b9944bf330c54c000e4ef65e7c57a00376927024c04c7a9b62194e6891e532e39a0c5b731cd0448a219501505f9460dd96bae8ed38478 WHIRLPOOL 03d7889a07227e1c800ae0655fbf456d4c25b77f6345a3ff0c0164f01f281608d6115c31e0a7e6aaaddf059287d4e011bceaded6cd716351dc2bcbefb459d4bf +MISC metadata.xml 419 SHA256 39fc89c0c64124dd905f4bf7c0ad8abc999f257746c5bd664d0c73c9b7813829 SHA512 1f30a23054f9f867a94d7e899f5be0780b08cf070c9a2831a34f4fbafe03e19dc9fedb023d3825411104a7322e0d0c8b6928a4f30794511371dd9ec7ea2e339f WHIRLPOOL d584ad798ca77700f8952c9f0927f98b5fad3fa5277f4d182c10b750261614c6fdcdb3e7aa839f59c7250ace3c9dde47ca1fd882450a4f42a2d98116ae2262a4 diff --git a/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 b/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 new file mode 100644 index 000000000000..eda03d55077e --- /dev/null +++ b/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net + use jabber-server +} + +start() { + ebegin "Starting ICQ Jabber Transport" + checkpath -q -d -m 0755 -o jabber:jabber /var/run/jabber/ + start-stop-daemon --start --pidfile /var/run/jabber/pyicq-t.pid -u jabber -g jabber \ + --exec INSPATH/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.1.5-pillow-imaging.patch b/net-im/pyicq-t/files/pyicq-t-0.8.1.5-pillow-imaging.patch new file mode 100644 index 000000000000..62df75873c08 --- /dev/null +++ b/net-im/pyicq-t/files/pyicq-t-0.8.1.5-pillow-imaging.patch @@ -0,0 +1,36 @@ +diff -Naur pyicqt-0.8.1.5/src/contact.py pyicqt-0.8.1.5-1/src/contact.py +--- pyicqt-0.8.1.5/src/contact.py 2009-08-24 14:37:59.000000000 +0200 ++++ pyicqt-0.8.1.5-1/src/contact.py 2013-09-11 22:19:01.320467367 +0200 +@@ -13,7 +13,7 @@ + import globals + import base64 + if not config.disableAvatars: +- import Image ++ import PIL.Image as Image + import StringIO + + +diff -Naur pyicqt-0.8.1.5/src/imgmanip.py pyicqt-0.8.1.5-1/src/imgmanip.py +--- pyicqt-0.8.1.5/src/imgmanip.py 2009-08-24 14:37:59.000000000 +0200 ++++ pyicqt-0.8.1.5-1/src/imgmanip.py 2013-09-11 22:19:25.257168117 +0200 +@@ -5,7 +5,7 @@ + + if not config.disableAvatars: + try: +- import Image ++ import PIL.Image as Image + import StringIO + + def convertToPNG(imageData): +diff -Naur pyicqt-0.8.1.5/tools/infodump.py pyicqt-0.8.1.5-1/tools/infodump.py +--- pyicqt-0.8.1.5/tools/infodump.py 2009-08-24 14:37:59.000000000 +0200 ++++ pyicqt-0.8.1.5-1/tools/infodump.py 2013-09-11 22:18:34.084807860 +0200 +@@ -41,7 +41,7 @@ + print "Nevow Version: Unknown or Not Installed" + + try: +- from Image import VERSION ++ from PIL.Image import VERSION + print "Python Imaging Library (PIL) Version: " + VERSION + except: + print "Python Imaging Library (PIL) Version: Unknown or Not Installed" diff --git a/net-im/pyicq-t/files/pyicq-t-0.8.1.5-python26-warnings.diff b/net-im/pyicq-t/files/pyicq-t-0.8.1.5-python26-warnings.diff new file mode 100644 index 000000000000..fd8e9e5ab8f0 --- /dev/null +++ b/net-im/pyicq-t/files/pyicq-t-0.8.1.5-python26-warnings.diff @@ -0,0 +1,118 @@ +diff -Naur pyicqt-0.8.1.5/src/avatar.py p1//src/avatar.py +--- pyicqt-0.8.1.5/src/avatar.py 2010-06-07 12:16:36.000000000 +0200 ++++ p1//src/avatar.py 2010-06-07 12:16:16.000000000 +0200 +@@ -6,7 +6,7 @@ + from twisted.words.xish.domish import Element + from debug import LogEvent, INFO, WARN, ERROR + import lang +-import sha ++from hashlib import sha1 + import base64 + import os + import os.path +@@ -46,7 +46,7 @@ + class Avatar: + """ Represents an Avatar. Does not store the image in memory. """ + def __init__(self, imageData, avatarCache): +- self.__imageHash = sha.sha(imageData).hexdigest() ++ self.__imageHash = sha1(imageData).hexdigest() + self.__avatarCache = avatarCache + + def getImageHash(self): +diff -Naur pyicqt-0.8.1.5/src/contact.py p1//src/contact.py +--- pyicqt-0.8.1.5/src/contact.py 2010-06-07 12:16:43.000000000 +0200 ++++ p1//src/contact.py 2010-06-07 12:16:16.000000000 +0200 +@@ -8,7 +8,6 @@ + import config + from debug import LogEvent, INFO, WARN, ERROR + import lang +-import sha + import legacy + import globals + import base64 +diff -Naur pyicqt-0.8.1.5/src/legacy/buddies.py p1//src/legacy/buddies.py +--- pyicqt-0.8.1.5/src/legacy/buddies.py 2009-08-24 14:37:59.000000000 +0200 ++++ p1//src/legacy/buddies.py 2010-06-07 12:07:37.000000000 +0200 +@@ -12,7 +12,7 @@ + import os.path + import binascii + import os.path +-import md5 ++from hashlib import md5 + + X = os.path.sep + +@@ -188,7 +188,7 @@ + avatarData = avatar.AvatarCache().setAvatar(imgmanip.convertToPNG(iconData)) + c.updateAvatar(avatarData, push=True) + if not md5Hash: +- m = md5.new() ++ m = md5() + m.update(iconData) + md5Hash = m.digest() + if not numHash: +diff -Naur pyicqt-0.8.1.5/src/legacy/glue.py p1//src/legacy/glue.py +--- pyicqt-0.8.1.5/src/legacy/glue.py 2009-08-24 14:37:59.000000000 +0200 ++++ p1//src/legacy/glue.py 2010-06-07 12:07:37.000000000 +0200 +@@ -18,7 +18,7 @@ + import time + import binascii + import avatar +-import md5 ++from hashlib import md5 + import random + + from twisted.python import log +@@ -398,7 +398,7 @@ + try: + self.myavatar = imgmanip.convertToJPG(imageData) + self.myavatarlen = len(self.myavatar) +- m=md5.new() ++ m=md5() + m.update(self.myavatar) + self.myavatarsum = m.digest() + self.myavatarstamp = time.time() +diff -Naur pyicqt-0.8.1.5/src/legacy/icqt.py p1//src/legacy/icqt.py +--- pyicqt-0.8.1.5/src/legacy/icqt.py 2009-08-24 14:37:59.000000000 +0200 ++++ p1//src/legacy/icqt.py 2010-06-07 12:07:37.000000000 +0200 +@@ -14,7 +14,6 @@ + import time + import datetime + import binascii +-import md5 + import locale + import struct + +diff -Naur pyicqt-0.8.1.5/src/tlib/oscar.py p1//src/tlib/oscar.py +--- pyicqt-0.8.1.5/src/tlib/oscar.py 2009-08-24 14:37:59.000000000 +0200 ++++ p1//src/tlib/oscar.py 2010-06-07 12:07:37.000000000 +0200 +@@ -21,7 +21,7 @@ + from scheduler import Scheduler + + import struct +-import md5 ++from hashlib import md5 + import string + import socket + import random +@@ -120,9 +120,9 @@ + return dict,data + + def encryptPasswordMD5(password,key): +- m=md5.new() ++ m=md5() + m.update(key) +- m.update(md5.new(password).digest()) ++ m.update(md5(password).digest()) + m.update("AOL Instant Messenger (SM)") + return m.digest() + +@@ -534,7 +534,7 @@ + self.iconSum = tlvs.get(0xd5,"") + + def updateIcon(self, iconData): +- m=md5.new() ++ m=md5() + m.update(iconData) + self.iconSum = m.digest() + log.msg("icon sum is %s" % binascii.hexlify(self.iconSum)) diff --git a/net-im/pyicq-t/files/pyicq-t.service b/net-im/pyicq-t/files/pyicq-t.service new file mode 100644 index 000000000000..852ec13315af --- /dev/null +++ b/net-im/pyicq-t/files/pyicq-t.service @@ -0,0 +1,10 @@ +[Unit] +Description=PyICQt is an ICQ transport for Jabber/XMPP + +[Service] +ExecStart=INSPATH/pyicq-t.py -c /etc/jabber/pyicq-t.xml -l /var/log/jabber/pyicq-t.log +User=jabber +Group=jabber + +[Install] +WantedBy=multi-user.target diff --git a/net-im/pyicq-t/metadata.xml b/net-im/pyicq-t/metadata.xml new file mode 100644 index 000000000000..1e72bf501ea4 --- /dev/null +++ b/net-im/pyicq-t/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription>Python based jabber transport for ICQ</longdescription> + <use> + <flag name="webinterface">Install dependencies needed for the web + interface</flag> + </use> + <upstream> + <remote-id type="google-code">pyicqt</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-im/pyicq-t/pyicq-t-0.8.1.5-r6.ebuild b/net-im/pyicq-t/pyicq-t-0.8.1.5-r6.ebuild new file mode 100644 index 000000000000..39f7edef3082 --- /dev/null +++ b/net-im/pyicq-t/pyicq-t-0.8.1.5-r6.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 systemd + +MY_P="${P/pyicq-t/pyicqt}" + +DESCRIPTION="Python based jabber transport for ICQ" +HOMEPAGE="https://code.google.com/p/pyicqt/" +SRC_URI="https://pyicqt.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="webinterface" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + net-im/jabber-base" +RDEPEND="${DEPEND} + || ( + ( + dev-python/twisted-core[${PYTHON_USEDEP}] + dev-python/twisted-words[${PYTHON_USEDEP}] + dev-python/twisted-web[${PYTHON_USEDEP}] + ) + dev-python/twisted[${PYTHON_USEDEP}] + ) + webinterface? ( >=dev-python/nevow-0.4.1[${PYTHON_USEDEP}] ) + dev-python/pillow[${PYTHON_USEDEP}]" + +S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}/${P}-python26-warnings.diff" + "${FILESDIR}/${P}-pillow-imaging.patch" +) + +src_install() { + python_moduleinto ${PN} + cp PyICQt.py ${PN}.py || die + python_domodule ${PN}.py data tools src + + insinto /etc/jabber + newins config_example.xml ${PN}.xml + fperms 600 /etc/jabber/${PN}.xml + fowners jabber:jabber /etc/jabber/${PN}.xml + fperms 755 "$(python_get_sitedir)/${PN}/${PN}.py" + sed -i \ + -e "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \ + -e "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \ + "${ED}/etc/jabber/${PN}.xml" || die + + newinitd "${FILESDIR}/${PN}-0.8-initd-r1" ${PN} + systemd_dounit "${FILESDIR}/${PN}.service" + sed -i -e "s:INSPATH:$(python_get_sitedir)/${PN}:" \ + "${ED}/etc/init.d/${PN}" "${ED}/usr/lib/systemd/system/${PN}.service" || die + + python_fix_shebang "${D}$(python_get_sitedir)/${PN}" +} |