[Lunar-commits] r26057 - in moonbase/trunk/zbeta: . pyicq-t pyicq-t/init.d

Stefan Wold ratler at lunar-linux.org
Wed Oct 3 23:11:26 CEST 2007


Author: ratler
Date: 2007-10-03 23:11:26 +0200 (Wed, 03 Oct 2007)
New Revision: 26057

Added:
   moonbase/trunk/zbeta/pyicq-t/
   moonbase/trunk/zbeta/pyicq-t/BUILD
   moonbase/trunk/zbeta/pyicq-t/DEPENDS
   moonbase/trunk/zbeta/pyicq-t/DETAILS
   moonbase/trunk/zbeta/pyicq-t/init.d/
   moonbase/trunk/zbeta/pyicq-t/init.d/pyicqt
Log:
Initial import of ICQ jabber transport


Added: moonbase/trunk/zbeta/pyicq-t/BUILD
===================================================================
--- moonbase/trunk/zbeta/pyicq-t/BUILD	                        (rev 0)
+++ moonbase/trunk/zbeta/pyicq-t/BUILD	2007-10-03 21:11:26 UTC (rev 26057)
@@ -0,0 +1,32 @@
+(
+    python_major=`installed_version Python | cut -d. -f1-2`
+    python_dir="/usr/lib/python${python_major}/site-packages/pyicq-t"
+ 
+    # Change pid location
+    sedit 's;PyICQt.pid;/var/run/pyicqt.pid;' config_example.xml &&
+
+    prepare_install &&
+
+    if [ ! -d $python_dir ]; then
+        mkdir -p $python_dir
+    fi &&
+    if [ ! -d /etc/jabber ]; then
+        mkdir /etc/jabber
+    fi &&
+    if [ ! -f /etc/jabber/pyicqt.xml ]; then
+        install -m600 config_example.xml /etc/jabber/pyicqt.xml
+    fi &&
+    cp -r {src,data,tools} ${python_dir} &&
+    install -m755 PyICQt.py ${python_dir}/pyicqt.py &&
+    
+    # A bit hackish to byte compile everything
+cat <<EOF>> /tmp/$$-compileall.py
+import compileall
+import re
+compileall.compile_dir('$python_dir', rx=re.compile('/[.]svn'), force=True)
+EOF
+    
+    python /tmp/$$-compileall.py &&
+    rm -f /tmp/$$-compileall.py
+
+) > $C_FIFO 2>&1

Added: moonbase/trunk/zbeta/pyicq-t/DEPENDS
===================================================================
--- moonbase/trunk/zbeta/pyicq-t/DEPENDS	                        (rev 0)
+++ moonbase/trunk/zbeta/pyicq-t/DEPENDS	2007-10-03 21:11:26 UTC (rev 26057)
@@ -0,0 +1 @@
+depends Twisted

Added: moonbase/trunk/zbeta/pyicq-t/DETAILS
===================================================================
--- moonbase/trunk/zbeta/pyicq-t/DETAILS	                        (rev 0)
+++ moonbase/trunk/zbeta/pyicq-t/DETAILS	2007-10-03 21:11:26 UTC (rev 26057)
@@ -0,0 +1,13 @@
+          MODULE=pyicq-t
+         VERSION=0.8a
+          SOURCE=${MODULE}-${VERSION}.tar.gz
+      SOURCE_URL=http://www.blathersource.org/download.php/pyicq-t/
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+      SOURCE_VFY=sha1:098fda4c8afaeb71c3ef110bb5a9aca017025b00
+        WEB_SITE="http://pyicq-t.blathersource.org/"
+         ENTERED=20071003
+         UPDATED=20071003
+           SHORT="ICQ transport for jabber servers"
+cat <<EOF
+ICQ transport for jabber servers
+EOF

Added: moonbase/trunk/zbeta/pyicq-t/init.d/pyicqt
===================================================================
--- moonbase/trunk/zbeta/pyicq-t/init.d/pyicqt	                        (rev 0)
+++ moonbase/trunk/zbeta/pyicq-t/init.d/pyicqt	2007-10-03 21:11:26 UTC (rev 26057)
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# Startup script for ICQ jabber transport
+#
+# chkconfig: 345 90 10
+# description: ICQ jabber transport
+# config: /etc/jabber/pyicqt.xml
+
+
+start ()
+{
+    python /usr/lib/python2.5/site-packages/pyicq-t/pyicqt.py -c /etc/jabber/pyicqt.xml -b
+}
+
+stop ()
+{
+    kill `cat /var/run/pyicqt.pid`
+}
+
+. /lib/lsb/init-functions


Property changes on: moonbase/trunk/zbeta/pyicq-t/init.d/pyicqt
___________________________________________________________________
Name: svn:executable
   + *



More information about the Lunar-commits mailing list