Quellcode durchsuchen

Changed module name back from CGPSNF to SNF4CGP.


git-svn-id: https://svn.microneil.com/svn/PKG-SNF4CGP-NIX/trunk@18 7ef522f6-be79-40a8-b7df-0a85b3383509
master
adeniz vor 15 Jahren
Ursprung
Commit
aee6258d93

+ 5
- 3
SNF4CGP_Developer_Package/DEVELOPER_NOTES Datei anzeigen

@@ -147,7 +147,9 @@ module):

make OTHER_CXXFLAGS='-Wall'

3) 'make module' (as root).
3) 'make module' (as root). This creates a tarball named
SNF4CGP-$(VERSION)-MODULE.tar.gz that contains the binary
CommuniGate Pro module.

Please note that the "make install" is not needed. If you accidently
run "make install", you can run "make uninstall" to remove the files
@@ -202,11 +204,11 @@ The CGP module tarball is created by commands in Makefile.am. Look
for a line beginning with "module:". The following line defines the
name of the module tarball:

MOD_TARBALL=CGPSNF-$(VERSION)-$(shell uname -s).tar.gz
MOD_TARBALL=SNF4CGP-$(VERSION)-$(shell uname -s).tar.gz

The following line defines the name of the module directory:

MOD_DIR=CGPSNF
MOD_DIR=SNF4CGP

The commands after the line beginning with "module:" create the module
tarball. Modify those commands to alter the content of the module

+ 28
- 29
SNF4CGP_Developer_Package/Doc/default.html Datei anzeigen

@@ -26,7 +26,6 @@
<LI><A href="#FreeBSD">Installing on a FreeBSD or OpenBSD System</A>
</UL>
<LI><A href="#Upgrading">Upgrading to a newer version</A>
<LI><A href="#Conf">Configuring the Sniffer Plugin</A>
<LI><A href="#Config">Configuring the Sniffer Plugin</A>
<LI><A href="#Test">Testing the Sniffer Plugin</A>
<LI><A href="#Options">Command line options</A>
@@ -70,36 +69,36 @@ CommuniGatePro version 5.2.3 or later.
<TR>
<TD ALIGN=CENTER>Microsoft Windows NT/2000/XP<BR>Microsoft Windows 95/98</TD>
<TD ALIGN=CENTER>x86</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-Win32-Intel.zip">
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/SNF4CGP-Win32-Intel.zip">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/CGPSNF-Win32-Intel.zip">
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/SNF4CGP-Win32-Intel.zip">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
</TR>

<TR>
<TD ALIGN=CENTER>Linux<BR>Kernel 2.6 (stdc++ library version = 6.0)</TD>
<TD ALIGN=CENTER>x86</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-Linux-Intel.tar.gz">
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/SNF4CGP-Linux-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/CGPSNF-Linux-Intel.tar.gz">
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/SNF4CGP-Linux-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
</TR>

<TR>
<TD ALIGN=CENTER>FreeBSD 7.x</TD>
<TD ALIGN=CENTER>x86</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-FreeBSD7-Intel.tar.gz">
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/SNF4CGP-FreeBSD7-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/CGPSNF-FreeBSD7-Intel.tar.gz">
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/SNF4CGP-FreeBSD7-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
</TR>

<TR>
<TD ALIGN=CENTER>OpenBSD 4.3</TD>
<TD ALIGN=CENTER>x86</TD>
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/CGPSNF-OpenBSD4.3-Intel.tar.gz">
<TD ALIGN=CENTER><A HREF="http://www.armresearch.com/pub/plugins/SNF4CGP-OpenBSD4.3-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/CGPSNF-OpenBSD4.3-Intel.tar.gz">
<TD ALIGN=CENTER><A HREF="ftp://ftp.armresearch.com/pub/plugins/SNF4CGP-OpenBSD4.3-Intel.tar.gz">
<IMG SRC="DownLoad.gif" BORDER=0 WIDTH=16 HEIGHT=16></A></TD>
</TR>

@@ -123,7 +122,7 @@ CommuniGatePro version 5.2.3 or later.
<LI>Open the command-line interface window and
change the current directory to the CommuniGate Pro <I>base directory</I>.
<LI>Use any &quot;unzip&quot;-type tool to unpack the
<TT>CGPSNF-Win32-Intel.zip</TT> file. The <TT>CGPSNF</TT> directory will be created inside the <I>base directory</I>.
<TT>SNF4CGP-Win32-Intel.zip</TT> file. The <TT>SNF4CGP</TT> directory will be created inside the <I>base directory</I>.
<LI>Proceed with <A HREF="#Config">Configuring the Sniffer Plugin</A>.
</UL>

