# ChangeLog for net-im/pymsn-t
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v 1.8 2007/04/28 17:37:47 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v 1.9 2007/04/28 23:21:46 griffon26 Exp $
+
+*pymsn-t-0.11.2 (28 Apr 2007)
+
+ 28 Apr 2007; Maurice van der Pot <griffon26@gentoo.org>
+ +files/pymsn-t-0.11.2-initd, +files/pymsn-t-0.11.2-twisted-2.5.patch,
+ metadata.xml, +pymsn-t-0.11.2.ebuild:
+ Version bump to 0.11.2 closing bug #140194.
28 Apr 2007; Sven Wegener <swegener@gentoo.org> pymsn-t-0.11a-r4.ebuild:
Fix *initd, *confd and *envd calls (#173884, #174266)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX pymsn-t-0.11.2-initd 716 RMD160 ea1ef82bad3979a6eca930cf69801c7daa0a3ba2 SHA1 a083bae8b4117c279ba2bed5cd55b18d741c74ef SHA256 8032fdb347e8f7e3ca12ad16bba929df1166cdd5197e8ed0d01f44739e147595
+MD5 1bad0db4fff932947d6567823afc0930 files/pymsn-t-0.11.2-initd 716
+RMD160 ea1ef82bad3979a6eca930cf69801c7daa0a3ba2 files/pymsn-t-0.11.2-initd 716
+SHA256 8032fdb347e8f7e3ca12ad16bba929df1166cdd5197e8ed0d01f44739e147595 files/pymsn-t-0.11.2-initd 716
+AUX pymsn-t-0.11.2-twisted-2.5.patch 547 RMD160 c0bf484934b47ca3025618336e4acbae8c93ddfd SHA1 26b10892c7a564b3be0f7e98e568211c8d664d1e SHA256 52388d68cadce48e31588364b1168240dffd1be3f06f2844adcfdfa3736c1d0d
+MD5 def57b4add401a131d8f866aa932ed44 files/pymsn-t-0.11.2-twisted-2.5.patch 547
+RMD160 c0bf484934b47ca3025618336e4acbae8c93ddfd files/pymsn-t-0.11.2-twisted-2.5.patch 547
+SHA256 52388d68cadce48e31588364b1168240dffd1be3f06f2844adcfdfa3736c1d0d files/pymsn-t-0.11.2-twisted-2.5.patch 547
AUX pymsn-t.initd 692 RMD160 5c510398a6712e15a3ea5a0d6970943f86ffdaf1 SHA1 e1fc82f1a4c6d9077252208a1c788f57bc7ee54b SHA256 35865c76f77a5b84082650734723c05a0abf4ce52dc1e89b3ed67045e4c62137
MD5 5a4a8ce9221146c77b5be2024125eef9 files/pymsn-t.initd 692
RMD160 5c510398a6712e15a3ea5a0d6970943f86ffdaf1 files/pymsn-t.initd 692
SHA256 35865c76f77a5b84082650734723c05a0abf4ce52dc1e89b3ed67045e4c62137 files/pymsn-t.initd 692
+DIST pymsnt-0.11.2.tar.gz 311947 RMD160 f3b952832400a67407c9c9e713953f7bcae5fbfa SHA1 631743956339435e05d69548142e390fd95263ae SHA256 d0d7064f50133453d170008e075de2d3ec0138e593c5bc9ec4052cfb2fe28459
DIST pymsnt-0.11a.tar.gz 257753 RMD160 2066a93c59e3361626fab7aae56aa706a75ab8fc SHA1 d7907ffe36caeba7c851e5e0aa64d0a5649f8087 SHA256 e083a4ca50a074bfd9fd924279b27379e1cf042c90355bb25eb7f40328bdccce
+EBUILD pymsn-t-0.11.2.ebuild 2092 RMD160 afd019c0f4831c974a67926f437e3ce3a149a19d SHA1 0be07a936ec67f7e8e3b2f3b7f0508c7e05b4dce SHA256 8bc8aae502f8a1c8d8cff14f88cce2a1835f412cc102190b427e6ff8c0a32ee9
+MD5 97f4dfc68f1d6b890147ddc0e5a1084a pymsn-t-0.11.2.ebuild 2092
+RMD160 afd019c0f4831c974a67926f437e3ce3a149a19d pymsn-t-0.11.2.ebuild 2092
+SHA256 8bc8aae502f8a1c8d8cff14f88cce2a1835f412cc102190b427e6ff8c0a32ee9 pymsn-t-0.11.2.ebuild 2092
EBUILD pymsn-t-0.11a-r4.ebuild 1944 RMD160 55c1392c87d8c6c026ab7a99d00e91408f406d54 SHA1 d4a0449b9c7fd5f2b6bafdb5f9421fe844658aed SHA256 b4c7c4f389d3af08dd8d13f1441ec9dd9d0b85cda9418c4372643e7ced827274
MD5 56625c749e03d1460d6ab0d30f973ba3 pymsn-t-0.11a-r4.ebuild 1944
RMD160 55c1392c87d8c6c026ab7a99d00e91408f406d54 pymsn-t-0.11a-r4.ebuild 1944
SHA256 b4c7c4f389d3af08dd8d13f1441ec9dd9d0b85cda9418c4372643e7ced827274 pymsn-t-0.11a-r4.ebuild 1944
-MISC ChangeLog 2020 RMD160 b6de4b1e6c6cfe32a3c62f714e57a1f135f1b091 SHA1 48fb53de985136b3f63d5cc3d3d279363f54b779 SHA256 5f16d65587a73bf772b5d0d9df2efc74542d0d16bd701dec15d9ed8270958b8d
-MD5 6ecdb3df7d405f6f1ee89ebfa7232714 ChangeLog 2020
-RMD160 b6de4b1e6c6cfe32a3c62f714e57a1f135f1b091 ChangeLog 2020
-SHA256 5f16d65587a73bf772b5d0d9df2efc74542d0d16bd701dec15d9ed8270958b8d ChangeLog 2020
-MISC metadata.xml 301 RMD160 652c5ed7f3a20a68639aabe875700de1b678e34c SHA1 174d0a642fae023691190031b8e02a25b11809b7 SHA256 29338af6dcda7de2a806ed37a597a2850bb70aa856dd41e21eff17769f3fcecb
-MD5 08d64f26d0872c7dfe0f37e7ea6a83c3 metadata.xml 301
-RMD160 652c5ed7f3a20a68639aabe875700de1b678e34c metadata.xml 301
-SHA256 29338af6dcda7de2a806ed37a597a2850bb70aa856dd41e21eff17769f3fcecb metadata.xml 301
+MISC ChangeLog 2269 RMD160 74aa2e71a28e5ab1f2bfd8b6f37f79d6de290d28 SHA1 3525fa1d892a507686a9b710b5a38e6a51ee6aa1 SHA256 0720a49420a9c56217541116414eb44dbea4f01c8711886f41205a7d519df875
+MD5 12f104a913ac35cc78b57dfa9ad43738 ChangeLog 2269
+RMD160 74aa2e71a28e5ab1f2bfd8b6f37f79d6de290d28 ChangeLog 2269
+SHA256 0720a49420a9c56217541116414eb44dbea4f01c8711886f41205a7d519df875 ChangeLog 2269
+MISC metadata.xml 298 RMD160 bf178db6163d9777f6aec41efeb2e62ab6634a83 SHA1 bff4dfd7b7efc532399df203152564ede084589f SHA256 32651d5277d9073b5b5ea63ebfe8489f6baf6ecbc961dc7efa038552496c2d9b
+MD5 3668d18710deb48842b35261effc00a6 metadata.xml 298
+RMD160 bf178db6163d9777f6aec41efeb2e62ab6634a83 metadata.xml 298
+SHA256 32651d5277d9073b5b5ea63ebfe8489f6baf6ecbc961dc7efa038552496c2d9b metadata.xml 298
+MD5 0d90958b870961b00776062a4bd974aa files/digest-pymsn-t-0.11.2 241
+RMD160 236eaaa512c72a93e5fa78ccbc75b997f6d8ddcb files/digest-pymsn-t-0.11.2 241
+SHA256 d17420bd627fc9d3f45c6bbb4cae53df95681f3ef596e0cfbe0a07c71a1108dc files/digest-pymsn-t-0.11.2 241
MD5 f4024dc267e74f2da2126cf4ec1cfad6 files/digest-pymsn-t-0.11a-r4 238
RMD160 92366398f8f8885e7357d0c4f28b6c776e620e50 files/digest-pymsn-t-0.11a-r4 238
SHA256 c21edc7c17248fddea219d2e214bed104b1a0fbabe8de8f59319b7cd2fbfb021 files/digest-pymsn-t-0.11a-r4 238
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.3 (GNU/Linux)
+Version: GnuPG v2.0.2 (GNU/Linux)
-iD8DBQFGM4Z/I1lqEGTUzyQRAhoxAJ9cmsK7ARKllhIffDbxJptPJ5ShxACgo/bD
-w9nLa0CvyVkxItgl0Cm7BrY=
-=f9M1
+iD8DBQFGM9cSMGnpIbeahxwRAgJ8AJwKd3osxrDczAycPLysKdqUIiliQgCfTMd2
+u1EpMuDD54pEbMDwKLPO+Go=
+=RDVZ
-----END PGP SIGNATURE-----
--- /dev/null
+MD5 855cb25e2254522ba98ba02d59fdd9b6 pymsnt-0.11.2.tar.gz 311947
+RMD160 f3b952832400a67407c9c9e713953f7bcae5fbfa pymsnt-0.11.2.tar.gz 311947
+SHA256 d0d7064f50133453d170008e075de2d3ec0138e593c5bc9ec4052cfb2fe28459 pymsnt-0.11.2.tar.gz 311947
--- /dev/null
+#!/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/pymsn-t/files/pymsn-t-0.11.2-initd,v 1.1 2007/04/28 23:21:46 griffon26 Exp $
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting MSN Jabber Transport"
+ start-stop-daemon --start --pidfile /var/run/jabber/pymsn-t.pid --chuid jabber:jabber \
+ --exec /usr/bin/python /usr/lib/python2.4/site-packages/pymsn-t/pymsn-t.py -- \
+ -b -c /etc/jabber/pymsn-t.xml -l /var/log/jabber/pymsn-t.log
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping MSN Jabber Transport"
+ start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pymsn-t.pid
+ eend $?
+}
--- /dev/null
+diff -ruN pymsnt-0.11.2/src/main.py pymsnt-0.11.2-fixed/src/main.py
+--- pymsnt-0.11.2/src/main.py 2006-10-18 06:40:55.000000000 +0200
++++ pymsnt-0.11.2-fixed/src/main.py 2007-04-28 16:07:49.000000000 +0200
+@@ -390,7 +390,10 @@
+ # Set SIGHUP to reload the config file & close & open debug file
+ signal.signal(signal.SIGHUP, SIGHUPstuff)
+ # Load some scripts for PID and daemonising
+- from twisted.scripts import twistd
++ try:
++ from twisted.scripts import _twistd_unix as twistd
++ except:
++ from twisted.scripts import twistd
+
+
+ def main():
<pkgmetadata>
<herd>net-im</herd>
<maintainer>
- <email>humpback@gentoo.org</email>
+ <email>griffon26@gentoo.org</email>
</maintainer>
- <longdescription>New Python based jabber transport for MSN</longdescription>
+ <longdescription>Python based jabber transport for MSN</longdescription>
</pkgmetadata>
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/pymsn-t-0.11.2.ebuild,v 1.1 2007/04/28 23:21:46 griffon26 Exp $
+
+NEED_PYTHON=2.3
+
+inherit eutils multilib python
+
+MY_PN="pymsnt"
+S=${WORKDIR}/${MY_PN}-${PV}
+DESCRIPTION="Python based jabber transport for MSN"
+HOMEPAGE="http://msn-transport.jabberstudio.org/"
+SRC_URI="http://msn-transport.jabberstudio.org/tarballs/${MY_PN}-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc"
+IUSE=""
+
+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
+ >=dev-python/imaging-1.1"
+
+src_unpack() {
+ unpack ${A} && cd "${S}" || die "unpack failed"
+ find -name ".svn" -type d -exec rm -rf {} \; &> /dev/null
+ 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
+ newins PyMSNt.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
+ dosed \
+ "s:<host>[^\<]*</host>:<host>example.org</host>:" \
+ /etc/jabber/${PN}.xml
+ dosed \
+ "s:<jid>[^\<]*</jid>:<jid>msn.example.org</jid>:" \
+ /etc/jabber/${PN}.xml
+
+ newinitd "${FILESDIR}/${PN}-0.11.2-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}
+}