alternativer irc-transport
Hanno Böck

Hanno Böck commited on 2007-11-28 23:10:03
Zeige 4 geänderte Dateien mit 87 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,12 @@
1
+AUX pyirc-t-0.3.initd 573 RMD160 a8d1d75b3e8f07b772d6a61aa376fee713a8bdd5 SHA1 1ba6369a1f0a201d26f9f3f83267cdb2ebc60741 SHA256 083ef06db7757484b1ffb97485a050bbe4134c91a72aacdd89741a178877b735
2
+MD5 c0086eaadf0ffce465f0c8ffb82f1011 files/pyirc-t-0.3.initd 573
3
+RMD160 a8d1d75b3e8f07b772d6a61aa376fee713a8bdd5 files/pyirc-t-0.3.initd 573
4
+SHA256 083ef06db7757484b1ffb97485a050bbe4134c91a72aacdd89741a178877b735 files/pyirc-t-0.3.initd 573
5
+DIST irc-transport-0.3.tar.gz 22752 RMD160 c7b833bc1caa42752e1c1cbf2c9c4af9767cbe30 SHA1 9bc329472115b11ec4fd260f5d4661bec65345a4 SHA256 8dc4de9ca0f1445ed9023ee76e64de454f32c7e880f9ac37600fb1f81d2c46a4
6
+EBUILD pyirc-t-0.3.ebuild 1378 RMD160 dbebcc0298168cb63f8fc13cf676a10e6efd26a4 SHA1 543c8ffda1434019b58bcd91535b4e55a3d054b3 SHA256 b6e25ac52a7396ce612362630b0135077d7015026f0b9b29a8fef3bdc85106af
7
+MD5 aa2002540a2546a31678bffe68d92564 pyirc-t-0.3.ebuild 1378
8
+RMD160 dbebcc0298168cb63f8fc13cf676a10e6efd26a4 pyirc-t-0.3.ebuild 1378
9
+SHA256 b6e25ac52a7396ce612362630b0135077d7015026f0b9b29a8fef3bdc85106af pyirc-t-0.3.ebuild 1378
10
+MD5 bb765d330d7c5b52236091f531cba90d files/digest-pyirc-t-0.3 250
11
+RMD160 e14e79d60bf6a4e94ad8d77a3a8370e3c574b0bf files/digest-pyirc-t-0.3 250
12
+SHA256 a109089a1741679c6b1025c8123a6efe96430891139e504e13cf153491b5e15b files/digest-pyirc-t-0.3 250
... ...
@@ -0,0 +1,3 @@
1
+MD5 8ad0190f1b158ef5990290a16eaf8084 irc-transport-0.3.tar.gz 22752
2
+RMD160 c7b833bc1caa42752e1c1cbf2c9c4af9767cbe30 irc-transport-0.3.tar.gz 22752
3
+SHA256 8dc4de9ca0f1445ed9023ee76e64de454f32c7e880f9ac37600fb1f81d2c46a4 irc-transport-0.3.tar.gz 22752
... ...
@@ -0,0 +1,23 @@
1
+#!/sbin/runscript
2
+# Copyright 1999-2006 BreakMyGentoo.net
3
+# Distributed under the terms of the GNU General Public License v2
4
+# $Header: $
5
+
6
+depend() {
7
+	need net
8
+	use jabber-server
9
+}
10
+
11
+start() {
12
+	ebegin "Starting IRC Jabber Transport"
13
+	env PID=/var/run/jabber/pyirc-t.pid start-stop-daemon --start --quiet --background --name "pyirc-t" --chuid jabber:jabber \
14
+		--exec /usr/bin/python \
15
+		/usr/lib/PATH/site-packages/pyirc-t/irc.py
16
+	eend $?
17
+}
18
+
19
+stop() {
20
+	ebegin "Stopping IRC Jabber Transport"
21
+	start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pyirc-t.pid
22
+	eend $?
23
+}
... ...
@@ -0,0 +1,49 @@
1
+# Copyright 1999-2006 BreakMyGentoo.net
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+inherit eutils python
6
+
7
+DESCRIPTION="New Python based jabber transport for IRC"
8
+HOMEPAGE="http://xmpppy.sourceforge.net/irc/"
9
+SRC_URI="mirror://sourceforge/xmpppy/irc-transport-${PV}.tar.gz"
10
+LICENSE="GPL-2"
11
+SLOT="0"
12
+KEYWORDS="~x86"
13
+S="${WORKDIR}/irc-transport-${PV}"
14
+
15
+
16
+DEPEND=">=net-im/jabber-base-0.0
17
+	>=dev-lang/python-2.3
18
+	dev-python/python-irclib"
19
+	
20
+RDEPEND=">=dev-python/xmpppy-0.3.1"
21
+IUSE=""
22
+
23
+src_install() {
24
+	python_version
25
+	insinto /usr/lib/python${PYVER}/site-packages/${PN}/
26
+	cp /usr/lib/python${PYVER}/site-packages/python-irclib/irclib.py ${D}/usr/lib/python${PYVER}/site-packages/${PN}/
27
+	doins *.py
28
+	
29
+	insinto /etc/jabber
30
+	CFGFILE=jabber-irc.conf
31
+	newins transport.ini ${CFGFILE}
32
+	fperms 600 /etc/jabber/${CFGFILE}
33
+	fowners jabber:jabber /etc/jabber/${CFGFILE}
34
+	dosed \
35
+		"s:;LogFile = ircerror.log:LogFile = /var/log/jabber/${PN}.log:" \
36
+		/etc/jabber/${CFGFILE}
37
+	dosed \
38
+		"s/;FatalErrors = true/FatalErrors = false/" \
39
+		/etc/jabber/${CFGFILE}
40
+
41
+	exeinto /etc/init.d
42
+	newexe ${FILESDIR}/${P}.initd ${PN}
43
+	dosed "s/PATH/python${PYVER}/" /etc/init.d/${PN}
44
+}
45
+
46
+pkg_postinst() {
47
+	einfo "A sample configuration file has been installed in /etc/jabber/jabber-irc.conf."
48
+	einfo "Please edit it, and the configuration of your Jabber server to match."
49
+}
0 50