diff options
-rw-r--r-- | net-im/pyaim-t/ChangeLog | 12 | ||||
-rw-r--r-- | net-im/pyaim-t/Manifest | 24 | ||||
-rw-r--r-- | net-im/pyaim-t/files/digest-pyaim-t-0.8a | 3 | ||||
-rw-r--r-- | net-im/pyaim-t/files/pyaim-t-0.8-initd | 23 | ||||
-rw-r--r-- | net-im/pyaim-t/files/pyaim-t-0.8-twisted-2.5.patch | 15 | ||||
-rw-r--r-- | net-im/pyaim-t/metadata.xml | 15 | ||||
-rw-r--r-- | net-im/pyaim-t/pyaim-t-0.8a.ebuild | 67 |
7 files changed, 159 insertions, 0 deletions
diff --git a/net-im/pyaim-t/ChangeLog b/net-im/pyaim-t/ChangeLog new file mode 100644 index 000000000000..03932611b387 --- /dev/null +++ b/net-im/pyaim-t/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for net-im/pyaim-t +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/pyaim-t/ChangeLog,v 1.1 2007/06/08 16:52:42 griffon26 Exp $ + +*pyaim-t-0.8a (04 Jun 2007) + + 04 Jun 2007; Maurice van der Pot <griffon26@gentoo.org> + +files/pyaim-t-0.8-initd, +files/pyaim-t-0.8-twisted-2.5.patch, + +metadata.xml, +pyaim-t-0.8a.ebuild: + Initial import of pyaim-t into portage as requested by Chris Carlin + <carlin@jlab.org> (closes bug #123160). + diff --git a/net-im/pyaim-t/Manifest b/net-im/pyaim-t/Manifest new file mode 100644 index 000000000000..dbe6d966d50e --- /dev/null +++ b/net-im/pyaim-t/Manifest @@ -0,0 +1,24 @@ +AUX pyaim-t-0.8-initd 680 RMD160 6fb1f6a320fc8240f1a6f82c263bcf18d2579353 SHA1 3236ea2dba224baacad06e4ab3e86e86ab01e1f0 SHA256 d4cd37795bf6634db053e544e0dc0e21ae9e02bcef27bb633802f55455b45e08 +MD5 15f0be426758165822d2a5d823a33860 files/pyaim-t-0.8-initd 680 +RMD160 6fb1f6a320fc8240f1a6f82c263bcf18d2579353 files/pyaim-t-0.8-initd 680 +SHA256 d4cd37795bf6634db053e544e0dc0e21ae9e02bcef27bb633802f55455b45e08 files/pyaim-t-0.8-initd 680 +AUX pyaim-t-0.8-twisted-2.5.patch 842 RMD160 23b346c4ae86c8964d4dadf0e3164a48e534e580 SHA1 8e17c0ea5222c62add7b52e399eca8469de8e691 SHA256 a60ccb8af20b8144f6c4540a2567ccec9cc326cddef67ac22b3776a5dbac6dad +MD5 e5a3a4a22869bef7ad9df7951eec641b files/pyaim-t-0.8-twisted-2.5.patch 842 +RMD160 23b346c4ae86c8964d4dadf0e3164a48e534e580 files/pyaim-t-0.8-twisted-2.5.patch 842 +SHA256 a60ccb8af20b8144f6c4540a2567ccec9cc326cddef67ac22b3776a5dbac6dad files/pyaim-t-0.8-twisted-2.5.patch 842 +DIST pyaim-t-0.8a.tar.gz 165035 RMD160 ddc6485dc481cd97f1db3ceaa485387ba4669e56 SHA1 ef98a3a161e151706ad80481aefc3c14eb01c9f8 SHA256 93508f5f3b0fce5bca040fd2c393cac7bcb9dffeffa2ade7683a48e314fdf12f +EBUILD pyaim-t-0.8a.ebuild 1844 RMD160 abe4376dd032db3b7625890949c91224fd3313ba SHA1 89305087fe89d515fa9a93e2174186e7d577ea48 SHA256 7053da51a318971b47eb6c67bfe937c9345158ffc98396e3e1d195b032ad4368 +MD5 7723ae4de82af88f6e062f4d829e214d pyaim-t-0.8a.ebuild 1844 +RMD160 abe4376dd032db3b7625890949c91224fd3313ba pyaim-t-0.8a.ebuild 1844 +SHA256 7053da51a318971b47eb6c67bfe937c9345158ffc98396e3e1d195b032ad4368 pyaim-t-0.8a.ebuild 1844 +MISC ChangeLog 420 RMD160 a3ce6fef5d0395d8bfdf513b3a6cf1c3687ec772 SHA1 70ad96afcf761916c1b16ff8c391c8bb07cad35d SHA256 3f56a7770f1f242ebbb063eedfa066b7f754091419008bacbfe06ab507731857 +MD5 f13dbdef5badd6b6ff0f30bfd4705b83 ChangeLog 420 +RMD160 a3ce6fef5d0395d8bfdf513b3a6cf1c3687ec772 ChangeLog 420 +SHA256 3f56a7770f1f242ebbb063eedfa066b7f754091419008bacbfe06ab507731857 ChangeLog 420 +MISC metadata.xml 467 RMD160 b122636d21a6a1cda9942fdb2a0a85934d3b65f0 SHA1 70b73a7d65fc398fedcc1d4903d917fcafb93d52 SHA256 bc8f5ebc7e937c76f9c64d1f7c7234fdc8335f8aa67ceb301fd0c226b24f132f +MD5 785ec294db831a41e8f4de35179b2e38 metadata.xml 467 +RMD160 b122636d21a6a1cda9942fdb2a0a85934d3b65f0 metadata.xml 467 +SHA256 bc8f5ebc7e937c76f9c64d1f7c7234fdc8335f8aa67ceb301fd0c226b24f132f metadata.xml 467 +MD5 27080289ae70224235cd699a64d54b1d files/digest-pyaim-t-0.8a 238 +RMD160 7275a11baefad6ebcef6c961634f159970b6f82e files/digest-pyaim-t-0.8a 238 +SHA256 b04e0d38105fafc0a82ce7283e4fd24c28a14e06f2f34f37d99ac508c14ee12d files/digest-pyaim-t-0.8a 238 diff --git a/net-im/pyaim-t/files/digest-pyaim-t-0.8a b/net-im/pyaim-t/files/digest-pyaim-t-0.8a new file mode 100644 index 000000000000..ac359bf83f28 --- /dev/null +++ b/net-im/pyaim-t/files/digest-pyaim-t-0.8a @@ -0,0 +1,3 @@ +MD5 913ad86d0fa7015d9d3eb9cd65206b98 pyaim-t-0.8a.tar.gz 165035 +RMD160 ddc6485dc481cd97f1db3ceaa485387ba4669e56 pyaim-t-0.8a.tar.gz 165035 +SHA256 93508f5f3b0fce5bca040fd2c393cac7bcb9dffeffa2ade7683a48e314fdf12f pyaim-t-0.8a.tar.gz 165035 diff --git a/net-im/pyaim-t/files/pyaim-t-0.8-initd b/net-im/pyaim-t/files/pyaim-t-0.8-initd new file mode 100644 index 000000000000..634dc94659a2 --- /dev/null +++ b/net-im/pyaim-t/files/pyaim-t-0.8-initd @@ -0,0 +1,23 @@ +#!/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/pyaim-t/files/pyaim-t-0.8-initd,v 1.1 2007/06/08 16:52:42 griffon26 Exp $ + +depend() { + need net + use jabber-server +} + +start() { + ebegin "Starting AIM Jabber Transport" + start-stop-daemon --start --pidfile /var/run/jabber/pyaim-t.pid --chuid jabber:jabber \ + --exec /usr/bin/python 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-twisted-2.5.patch b/net-im/pyaim-t/files/pyaim-t-0.8-twisted-2.5.patch new file mode 100644 index 000000000000..bd0a24f7f8e8 --- /dev/null +++ b/net-im/pyaim-t/files/pyaim-t-0.8-twisted-2.5.patch @@ -0,0 +1,15 @@ +diff -ruN pyaim-t-0.8a/src/main.py pyaim-t-0.8a-fixed/src/main.py +--- pyaim-t-0.8a/src/main.py 2007-03-26 04:23:32.000000000 +0200 ++++ pyaim-t-0.8a-fixed/src/main.py 2007-06-04 22:09:34.569889294 +0200 +@@ -89,7 +89,10 @@ + import signal + signal.signal(signal.SIGHUP, reloadConfig) + # Load scripts for PID and daemonizing +- from twisted.scripts import twistd ++ try: ++ from twisted.scripts import _twistd_unix as twistd ++ except: ++ from twisted.scripts import twistd + + selectWarning = "Unable to install any good reactors (kqueue, cf, epoll, poll).\nWe fell back to using select. You may have scalability problems.\nThis reactor will not support more than 1024 connections +at a time. You may silence this message by choosing 'select' or 'default' as your reactor in the transport config." + if config.reactor and len(config.reactor) > 0: diff --git a/net-im/pyaim-t/metadata.xml b/net-im/pyaim-t/metadata.xml new file mode 100644 index 000000000000..9f70ca00148e --- /dev/null +++ b/net-im/pyaim-t/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-im</herd> +<maintainer> + <email>carlin@jlab.org</email> + <name>Chris Carlin</name> + <description>Proxy maintainer</description> +</maintainer> +<maintainer> + <email>griffon26@gentoo.org</email> + <name>Maurice van der Pot</name> +</maintainer> + <longdescription>Python based jabber transport for AIM</longdescription> +</pkgmetadata> diff --git a/net-im/pyaim-t/pyaim-t-0.8a.ebuild b/net-im/pyaim-t/pyaim-t-0.8a.ebuild new file mode 100644 index 000000000000..dcd0dfab43ae --- /dev/null +++ b/net-im/pyaim-t/pyaim-t-0.8a.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/pyaim-t/pyaim-t-0.8a.ebuild,v 1.1 2007/06/08 16:52:42 griffon26 Exp $ + +NEED_PYTHON=2.3 + +inherit eutils multilib python + +DESCRIPTION="Python based jabber transport for AIM" +HOMEPAGE="http://pyaim-t.blathersource.org/" +SRC_URI="http://www.blathersource.org/download.php/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="webinterface" + +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 + webinterface? ( >=dev-python/nevow-0.4.1 ) + >=dev-python/imaging-1.1" + +src_unpack() { + unpack ${A} && cd "${S}" || die "unpack failed" + + epatch "${FILESDIR}/${PN}-0.8-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 tools + newins PyAIMt.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 + + newinitd "${FILESDIR}/${PN}-0.8-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} +} |