[Lunar-commits] r22271 - in moonbase/trunk/chat: . imspector imspector/init.d

Stefan Wold ratler at lunar-linux.org
Fri Nov 24 17:09:35 CET 2006


Author: ratler
Date: 2006-11-24 17:09:35 +0100 (Fri, 24 Nov 2006)
New Revision: 22271

Added:
   moonbase/trunk/chat/imspector/
   moonbase/trunk/chat/imspector/BUILD
   moonbase/trunk/chat/imspector/DEPENDS
   moonbase/trunk/chat/imspector/DETAILS
   moonbase/trunk/chat/imspector/init.d/
   moonbase/trunk/chat/imspector/init.d/imspector
Log:
Initial import. IMspector is a IM proxy with logging functionality.

Added: moonbase/trunk/chat/imspector/BUILD
===================================================================
--- moonbase/trunk/chat/imspector/BUILD	                        (rev 0)
+++ moonbase/trunk/chat/imspector/BUILD	2006-11-24 16:09:35 UTC (rev 22271)
@@ -0,0 +1,40 @@
+(
+    PREFIX=/usr
+    PLUGINS="msnprotocolplugin.so icqprotocolplugin.so yahooprotocolplugin.so ircprotocolplugin.so fileloggingplugin.so debugloggingplugin.so"
+    
+    add_priv_user imspector:imspector &&
+    
+    # Enable drop privs
+    sedit 's/^#user=/user=/' imspector.conf &&
+    sedit 's/^#group=/group=/' imspector.conf &&
+
+    make &&
+    if is_depends mysql; then
+	PLUGINS="$PLUGINS mysqlloggingplugin.so"
+	make mysqlloggingplugin.so
+    fi &&
+    
+    if is_depends sqlite; then
+	PLUGINS="$PLUGINS sqliteloggingplugin.so"
+	make sqliteloggingplugin.so
+    fi &&
+    
+    prepare_install &&
+    # We install manually because make install isn't optimal
+    install -m 711 imspector ${PREFIX}/sbin/imspector &&
+    install -m 755 libimspector.so ${PREFIX}/lib/libimspector.so &&
+    for i in $PLUGINS; do
+	install -D -m 755 $i ${PREFIX}/lib/imspector/$i
+    done &&
+    
+    if [ ! -f /etc/imspector.conf ]; then
+	install -m 644 imspector.conf /etc/imspector.conf
+    fi &&
+    if [ ! -d /var/log/imspector ]; then
+	mkdir -p /var/log/imspector &&
+	chown imspector:imspector /var/log/imspector &&
+	chmod 750 /var/log/imspector
+    fi
+
+
+) > $C_FIFO 2>&1

Added: moonbase/trunk/chat/imspector/DEPENDS
===================================================================
--- moonbase/trunk/chat/imspector/DEPENDS	                        (rev 0)
+++ moonbase/trunk/chat/imspector/DEPENDS	2006-11-24 16:09:35 UTC (rev 22271)
@@ -0,0 +1,2 @@
+optional_depends "mysql" "" "" "for MySQL support" &&
+optional_depends "sqlite" "" "" "for SQLite support"

Added: moonbase/trunk/chat/imspector/DETAILS
===================================================================
--- moonbase/trunk/chat/imspector/DETAILS	                        (rev 0)
+++ moonbase/trunk/chat/imspector/DETAILS	2006-11-24 16:09:35 UTC (rev 22271)
@@ -0,0 +1,13 @@
+          MODULE=imspector
+         VERSION=0.2
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=http://www.imspector.org/downloads/
+      #SOURCE_VFY=sha1:
+        WEB_SITE=http://www.imspector.org/
+         ENTERED=20061124
+         UPDATED=20061124
+           SHORT="An Instant Messenger transparent proxy with logging capabilities"
+cat << EOF
+Instant Messenger transparent proxy with logging capabilities. Currently
+it supports MSN, AIM, ICQ, Yahoo and IRC to different degrees.
+EOF

Added: moonbase/trunk/chat/imspector/init.d/imspector
===================================================================
--- moonbase/trunk/chat/imspector/init.d/imspector	                        (rev 0)
+++ moonbase/trunk/chat/imspector/init.d/imspector	2006-11-24 16:09:35 UTC (rev 22271)
@@ -0,0 +1,11 @@
+# imspector 
+#  
+# chkconfig: 345 90 10 
+# description: Instant Messenger transparent proxy with logging capabilities. \
+# Currently it supports MSN, AIM, ICQ, Yahoo and IRC to different degrees.
+#
+# pidfile: /var/run/imspector.pid
+# processname: imspector
+# config: /etc/imspector.conf
+
+. /lib/lsb/init-functions



More information about the Lunar-commits mailing list