[csw-devel] SF.net SVN: gar:[2804] csw/mgar/pkg/dcc/trunk

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Tue Jan 13 14:59:14 CET 2009


Revision: 2804
          http://gar.svn.sourceforge.net/gar/?rev=2804&view=rev
Author:   bonivart
Date:     2009-01-13 13:59:13 +0000 (Tue, 13 Jan 2009)

Log Message:
-----------
dcc: added doc files

Modified Paths:
--------------
    csw/mgar/pkg/dcc/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/dcc/trunk/files/CSWdcc.INSTALL.CSW.txt
    csw/mgar/pkg/dcc/trunk/files/CSWdcc.dcc.xml
    csw/mgar/pkg/dcc/trunk/files/CSWdcc.svc-dcc

Modified: csw/mgar/pkg/dcc/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dcc/trunk/Makefile	2009-01-13 08:18:31 UTC (rev 2803)
+++ csw/mgar/pkg/dcc/trunk/Makefile	2009-01-13 13:59:13 UTC (rev 2804)
@@ -2,7 +2,7 @@
 GARVERSION = 1.3.102
 CATEGORIES = net
 
-DESCRIPTION = email greylisting and a cooperative, distributed system to identify spam
+DESCRIPTION = E-mail greylisting and a cooperative, distributed system to identify spam
 
 MASTER_SITES = http://www.rhyolite.com/dcc/source/
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.Z
@@ -32,6 +32,7 @@
 REQUIRED_PKGS = CSWcswclassutils
 SPKG_CLASSES = none cswcpsampleconf
 CONFFILES =  dcc_conf flod grey_flod grey_whitelist ids map map.txt whiteclnt whitecommon whitelist
+DOCFILES = CHANGES FAQ.txt INSTALL.txt LICENSE RESTRICTIONS misc/README misc/dcc.m4 misc/dccdnsbl.m4 misc/site.config.m4
 
 include gar/category.mk
 
@@ -46,5 +47,10 @@
 	   mv tmp.sed Makefile ; \
 	   cd .. ; \
 	   gmake install )
-	$(foreach FILE, $(CONFFILES), mv $(DESTDIR)/var/opt/csw/$(GARNAME)/$(FILE) $(DESTDIR)/var/opt/csw/$(GARNAME)/$(FILE).CSW ;)
+	@$(foreach FILE, $(CONFFILES), mv $(DESTDIR)/var/opt/csw/$(GARNAME)/$(FILE) $(DESTDIR)/var/opt/csw/$(GARNAME)/$(FILE).CSW ;)
+	@ginstall -d $(DESTDIR)$(docdir)/$(GARNAME)/misc
+	@$(foreach FILE, $(DOCFILES), cp $(WORKSRC)/$(FILE) $(DESTDIR)$(docdir)/$(GARNAME)/$(FILE) ;)
+	@cp $(FILEDIR)/CSWdcc.INSTALL.CSW.txt $(DESTDIR)$(docdir)/$(GARNAME)/INSTALL.CSW.txt
+	@cp $(FILEDIR)/CSWdcc.dcc.xml $(DESTDIR)$(docdir)/$(GARNAME)/dcc.xml
+	@cp $(FILEDIR)/CSWdcc.svc-dcc $(DESTDIR)$(docdir)/$(GARNAME)/svc-dcc
 	@$(MAKECOOKIE)

Added: csw/mgar/pkg/dcc/trunk/files/CSWdcc.INSTALL.CSW.txt
===================================================================
--- csw/mgar/pkg/dcc/trunk/files/CSWdcc.INSTALL.CSW.txt	                        (rev 0)
+++ csw/mgar/pkg/dcc/trunk/files/CSWdcc.INSTALL.CSW.txt	2009-01-13 13:59:13 UTC (rev 2804)
@@ -0,0 +1,29 @@
+2006.01.27 - Package changes
+If you are using Solaris 10 or later, you can setup dcc to use Service Manifest Facility.  You may want to change the dependencies.
+ 
+To setup SMF:
+1) Make the following directories, if needed:
+  `mkdir -p /opt/csw/lib/svc/method`
+  `mkdir -p /opt/csw/var/svc/manifest/network`
+2) Copy the service method file.  Change if needed:
+  `cp -p /opt/csw/share/doc/dcc/svc-dcc /opt/csw/lib/svc/method/`
+3) Copy the manifest file.  Change if needed:
+  `cp -p /opt/csw/share/doc/dcc/dcc.xml /opt/csw/var/svc/manifest/network/`
+4) Register the service:
+  `/usr/sbin/svccfg import /opt/csw/var/svc/manifest/network/dcc.xml`
+5) Enable the service:
+  `/usr/sbin/svcadm enable svc:network/cswdcc'
+
+To restart DCC after upgrades:
+  `svcadm restart cswdcc`
+
+To permanently remove SMF setup:
+1) Disable service:
+   `/usr/sbin/svcadm disable -s svc:network/cswdcc`
+2) Unregister with SMF:
+   `/usr/sbin/svccfg delete svc:network/cswdcc`
+3) Delete unused files:
+   `rm /opt/csw/lib/svc/method/svc-dcc /opt/csw/var/svc/manifest/network/dcc.xml'
+
+** Previous text **
+The package installs all options for dcc.  However, nothing is started automatically because there are several ways to use dcc. Read the FAQ and INSTALL documents and the man pages to decide how you wish to use dcc and complete the installation. If your site participates in the SMTP transactions, consider greylisting.  This is a powerful feature of dcc. The m4 files for sendmail milter are in /opt/csw/share/doc/dcc/misc. For a startup script, I suggest a symlink in /etc/rc2.d, maybe S77DCC, to /opt/csw/dcc/libexec/rcDCC.

