summaryrefslogtreecommitdiff
path: root/net-im/pyaim-t
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-im/pyaim-t
reinit the tree, so we can have metadata
Diffstat (limited to 'net-im/pyaim-t')
-rw-r--r--net-im/pyaim-t/Manifest8
-rw-r--r--net-im/pyaim-t/files/pyaim-t-0.8-initd-r123
-rw-r--r--net-im/pyaim-t/files/pyaim-t-0.8.0.1-pillow-imaging.patch36
-rw-r--r--net-im/pyaim-t/files/pyaim-t-0.8.0.1-python26-warnings.patch118
-rw-r--r--net-im/pyaim-t/metadata.xml22
-rw-r--r--net-im/pyaim-t/pyaim-t-0.8.0.1-r1.ebuild58
6 files changed, 265 insertions, 0 deletions
diff --git a/net-im/pyaim-t/Manifest b/net-im/pyaim-t/Manifest
new file mode 100644
index 000000000000..39a32a073e81
--- /dev/null
+++ b/net-im/pyaim-t/Manifest
@@ -0,0 +1,8 @@
+AUX pyaim-t-0.8-initd-r1 606 SHA256 3793bd9b49518de796f81275d227b052d04ecc4b1a03773edfe21064d5ddc619 SHA512 1bf3ac3c520631dd2899766ff847ccff71521bbe6a042b920a8dcd8d1b916b11ba0b7bce303c26fcf425b01d99952b1ddfffbcd6cb66c10a6ae4cda8f2816c00 WHIRLPOOL 1925e7833261d809a02825c2694113785e66890eb0c5deb51d4523b04c1c9db450f6bb005ba0d38a08941e308bb621b14ebb2ab468f7997f89994f4a927622bf
+AUX pyaim-t-0.8.0.1-pillow-imaging.patch 1236 SHA256 a40c1f221a0bec925392750087f1fb9977636467981b9592465947bc06759f70 SHA512 d013553eb5771b104e8b62eebe838199cbaa098f62265e27013296faf152c9a5a5f2dd2d972a3152518bd821c5c492ed615749444e76d72948e85554c83b84bd WHIRLPOOL adc1fa83b3dd2ac3a68b93c01fd1ddcf4e81f774c7e43700414f4e7fad5ee37490ef64b729d920199cd9cca05560aacc6d66a0a451a87159ae26fa5b0485c67a
+AUX pyaim-t-0.8.0.1-python26-warnings.patch 3678 SHA256 22ba536c958395cd0fc47a0c9f8590f6a9c9cf3338e6c5cd29a554ee0d8fff37 SHA512 fdf3caf1edbefbec7a1eaa61e25ef2d014be86d17bbfbccd4e85eaea0e2f4d227426820de09573d443c3c9d9588c6b901578f8935c541615bc765b3dd7d73cc4 WHIRLPOOL 65c15b9c395de1a52cb3e427ec0161a72604e3ef0fa0a4097d9a535cb5790b18f2288559d365ea845c1f0f36eb36799d694594d5e0bcdd91caa55636b8543093
+DIST pyaim-t-0.8.0.1.tar.gz 143968 SHA256 c9447ff37b4d5d49d9ae9e88e694493cb7449008c882edbb0babf4b4dd5c4bfa SHA512 70d92cb99f36452d95b32bda04ad5f4c74387ab4cc40ed3cd06da58285f4f4b5122aa470e34e4fb1dfedc13ef33feafb3ba6a7036caee9d95edb8969df730540 WHIRLPOOL 337e4ce76c6f8997054d3e93be5d11a94121ca99200a2205fb59cc38595e626e4f2307078a9f7d1a22ec73b40298bf91a430db86cba28e8b2178f4681ff8248f
+EBUILD pyaim-t-0.8.0.1-r1.ebuild 1724 SHA256 26be19cf84e76b8ced19c9ee9f75663a9288952deed6cbd69720538833e17a4e SHA512 2f17e19cc537cad89c186f0e97fec2233097f275f4358b4b0241ab91bf3da6ba37b323e3514d46af79116d042eef04e6f5b72b10b4eb3546db7ccf3aef3b9a1a WHIRLPOOL 3d4584c23f9914cc98659c629076201c88eff3bbe0ca2b826ecad5465a0a2d9755f009816b9331c3f79d14a1779d86ca0a759e6b8e4e0caa67fabfeb820315cd
+MISC ChangeLog 3520 SHA256 d0714f1ab64e06abdabd6b57151788852a34fba31e8cfee1282ebf159c7e08b3 SHA512 7f1e4e5959cd07f972010ba91b267be88f9f1c1bf0785ee318996ff2f06524e123e3efdd749a17fa4bf783c413890ea18a38ef3f9fc9b8095df65e51dbbe9f12 WHIRLPOOL 1804ea75fd8c8ce87fdf1aa89fa580a45a9fe6237d160b5249d25d91d5812121657aaef139b593a34beb19644d6059a8e55be898ff5c7471ec6a7dadc2afac29
+MISC ChangeLog-2015 3528 SHA256 945732d41b904fc5bb68eafebb545b57acad2daeaf27cc70f40825455e85dbbd SHA512 d1beb22d208b223039a7a6e283013d0448ed779a065db25587fa2e13e35ffc01e8eb622956279bf4ff14154f7cbaff224bf6a68e3c8a371210e192dadef09ff7 WHIRLPOOL a26d22e99769f69f69d94615371c18fa5b19959a122a8bf304c0182eb357fc0763920d606c89d8bcfda6f80ffc68d67921648da2f3f6424a9b052559d70f5f2a
+MISC metadata.xml 709 SHA256 2ee63ed5a098e099dc605fb0da9db9ccf6da2f5c3007929cf830b4e8fe390cef SHA512 888a405de6859c9cef60a19f5e639363f957ca79a8fbce4ca44736ecf51d0e5810f3c15c2ec8797e06ac52e77481514cc74d2050cbfdfcac0b6c538f516fa3d7 WHIRLPOOL 9b6b8094c300857f627f10bae44e4d84ddc57241d0f81a38089a80e71559a7498fae1fb3fb1e440a0ef8ca2bf486b93e2f3d9a55585b629a4c069fb1a6aa050c
diff --git a/net-im/pyaim-t/files/pyaim-t-0.8-initd-r1 b/net-im/pyaim-t/files/pyaim-t-0.8-initd-r1
new file mode 100644
index 000000000000..d823e193c5ae
--- /dev/null
+++ b/net-im/pyaim-t/files/pyaim-t-0.8-initd-r1
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting AIM Jabber Transport"
+ checkpath -q -d -m 0755 -o jabber:jabber /var/run/jabber/
+ start-stop-daemon --start --pidfile /var/run/jabber/pyaim-t.pid -u jabber -g jabber \
+ --exec INSPATH/pyaim-t.py -- \
+ -b -c /etc/jabber/pyaim-t.xml -l /var/log/jabber/pyaim-t.log
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping AIM Jabber Transport"
+ start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pyaim-t.pid
+ eend $?
+}
diff --git a/net-im/pyaim-t/files/pyaim-t-0.8.0.1-pillow-imaging.patch b/net-im/pyaim-t/files/pyaim-t-0.8.0.1-pillow-imaging.patch
new file mode 100644
index 000000000000..13067925c18a
--- /dev/null
+++ b/net-im/pyaim-t/files/pyaim-t-0.8.0.1-pillow-imaging.patch
@@ -0,0 +1,36 @@
+diff -Naur pyaimt-0.8.0.1/src/contact.py pyaimt-0.8.0.1-1/src/contact.py
+--- pyaimt-0.8.0.1/src/contact.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-1/src/contact.py 2013-09-18 17:57:12.863780595 +0200
+@@ -13,7 +13,7 @@
+ import globals
+ import base64
+ if not config.disableAvatars:
+- import Image
++ import PIL.Image as Image
+ import StringIO
+
+
+diff -Naur pyaimt-0.8.0.1/src/imgmanip.py pyaimt-0.8.0.1-1/src/imgmanip.py
+--- pyaimt-0.8.0.1/src/imgmanip.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-1/src/imgmanip.py 2013-09-18 17:57:12.863780595 +0200
+@@ -5,7 +5,7 @@
+
+ if not config.disableAvatars:
+ try:
+- import Image
++ import PIL.Image as Image
+ import StringIO
+
+ def convertToPNG(imageData):
+diff -Naur pyaimt-0.8.0.1/tools/infodump.py pyaimt-0.8.0.1-1/tools/infodump.py
+--- pyaimt-0.8.0.1/tools/infodump.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-1/tools/infodump.py 2013-09-18 17:57:12.864780582 +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/pyaim-t/files/pyaim-t-0.8.0.1-python26-warnings.patch b/net-im/pyaim-t/files/pyaim-t-0.8.0.1-python26-warnings.patch
new file mode 100644
index 000000000000..a6fa52e757e8
--- /dev/null
+++ b/net-im/pyaim-t/files/pyaim-t-0.8.0.1-python26-warnings.patch
@@ -0,0 +1,118 @@
+diff -Naur pyaimt-0.8.0.1/src/avatar.py pyaimt-0.8.0.1-py26//src/avatar.py
+--- pyaimt-0.8.0.1/src/avatar.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-py26//src/avatar.py 2011-08-24 20:30:06.146311346 +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 pyaimt-0.8.0.1/src/contact.py pyaimt-0.8.0.1-py26//src/contact.py
+--- pyaimt-0.8.0.1/src/contact.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-py26//src/contact.py 2011-08-24 20:30:06.146311346 +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 pyaimt-0.8.0.1/src/legacy/aimt.py pyaimt-0.8.0.1-py26//src/legacy/aimt.py
+--- pyaimt-0.8.0.1/src/legacy/aimt.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-py26//src/legacy/aimt.py 2011-08-24 20:32:28.187361518 +0200
+@@ -11,7 +11,6 @@
+ import re
+ import time
+ import binascii
+-import md5
+ import imgmanip
+
+
+diff -Naur pyaimt-0.8.0.1/src/legacy/buddies.py pyaimt-0.8.0.1-py26//src/legacy/buddies.py
+--- pyaimt-0.8.0.1/src/legacy/buddies.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-py26//src/legacy/buddies.py 2011-08-24 20:30:06.147311326 +0200
+@@ -12,7 +12,7 @@
+ import os.path
+ import binascii
+ import os.path
+-import md5
++from hashlib import md5
+
+ X = os.path.sep
+
+@@ -138,7 +138,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 pyaimt-0.8.0.1/src/legacy/glue.py pyaimt-0.8.0.1-py26//src/legacy/glue.py
+--- pyaimt-0.8.0.1/src/legacy/glue.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-py26//src/legacy/glue.py 2011-08-24 20:31:20.066825898 +0200
+@@ -19,7 +19,7 @@
+ import time
+ import binascii
+ import avatar
+-import md5
++from hashlib import md5
+
+ # The name of the transport
+ name = "AIM Transport"
+@@ -450,7 +450,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 pyaimt-0.8.0.1/src/tlib/oscar.py pyaimt-0.8.0.1-py26//src/tlib/oscar.py
+--- pyaimt-0.8.0.1/src/tlib/oscar.py 2009-08-24 15:04:03.000000000 +0200
++++ pyaimt-0.8.0.1-py26//src/tlib/oscar.py 2011-08-24 20:30:22.415200813 +0200
+@@ -20,7 +20,7 @@
+ from scheduler import Scheduler
+
+ import struct
+-import md5
++from hashlib import md5
+ import string
+ import socket
+ import random
+@@ -106,9 +106,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/pyaim-t/metadata.xml b/net-im/pyaim-t/metadata.xml
new file mode 100644
index 000000000000..e42a28de7600
--- /dev/null
+++ b/net-im/pyaim-t/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>volkris@gmail.com</email>
+ <name>Chris Carlin</name>
+ <description>Proxy maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>Python based jabber transport for AIM</longdescription>
+ <use>
+ <flag name="webinterface">Install dependencies needed for the web
+ interface</flag>
+ </use>
+ <upstream>
+ <remote-id type="google-code">pyaimt</remote-id>
+ <remote-id type="launchpad">ubuntu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-im/pyaim-t/pyaim-t-0.8.0.1-r1.ebuild b/net-im/pyaim-t/pyaim-t-0.8.0.1-r1.ebuild
new file mode 100644
index 000000000000..fb672c1c6789
--- /dev/null
+++ b/net-im/pyaim-t/pyaim-t-0.8.0.1-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+MY_PN="pyaimt"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Python based jabber transport for AIM"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://debian/pool/main/p/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz -> ${P}.tar.gz
+ https://launchpad.net/ubuntu/+archive/primary/+files/${MY_PN}_${PV}.orig.tar.gz -> ${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}]
+ webinterface? ( >=dev-python/nevow-0.4.1[${PYTHON_USEDEP}] )
+ dev-python/pillow[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-python26-warnings.patch"
+ epatch "${FILESDIR}/${P}-pillow-imaging.patch"
+}
+
+src_install() {
+ python_moduleinto ${PN}
+ cp PyAIMt.py ${PN}.py
+ 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}
+ sed -i -e "s:INSPATH:$(python_get_sitedir)/${PN}:" "${ED}/etc/init.d/${PN}" || die
+ python_fix_shebang "${D}$(python_get_sitedir)/${PN}"
+}