@@ -133,9 +132,9 @@ CommuniGatePro version 5.2.3 or later.
<LI>Change the current directory to the CommuniGate Pro <I>base directory</I>.
<LI>Unpack the Plugin archive with the <TT>gtar</TT> command (or
with the <TT>gunzip</TT> and <TT>tar</TT> commands):<TT><BR>
&nbsp;&nbsp;gunzip CGPSNF-FreeBSD-Intel.tar.gz<BR>
&nbsp;&nbsp;tar -xf CGPSNF-FreeBSD-Intel.tar</TT><BR>
The <TT>CGPSNF</TT> directory will be created inside the <I>base directory</I>.
&nbsp;&nbsp;gunzip SNF4CGP-FreeBSD-Intel.tar.gz<BR>
&nbsp;&nbsp;tar -xf SNF4CGP-FreeBSD-Intel.tar</TT><BR>
The <TT>SNF4CGP</TT> directory will be created inside the <I>base directory</I>.
<LI>Proceed with <A HREF="#Config">Configuring the Sniffer Plugin</A>.
</UL>

@@ -145,15 +144,15 @@ CommuniGatePro version 5.2.3 or later.
<LI>Change the current directory to the CommuniGate Pro <I>base directory</I>.
<LI>Unpack the Plugin archive with the <TT>gtar</TT> command (or
with the <TT>gunzip</TT> and <TT>tar</TT> commands):<TT><BR>
&nbsp;&nbsp;gunzip CGPSNF-FreeBSD-Intel.tar.gz<BR>
&nbsp;&nbsp;tar -xf CGPSNF-FreeBSD-Intel.tar</TT><BR>
The <TT>CGPSNF</TT> directory will be created inside the <I>base directory</I>.
&nbsp;&nbsp;gunzip SNF4CGP-FreeBSD-Intel.tar.gz<BR>
&nbsp;&nbsp;tar -xf SNF4CGP-FreeBSD-Intel.tar</TT><BR>
The <TT>SNF4CGP</TT> directory will be created inside the <I>base directory</I>.
<LI>Proceed with <A HREF="#Config">Configuring the Sniffer Plugin</A>.
</UL>

<H3><HR><A name=Config></A>Configuring the Sniffer Plugin.</H3>

