mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
IMSpector is an Instant Messenger transparent proxy with monitoring,
blocking, and content-filtering capabilities. WWW: http://www.imspector.org/ - Dejs Ilja ilja.dejs@gmail.com PR: ports/121778 Submitted by: Ilja Dejs <ilja.dejs at gmail.com>
This commit is contained in:
parent
368ba2cc46
commit
0c50a725e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209345
@ -43,6 +43,7 @@
|
||||
SUBDIR += icqlib
|
||||
SUBDIR += icqnd
|
||||
SUBDIR += imcom
|
||||
SUBDIR += imspector
|
||||
SUBDIR += iserverd
|
||||
SUBDIR += jabber
|
||||
SUBDIR += jabber-pyaim
|
||||
|
37
net-im/imspector/Makefile
Normal file
37
net-im/imspector/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# New ports collection makefile for: imspector
|
||||
# Date created: 17 March 2008
|
||||
# Whom: Ilja Dejs <ilja.dejs@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= imspector
|
||||
PORTVERSION= 0.5
|
||||
CATEGORIES= net-im
|
||||
MASTER_SITES= http://www.imspector.org/downloads/
|
||||
|
||||
MAINTAINER= lawrence@aslak.net
|
||||
COMMENT= IM transparent proxy with monitoring, blocking, and content-filtering supports
|
||||
|
||||
CFLAGS+= -fPIC
|
||||
|
||||
CONFIG_FILES= imspector.conf badwords.txt acl.txt
|
||||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
MAKE_ENV+= ETCDIR=${ETCDIR}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
|
||||
${WRKSRC}/imspector.conf \
|
||||
${WRKSRC}/main.cpp
|
||||
post-install:
|
||||
.for f in ${CONFIG_FILES}
|
||||
@if [ ! -f ${ETCDIR}/${f} ]; then \
|
||||
${CP} -p ${ETCDIR}/${f}.sample ${ETCDIR}/${f} ; \
|
||||
fi
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
net-im/imspector/distinfo
Normal file
3
net-im/imspector/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (imspector-0.5.tar.gz) = fce590f4cc9e420624fb417f27750dc9
|
||||
SHA256 (imspector-0.5.tar.gz) = e40c1e2dfda2602442d2d17306b2a6e39a526d5a17a9c1174858acb639ec1552
|
||||
SIZE (imspector-0.5.tar.gz) = 39865
|
30
net-im/imspector/files/imspector.in
Normal file
30
net-im/imspector/files/imspector.in
Normal file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: imspector
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# imspector_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable imspector.
|
||||
# imspector_config (path): Set to %%PREFIX%%/etc/imspector/imspector.conf
|
||||
# by default.
|
||||
#
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="imspector"
|
||||
rcvar=${name}_enable
|
||||
|
||||
command=%%PREFIX%%/sbin/${name}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${imspector_enable="NO"}
|
||||
: ${imspector_config="%%PREFIX%%/etc/imspector/imspector.conf"}
|
||||
|
||||
command_args="-c $imspector_config"
|
||||
|
||||
run_rc_command "$1"
|
51
net-im/imspector/files/patch-Makefile
Normal file
51
net-im/imspector/files/patch-Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
--- Makefile.orig 2008-03-14 00:55:41.000000000 +0800
|
||||
+++ Makefile 2008-03-17 21:14:55.000000000 +0800
|
||||
@@ -1,19 +1,19 @@
|
||||
-DESTDIR = /
|
||||
-PREFIX = /usr
|
||||
+DESTDIR ?= /
|
||||
+PREFIX ?= /usr
|
||||
|
||||
##########
|
||||
# If using FreeBSD or OpenBSD COMMENT the below lines
|
||||
-LIBS = -ldl
|
||||
+#LIBS = -ldl
|
||||
|
||||
# For any distro
|
||||
#ADD_PLUGINS = mysqlloggingplugin.so sqliteloggingplugin.so postgresqlloggingplugin.so dbfilterplugin.so
|
||||
##########
|
||||
|
||||
-CXX = g++
|
||||
+CXX ?= g++
|
||||
|
||||
-CXXFLAGS = -Wall -O2 -fPIC
|
||||
+CXXFLAGS ?= -Wall -O2 -fPIC
|
||||
|
||||
-PLUGIN_FLAGS = $(LIBS) -fPIC -shared -Wl,-soname,$@ -o $@
|
||||
+PLUGIN_FLAGS ?= $(LIBS) -fPIC -shared -Wl,-soname,$@ -o $@
|
||||
|
||||
IMSPECTOR_OBJS = main.o protocolplugin.o loggingplugin.o filterplugin.o
|
||||
|
||||
@@ -117,15 +117,15 @@
|
||||
install: imspector libimspector.so $(PLUGINS)
|
||||
-mkdir -p $(DESTDIR)/$(PREFIX)/sbin
|
||||
-mkdir -p $(DESTDIR)/$(PREFIX)/lib/imspector
|
||||
- -install imspector $(DESTDIR)/$(PREFIX)/sbin/imspector
|
||||
- -install libimspector.so $(DESTDIR)/$(PREFIX)/lib/libimspector.so
|
||||
+ -${BSD_INSTALL_PROGRAM} imspector $(DESTDIR)/$(PREFIX)/sbin/imspector
|
||||
+ -${BSD_INSTALL_PROGRAM} libimspector.so $(DESTDIR)/$(PREFIX)/lib/libimspector.so
|
||||
-(for PLUGIN in $(PLUGINS); do \
|
||||
- install $$PLUGIN $(DESTDIR)/$(PREFIX)/lib/imspector/$$PLUGIN; \
|
||||
+ ${BSD_INSTALL_PROGRAM} $$PLUGIN $(DESTDIR)/$(PREFIX)/lib/imspector/$$PLUGIN; \
|
||||
done);
|
||||
- -mkdir -p $(DESTDIR)/$(PREFIX)/etc/imspector
|
||||
- -install imspector.conf $(DESTDIR)/$(PREFIX)/etc/imspector/imspector.conf
|
||||
- -install badwords.txt $(DESTDIR)/$(PREFIX)/etc/imspector/badwords.txt
|
||||
- -install acl.txt $(DESTDIR)/$(PREFIX)/etc/imspector/acl.txt
|
||||
+ -mkdir -p $(DESTDIR)/${ETCDIR}
|
||||
+ -${BSD_INSTALL_DATA} imspector.conf $(DESTDIR)/${ETCDIR}/imspector.conf.sample
|
||||
+ -${BSD_INSTALL_DATA} badwords.txt $(DESTDIR)/${ETCDIR}/badwords.txt.sample
|
||||
+ -${BSD_INSTALL_DATA} acl.txt $(DESTDIR)/${ETCDIR}/acl.txt.sample
|
||||
-mkdir -p /var/log/imspector
|
||||
|
||||
uninstall:
|
20
net-im/imspector/files/patch-imspector.conf
Normal file
20
net-im/imspector/files/patch-imspector.conf
Normal file
@ -0,0 +1,20 @@
|
||||
--- imspector.conf Thu Mar 13 20:55:41 2008
|
||||
+++ imspector.conf Mon Mar 17 15:07:27 2008
|
||||
@@ -2,7 +2,7 @@
|
||||
#port=16667
|
||||
|
||||
# This is the default location of protocol and logging plugins.
|
||||
-#plugin_dir=/usr/lib/imspector
|
||||
+#plugin_dir=%%PREFIX%%/lib/imspector
|
||||
|
||||
# For dropping privs - you probably want to do this.
|
||||
#user=imspector
|
||||
@@ -19,7 +19,7 @@
|
||||
gg_protocol=on
|
||||
|
||||
# Bad words filtering
|
||||
-#badwords_filename=/etc/imspector/badwords.txt
|
||||
+#badwords_filename=%%PREFIX%%/etc/imspector/badwords.txt
|
||||
#badwords_replace_character=*
|
||||
#badwords_block_count=1
|
||||
|
14
net-im/imspector/files/patch-main.cpp
Normal file
14
net-im/imspector/files/patch-main.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
--- main.cpp Thu Mar 13 20:55:41 2008
|
||||
+++ main.cpp Mon Mar 17 15:07:27 2008
|
||||
@@ -9,9 +9,9 @@
|
||||
|
||||
#include "imspector.h"
|
||||
|
||||
-#define DEFAULT_CONFIG "/usr/etc/imspector/imspector.conf"
|
||||
+#define DEFAULT_CONFIG "%%PREFIX%%/etc/imspector/imspector.conf"
|
||||
#define LOGGING_SOCKET "/tmp/.imspectorlog"
|
||||
-#define DEFAULT_PLUGIN_DIR "/usr/lib/imspector"
|
||||
+#define DEFAULT_PLUGIN_DIR "%%PREFIX%%/lib/imspector"
|
||||
|
||||
std::vector<class ProtocolPlugin> protocolplugins;
|
||||
std::vector<class FilterPlugin> filterplugins;
|
7
net-im/imspector/pkg-descr
Normal file
7
net-im/imspector/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
IMSpector is an Instant Messenger transparent proxy with monitoring,
|
||||
blocking, and content-filtering capabilities.
|
||||
|
||||
WWW: http://www.imspector.org/
|
||||
|
||||
- Dejs Ilja
|
||||
ilja.dejs@gmail.com
|
23
net-im/imspector/pkg-plist
Normal file
23
net-im/imspector/pkg-plist
Normal file
@ -0,0 +1,23 @@
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/acl.txt.sample %D/%%ETCDIR%%/acl.txt; then rm -f %D/%%ETCDIR%%/acl.txt; fi
|
||||
%%ETCDIR%%/acl.txt.sample
|
||||
@exec if [ ! -f %D/%%ETCDIR%%/acl.txt ] ; then cp -p %D/%F %B/acl.txt; fi
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/badwords.txt.sample %D/%%ETCDIR%%/badwords.txt; then rm -f %D/%%ETCDIR%%/badwords.txt; fi
|
||||
%%ETCDIR%%/badwords.txt.sample
|
||||
@exec if [ ! -f %D/%%ETCDIR%%/badwords.txt ] ; then cp -p %D/%F %B/badwords.txt; fi
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/imspector.conf.sample %D/%%ETCDIR%%/imspector.conf; then rm -f %D/%%ETCDIR%%/imspector.conf; fi
|
||||
%%ETCDIR%%/imspector.conf.sample
|
||||
@exec if [ ! -f %D/%%ETCDIR%%/imspector.conf ] ; then cp -p %D/%F %B/imspector.conf; fi
|
||||
lib/imspector/aclfilterplugin.so
|
||||
lib/imspector/badwordsfilterplugin.so
|
||||
lib/imspector/debugloggingplugin.so
|
||||
lib/imspector/fileloggingplugin.so
|
||||
lib/imspector/ggprotocolplugin.so
|
||||
lib/imspector/icqprotocolplugin.so
|
||||
lib/imspector/ircprotocolplugin.so
|
||||
lib/imspector/miscfilterplugin.so
|
||||
lib/imspector/msnprotocolplugin.so
|
||||
lib/imspector/yahooprotocolplugin.so
|
||||
lib/libimspector.so
|
||||
sbin/imspector
|
||||
@dirrmtry etc/imspector
|
||||
@dirrm lib/imspector
|
Loading…
Reference in New Issue
Block a user