Browse Source

pyicq-t removed

master
Kolan Sh 3 months ago
parent
commit
97b9dd030b

+ 0
- 1
net-im/pyicq-t/Manifest View File

@@ -1 +0,0 @@
1
-DIST pyicqt-0.8.1.5.tar.gz 183865 SHA256 15ffa7b7d8f2d749492eec3b87bf64f8a429452282ca14e36ba5aee45b5322df SHA512 5b83adf86746c2af60bed2759c7d4e3a3839bea532e0882a6dc087aee5e0afa1320c6d2d2296a667ec45c5b36be879034f079fd30cef924e8db5f66a2f1d3fde WHIRLPOOL 91a51c81d32bc688d4ffb6f4623ae1efe7e5dc5d524b7fd2f519720dc81078d6547ea64a5311bcfcfae0ad77f8fe7ab933f5b63e3f2887fe4671c71b2a6848d9

+ 0
- 23
net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 View File

@@ -1,23 +0,0 @@
1
-#!/sbin/openrc-run
2
-# Copyright 1999-2016 Gentoo Foundation
3
-# Distributed under the terms of the GNU General Public License v2
4
-
5
-depend() {
6
-	need net
7
-	use jabber-server
8
-}
9
-
10
-start() {
11
-	ebegin "Starting ICQ Jabber Transport"
12
-	checkpath -q -d -m 0755 -o jabber:jabber /var/run/jabber/
13
-	start-stop-daemon --start --pidfile /var/run/jabber/pyicq-t.pid -u jabber -g jabber \
14
-		--exec INSPATH/pyicq-t.py -- \
15
-		-b -c /etc/jabber/pyicq-t.xml -l /var/log/jabber/pyicq-t.log
16
-	eend $?
17
-}
18
-
19
-stop() {
20
-	ebegin "Stopping ICQ Jabber Transport"
21
-	start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pyicq-t.pid
22
-	eend $?
23
-}

+ 0
- 36
net-im/pyicq-t/files/pyicq-t-0.8.1.5-pillow-imaging.patch View File

@@ -1,36 +0,0 @@
1
-diff -Naur pyicqt-0.8.1.5/src/contact.py pyicqt-0.8.1.5-1/src/contact.py
2
---- pyicqt-0.8.1.5/src/contact.py	2009-08-24 14:37:59.000000000 +0200
3
-+++ pyicqt-0.8.1.5-1/src/contact.py	2013-09-11 22:19:01.320467367 +0200
4
-@@ -13,7 +13,7 @@
5
- import globals
6
- import base64
7
- if not config.disableAvatars:
8
--	import Image
9
-+	import PIL.Image as Image
10
- import StringIO
11
- 
12
- 
13
-diff -Naur pyicqt-0.8.1.5/src/imgmanip.py pyicqt-0.8.1.5-1/src/imgmanip.py
14
---- pyicqt-0.8.1.5/src/imgmanip.py	2009-08-24 14:37:59.000000000 +0200
15
-+++ pyicqt-0.8.1.5-1/src/imgmanip.py	2013-09-11 22:19:25.257168117 +0200
16
-@@ -5,7 +5,7 @@
17
- 
18
- if not config.disableAvatars:
19
- 	try:
20
--		import Image
21
-+		import PIL.Image as Image
22
- 		import StringIO
23
- 
24
- 		def convertToPNG(imageData):
25
-diff -Naur pyicqt-0.8.1.5/tools/infodump.py pyicqt-0.8.1.5-1/tools/infodump.py
26
---- pyicqt-0.8.1.5/tools/infodump.py	2009-08-24 14:37:59.000000000 +0200
27
-+++ pyicqt-0.8.1.5-1/tools/infodump.py	2013-09-11 22:18:34.084807860 +0200
28
-@@ -41,7 +41,7 @@
29
- 	print "Nevow Version: Unknown or Not Installed"
30
- 
31
- try:
32
--	from Image import VERSION
33
-+	from PIL.Image import VERSION
34
- 	print "Python Imaging Library (PIL) Version: " + VERSION
35
- except:
36
- 	print "Python Imaging Library (PIL) Version: Unknown or Not Installed"

+ 0
- 118
net-im/pyicq-t/files/pyicq-t-0.8.1.5-python26-warnings.diff View File