<P>In the module directory (<TT>/var/CommuniGate/CGPSNF</TT> on a
<P>In the module directory (<TT>/var/CommuniGate/SNF4CGP</TT> on a
Linux or Linux-like system):
<UL>
<LI>Copy the configuration file <TT><BR>
@@ -210,7 +209,7 @@ CommuniGatePro version 5.2.3 or later.
This downloads the Sniffer database to the plugin directory.
</UL>

The <B><TT>CGPSNF</TT></B> program automatically updates the
The <B><TT>SNF4CGP</TT></B> program automatically updates the
Sniffer database as needed.

<LI>Proceed with <A HREF="#Test">Testing the Sniffer Plugin</A>.
@@ -222,31 +221,31 @@ CommuniGatePro version 5.2.3 or later.
<P>On Windows System:
<!--
<UL>
<LI>Launch the <TT>CGPSNF.exe</TT> application by typing:<TT><BR>
&nbsp;&nbsp;CGPSNF\CGPSNF.exe CGPSNF\snf_engine.xml</TT><BR>
<LI>Launch the <TT>SNF4CGP.exe</TT> application by typing:<TT><BR>
&nbsp;&nbsp;SNF4CGP\SNF4CGP.exe SNF4CGP\snf_engine.xml</TT><BR>
It will report the Plugin version number and build date.<BR>

<LI>Type:<TT><BR>
&nbsp;&nbsp;1 FILE CGPSNF\junkmsg.msg</TT><BR>
&nbsp;&nbsp;1 FILE SNF4CGP\junkmsg.msg</TT><BR>
The plugin should report that the file is spam.
<LI>Quit <TT>CGPSNF.exe</TT> by typing Ctrl-Z.
<LI>Quit <TT>SNF4CGP.exe</TT> by typing Ctrl-Z.
</UL>
-->

<P>On a Unix System:
<UL>
<LI> Change to the module directory:<TT><BR>
&nbsp;&nbsp;cd /var/CommuniGate/CGPSNF</TT><BR>
&nbsp;&nbsp;cd /var/CommuniGate/SNF4CGP</TT><BR>

<LI>Launch the <TT>CGPSNF</TT> application by typing:<TT><BR>
&nbsp;&nbsp;./CGPSNF snf_engine.xml</TT><BR>
<LI>Launch the <TT>SNF4CGP</TT> application by typing:<TT><BR>
&nbsp;&nbsp;./SNF4CGP snf_engine.xml</TT><BR>
It will report the Plugin version number and build date.<BR>

<LI>Type:<TT><BR>
&nbsp;&nbsp;1 FILE junkmsg.txt</TT><BR>
the plugin should report that the file is spam.

<LI>Quit <TT>CGPSNF</TT> by typing Ctrl-D.
<LI>Quit <TT>SNF4CGP</TT> by typing Ctrl-D.
</UL>

<H3><HR><A NAME="Options"></A>Command Line Options</H3>
@@ -283,7 +282,7 @@ Create the Helper as follows:
</TR><TR>
<td align="right" width="25%">Log Level:</td><td><select name="L3"><option value="0">Crashes Only</option><option value="1">Failures</option><option value="2">Major &amp; Failures</option><option value="3">Problems</option><option value="4" selected="selected">Low Level</option><option value="5">All Info</option></select></td>
<td align="right" width="25%">Program Path:</td><td><input name="P3"
value="CGPSNF/CGPSNF /var/CommuniGate/CGPSNF/snf_engine.xml" size="30" maxlength="255" type="text" /></td>
value="SNF4CGP/SNF4CGP /var/CommuniGate/SNF4CGP/snf_engine.xml" size="30" maxlength="255" type="text" /></td>

</TR><TR>
<TD ALIGN=RIGHT>Time-out:</TD><TD><SELECT NAME="T0"><OPTION VALUE=0>disabled<OPTION VALUE="15">15 seconds<OPTION VALUE="30">30 seconds<OPTION VALUE="60">minute<OPTION VALUE="120">2 minutes<OPTION VALUE="180">3 minutes<OPTION VALUE="300" SELECTED>5 minutes<OPTION VALUE="600">10 minutes<OPTION VALUE="900">15 minutes<OPTION VALUE="1800">30 minutes<OPTION VALUE="3600">hour</SELECT></TD>
@@ -295,10 +294,10 @@ Create the Helper as follows:


<B>Note:</B> For Windows system the Program Path shold be
<TT>CGPSNF\CGPSNF.exe CGPSNF\snf_engine.xml</TT><BR>
<TT>SNF4CGP\SNF4CGP.exe SNF4CGP\snf_engine.xml</TT><BR>
<B>Note:</B> On some versions of FreeBSD system you may need to
specify the full path to the program,
i.e. <tt>/var/CommuniGate/CGPSNF/CGPSNF /var/CommuniGate/CGPSNF/snf_engine.xml</tt>
i.e. <tt>/var/CommuniGate/SNF4CGP/SNF4CGP /var/CommuniGate/SNF4CGP/snf_engine.xml</tt>

<P>The recommended Scanning Rule is as follows:</P>


+ 26
- 23
SNF4CGP_Developer_Package/Makefile.am Datei anzeigen

@@ -37,28 +37,31 @@ EXTRA_DIST = \
Doc/DownLoad.gif \
Doc/default.html

MOD_DIR=CGPSNF
MOD_TARBALL=CGPSNF-$(VERSION)-$(shell uname -s).tar.gz
TEMP_DIR=SNF4CGP-TEMP
MOD_DIR=SNF4CGP
MOD_PATH=$(TEMP_DIR)/$(MOD_DIR)
MOD_TARBALL=SNF4CGP-$(VERSION)-MODULE.tar.gz
module:
rm -rf $(MOD_DIR)
mkdir $(MOD_DIR)
chmod 2770 $(MOD_DIR)
mkdir $(MOD_DIR)/hold $(MOD_DIR)/Doc
cp SNF4CGP/SNF4CGP $(MOD_DIR)/CGPSNF
cp SNFClient/SNFClient $(MOD_DIR)
cp SNF2Check/SNF2Check $(MOD_DIR)
cp Scripts/getRulebase.sample $(MOD_DIR)
cp Scripts/junkmsg.txt $(MOD_DIR)
cp Scripts/cleanmsg.txt $(MOD_DIR)
cp config_files/GBUdbIgnoreList.txt.sample $(MOD_DIR)
cp config_files/snf_engine.xml.sample $(MOD_DIR)
cp config_files/identity.xml.sample $(MOD_DIR)
cp Doc/AdminStyle.css $(MOD_DIR)/Doc
cp Doc/GuideStyle.css $(MOD_DIR)/Doc
cp Doc/CGPLogo.gif $(MOD_DIR)/Doc
cp Doc/DownLoad.gif $(MOD_DIR)/Doc
cp Doc/default.html $(MOD_DIR)/Doc
chown -R root:mail $(MOD_DIR)
tar czvf $(MOD_TARBALL) ./$(MOD_DIR)
rm -rf $(MOD_DIR)
rm -rf $(TEMP_DIR)
mkdir $(TEMP_DIR)
mkdir $(MOD_PATH)
chmod 2770 $(MOD_PATH)
mkdir $(MOD_PATH)/hold $(MOD_PATH)/Doc
cp SNF4CGP/SNF4CGP $(MOD_PATH)
cp SNFClient/SNFClient $(MOD_PATH)
cp SNF2Check/SNF2Check $(MOD_PATH)
cp Scripts/getRulebase.sample $(MOD_PATH)
cp Scripts/junkmsg.txt $(MOD_PATH)
cp Scripts/cleanmsg.txt $(MOD_PATH)
cp config_files/GBUdbIgnoreList.txt.sample $(MOD_PATH)
cp config_files/snf_engine.xml.sample $(MOD_PATH)
cp config_files/identity.xml.sample $(MOD_PATH)
cp Doc/AdminStyle.css $(MOD_PATH)/Doc
cp Doc/GuideStyle.css $(MOD_PATH)/Doc
cp Doc/CGPLogo.gif $(MOD_PATH)/Doc
cp Doc/DownLoad.gif $(MOD_PATH)/Doc
cp Doc/default.html $(MOD_PATH)/Doc
chown -R root:mail $(MOD_PATH)
(cd $(TEMP_DIR); tar czvf ../$(MOD_TARBALL) ./$(MOD_DIR))
rm -rf $(TEMP_DIR)
@echo "Created the CommuniGate Pro module in $(MOD_TARBALL)"

+ 1
- 1
SNF4CGP_Developer_Package/Scripts/Makefile.am Datei anzeigen

@@ -2,7 +2,7 @@
##
## $Id: Makefile.am,v 1.30 2007/10/26 17:50:49 adeniz Exp $
##
## automake input for the ARM Research CGPSNF scripts.
## automake input for the ARM Research SNF4CGP scripts.
##
## Author: Alban Deniz
##

+ 3
- 3
SNF4CGP_Developer_Package/Scripts/getRulebase.in Datei anzeigen

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Script to download a rulebase for CGPSNF.
# Script to download a rulebase for SNF4CGP.
#
# Copyright (C) 2009 by MicroNeil Corporation. All rights reserved.
## See www.armresearch.com for the copyright terms.
@@ -10,7 +10,7 @@
# Replace authenticationxx and licensid with your license info.
#

SNIFFER_PATH=/var/CommuniGate/CGPSNF
SNIFFER_PATH=/var/CommuniGate/SNF4CGP
SNF2CHECK=$SNIFFER_PATH/SNF2Check
AUTHENTICATION=authenticationxx
LICENSE_ID=licenseid
@@ -25,7 +25,7 @@ if [ -e UpdateReady.txt ] && [ ! -e UpdateReady.lck ]; then

# Uncomment the following line if more than one process might
# launch this script. Leave it commented out if this script will
# normally be run by the <update-script/> mechanism in CGPSNF
# normally be run by the <update-script/> mechanism in SNF4CGP
# touch UpdateReady.lck

curl http://www.sortmonster.net/Sniffer/Updates/$LICENSE_ID.snf --output $LICENSE_ID.new --compressed --user sniffer:ki11sp8m --remote-time --fail

+ 1
- 1
SNF4CGP_Developer_Package/cleanForDist Datei anzeigen

@@ -12,4 +12,4 @@
make distclean
find . -name '*~' -exec rm {} \;
find . -name Makefile.in -exec rm {} \;
rm -rf config autom4te.cache configure config.h* aclocal.m4 snf4cgp-* CGPSNF-*
rm -rf config autom4te.cache configure config.h* aclocal.m4 snf4cgp-* SNF4CGP-*

+ 5
- 5
SNF4CGP_Developer_Package/config_files/snf_engine.xml.sample.in Datei anzeigen

@@ -2,12 +2,12 @@
<!-- http://www.armresearch.com/support/articles/software/snfServer/config/snfEngine.jsp -->
<snf>
<node identity='/var/CommuniGate/CGPSNF/identity.xml'>
<node identity='/var/CommuniGate/SNF4CGP/identity.xml'>
<paths>
<log path='/var/CommuniGate/CGPSNF/'/>
<rulebase path='/var/CommuniGate/CGPSNF/'/>
<workspace path='/var/CommuniGate/CGPSNF/'/>
<log path='/var/CommuniGate/SNF4CGP/'/>
<rulebase path='/var/CommuniGate/SNF4CGP/'/>
<workspace path='/var/CommuniGate/SNF4CGP/'/>
</paths>
<logs>
@@ -66,7 +66,7 @@
<network>
<sync secs='30' host='sync.messagesniffer.net' port='25'/>
<update-script on-off='on' call='/var/CommuniGate/CGPSNF/getRulebase' guard-time='180'/>
<update-script on-off='on' call='/var/CommuniGate/SNF4CGP/getRulebase' guard-time='180'/>
</network>
<xci on-off='on' port='9001'/>

Laden…
Abbrechen
Speichern