Added: csw/mgar/pkg/dcc/trunk/files/CSWdcc.dcc.xml
===================================================================
--- csw/mgar/pkg/dcc/trunk/files/CSWdcc.dcc.xml	                        (rev 0)
+++ csw/mgar/pkg/dcc/trunk/files/CSWdcc.dcc.xml	2009-01-13 13:59:13 UTC (rev 2804)
@@ -0,0 +1,93 @@
+<?xml version='1.0'?>
+ <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
+<!--
+
+        Alex Moore (blastwave.org) 01/06
+        Service manifest for DCC
+ -->
+
+ <service_bundle type='manifest' name='dcc:dcc'>
+
+ <service
+         name='network/cswdcc'
+         type='service'
+         version='1'>
+         <create_default_instance enabled='false' />
+         <single_instance />
+
+
+         <dependency name='fs'
+                 grouping='require_all'
+                 restart_on='none'
+                 type='service'>
+                 <service_fmri value='svc:/system/filesystem/local' />
+         </dependency>
+
+         <dependency name='net'
+                 grouping='require_all'
+                 restart_on='none'
+                 type='service'>
+                 <service_fmri value='svc:/network/loopback' />
+         </dependency>
+
+         <dependency name='network'
+                 grouping='require_all'
+                 restart_on='none'
+                 type='service'>
+                 <service_fmri value='svc:/network/service' />
+         </dependency>
+
+         <dependency name='syslog'
+                 grouping='optional_all'
+                 restart_on='none'
+                 type='service'>
+                 <service_fmri value='svc:/system/system-log' />
+         </dependency>
+
+         <dependent
+                 name='cswdcc_multi-user'
+                 grouping='optional_all'
+                 restart_on='none'>
+                 <service_fmri
+                        value='svc:/milestone/multi-user' />
+         </dependent>
+
+         <exec_method
+                 type='method'
+                 name='start'
+                 exec='/opt/csw/lib/svc/method/svc-dcc start'
+                 timeout_seconds='-1'>
+         </exec_method>
+
+         <exec_method
+                 type='method'
+                 name='stop'
+                 exec='/opt/csw/lib/svc/method/svc-dcc stop'
+                 timeout_seconds='-1'>
+         </exec_method>
+
+         <exec_method
+                 type='method'
+                 name='restart'
+                 exec='/opt/csw/lib/svc/method/svc-dcc restart'
+                 timeout_seconds='-1'>
+         </exec_method>
+
+         <exec_method
+                 type='method'
+                 name='reload'
+                 exec='/opt/csw/lib/svc/method/svc-dcc reload'
+                 timeout_seconds='-1'>
+         </exec_method>
+
+         <exec_method
+                 type='method'
+                 name='probe'
+                 exec='/opt/csw/lib/svc/method/svc-dcc probe'
+                 timeout_seconds='-1'>
+         </exec_method>
+
+
+ </service>
+
+ </service_bundle>

