update to 0.9.5 and deleted older versions
authorGustavo Felisberto <humpback@gentoo.org>
Sun, 28 Aug 2005 16:13:36 +0000 (16:13 +0000)
committerGustavo Felisberto <humpback@gentoo.org>
Sun, 28 Aug 2005 16:13:36 +0000 (16:13 +0000)
Package-Manager: portage-2.0.51.22-r2

net-im/pymsn-t/ChangeLog
net-im/pymsn-t/Manifest
net-im/pymsn-t/files/digest-pymsn-t-0.9.3 [deleted file]
net-im/pymsn-t/files/digest-pymsn-t-0.9.5 [new file with mode: 0644]
net-im/pymsn-t/files/pymsn-t-0.9.3-arguments.patch [deleted file]
net-im/pymsn-t/files/pymsn-t-0.9.3-config.patch [deleted file]
net-im/pymsn-t/files/pymsn-t-0.9.5-arguments.patch [new file with mode: 0644]
net-im/pymsn-t/files/pymsn-t.initd
net-im/pymsn-t/pymsn-t-0.9.3.ebuild [deleted file]
net-im/pymsn-t/pymsn-t-0.9.5.ebuild [new file with mode: 0644]

index 1ff187cc36b9c55532442c98bf55cd6cbcaafe61..0e87279df8c31be5011e2134f3bcc66649a20466 100644 (file)
@@ -1,6 +1,15 @@
 # ChangeLog for net-im/pymsn-t
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v 1.2 2005/08/23 21:58:36 humpback Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v 1.3 2005/08/28 16:13:36 humpback Exp $
+
+*pymsn-t-0.9.5 (28 Aug 2005)
+
+  28 Aug 2005; Gustavo Felisberto <humpback@gentoo.org>;
+  -files/pymsn-t-0.9.3-arguments.patch, -files/pymsn-t-0.9.3-config.patch,
+  +files/pymsn-t-0.9.5-arguments.patch, files/pymsn-t.initd,
+  -pymsn-t-0.9.3.ebuild, +pymsn-t-0.9.5.ebuild:
+  Updated to 0.9.5 and changed the ebuild to use the new jabber-base package.
+  This will make it easyer to maintain jabber packages.
 
 *pymsn-t-0.9.3 (23 Aug 2005)
 