@@ -1,118 +0,0 @@
1
-diff -Naur pyicqt-0.8.1.5/src/avatar.py p1//src/avatar.py
2
---- pyicqt-0.8.1.5/src/avatar.py	2010-06-07 12:16:36.000000000 +0200
3
-+++ p1//src/avatar.py	2010-06-07 12:16:16.000000000 +0200
4
-@@ -6,7 +6,7 @@
5
- from twisted.words.xish.domish import Element
6
- from debug import LogEvent, INFO, WARN, ERROR
7
- import lang
8
--import sha
9
-+from hashlib import sha1
10
- import base64
11
- import os
12
- import os.path
13
-@@ -46,7 +46,7 @@
14
- class Avatar:
15
- 	""" Represents an Avatar. Does not store the image in memory. """
16
- 	def __init__(self, imageData, avatarCache):
17
--		self.__imageHash = sha.sha(imageData).hexdigest()
18
-+		self.__imageHash = sha1(imageData).hexdigest()
19
- 		self.__avatarCache = avatarCache
20
- 
21
- 	def getImageHash(self):
22
-diff -Naur pyicqt-0.8.1.5/src/contact.py p1//src/contact.py
23
---- pyicqt-0.8.1.5/src/contact.py	2010-06-07 12:16:43.000000000 +0200
24
-+++ p1//src/contact.py	2010-06-07 12:16:16.000000000 +0200
25
-@@ -8,7 +8,6 @@
26
- import config
27
- from debug import LogEvent, INFO, WARN, ERROR
28
- import lang
29
--import sha
30
- import legacy
31
- import globals
32
- import base64
33
-diff -Naur pyicqt-0.8.1.5/src/legacy/buddies.py p1//src/legacy/buddies.py
34
---- pyicqt-0.8.1.5/src/legacy/buddies.py	2009-08-24 14:37:59.000000000 +0200
35
-+++ p1//src/legacy/buddies.py	2010-06-07 12:07:37.000000000 +0200
36
-@@ -12,7 +12,7 @@
37
- import os.path
38
- import binascii
39
- import os.path
40
--import md5
41
-+from hashlib import md5
42
- 
43
- X = os.path.sep
44
- 
45
-@@ -188,7 +188,7 @@
46
- 				avatarData = avatar.AvatarCache().setAvatar(imgmanip.convertToPNG(iconData))
47
- 				c.updateAvatar(avatarData, push=True)
48
- 				if not md5Hash:
49
--					m = md5.new()
50
-+					m = md5()
51
- 					m.update(iconData)
52
- 					md5Hash = m.digest()
53
- 				if not numHash:
54
-diff -Naur pyicqt-0.8.1.5/src/legacy/glue.py p1//src/legacy/glue.py
55
---- pyicqt-0.8.1.5/src/legacy/glue.py	2009-08-24 14:37:59.000000000 +0200
56
-+++ p1//src/legacy/glue.py	2010-06-07 12:07:37.000000000 +0200
57
-@@ -18,7 +18,7 @@
58
- import time
59
- import binascii
60
- import avatar
61
--import md5
62
-+from hashlib import md5
63
- import random
64
- 
65
- from twisted.python import log
66
-@@ -398,7 +398,7 @@
67
- 			try:
68
- 				self.myavatar = imgmanip.convertToJPG(imageData)
69
- 				self.myavatarlen = len(self.myavatar)
70
--				m=md5.new()
71
-+				m=md5()
72
- 				m.update(self.myavatar)
73
- 				self.myavatarsum = m.digest()
74
- 				self.myavatarstamp = time.time()
75
-diff -Naur pyicqt-0.8.1.5/src/legacy/icqt.py p1//src/legacy/icqt.py
76
---- pyicqt-0.8.1.5/src/legacy/icqt.py	2009-08-24 14:37:59.000000000 +0200
77
-+++ p1//src/legacy/icqt.py	2010-06-07 12:07:37.000000000 +0200
78
-@@ -14,7 +14,6 @@
79
- import time
80
- import datetime
81
- import binascii
82
--import md5
83
- import locale
84
- import struct
85
- 
86
-diff -Naur pyicqt-0.8.1.5/src/tlib/oscar.py p1//src/tlib/oscar.py
87
---- pyicqt-0.8.1.5/src/tlib/oscar.py	2009-08-24 14:37:59.000000000 +0200
88
-+++ p1//src/tlib/oscar.py	2010-06-07 12:07:37.000000000 +0200
89
-@@ -21,7 +21,7 @@
90
- from scheduler import Scheduler
91
- 
92
- import struct
93
--import md5
94
-+from hashlib import md5
95
- import string
96
- import socket
97
- import random
98
-@@ -120,9 +120,9 @@
99
-     return dict,data
100
- 
101
- def encryptPasswordMD5(password,key):
102
--    m=md5.new()
103
-+    m=md5()
104
-     m.update(key)
105
--    m.update(md5.new(password).digest())
106
-+    m.update(md5(password).digest())
107
-     m.update("AOL Instant Messenger (SM)")
108
-     return m.digest()
109
- 
110
-@@ -534,7 +534,7 @@
111
-         self.iconSum = tlvs.get(0xd5,"")
112
- 
113
-     def updateIcon(self, iconData):
114
--        m=md5.new()
115
-+        m=md5()
116
-         m.update(iconData)
117
-         self.iconSum = m.digest()
118
-         log.msg("icon sum is %s" % binascii.hexlify(self.iconSum))

