Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2008 11:44:49 GMT
From:      Ilja Dejs <ilja.dejs@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/121780: [New port] net-im/imspector
Message-ID:  <200803171144.m2HBin8R018409@www.freebsd.org>
Resent-Message-ID: <200803171150.m2HBo21K062325@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121780
>Category:       ports
>Synopsis:       [New port] net-im/imspector
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 17 11:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Ilja Dejs
>Release:        FreeBSD 6.2
>Organization:
>Environment:
FreeBSD ice.takt.ncts.ru 6.2-RELEASE FreeBSD 6.2-RELEASE #5: Wed Jan 16 14:25:10 SAMT 2008     ice@:/usr/src/sys/i386/compile/ICE  i386
>Description:
IMSpector is an Instant Messenger transparent proxy with monitoring and blocking, and content-filtering capabilities. Currently it supports MSN, AIM, ICQ, Yahoo, IRC and Gadu-gadu to different degrees. MSN is the principle protocol, as it's the most popular these days, at least in the UK, where I'm based. The supported platform are at present Linux and BSD when using the pf firewall, but porting to other UNIXs should be trivial (the only platform-specific code is the routine which determines the original destination address). It is able to log to plain files, as well as several types of SQL database including MySQL, SQLite and PostreSQL.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/net-im/imspector
#	/usr/ports/net-im/imspector/Makefile
#	/usr/ports/net-im/imspector/pkg-descr
#	/usr/ports/net-im/imspector/pkg-plist
#	/usr/ports/net-im/imspector/distinfo
#	/usr/ports/net-im/imspector/files
#	/usr/ports/net-im/imspector/files/patch-Makefile
#	/usr/ports/net-im/imspector/files/patch-main.cpp
#	/usr/ports/net-im/imspector/files/patch-imspector.conf
#
echo c - /usr/ports/net-im/imspector
mkdir -p /usr/ports/net-im/imspector > /dev/null 2>&1
echo x - /usr/ports/net-im/imspector/Makefile
sed 's/^X//' >/usr/ports/net-im/imspector/Makefile << 'END-of-/usr/ports/net-im/imspector/Makefile'
X# New ports collection makefile for:   	imspector
X# Date created:        			17 March 2008
X# Whom:            			Ilja Dejs <ilja.dejs@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      imspector
XPORTVERSION=   0.5
XCATEGORIES=    net-im
XMASTER_SITES=  http://www.imspector.org/downloads/
X
XMAINTAINER=    lawrence@aslak.net
X
X.include <bsd.port.mk>
END-of-/usr/ports/net-im/imspector/Makefile
echo x - /usr/ports/net-im/imspector/pkg-descr
sed 's/^X//' >/usr/ports/net-im/imspector/pkg-descr << 'END-of-/usr/ports/net-im/imspector/pkg-descr'
XIMSpector is an Instant Messenger transparent proxy with monitoring 
Xand blocking, and content-filtering capabilities. 
X
X WWW: http://www.imspector.org/
X 
X - Dejs Ilja
X ilja.dejs@gmail.com
END-of-/usr/ports/net-im/imspector/pkg-descr
echo x - /usr/ports/net-im/imspector/pkg-plist
sed 's/^X//' >/usr/ports/net-im/imspector/pkg-plist << 'END-of-/usr/ports/net-im/imspector/pkg-plist'
Xetc/imspector/acl.txt
Xetc/imspector/badwords.txt
Xetc/imspector/imspector.conf
Xsbin/imspector
Xlib/imspector/aclfilterplugin.so
Xlib/imspector/badwordsfilterplugin.so
Xlib/imspector/debugloggingplugin.so
Xlib/imspector/fileloggingplugin.so
Xlib/imspector/ggprotocolplugin.so
Xlib/imspector/icqprotocolplugin.so
Xlib/imspector/ircprotocolplugin.so
Xlib/imspector/miscfilterplugin.so
Xlib/imspector/msnprotocolplugin.so
Xlib/imspector/yahooprotocolplugin.so
Xlib/libimspector.so
X@dirrm etc/imspector
END-of-/usr/ports/net-im/imspector/pkg-plist
echo x - /usr/ports/net-im/imspector/distinfo
sed 's/^X//' >/usr/ports/net-im/imspector/distinfo << 'END-of-/usr/ports/net-im/imspector/distinfo'
XMD5 (imspector-0.5.tar.gz) = fce590f4cc9e420624fb417f27750dc9
XSHA256 (imspector-0.5.tar.gz) = e40c1e2dfda2602442d2d17306b2a6e39a526d5a17a9c1174858acb639ec1552
XSIZE (imspector-0.5.tar.gz) = 39865
END-of-/usr/ports/net-im/imspector/distinfo
echo c - /usr/ports/net-im/imspector/files
mkdir -p /usr/ports/net-im/imspector/files > /dev/null 2>&1
echo x - /usr/ports/net-im/imspector/files/patch-Makefile
sed 's/^X//' >/usr/ports/net-im/imspector/files/patch-Makefile << 'END-of-/usr/ports/net-im/imspector/files/patch-Makefile'
X--- Makefile	Thu Mar 13 20:55:41 2008
X+++ Makefile	Mon Mar 17 15:08:20 2008
X@@ -1,13 +1,4 @@
X-DESTDIR = /
X-PREFIX = /usr
X-
X-##########
X-# If using FreeBSD or OpenBSD COMMENT the below lines
X-LIBS = -ldl
X-
X-# For any distro
X-#ADD_PLUGINS = mysqlloggingplugin.so sqliteloggingplugin.so postgresqlloggingplugin.so dbfilterplugin.so
X-##########
X+PREFIX = /usr/local
X 
X CXX = g++
X 
X@@ -115,21 +106,21 @@
X 	$(CXX) $(CXXFLAGS) dbfilterplugin.cpp -c -I$(PREFIX)/include
X 
X install: imspector libimspector.so $(PLUGINS)
X-	-mkdir -p $(DESTDIR)/$(PREFIX)/sbin
X-	-mkdir -p $(DESTDIR)/$(PREFIX)/lib/imspector
X-	-install imspector $(DESTDIR)/$(PREFIX)/sbin/imspector
X-	-install libimspector.so $(DESTDIR)/$(PREFIX)/lib/libimspector.so
X+	-mkdir -p $(PREFIX)/sbin
X+	-mkdir -p $(PREFIX)/lib/imspector
X+	-install imspector $(PREFIX)/sbin/imspector
X+	-install libimspector.so $(PREFIX)/lib/libimspector.so
X 	-(for PLUGIN in $(PLUGINS); do \
X-		install $$PLUGIN $(DESTDIR)/$(PREFIX)/lib/imspector/$$PLUGIN; \
X+		install $$PLUGIN $(PREFIX)/lib/imspector/$$PLUGIN; \
X 	done);
X-	-mkdir -p $(DESTDIR)/$(PREFIX)/etc/imspector
X-	-install imspector.conf $(DESTDIR)/$(PREFIX)/etc/imspector/imspector.conf
X-	-install badwords.txt $(DESTDIR)/$(PREFIX)/etc/imspector/badwords.txt
X-	-install acl.txt $(DESTDIR)/$(PREFIX)/etc/imspector/acl.txt
X+	-mkdir -p $(PREFIX)/etc/imspector
X+	-install imspector.conf $(PREFIX)/etc/imspector/imspector.conf
X+	-install badwords.txt $(PREFIX)/etc/imspector/badwords.txt
X+	-install acl.txt $(PREFIX)/etc/imspector/acl.txt
X 	-mkdir -p /var/log/imspector
X 
X uninstall:
X-	-rm -f $(DESTDIR)/$(PREFIX)/sbin/imspector
X-	-rm -f $(DESTDIR)/$(PREFIX)/lib/libimspector.so
X-	-rm -rf $(DESTDIR)/$(PREFIX)/usr/lib/imspector
X-	-rm -rf $(DESTDIR)/$(PREFIX)/etc/imspector
X+	-rm -f $(PREFIX)/sbin/imspector
X+	-rm -f $(PREFIX)/lib/libimspector.so
X+	-rm -rf $(PREFIX)/usr/lib/imspector
X+	-rm -rf $(PREFIX)/etc/imspector
END-of-/usr/ports/net-im/imspector/files/patch-Makefile
echo x - /usr/ports/net-im/imspector/files/patch-main.cpp
sed 's/^X//' >/usr/ports/net-im/imspector/files/patch-main.cpp << 'END-of-/usr/ports/net-im/imspector/files/patch-main.cpp'
X--- main.cpp	Thu Mar 13 20:55:41 2008
X+++ main.cpp	Mon Mar 17 15:07:27 2008
X@@ -9,9 +9,9 @@
X 
X #include "imspector.h"
X 
X-#define DEFAULT_CONFIG "/usr/etc/imspector/imspector.conf"
X+#define DEFAULT_CONFIG "/usr/local/etc/imspector/imspector.conf"
X #define LOGGING_SOCKET "/tmp/.imspectorlog"
X-#define DEFAULT_PLUGIN_DIR "/usr/lib/imspector"
X+#define DEFAULT_PLUGIN_DIR "/usr/local/lib/imspector"
X 
X std::vector<class ProtocolPlugin> protocolplugins;
X std::vector<class FilterPlugin> filterplugins;
END-of-/usr/ports/net-im/imspector/files/patch-main.cpp
echo x - /usr/ports/net-im/imspector/files/patch-imspector.conf
sed 's/^X//' >/usr/ports/net-im/imspector/files/patch-imspector.conf << 'END-of-/usr/ports/net-im/imspector/files/patch-imspector.conf'
X--- imspector.conf	Thu Mar 13 20:55:41 2008
X+++ imspector.conf	Mon Mar 17 15:07:27 2008
X@@ -2,7 +2,7 @@
X #port=16667
X 
X # This is the default location of protocol and logging plugins.
X-#plugin_dir=/usr/lib/imspector
X+#plugin_dir=/usr/local/lib/imspector
X 
X # For dropping privs - you probably want to do this.
X #user=imspector
X@@ -19,7 +19,7 @@
X gg_protocol=on
X 
X # Bad words filtering
X-#badwords_filename=/etc/imspector/badwords.txt
X+#badwords_filename=/usr/local/etc/imspector/badwords.txt
X #badwords_replace_character=*
X #badwords_block_count=1
X 
END-of-/usr/ports/net-im/imspector/files/patch-imspector.conf
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803171144.m2HBin8R018409>