index c9c970cd13c2015de32afdf55b52396693c0a9ce..2a6c5912969379ff61cebb306d1bdfb9cc84273b 100644 (file)
@@ -1,6 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 MD5 46274fb6f256fc0c0945b8dae15e9043 pymsn-t-0.9.5.ebuild 2016
 MD5 d56c241f2174db06b33bf9c0ad35d00d ChangeLog 1146
 MD5 08d64f26d0872c7dfe0f37e7ea6a83c3 metadata.xml 301
 MD5 bb6822e06ee573f7897518abba0db917 files/pymsn-t-0.9.5-arguments.patch 263
 MD5 d06863dd9cbeea1d2bd016de6b27742c files/digest-pymsn-t-0.9.5 63
 MD5 a0581c27b7e350c2d92b331ea1b3a4f2 files/pymsn-t.initd 420
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDEeLI8zY1VwezZiERAuvsAKCRvZP6slbBXsgDCRBnz9zBvV/pTQCgmzuC
+YGPXlL3mX3uIoeeaR80+t4s=
+=/Vso
+-----END PGP SIGNATURE-----
diff --git a/net-im/pymsn-t/files/digest-pymsn-t-0.9.3 b/net-im/pymsn-t/files/digest-pymsn-t-0.9.3
deleted file mode 100644 (file)
index 0e0499e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 a98ecc23688e76f7841060e4fb0b7de9 PyMSNt-0.9.3.tar.gz 77414
diff --git a/net-im/pymsn-t/files/digest-pymsn-t-0.9.5 b/net-im/pymsn-t/files/digest-pymsn-t-0.9.5
new file mode 100644 (file)
index 0000000..ec36da5
--- /dev/null
@@ -0,0 +1 @@
+MD5 f175084a62fd3dc8de2f5b68792b4103 PyMSNt-0.9.5.tar.gz 80571
diff --git a/net-im/pymsn-t/files/pymsn-t-0.9.3-arguments.patch b/net-im/pymsn-t/files/pymsn-t-0.9.3-arguments.patch
deleted file mode 100644 (file)
index 8f388c6..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- PyMSNt-0.9.2/PyMSNt        2005-04-10 12:32:29.646079867 +0200
-+++ PyMSNt-0.9.2/PyMSNt        2005-04-10 11:51:39.130483794 +0200
-@@ -1,6 +1,6 @@
- #!/bin/bash
- 
- cd `dirname $0`/src
--exec -a PyMSNt python main.py
-+exec -a PyMSNt python main.py $*
- cd `dirname $0`
- 
diff --git a/net-im/pymsn-t/files/pymsn-t-0.9.3-config.patch b/net-im/pymsn-t/files/pymsn-t-0.9.3-config.patch
deleted file mode 100644 (file)
index 29bfdc2..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
---- config.xml.ori     2005-06-12 18:39:21.007989736 +0100
-+++ config.xml 2005-06-12 18:41:56.621332912 +0100
-@@ -8,10 +8,10 @@
- 
- <!-- The location of the spool directory.. if relative, relative to the PyMSNt dir.
- Do not include the jid of the transport -->
--<!-- <spooldir>/path/to/data</spooldir> -->
-+<spooldir>/var/spool/pymsn-t</spooldir>
- 
- <!-- The location of the PID file (if relative, relative to the PyMSNt dir) -->
--<pid>PyMSNt.pid</pid>
-+<pid>/var/run/PyMSNt.pid</pid>
- 
- 
- <!-- The IP address of the main Jabber server to connect to -->
-@@ -51,7 +51,7 @@
- <debugSmart/>
- <!-- Set the debug log file location here, (comment out to output to the screen) -->
- <!-- (if relative, relative to the PyMSNt dir) -->
--<debugLog>debug.log</debugLog>
-+<debugLog>/var/spool/pymsn-t/debug.log</debugLog>
- 
- 
- </pymsnt>
diff --git a/net-im/pymsn-t/files/pymsn-t-0.9.5-arguments.patch b/net-im/pymsn-t/files/pymsn-t-0.9.5-arguments.patch
new file mode 100644 (file)
index 0000000..31c4c96
--- /dev/null
@@ -0,0 +1,11 @@
+--- PyMSNt-ori 2005-08-28 16:38:26.000000000 +0100
++++ PyMSNt     2005-08-28 16:39:06.000000000 +0100
+@@ -1,6 +1,6 @@
+ #!/bin/bash
+ 
+-cd `dirname $0`/src
+-exec -a PyMSNt python main.py
++cd `dirname $0`/pymsn-t/src
++exec -a PyMSNt python main.py $*
+ cd `dirname $0`
+ 
index 9fb448a38616d22f85da370700b028083dc87431..92fc8f7eab404135302a21237cfe18b329df01e6 100644 (file)
@@ -7,14 +7,14 @@ depend() {
 
 start() {
        ebegin "Starting MSN Jabber Transport"
-       cd /var/run/pymsn-t
-       start-stop-daemon --start --quiet --background --chuid pymsn-t:jabber \
-               --exec /usr/lib/pymsn-t/pymsn-t -- /etc/pymsn-t.xml
+       cd /var/run/jabber
+       start-stop-daemon --start --quiet --background --chuid jabber:jabber \
+               --exec /usr/lib/PATH/site-packages/PyMSNt -- /etc/jabber/pymsn-t.xml
        eend $?
 }
 
 stop() {
        ebegin "Stopping MSN Jabber Transport"
-       start-stop-daemon --stop --quiet --pidfile /var/run/pymsn-t/PyMSNt.pid
+       start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pymsn-t.pid
        eend $?
 }
diff --git a/net-im/pymsn-t/pymsn-t-0.9.3.ebuild b/net-im/pymsn-t/pymsn-t-0.9.3.ebuild
deleted file mode 100644 (file)
index 83f06e6..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2005 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.9.3.ebuild,v 1.1 2005/08/23 21:58:36 humpback Exp $
-
-# Based on net-im/pyicq-t ebuild by Karl-Johan Karlsson
-inherit eutils
-
-MY_PN="PyMSNt"
-S=${WORKDIR}/${MY_PN}-${PV}
-DESCRIPTION="MSN transport for Jabber"
-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="~x86"
-
-DEPEND=">=dev-lang/python-2.3"
-RDEPEND="virtual/jabber-server
-               >=dev-python/twisted-2
-               dev-python/twisted-words
-               dev-python/twisted-xish"
-IUSE=""
-
-src_unpack()
-{
-       unpack ${A}
-       cd ${S}
-       epatch ${FILESDIR}/${P}-arguments.patch
-       cp config-example.xml config.xml
-       epatch ${FILESDIR}/${P}-config.patch
-       rm -rf src/CVS
-       rm -rf src/baseproto/CVS
-       rm -rf src/legacy/CVS
-       rm -rf src/tlib/CVS
-}
-
-src_install()
-{
-       enewgroup jabber
-       enewuser pymsn-t -1 -1 /var/run/pymsn-t jabber
-
-       #Dont like this, have to find way to do recursive copy with doins
-       dodir /usr/lib/${PN}/src
-       cp -r src/* ${D}usr/lib/${PN}/src/
-
-       exeinto /usr/lib/${PN}
-       newexe PyMSNt pymsn-t
-
-       insinto /etc
-       newins config.xml pymsn-t.xml
-
-       exeinto /etc/init.d
-       newexe ${FILESDIR}/pymsn-t.initd pymsn-t
-
-       dodir /var/spool/${PN}
-       fowners pymsn-t:jabber /var/spool/${PN}
-
-       dodir /var/log/${PN}
-       fowners pymsn-t:jabber /var/log/${PN}
-
-       dodir /var/run/${PN}
-       fowners pymsn-t:jabber /var/run/${PN}
-}
-
-pkg_postinst() {
-       einfo "A sample configuration file has been installed in /etc/pymsn-t.xml."
-       einfo "Please edit it, and the configuration of you Jabber server to match."
-       einfo "You also need to create a directory msn.yourdomain.com in"
-       einfo "/var/spool/pymsn-t/ and chown it to pymsn-t:jabber."
-}
diff --git a/net-im/pymsn-t/pymsn-t-0.9.5.ebuild b/net-im/pymsn-t/pymsn-t-0.9.5.ebuild
new file mode 100644 (file)
index 0000000..3e75f88
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright 1999-2005 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.9.5.ebuild,v 1.1 2005/08/28 16:13:36 humpback Exp $
+
+inherit eutils python
+
+MY_PN="PyMSNt"
+S=${WORKDIR}/${MY_PN}-${PV}
+DESCRIPTION="MSN transport for Jabber"
+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="~x86 ~amd64"
+
+DEPEND=">=net-im/jabber-base-0.0
+               >=dev-lang/python-2.3"
+RDEPEND="virtual/jabber-server
+               >=dev-python/twisted-2
+               dev-python/twisted-words
+               dev-python/twisted-xish
+               dev-python/twisted-web"
+IUSE=""
+
+src_unpack()
+{
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${PN}-0.9.5-arguments.patch
+       rm -rf src/CVS
+       rm -rf src/baseproto/CVS
+       rm -rf src/legacy/CVS
+       rm -rf src/tlib/CVS
+       rm -rf src/tlib/jabber/CVS
+}
+
+src_install()
+{
+       python_version
+       #Dont like this, have to find way to do recursive copy with doins
+       dodir /usr/lib/python${PYVER}/site-packages/${PN}/src
+       cp -r src/* ${D}/usr/lib/python${PYVER}/site-packages/${PN}/src
+
+
+       exeinto /usr/lib/python${PYVER}/site-packages/
+       doexe PyMSNt
+       sed -i \
+               -e "s/.*<spooldir>.*/<spooldir>\/var\/spool\/jabber\/${PN}<\/spooldir>/"                                \
+               -e "s/.*<pid>.*/<pid>\/var\/run\/jabber\/pymsn-t.pid<\/pid>/"                                    \
+               -e "s/.*<debugLog>.*/<debugLog>\/var\/log\/jabber\/${PN}-debug.log<\/debugLog>/"       \
+                       config-example.xml
+       insinto /etc/jabber
+       newins config-example.xml pymsn-t.xml
+
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/pymsn-t.initd pymsn-t
+       sed -i -e "s/PATH/python${PYVER}/" ${D}/etc/init.d/pymsn-t
+}
+
+pkg_postinst() {
+       einfo "A sample configuration file has been installed in /etc/jabber/pymsn-t.xml."
+       einfo "Please edit it, and the configuration of you Jabber server to match."
+       einfo "You also need to create a directory msn.yourdomain.com in"
+       einfo "/var/spool/jabber/ and chown it to jabber:jabber."
+}