+ 0
- 10
net-im/pyicq-t/files/pyicq-t.service View File

@@ -1,10 +0,0 @@
1
-[Unit]
2
-Description=PyICQt is an ICQ transport for Jabber/XMPP
3
-
4
-[Service]
5
-ExecStart=INSPATH/pyicq-t.py -c /etc/jabber/pyicq-t.xml -l /var/log/jabber/pyicq-t.log
6
-User=jabber
7
-Group=jabber
8
-
9
-[Install]
10
-WantedBy=multi-user.target

+ 0
- 63
net-im/pyicq-t/pyicq-t-0.8.1.5-r6.ebuild View File

@@ -1,63 +0,0 @@
1
-# Copyright 1999-2017 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-
4
-EAPI=6
5
-
6
-PYTHON_COMPAT=( python2_7 )
7
-
8
-inherit eutils python-single-r1 systemd
9
-
10
-MY_P="${P/pyicq-t/pyicqt}"
11
-
12
-DESCRIPTION="Python based jabber transport for ICQ"
13
-HOMEPAGE="https://code.google.com/p/pyicqt/"
14
-SRC_URI="https://pyicqt.googlecode.com/files/${MY_P}.tar.gz"
15
-
16
-LICENSE="GPL-2"
17
-SLOT="0"
18
-KEYWORDS="amd64 x86"
19
-IUSE="webinterface"
20
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21
-
22
-DEPEND="${PYTHON_DEPS}
23
-	net-im/jabber-base"
24
-RDEPEND="${DEPEND}
25
-	|| (
26
-		(
27
-			dev-python/twisted-core[${PYTHON_USEDEP}]
28
-			dev-python/twisted-words[${PYTHON_USEDEP}]
29
-			dev-python/twisted-web[${PYTHON_USEDEP}]
30
-		)
31
-		dev-python/twisted[${PYTHON_USEDEP}]
32
-	)
33
-	webinterface? ( >=dev-python/nevow-0.4.1[${PYTHON_USEDEP}] )
34
-	dev-python/pillow[${PYTHON_USEDEP}]"
35
-
36
-S="${WORKDIR}/${MY_P}"
37
-PATCHES=(
38
-	"${FILESDIR}/${P}-python26-warnings.diff"
39
-	"${FILESDIR}/${P}-pillow-imaging.patch"
40
-)
41
-
42
-src_install() {
43
-	python_moduleinto ${PN}
44
-	cp PyICQt.py ${PN}.py || die
45
-	python_domodule ${PN}.py data tools src
46
-
47
-	insinto /etc/jabber
48
-	newins config_example.xml ${PN}.xml
49
-	fperms 600 /etc/jabber/${PN}.xml
50
-	fowners jabber:jabber /etc/jabber/${PN}.xml
51
-	fperms 755 "$(python_get_sitedir)/${PN}/${PN}.py"
52
-	sed -i \
53
-		-e "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \
54
-		-e "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
55
-		"${ED}/etc/jabber/${PN}.xml" || die
56
-
57
-	newinitd "${FILESDIR}/${PN}-0.8-initd-r1" ${PN}
58
-	systemd_dounit "${FILESDIR}/${PN}.service"
59
-	sed -i -e "s:INSPATH:$(python_get_sitedir)/${PN}:" \
60
-		"${ED}/etc/init.d/${PN}" "${ED}/lib/systemd/system/${PN}.service" || die
61
-
62
-	python_fix_shebang "${D}$(python_get_sitedir)/${PN}"
63
-}

Loading…
Cancel
Save