[Lunar-commits] <moonbase> imspector: Version bump to 0.6
Stefan Wold
ratler at lunar-linux.org
Wed Jul 9 21:59:16 CEST 2008
commit e086572450884ce2f2531e90afd9eb8eac08c736
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Wed Jul 9 21:59:16 2008 +0200
imspector: Version bump to 0.6
* Reworked the module a bit
* Added postgresql backend support
---
chat/imspector/BUILD | 65 +++++++++++++++++------------------------------
chat/imspector/DEPENDS | 6 +++-
chat/imspector/DETAILS | 9 ++++--
3 files changed, 34 insertions(+), 46 deletions(-)
diff --git a/chat/imspector/BUILD b/chat/imspector/BUILD
index 3a69b7d..7994647 100644
--- a/chat/imspector/BUILD
+++ b/chat/imspector/BUILD
@@ -1,44 +1,27 @@
(
- PREFIX=/usr
- PLUGINS="msnprotocolplugin.so icqprotocolplugin.so yahooprotocolplugin.so ircprotocolplugin.so fileloggingplugin.so debugloggingplugin.so badwordscontentplugin.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 [ ! -d /etc/imspector ]; then
- mkdir -p /etc/imspector
- fi &&
- if [ ! -f /etc/imspector/imspector.conf ]; then
- install -m 644 imspector.conf /etc/imspector/imspector.conf
- fi &&
- if [ ! -f /etc/imspector/badwords.txt ]; then
- install -m 644 badwords.txt /etc/imspector/badwords.txt
- fi &&
- if [ ! -d /var/log/imspector ]; then
- mkdir -p /var/log/imspector &&
- chown imspector:imspector /var/log/imspector &&
- chmod 750 /var/log/imspector
- fi
+
+ patch_it $SOURCE2 1 &&
+ add_priv_user imspector:imspector &&
+
+ # Enable drop privs
+ sedit 's/^#user=/user=/' imspector.conf &&
+ sedit 's/^#group=/group=/' imspector.conf &&
+
+ if is_depends mysql; then
+ ADD_PLUGINS+=" mysqlloggingplugin.so"
+ fi &&
+
+ if is_depends sqlite; then
+ ADD_PLUGINS+=" sqliteloggingplugin.so"
+ fi &&
+
+ if is_depends postgresql; then
+ ADD_PLUGINS+=" postgresqlloggingplugin.so"
+ fi &&
+
+ sedit "/^PROTOCOL_PLUGINS/a ADD_PLUGINS \=$ADD_PLUGINS" Makefile &&
+
+ default_make &&
+ gather_docs imspector.conf
) > $C_FIFO 2>&1
diff --git a/chat/imspector/DEPENDS b/chat/imspector/DEPENDS
index ce2d383..d73f197 100644
--- a/chat/imspector/DEPENDS
+++ b/chat/imspector/DEPENDS
@@ -1,2 +1,4 @@
-optional_depends "mysql" "" "" "for MySQL support" &&
-optional_depends "sqlite" "" "" "for SQLite support"
+depends openssl
+optional_depends "mysql" "--with-mysql" "--without-mysql" "for MySQL support"
+optional_depends "sqlite" "--with-sqlite" "--without-sqlite" "for SQLite support"
+optional_depends "postgresql" "--with-postgresql" "--without-postgresql" "for PostgreSQL support"
diff --git a/chat/imspector/DETAILS b/chat/imspector/DETAILS
index e56d712..6e66459 100644
--- a/chat/imspector/DETAILS
+++ b/chat/imspector/DETAILS
@@ -1,11 +1,14 @@
MODULE=imspector
- VERSION=0.3
+ VERSION=0.6
SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE2=$MODULE-0.6-Makefile_add_etcdir.patch
SOURCE_URL=http://www.imspector.org/downloads/
- SOURCE_VFY=sha1:eee72eaaa7bc6202094cf6c1bcbd411b80e576a8
+ SOURCE2_URL=$PATCH_URL
+ SOURCE_VFY=sha1:37542d0e84945cde42ee595f9ab3dd8deea6e809
+ SOURCE2_VFY=sha1:934ec5bb2788aac148c1406c881081059ed9e7fb
WEB_SITE=http://www.imspector.org/
ENTERED=20061124
- UPDATED=20061210
+ UPDATED=20080709
SHORT="An Instant Messenger transparent proxy with logging capabilities"
cat << EOF
Instant Messenger transparent proxy with logging capabilities. Currently
More information about the Lunar-commits
mailing list