1 |
hanno 11/09/04 10:26:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pymsn-t-0.11.3-r3.ebuild |
5 |
Log: |
6 |
pymsn-t: fix deprecations in python and init-script, port to eapi 3 |
7 |
|
8 |
(Portage version: 2.1.10.13/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.21 net-im/pymsn-t/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pymsn-t/ChangeLog?rev=1.21&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pymsn-t/ChangeLog?rev=1.21&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pymsn-t/ChangeLog?r1=1.20&r2=1.21 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v |
20 |
retrieving revision 1.20 |
21 |
retrieving revision 1.21 |
22 |
diff -u -r1.20 -r1.21 |
23 |
--- ChangeLog 6 Jul 2010 16:08:47 -0000 1.20 |
24 |
+++ ChangeLog 4 Sep 2011 10:26:35 -0000 1.21 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-im/pymsn-t |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v 1.20 2010/07/06 16:08:47 arfrever Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v 1.21 2011/09/04 10:26:35 hanno Exp $ |
31 |
+ |
32 |
+*pymsn-t-0.11.3-r3 (04 Sep 2011) |
33 |
+ |
34 |
+ 04 Sep 2011; Hanno Boeck <hanno@g.o> +pymsn-t-0.11.3-r3.ebuild, |
35 |
+ +files/pymsn-t-0.11.3-use-non-deprecated-hashlib.patch, +files/pymsn-t-initd: |
36 |
+ Add patch for python 2.6/2.7 warnings, remove deprecated chuid from init |
37 |
+ script, port to EAPI 3. |
38 |
|
39 |
06 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
40 |
pymsn-t-0.11.3.ebuild, pymsn-t-0.11.3-r1.ebuild, pymsn-t-0.11.3-r2.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-im/pymsn-t/pymsn-t-0.11.3-r3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pymsn-t/pymsn-t-0.11.3-r3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/pymsn-t/pymsn-t-0.11.3-r3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: pymsn-t-0.11.3-r3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/pymsn-t-0.11.3-r3.ebuild,v 1.1 2011/09/04 10:26:35 hanno Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
|
57 |
inherit eutils multilib python |
58 |
|
59 |
MY_PN="pymsnt" |
60 |
S=${WORKDIR}/${MY_PN}-${PV} |
61 |
DESCRIPTION="Python based jabber transport for MSN" |
62 |
HOMEPAGE="http://msn-transport.jabberstudio.org/" |
63 |
SRC_URI="http://msn-transport.jabberstudio.org/tarballs/${MY_PN}-${PV}.tar.gz" |
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~ppc ~x86" |
67 |
IUSE="" |
68 |
|
69 |
DEPEND="net-im/jabber-base" |
70 |
RDEPEND="${DEPEND} |
71 |
>=dev-python/twisted-2.5.0 |
72 |
>=dev-python/twisted-words-0.5.0 |
73 |
>=dev-python/twisted-web-0.7.0 |
74 |
>=dev-python/imaging-1.1" |
75 |
|
76 |
src_prepare() { |
77 |
epatch "${FILESDIR}/${P}-protocol-version.patch" |
78 |
epatch "${FILESDIR}/${P}-unexpected-xfr.patch" |
79 |
epatch "${FILESDIR}/${P}-remove-pid.patch" |
80 |
epatch "${FILESDIR}/${P}-delete-reactor.patch" |
81 |
epatch "${FILESDIR}/${P}-use-non-deprecated-hashlib.patch" |
82 |
} |
83 |
|
84 |
src_install() { |
85 |
local inspath |
86 |
|
87 |
inspath=$(python_get_sitedir)/${PN} |
88 |
insinto ${inspath} |
89 |
doins -r data src |
90 |
newins PyMSNt.py ${PN}.py |
91 |
|
92 |
insinto /etc/jabber |
93 |
newins config-example.xml ${PN}.xml |
94 |
fperms 600 /etc/jabber/${PN}.xml |
95 |
fowners jabber:jabber /etc/jabber/${PN}.xml |
96 |
dosed \ |
97 |
"s:<!-- <spooldir>[^\<]*</spooldir> -->:<spooldir>/var/spool/jabber</spooldir>:" \ |
98 |
/etc/jabber/${PN}.xml |
99 |
dosed \ |
100 |
"s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \ |
101 |
/etc/jabber/${PN}.xml |
102 |
dosed \ |
103 |
"s:<host>[^\<]*</host>:<host>example.org</host>:" \ |
104 |
/etc/jabber/${PN}.xml |
105 |
dosed \ |
106 |
"s:<jid>msn</jid>:<jid>msn.example.org</jid>:" \ |
107 |
/etc/jabber/${PN}.xml |
108 |
|
109 |
newinitd "${FILESDIR}/${PN}-initd" ${PN} |
110 |
dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN} |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
python_mod_optimize ${PN} |
115 |
|
116 |
elog "A sample configuration file has been installed in /etc/jabber/${PN}.xml." |
117 |
elog "Please edit it and the configuration of your Jabber server to match." |
118 |
} |
119 |
|
120 |
pkg_postrm() { |
121 |
python_mod_cleanup ${PN} |
122 |
} |