Added: csw/mgar/pkg/dcc/trunk/files/CSWdcc.svc-dcc
===================================================================
--- csw/mgar/pkg/dcc/trunk/files/CSWdcc.svc-dcc	                        (rev 0)
+++ csw/mgar/pkg/dcc/trunk/files/CSWdcc.svc-dcc	2009-01-13 13:59:13 UTC (rev 2804)
@@ -0,0 +1,125 @@
+#!/bin/sh
+
+# chkconfig: 2345 40 80
+# description: rcDCC is a startup script for DCC  \
+#              http://www.rhyolite.com/anti-spam/dcc
+# processname: dccd
+# processname: dccm
+# processname: dccifd
+
+# start or stop dccd, dccifd, and dccm for Solaris, System V, IRIX,
+#   Redhat Linux, or FreeBSD
+
+# dccm must be started before sendmail and stopped after sendmail to avoid
+#   complaints from sendmail
+# dccd must be should before the first mail message arrives
+# Thus on some Solaris systems, this script can be installed as
+#   rc0.d/K37DCC  rc1.d/K37DCC  rc2.d/S88DCC  rcS.d/K37DCC
+# On some Linux systems it can be installed as rc.d/init.d/DCC and linked
+#   to rc.d/rc0.d/K31DCC rc.d/rc1.d/K31DCC rc.d/rc2.d/S80DCC rc.d/rc3.d/S80DCC
+#   rc.d/rc4.d/S80DCC rc.d/rc5.d/S80DCC and rc.d/rc6.d/K31DCC
+# On older FreeBSD systems a line like
+#           /opt/csw/dcc/libexec/rcDCC start
+#       can be added to /etc/rc just before sendmail is started and a line like
+#           /opt/csw/dcc/libexec/rcDCC stop
+#       can be added to /etc/rc.shutdown.
+#   On 4.* FreeBSD systems, make a symbolic link from this file.
+#       to /etc/rc.d/rcDCC.sh
+#   On FreeBSD 5.* and 6.* systems, link this file to
+#       /usr/local/etc/rc.d/rcDCC.sh
+
+
+
+# Copyright (c) 2008 by Rhyolite Software, LLC
+#
+# This agreement is not applicable to any entity which sells anti-spam
+# solutions to others or provides an anti-spam solution as part of a
+# security solution sold to other entities, or to a private network
+# which employs the DCC or uses data provided by operation of the DCC
+# but does not provide corresponding data to other users.
+#
+# Permission to use, copy, modify, and distribute this software without
+# changes for any purpose with or without fee is hereby granted, provided
+# that the above copyright notice and this permission notice appear in all
+# copies and any distributed versions or copies are either unchanged
+# or not called anything similar to "DCC" or "Distributed Checksum
+# Clearinghouse".
+#
+# Parties not eligible to receive a license under this agreement can
+# obtain a commercial license to use DCC by contacting Rhyolite Software
+# at sales at rhyolite.com.
+#
+# A commercial license would be for Distributed Checksum and Reputation
+# Clearinghouse software.  That software includes additional features.  This
+# free license for Distributed ChecksumClearinghouse Software does not in any
+# way grant permision to use Distributed Checksum and Reputation Clearinghouse
+# software
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND RHYOLITE SOFTWARE, LLC DISCLAIMS ALL
+# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL RHYOLITE SOFTWARE, LLC
+# BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+# SOFTWARE.
+#       Rhyolite Software DCC 1.3.82-1.33 $Revision$
+#       Generated automatically from rcDCC.in by configure.
+
+. /lib/svc/share/smf_include.sh
+
+DCC_HOMEDIR=/opt/csw/dcc
+DCC_LIBEXEC=/opt/csw/dcc/libexec            # in case dcc_conf has disappeared
+. $DCC_HOMEDIR/dcc_conf
+if test -z "$DCC_RUNDIR" -a -n "$DCCM_RUNDIR"; then
+    # deal with old dcc_conf files
+    DCC_RUNDIR="$DCCM_RUNDIR"
+fi
+
+DEBUG=
+if test "X$1" = "X-x"; then
+    set -x
+    DEBUG=-x
+    shift
+fi
+
+case "$1" in
+start)
+        $DCC_LIBEXEC/start-dccd $DEBUG
+        $DCC_LIBEXEC/start-grey $DEBUG
+        $DCC_LIBEXEC/start-dccm $DEBUG
+        $DCC_LIBEXEC/start-dccifd $DEBUG
+        ;;
+
+stop)
+        # stop dccm and dccifd
+        for PID in `cat $DCC_RUNDIR/dcc*.pid $DCC_HOMEDIR/dcc*.pid      \
+                        2>/dev/null`; do
+#           signal the process group because on Linux systems signaling the main
+#           process does not work.  See `man sigwait` on a Linux system.
+            /bin/kill -15 $PID
+        done
+        # Tell dccd for operating system shutdown, including deleting
+        # dcc_db.hash, which will be rebuilt by dbclean when dccd is restarted.
+        $DCC_LIBEXEC/stop-dccd -S $DEBUG
+        $DCC_LIBEXEC/stop-dccd -G -S $DEBUG
+        ;;
+
+restart|reload)
+        # for Linux
+        $0 $DEBUG start
+        exit $?
+        ;;
+
+probe)
+        # for Linux
+        echo $DEBUG restart
+        ;;
+
+*)
+        echo "Usage: $0 {start|stop|restart|reload|probe}"
+        exit 1
+        ;;
+
+esac
+exit 0


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list