[csw-devel] SF.net SVN: gar:[16227] csw/mgar/pkg/MailScanner/trunk

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Mon Nov 21 22:31:10 CET 2011


Revision: 16227
          http://gar.svn.sourceforge.net/gar/?rev=16227&view=rev
Author:   bonivart
Date:     2011-11-21 21:31:09 +0000 (Mon, 21 Nov 2011)
Log Message:
-----------
MailScanner/trunk: will take a while to sort this mess out...

Modified Paths:
--------------
    csw/mgar/pkg/MailScanner/trunk/Makefile
    csw/mgar/pkg/MailScanner/trunk/checksums
    csw/mgar/pkg/MailScanner/trunk/legacy/MailScanner
    csw/mgar/pkg/MailScanner/trunk/legacy/buildms.sh
    csw/mgar/pkg/MailScanner/trunk/legacy/depend
    csw/mgar/pkg/MailScanner/trunk/legacy/history
    csw/mgar/pkg/MailScanner/trunk/legacy/history.csw

Added Paths:
-----------
    csw/mgar/pkg/MailScanner/trunk/files/COPYING
    csw/mgar/pkg/MailScanner/trunk/files/MailScanner
    csw/mgar/pkg/MailScanner/trunk/files/README.CSW
    csw/mgar/pkg/MailScanner/trunk/files/SA.pm.patch
    csw/mgar/pkg/MailScanner/trunk/files/buildms.sh
    csw/mgar/pkg/MailScanner/trunk/files/check_mailscanner.patch
    csw/mgar/pkg/MailScanner/trunk/files/cswmailscanner
    csw/mgar/pkg/MailScanner/trunk/files/cswmailscanner.sendmail
    csw/mgar/pkg/MailScanner/trunk/files/history
    csw/mgar/pkg/MailScanner/trunk/files/history.csw
    csw/mgar/pkg/MailScanner/trunk/files/mailscanner.sendmail.xml
    csw/mgar/pkg/MailScanner/trunk/files/mailscanner.xml
    csw/mgar/pkg/MailScanner/trunk/files/postinstall
    csw/mgar/pkg/MailScanner/trunk/files/preremove
    csw/mgar/pkg/MailScanner/trunk/files/readme
    csw/mgar/pkg/MailScanner/trunk/files/svc-mailscanner
    csw/mgar/pkg/MailScanner/trunk/files/svc-mailscanner.sendmail
    csw/mgar/pkg/MailScanner/trunk/legacy/_postremove
    csw/mgar/pkg/MailScanner/trunk/legacy/_preinstall
    csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.nosmf
    csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.smf
    csw/mgar/pkg/MailScanner/trunk/legacy/preremove.nosmf
    csw/mgar/pkg/MailScanner/trunk/legacy/preremove.smf
    csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.nosmf
    csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.smf
    csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.smf.080903

Modified: csw/mgar/pkg/MailScanner/trunk/Makefile
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/Makefile	2011-11-21 16:32:55 UTC (rev 16226)
+++ csw/mgar/pkg/MailScanner/trunk/Makefile	2011-11-21 21:31:09 UTC (rev 16227)
@@ -1,5 +1,5 @@
 NAME = MailScanner
-VERSION = 4.77.10
+VERSION = 4.84.3
 RELEASE = 1
 DISTVERSION = $(VERSION)-$(RELEASE)
 #DISTNAME = $(NAME)-$(DISTVERSION)
@@ -13,32 +13,49 @@
 
 MASTER_SITES = http://www.mailscanner.info/files/4/tar/
 DISTFILES  = $(NAME)-install-$(DISTVERSION).tar.gz
+DISTFILES += COPYING
 
-#LICENSE = COPYRIGHT
-
-PACKAGES = CSWmailscanner
+PACKAGES    = CSWmailscanner
 CATALOGNAME = mailscanner
 
-#RUNTIME_DEP_PKGS = 
+RUNTIME_DEP_PKGS  = CSWantiword
+RUNTIME_DEP_PKGS += CSWgawk
+RUNTIME_DEP_PKGS += CSWperl
+RUNTIME_DEP_PKGS += CSWpmarchivezip
+RUNTIME_DEP_PKGS += CSWpm-compress-raw-zlib
+RUNTIME_DEP_PKGS += CSWpmconvertbinhex
+RUNTIME_DEP_PKGS += CSWpmconverttnef
+RUNTIME_DEP_PKGS += CSWpm-dbd-sqlite
+RUNTIME_DEP_PKGS += CSWpm-dbi
+RUNTIME_DEP_PKGS += CSWpmfilesysdf
+RUNTIME_DEP_PKGS += CSWpm-html-parser
+RUNTIME_DEP_PKGS += CSWpmmailtools
+RUNTIME_DEP_PKGS += CSWpmmimetools
+RUNTIME_DEP_PKGS += CSWpm-net-cidr
+RUNTIME_DEP_PKGS += CSWpmolestoragelite
+RUNTIME_DEP_PKGS += CSWpm-pod-simple
+RUNTIME_DEP_PKGS += CSWpmsyshostnamelong
+RUNTIME_DEP_PKGS += CSWpmsyssigaction
+RUNTIME_DEP_PKGS += CSWpmtestpod
+RUNTIME_DEP_PKGS += CSWpmtimedate
+RUNTIME_DEP_PKGS += CSWtnef
+RUNTIME_DEP_PKGS += CSWunrar
 
-#ARCHALL = 1
+ARCHALL = 1
 
-# We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX = $(NAME)-install-(\d+(?:\.\d+)*)-\d+.tar.gz
+CONFIGURE_SCRIPTS = 
+BUILD_SCRIPTS = 
+TEST_SCRIPTS = 
+INSTALL_SCRIPTS = custom
 
-#CONFIGURE_SCRIPTS = 
-#BUILD_SCRIPTS = 
-#TEST_SCRIPTS = 
-#INSTALL_SCRIPTS = custom
-
 SPKG_SOURCEURL = http://www.mailscanner.info
 
 include gar/category.mk
 
 #SPKG_REVSTAMP := $(SPKG_REVSTAMP)_rev=$(RELEASE)
 
-#install-custom:
-#	@echo " ==> Installing $(NAME) (custom)"
+install-custom:
+	@echo " ==> Installing $(NAME) (custom)"
 #	@ginstall -d $(DESTDIR)/etc/opt/csw/init.d
 #	@cp $(FILEDIR)/CSWbind.cswnamed $(DESTDIR)/etc/opt/csw/init.d/cswnamed
 #	@cp $(FILEDIR)/CSWbind.named.conf.CSW $(DESTDIR)/etc/opt/csw/named.conf.CSW
@@ -51,3 +68,211 @@
 #	@ginstall -d $(DESTDIR)/var/opt/csw/named
 #	@touch $(DESTDIR)/var/opt/csw/named/named.pid
 #	@$(MAKECOOKIE)
+
+	SLTYPE=udp
+
+	echo "-> Unpacking MailScanner into MailScanner-install-$version/mailscanner ..." | tee -a $LOG
+	cd $BUILDDIR/MailScanner-install-$version
+	/opt/csw/bin/gtar xvzf $BUILDDIR/MailScanner-install-$version/perl-tar/MailScanner-$version-$rev.tar.gz > $TARLOG2
+	mv MailScanner-$version-$rev mailscanner
+
+	# replace /usr/bin/perl with /opt/csw/bin/perl
+	cd mailscanner
+	find . -type f | xargs grep -n '#!/usr/bin/perl' | grep :1: | awk -F':' '{print $1}' > $LOGDIR/perlpathfix
+	echo "-> Fixing perl path in `wc -l $LOGDIR/perlpathfix | awk '{print $1}'` files ..." | tee -a $LOG
+	for i in `cat $LOGDIR/perlpathfix`
+	do
+	  echo "---> Fixing perl path in $i ..." >> $LOG
+	  sed 's/^#!\/usr\/bin\/perl/#!\/opt\/csw\/bin\/perl/' $i > $i.tmp
+	  mv $i.tmp $i
+	done
+	cd ..
+
+	# fix MailScanner.conf
+	cd mailscanner/etc
+
+	echo "-> Modifying MailScanner.conf for use with CSW ..." | tee -a $LOG
+	sed 's/\/opt\/MailScanner/\/opt\/csw\/mailscanner/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^TNEF Expander = \/opt\/csw\/mailscanner\/bin\/tnef/TNEF Expander = \/opt\/csw\/bin\/tnef/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^Incoming Work User =/Incoming Work User = clamav/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^Incoming Work Permissions = 0600/Incoming Work Permissions = 0640/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	#sed 's/^Clamd Socket = \/tmp\/clamd/Clamd Socket = \/tmp\/clamd.socket/' MailScanner.conf > MailScanner.conf.tmp
+	#mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^Monitors for ClamAV Updates = \/usr\/local\/share\/clamav\/\*\.cld \/usr\/local\/share\/clamav\/\*\.cvd/Monitors for ClamAV Updates = \/var\/opt\/csw\/clamav\/db\/\*\.cld \/var\/opt\/csw\/clamav\/db\/\*\.cvd/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^Unrar Command = \/usr\/bin\/unrar/Unrar Command = \/opt\/csw\/bin\/unrar/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^Sendmail = \/usr\/lib\/sendmail/Sendmail = \/opt\/csw\/lib\/sendmail/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^Sendmail2 = \/usr\/lib\/sendmail/Sendmail2 = \/opt\/csw\/lib\/sendmail/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^SpamAssassin Install Prefix =/SpamAssassin Install Prefix = \/opt\/csw/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^SpamAssassin Local State Dir = # \/var\/lib\/spamassassin/SpamAssassin Local State Dir = # \/var\/opt\/csw\/spamassassin/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	sed 's/^SpamAssassin Site Rules Dir = \/etc\/mail\/spamassassin/SpamAssassin Site Rules Dir = \/etc\/opt\/csw\/spamassassin/' MailScanner.conf > MailScanner.conf.tmp
+	mv MailScanner.conf.tmp MailScanner.conf
+
+	cd ../..
+
+	# fix spam.assassin.prefs.conf
+	cd mailscanner/etc
+	echo "-> Modifying spam.assassin.prefs.conf for use with CSW ..." | tee -a $LOG
+	sed 's/^dcc_path \/usr\/local\/bin\/dccproc$/dcc_path \/opt\/csw\/bin\/dccproc/' spam.assassin.prefs.conf > spam.assassin.prefs.conf.tmp
+	mv spam.assassin.prefs.conf.tmp spam.assassin.prefs.conf
+	cd ../..
+
+	# fix virus.scanners.conf
+	cd mailscanner/etc
+	echo "-> Modifying virus.scanners.conf for use with CSW ..." | tee -a $LOG
+	sed '/^clamav/s/\/usr\/local/\/opt\/csw/;/^clamd/s/\/usr\/local/\/opt\/csw/' virus.scanners.conf > virus.scanners.conf.tmp
+	mv virus.scanners.conf.tmp virus.scanners.conf
+	cd ../..
+
+	# fix check_mailscanner
+	cd mailscanner/bin
+	echo "-> Modifying check_mailscanner for use with CSW ..." | tee -a $LOG
+	sed "s/^  echo -n \'Starting MailScanner...\'/  echo \'Starting MailScanner...\\\c\'/" check_mailscanner > check_mailscanner.tmp
+	mv check_mailscanner.tmp check_mailscanner
+	cd ../..
+
+	# fix update_spamassassin
+	cd mailscanner/bin
+	echo "-> Modifying update_spamassassin for use with CSW ..." | tee -a $LOG
+# sed replace /usr with /opt/csw, replace /etc/init.d with /opt/csw/bin, replace /etc/mail with /opt/csw/etc, replace /etc/sysconfig with /opt/csw/mailscanner/etc, insert PATH, SA conf file
+	sed 's/\/usr/\/opt\/csw/;s/^\/etc\/init.d\/MailScanner/\/opt\/csw\/bin\/cswmailscanner/;s/\/etc\/mail/\/opt\/csw\/etc/;s/\/etc\/sysconfig/\/opt\/csw\/mailscanner\/etc/;s/^SAUPDATEARGS/PATH=\/opt\/csw\/bin:\/usr\/bin ; export PATH ; SAUPDATEARGS/;s/\/opt\/csw\/mailscanner\/etc\/update_spamassassin/\/opt\/csw\/mailscanner\/etc\/MailScanner/;s/\/opt\/csw\/etc\/spamassassin/\/etc\/opt\/csw\/spamassassin/' update_spamassassin > update_spamassassin.tmp
+	mv update_spamassassin.tmp update_spamassassin
+	cd ../..
+
+	# fix update_spamassassin.cron
+	cd mailscanner/bin/cron
+	echo "-> Modifying update_spamassassin.cron for use with CSW ..." | tee -a $LOG
+	sed 's/\/etc\/sysconfig\/update_spamassassin/\/opt\/csw\/mailscanner\/etc\/MailScanner/' update_spamassassin.cron > update_spamassassin.cron.tmp
+	mv update_spamassassin.cron.tmp update_spamassassin.cron
+	cd ../../..
+
+	# fix check_MailScanner.cron
+	cd mailscanner/bin/cron
+	echo "-> Modifying check_MailScanner.cron for use with CSW ..." | tee -a $LOG
+	sed 's/^LOCKFILE=\/var\/lock\/check_Mailscanner.lock/LOCKFILE=\/opt\/csw\/mailscanner\/var\/check_MailScanner.lock/;s/^MS_LOCKFILE=\/var\/lock\/subsys\/MailScanner.off/MS_LOCKFILE=\/opt\/csw\/mailscanner\/var\/MailScanner.off/' check_MailScanner.cron > check_MailScanner.cron.tmp
+	mv check_MailScanner.cron.tmp check_MailScanner.cron
+	cd ../../..
+
+	# fix clamav-wrapper
+	cd mailscanner/lib
+	echo "-> Modifying clamav-wrapper for use with CSW ..." | tee -a $LOG
+	# disable tgz and deb, enable unrar
+	sed 's/^ExtraScanOptions=\"\$ExtraScanOptions --tgz/#ExtraScanOptions=\"\$ExtraScanOptions --tgz/;s/^ExtraScanOptions=\"\$ExtraScanOptions --deb/#ExtraScanOptions=\"\$ExtraScanOptions --deb/;s/^#ExtraScanOptions=\"\$ExtraScanOptions --unrar=\/path\/to\/unrar\"/ExtraScanOptions=\"\$ExtraScanOptions --unrar=\/opt\/csw\/bin\/unrar"/' clamav-wrapper > clamav-wrapper.tmp
+	mv clamav-wrapper.tmp clamav-wrapper
+	cd ../..
+
+	# change syslog socket
+	cd mailscanner/lib
+	find . -type f | xargs grep "setlogsock('unix')" | awk -F':' '{print $1}' | sort | uniq > $LOGDIR/syslogsocketfix
+	echo "-> Fixing syslog socket type in `wc -l $LOGDIR/syslogsocketfix | awk '{print $1}'` files ..." | tee -a $LOG
+	for i in `cat $LOGDIR/syslogsocketfix`
+	do
+	  echo "---> Fixing syslog socket type in $i ..." >> $LOG
+	  sed "/Sys::Syslog::setlogsock/s/unix/$SLTYPE/" $i > $i.tmp
+	  mv $i.tmp $i
+	done
+	cd ../..
+
+	# change awk to gawk in SA.pm
+	cd mailscanner/lib/MailScanner
+	echo "-> Changing awk to gawk in SA.pm ..." | tee -a $LOG
+	patch SA.pm < $LOGDIR/SA.pm.patch > /dev/null 2>&1
+	cd ../../..
+
+	# change MailScanner path (/opt/MailScanner to /opt/csw/mailscanner)
+	cd mailscanner
+	find . -type f | egrep -v 'INSTALL.FreeBSD|INSTALL.OpenBSD' | xargs grep "/opt/MailScanner" | awk -F':' '{print $1}' | sort | uniq > $LOGDIR/mspathfix
+	echo "-> Fixing MailScanner path in `wc -l $LOGDIR/mspathfix | awk '{print $1}'` files ..." | tee -a $LOG
+	for i in `cat $LOGDIR/mspathfix`
+	do
+	  echo "---> Fixing MailScanner path in $i ..." >> $LOG
+	  sed 's/\/opt\/MailScanner/\/opt\/csw\/mailscanner/g' $i > $i.tmp
+	  mv $i.tmp $i
+	done
+	cd ..
+
+	# fix ownership/permissions
+	cd mailscanner
+	echo "-> Fixing permissions ..." | tee -a $LOG
+	chmod 644 COPYING INSTALL.FreeBSD INSTALL.OpenBSD MailScanner.conf.index.html README
+	find bin | xargs chmod 755
+	find etc -type f |xargs chmod 644
+	find lib/MailScanner -type f |xargs chmod 644
+	find var -type f |xargs chmod 644
+	find www -type f |xargs chmod 644
+	chmod 755 bin bin/cron etc etc/mcp etc/reports etc/reports/* etc/rules lib lib/* lib/MailScanner/CustomFunctions var www
+	cd ..
+
+	# remove bak files in reports
+	cd mailscanner/etc/reports
+	find . -type f -name "*.bak" > $LOGDIR/bakfiles
+	echo "-> Removing `wc -l $LOGDIR/bakfiles | awk '{print $1}'` .bak files in reports ..." | tee -a $LOG
+	for i in `cat $LOGDIR/bakfiles`
+	do
+	  echo "---> Removing $i ..." >> $LOG
+	  rm $i
+	done
+	cd ../../..
+
+	# remove unnecessary files
+	cd mailscanner
+	echo "-> Removing unnecessary files ..." | tee -a $LOG
+	for i in INSTALL.FreeBSD INSTALL.OpenBSD MailScanner.conf.index.html svn-commit.tmp bin/Sophos.install bin/Sophos.install.linux bin/tnef.solaris.x86 bin/check_mailscanner.tru64
+	do
+	  echo "---> Removing $i ..." >> $LOG
+	  rm -f $i
+	done
+	cd ..
+
+	# add files to etc dir
+	echo "-> Adding files to etc dir ..." | tee -a $LOG
+	cd mailscanner/etc
+	cp $LOGDIR/MailScanner .
+	cd ../..
+
+	# fix conf files, add .CSW
+	cd mailscanner/etc
+	find . -type f | egrep -v -i 'example|readme|.CSW$' > $LOGDIR/conffiles
+	echo "-> Adding .CSW to `wc -l $LOGDIR/conffiles | awk '{print $1}'` configurable files ..." | tee -a $LOG
+	for i in `cat $LOGDIR/conffiles`
+	do
+	  echo "---> Adding .CSW to $i ..." >> $LOG
+	  mv $i ${i}.CSW
+	done
+	cd ../..
+
+	# add CSW files to doc dir, also move MS doc files there
+	echo "-> Adding files to doc dir ..." | tee -a $LOG
+	mkdir -p share/doc/mailscanner
+	cd share/doc/mailscanner
+	cp $LOGDIR/conffiles .
+	cp $LOGDIR/README.CSW .
+	cp $LOGDIR/history .
+	cp $LOGDIR/cswmailscanner .
+	cp $LOGDIR/cswmailscanner.sendmail .
+	cp $LOGDIR/mailscanner.xml .
+	cp $LOGDIR/mailscanner.sendmail.xml .
+	mv ../../../mailscanner/README .
+	mv ../../../mailscanner/ChangeLog .
+	mv ../../../mailscanner/COPYING license
+	cd ../../..

Modified: csw/mgar/pkg/MailScanner/trunk/checksums
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/checksums	2011-11-21 16:32:55 UTC (rev 16226)
+++ csw/mgar/pkg/MailScanner/trunk/checksums	2011-11-21 21:31:09 UTC (rev 16227)
@@ -1 +1 @@
-bf0e5c2e17dcc2a898ed089e3a77cea9  download/MailScanner-install-4.77.10-1.tar.gz
+34f4e88a395b4081a11cad62a7c69df2  MailScanner-install-4.84.3-1.tar.gz

Added: csw/mgar/pkg/MailScanner/trunk/files/COPYING
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/COPYING	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/COPYING	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,3 @@
+
+Please see /opt/csw/share/doc/mailscanner/LICENSE for license information.
+

Added: csw/mgar/pkg/MailScanner/trunk/files/MailScanner
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/MailScanner	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/MailScanner	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,13 @@
+# This is where you customize some settings of your MailScanner installation so
+# you don't have to edit the scripts themselves as they will be replaced during
+# upgrades.
+#
+# Peter Bonivart, OpenCSW
+
+# Proxy settings
+#http_proxy=http://proxy.foo.bar
+#export http_proxy
+
+# Used by the update_spamassassin script
+# Example: "--channelfile /etc/opt/csw/spamassassin/sa.update.txt --gpgkey 123456"
+#SAUPDATEARGS=""

Added: csw/mgar/pkg/MailScanner/trunk/files/README.CSW
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/README.CSW	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/README.CSW	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,56 @@
+README.CSW
+==========
+
+Quick Start
+-----------
+- Stop and disable Sendmail from Sun and CSW.
+- Start Sendmail with /etc/init.d/cswmailscanner.sendmail
+  (or svcadm enable cswmailscannersendmail).
+- Start MailScanner with /etc/init.d/cswmailscanner
+  (or svcadm enable cswmailscanner).
+
+Not So Quick Start
+------------------
+- Look through all configuration files in /opt/csw/mailscanner/etc and modify
+  as needed.
+- Use the cron scripts in /opt/csw/mailscanner/bin/cron to automate restart, 
+  quarantine cleaning, virus signature updates and so on.
+- Typical entries in crontab for root:
+-- 0,30 * * * * /opt/csw/mailscanner/bin/cron/check_MailScanner.cron
+--- Note: the above is not needed if you use SMF
+-- 0 * * * * /opt/csw/mailscanner/bin/cron/update_virus_scanners.cron
+-- 0 4 * * * /opt/csw/mailscanner/bin/cron/update_spamassassin.cron
+-- 0 4 * * * /opt/csw/mailscanner/bin/cron/clean.quarantine.cron
+- Mount MailScanner work folder as tmpfs, totally safe since Sendmail is
+  responsible for the message at all times. In /etc/vfstab add:
+-- swap - /var/spool/MailScanner/incoming tmpfs - yes -
+
+After Each Upgrade (IMPORTANT)
+------------------
+- Update your configuration files as necessary. Use tools like 
+  upgrade_MailScanner_conf and upgrade_languages_conf.
+- Typical use of upgrade_MailScanner_conf:
+-- # cd /opt/csw/mailscanner/etc
+-- # ../bin/upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.CSW > MailScanner.new
+-- look through MailScanner.new before using it as MailScanner.conf.
+ 
+MailScanner with Clam AntiVirus and SpamAssassin
+------------------------------------------------
+- MailScanner comes configured to use Clam and SA if present.
+- You may need to configure Clam and SA to use web proxies, plugins, etc.
+-- IMPORTANT: make sure Clam can fetch updated virus signatures, test with "freshclam -v".
+- Run "MailScanner --lint" to see what MS thinks of Clam and SA.
+
+Notes
+-----
+- Both Sun and CSW Sendmail must be disabled.
+- Sendmail is controlled by rc-script (or SMF) included with this package.
+- MailScanner itself is controlled by another rc-script (or SMF).
+- For MailScanner info: http://www.mailscanner.info.
+
+Todo
+----
+- Control both Sendmail and MailScanner from the same rc-script.
+- Help with updating configuration files after upgrades.
+
+bonivart/100702

Added: csw/mgar/pkg/MailScanner/trunk/files/SA.pm.patch
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/SA.pm.patch	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/SA.pm.patch	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,20 @@
+--- SA.pm.orig	Wed Apr  9 13:13:37 2008
++++ SA.pm	Wed Apr  9 13:14:18 2008
+@@ -85,7 +85,7 @@
+     my $result;
+     # Do a trial run of awk to see if it is going to work on this system.
+     eval {
+-      $result = `echo 'Hello,World' | awk '{printf \"%s %s\\n\", strftime(\"%T\"), \$0}' 2>&1`;
++      $result = `echo 'Hello,World' | /opt/csw/bin/gawk '{printf \"%s %s\\n\", strftime(\"%T\"), \$0}' 2>&1`;
+       #print "Result is \"$result\"\n";
+     };
+     #print "Eval result = \"$@\"\n";
+@@ -96,7 +96,7 @@
+       #select STDERR; $| = 1;
+       # Re-open STDERR with the current time stuck on the front of each line.
+       # It should work okay as we have just tried it out.
+-      open STDERR, "| awk '{printf \"%s %s\\n\", strftime(\"%T\"), \$0}'";
++      open STDERR, "| /opt/csw/bin/gawk '{printf \"%s %s\\n\", strftime(\"%T\"), \$0}'";
+       select STDOUT;
+     } else {
+       print STDERR "\n\n*****\n";

Added: csw/mgar/pkg/MailScanner/trunk/files/buildms.sh
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/buildms.sh	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/buildms.sh	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,449 @@
+#!/bin/sh
+
+# buildms.sh - script for easier build of MailScanner
+# usage: buildms.sh [ source file ]
+# 2006-05-12 Peter Bonivart
+# 2006-05-15 First working version
+# 2007-07-09 Lots added
+# 2007-07-10 Added .CSW and lots more
+# 2007-07-11 Added mods to MailScanner.conf, spam.assassin.prefs.conf and
+#            virus.scanners.conf. Support REV=YYYY.MM.DD
+# 2007-07-12 Added mods to check_mailscanner, syslog type
+# 2007-07-16 Added mods to MailScanner.conf: clamd settings
+# 2007-08-14 Added mod so symlink from /opt is not needed. Fixed so 4.62+ tar
+#	     filename (includes build rev) is handled
+# 2007-08-15 Added path mod to check_MailScanner.cron. Patch check_mailscanner
+# 2007-08-21 Remove unnecessary files (other OS and so on). Added history file
+#	     to package
+# 2007-09-03 Remove snv-commit files that are left over
+# 2007-09-13 Add changelog to package, removed patching of check_mailscanner
+#            (not needed with 4.63.8)
+# 2007-10-01 Changelog included in 4.64, moved README and COPYING to CSW doc
+# 2008-01-03 Added wrapper script to /opt/csw/bin/MailScanner instead of
+#            symlink so lint etc works. PERLIB added to rc-script. Dependency
+#            to CSWpmio added
+# 2008-01-09 Backed out changes from 2008-01-03. Fixed path to tnef-binary in
+#            MailScanner.conf and added unrar and mailtools as dependencies
+# 2008-04-09 Changed awk to CSW gawk in SA.pm. Always add REV=YYYY.MM.DD.
+# 2008-06-19 Changed gtar path to /usr/sfw/bin (login changed to loginz),
+#            added pm_converttnef, pm_podescapes, pm_podsimple and pm_testpod
+#            as dependencies
+# 2008-06-27 Removed displaying full license during install, instead show just a
+#            short message referring to the license file
+# 2008-07-03 Added SMF support
+# 2008-09-04 Fixed path to sendmail in MailScanner.conf, symlink cswmailscanner
+#            works regardless of SMF or not
+# 2008-11-18 Fixed SA Install Prefix and Local State Dir in MailScanner.conf
+# 2008-12-18 Changed copyright filename to LICENSE, gtar path
+# 2009-01-13 Fixed path for ClamAV update monitoring
+# 2009-01-21 Fixed path for SpamAssassin Site Rules Dir, fixed
+#            update_spamassassin
+# 2009-01-23 Fixed Sendmail service script
+# 2009-01-24 Added etc/MailScanner file
+# 2009-10-01 Run only on build servers, not on login server
+# 2010-02-22 Copy package to experimental instead of testing, changed SA path
+#            from /opt/csw/etc/spamassassin to /etc/opt/csw/spamassassin
+# 2010-07-02 Lowercase license filename. Make conffiles 0400 to protect it
+# 2010-07-03 Use /tmp/clamd.socket for ClamAV socket
+# 2010-09-01 Fixed update_spamassassin.cron, switch to 5.9
+
+# todo: 
+
+# abort execution in case of error
+
+set -e
+
+BSVER=2.22
+SLTYPE=udp
+
+PATHPREFIX1=/home/bonivart
+PATHPREFIX2=/home
+PKGDIR=$PATHPREFIX1/pkgs/mailscanner
+BUILDDIR=$PATHPREFIX1/build/mailscanner
+SRCDIR=$PATHPREFIX2/src/mailscanner
+TESTDIR=$PATHPREFIX2/experimental/bonivart
+GTAR=/opt/csw/bin/gtar
+
+# abort if not on build server
+
+if [ `uname -n` = "login" ]; then
+  echo "Run on build server. Exiting."
+  exit 1
+fi
+ 
+# select source file
+
+if [ "$1" ]; then
+  if [ ! -s "$SRCDIR/$1" ]; then
+    echo "-err-> No such source file: $1. Exiting."
+    exit 1
+  else
+    src=$1
+  fi
+else
+  echo "-> No source file given on command line. Select from:"
+  echo
+  ls -t $SRCDIR | grep '^MailScanner'
+  echo
+  echo "Enter source file: \c"
+  read src
+  if [ ! -s "$SRCDIR/$src" -o ! "$src" ]; then
+    echo "-err-> No such source file: $src. Exiting."
+    exit 1
+  fi
+fi
+
+# log stuff
+
+version=`echo $src | awk -F'-' '{print $3}'`
+rev=`echo $src | awk -F'-' '{print $4}' | awk -F'.' '{print $1}'`
+cswrev=`date +%Y.%m.%d`
+timestamp=`date +%y%m%d-%H%M`
+LOGDIR=$PKGDIR/$version-$timestamp
+TARLOG1=$LOGDIR/tarlog1
+TARLOG2=$LOGDIR/tarlog2
+LOG=$LOGDIR/buildms.log
+mkdir $LOGDIR
+
+# copy current build script and misc other files to log dir
+
+cp $PKGDIR/$0 $LOGDIR
+cp $PKGDIR/depend $LOGDIR
+cp $PKGDIR/pkginfo.stub $LOGDIR
+cp $PKGDIR/postinstall $LOGDIR
+#cp $PKGDIR/postremove $LOGDIR	# not used at the moment
+#cp $PKGDIR/preinstall $LOGDIR	# not used at the moment
+cp $PKGDIR/preremove $LOGDIR
+cp $PKGDIR/prototype.stub $LOGDIR
+cp $PKGDIR/README.CSW $LOGDIR
+cp $PKGDIR/cswmailscanner $LOGDIR
+cp $PKGDIR/cswmailscanner.sendmail $LOGDIR
+cp $PKGDIR/history $LOGDIR
+cp $PKGDIR/SA.pm.patch $LOGDIR
+cp $PKGDIR/checkinstall $LOGDIR
+cp $PKGDIR/i.smfno $LOGDIR
+cp $PKGDIR/i.smfyes $LOGDIR
+cp $PKGDIR/space $LOGDIR
+cp $PKGDIR/mailscanner.xml $LOGDIR
+cp $PKGDIR/mailscanner.sendmail.xml $LOGDIR
+cp $PKGDIR/MailScanner $LOGDIR
+echo "-> Build script version: $BSVER" | tee $LOG
+echo "-> Builder: `/usr/ucb/whoami`" | tee $LOG
+echo "-> Build host: `uname -n`" | tee -a $LOG
+echo "-> Build time: `date +'%Y-%m-%d %H:%M'`" | tee -a $LOG
+echo "-> Source file: $src" | tee -a $LOG
+echo "-> Version: $version" | tee -a $LOG
+echo "-> Revision: $rev" | tee -a $LOG
+if [ "$cswrev" ]; then
+  echo "-> CSW Revision: $cswrev" | tee -a $LOG
+  cswrev=",REV=$cswrev"
+fi
+echo "-> Log directory: $LOGDIR" | tee -a $LOG
+
+# unpack source file in build dir
+
+cd $BUILDDIR
+echo "-> Unpacking source file ..." | tee -a $LOG
+if [ -d "$BUILDDIR/MailScanner-install-$version" ]; then
+  echo "-err-> Directory already exists. Exiting." | tee -a $LOG
+  exit 1
+fi
+$GTAR xvzf "$SRCDIR/$src" > $TARLOG1
+echo "-> Unpacking MailScanner into MailScanner-install-$version/mailscanner ..." | tee -a $LOG
+cd $BUILDDIR/MailScanner-install-$version
+$GTAR xvzf $BUILDDIR/MailScanner-install-$version/perl-tar/MailScanner-$version-$rev.tar.gz > $TARLOG2
+mv MailScanner-$version-$rev mailscanner
+
+# replace /usr/bin/perl with /opt/csw/bin/perl
+
+cd mailscanner
+find . -type f | xargs grep -n '#!/usr/bin/perl' | grep :1: | awk -F':' '{print $1}' > $LOGDIR/perlpathfix
+echo "-> Fixing perl path in `wc -l $LOGDIR/perlpathfix | awk '{print $1}'` files ..." | tee -a $LOG
+for i in `cat $LOGDIR/perlpathfix`
+do
+  echo "---> Fixing perl path in $i ..." >> $LOG
+  sed 's/^#!\/usr\/bin\/perl/#!\/opt\/csw\/bin\/perl/' $i > $i.tmp
+  mv $i.tmp $i
+done
+cd ..
+
+# fix MailScanner.conf
+
+cd mailscanner/etc
+
+echo "-> Modifying MailScanner.conf for use with CSW ..." | tee -a $LOG
+sed 's/\/opt\/MailScanner/\/opt\/csw\/mailscanner/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^TNEF Expander = \/opt\/csw\/mailscanner\/bin\/tnef/TNEF Expander = \/opt\/csw\/bin\/tnef/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^Incoming Work User =/Incoming Work User = clamav/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^Incoming Work Permissions = 0600/Incoming Work Permissions = 0640/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+#sed 's/^Clamd Socket = \/tmp\/clamd/Clamd Socket = \/tmp\/clamd.socket/' MailScanner.conf > MailScanner.conf.tmp
+#mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^Monitors for ClamAV Updates = \/usr\/local\/share\/clamav\/\*\.cld \/usr\/local\/share\/clamav\/\*\.cvd/Monitors for ClamAV Updates = \/var\/opt\/csw\/clamav\/db\/\*\.cld \/var\/opt\/csw\/clamav\/db\/\*\.cvd/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^Unrar Command = \/usr\/bin\/unrar/Unrar Command = \/opt\/csw\/bin\/unrar/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^Sendmail = \/usr\/lib\/sendmail/Sendmail = \/opt\/csw\/lib\/sendmail/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^Sendmail2 = \/usr\/lib\/sendmail/Sendmail2 = \/opt\/csw\/lib\/sendmail/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^SpamAssassin Install Prefix =/SpamAssassin Install Prefix = \/opt\/csw/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^SpamAssassin Local State Dir = # \/var\/lib\/spamassassin/SpamAssassin Local State Dir = # \/var\/opt\/csw\/spamassassin/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+sed 's/^SpamAssassin Site Rules Dir = \/etc\/mail\/spamassassin/SpamAssassin Site Rules Dir = \/etc\/opt\/csw\/spamassassin/' MailScanner.conf > MailScanner.conf.tmp
+mv MailScanner.conf.tmp MailScanner.conf
+
+cd ../..
+
+# fix spam.assassin.prefs.conf
+
+cd mailscanner/etc
+echo "-> Modifying spam.assassin.prefs.conf for use with CSW ..." | tee -a $LOG
+sed 's/^dcc_path \/usr\/local\/bin\/dccproc$/dcc_path \/opt\/csw\/bin\/dccproc/' spam.assassin.prefs.conf > spam.assassin.prefs.conf.tmp
+mv spam.assassin.prefs.conf.tmp spam.assassin.prefs.conf
+cd ../..
+
+# fix virus.scanners.conf
+
+cd mailscanner/etc
+echo "-> Modifying virus.scanners.conf for use with CSW ..." | tee -a $LOG
+sed '/^clamav/s/\/usr\/local/\/opt\/csw/;/^clamd/s/\/usr\/local/\/opt\/csw/' virus.scanners.conf > virus.scanners.conf.tmp
+mv virus.scanners.conf.tmp virus.scanners.conf
+cd ../..
+
+# fix check_mailscanner
+
+cd mailscanner/bin
+echo "-> Modifying check_mailscanner for use with CSW ..." | tee -a $LOG
+sed "s/^  echo -n \'Starting MailScanner...\'/  echo \'Starting MailScanner...\\\c\'/" check_mailscanner > check_mailscanner.tmp
+mv check_mailscanner.tmp check_mailscanner
+cd ../..
+
+# fix update_spamassassin
+
+cd mailscanner/bin
+echo "-> Modifying update_spamassassin for use with CSW ..." | tee -a $LOG
+# sed replace /usr with /opt/csw, replace /etc/init.d with /opt/csw/bin, replace /etc/mail with /opt/csw/etc, replace /etc/sysconfig with /opt/csw/mailscanner/etc, insert PATH, SA conf file
+sed 's/\/usr/\/opt\/csw/;s/^\/etc\/init.d\/MailScanner/\/opt\/csw\/bin\/cswmailscanner/;s/\/etc\/mail/\/opt\/csw\/etc/;s/\/etc\/sysconfig/\/opt\/csw\/mailscanner\/etc/;s/^SAUPDATEARGS/PATH=\/opt\/csw\/bin:\/usr\/bin ; export PATH ; SAUPDATEARGS/;s/\/opt\/csw\/mailscanner\/etc\/update_spamassassin/\/opt\/csw\/mailscanner\/etc\/MailScanner/;s/\/opt\/csw\/etc\/spamassassin/\/etc\/opt\/csw\/spamassassin/' update_spamassassin > update_spamassassin.tmp
+mv update_spamassassin.tmp update_spamassassin
+cd ../..
+
+# fix update_spamassassin.cron
+
+cd mailscanner/bin/cron
+echo "-> Modifying update_spamassassin.cron for use with CSW ..." | tee -a $LOG
+sed 's/\/etc\/sysconfig\/update_spamassassin/\/opt\/csw\/mailscanner\/etc\/MailScanner/' update_spamassassin.cron > update_spamassassin.cron.tmp
+mv update_spamassassin.cron.tmp update_spamassassin.cron
+cd ../../..
+
+# fix check_MailScanner.cron
+
+cd mailscanner/bin/cron
+echo "-> Modifying check_MailScanner.cron for use with CSW ..." | tee -a $LOG
+sed 's/^LOCKFILE=\/var\/lock\/check_Mailscanner.lock/LOCKFILE=\/opt\/csw\/mailscanner\/var\/check_MailScanner.lock/;s/^MS_LOCKFILE=\/var\/lock\/subsys\/MailScanner.off/MS_LOCKFILE=\/opt\/csw\/mailscanner\/var\/MailScanner.off/' check_MailScanner.cron > check_MailScanner.cron.tmp
+mv check_MailScanner.cron.tmp check_MailScanner.cron
+cd ../../..
+
+# fix clamav-wrapper
+
+cd mailscanner/lib
+echo "-> Modifying clamav-wrapper for use with CSW ..." | tee -a $LOG
+# disable tgz and deb, enable unrar
+sed 's/^ExtraScanOptions=\"\$ExtraScanOptions --tgz/#ExtraScanOptions=\"\$ExtraScanOptions --tgz/;s/^ExtraScanOptions=\"\$ExtraScanOptions --deb/#ExtraScanOptions=\"\$ExtraScanOptions --deb/;s/^#ExtraScanOptions=\"\$ExtraScanOptions --unrar=\/path\/to\/unrar\"/ExtraScanOptions=\"\$ExtraScanOptions --unrar=\/opt\/csw\/bin\/unrar"/' clamav-wrapper > clamav-wrapper.tmp
+mv clamav-wrapper.tmp clamav-wrapper
+cd ../..
+
+# change syslog socket
+
+cd mailscanner/lib
+find . -type f | xargs grep "setlogsock('unix')" | awk -F':' '{print $1}' | sort | uniq > $LOGDIR/syslogsocketfix
+echo "-> Fixing syslog socket type in `wc -l $LOGDIR/syslogsocketfix | awk '{print $1}'` files ..." | tee -a $LOG
+for i in `cat $LOGDIR/syslogsocketfix`
+do
+  echo "---> Fixing syslog socket type in $i ..." >> $LOG
+  sed "/Sys::Syslog::setlogsock/s/unix/$SLTYPE/" $i > $i.tmp
+  mv $i.tmp $i
+done
+cd ../..
+
+# change awk to gawk in SA.pm
+
+cd mailscanner/lib/MailScanner
+echo "-> Changing awk to gawk in SA.pm ..." | tee -a $LOG
+patch SA.pm < $LOGDIR/SA.pm.patch > /dev/null 2>&1
+cd ../../..
+
+# change MailScanner path (/opt/MailScanner to /opt/csw/mailscanner)
+
+cd mailscanner
+find . -type f | egrep -v 'INSTALL.FreeBSD|INSTALL.OpenBSD' | xargs grep "/opt/MailScanner" | awk -F':' '{print $1}' | sort | uniq > $LOGDIR/mspathfix
+echo "-> Fixing MailScanner path in `wc -l $LOGDIR/mspathfix | awk '{print $1}'` files ..." | tee -a $LOG
+for i in `cat $LOGDIR/mspathfix`
+do
+  echo "---> Fixing MailScanner path in $i ..." >> $LOG
+  sed 's/\/opt\/MailScanner/\/opt\/csw\/mailscanner/g' $i > $i.tmp
+  mv $i.tmp $i
+done
+cd ..
+
+# fix ownership/permissions
+
+cd mailscanner
+echo "-> Fixing permissions ..." | tee -a $LOG
+chmod 644 COPYING INSTALL.FreeBSD INSTALL.OpenBSD MailScanner.conf.index.html README
+find bin | xargs chmod 755
+find etc -type f |xargs chmod 644
+find lib/MailScanner -type f |xargs chmod 644
+find var -type f |xargs chmod 644
+find www -type f |xargs chmod 644
+chmod 755 bin bin/cron etc etc/mcp etc/reports etc/reports/* etc/rules lib lib/* lib/MailScanner/CustomFunctions var www
+cd ..
+
+# remove bak files in reports
+
+cd mailscanner/etc/reports
+find . -type f -name "*.bak" > $LOGDIR/bakfiles
+echo "-> Removing `wc -l $LOGDIR/bakfiles | awk '{print $1}'` .bak files in reports ..." | tee -a $LOG
+for i in `cat $LOGDIR/bakfiles`
+do
+  echo "---> Removing $i ..." >> $LOG
+  rm $i
+done
+cd ../../..
+
+# remove unnecessary files
+
+cd mailscanner
+echo "-> Removing unnecessary files ..." | tee -a $LOG
+for i in INSTALL.FreeBSD INSTALL.OpenBSD MailScanner.conf.index.html svn-commit.tmp bin/Sophos.install bin/Sophos.install.linux bin/tnef.solaris.x86 bin/check_mailscanner.tru64
+do
+  echo "---> Removing $i ..." >> $LOG
+  rm -f $i
+done
+cd ..
+
+# add files to etc dir
+
+echo "-> Adding files to etc dir ..." | tee -a $LOG
+cd mailscanner/etc
+cp $LOGDIR/MailScanner .
+cd ../..
+
+# fix conf files, add .CSW
+
+cd mailscanner/etc
+find . -type f | egrep -v -i 'example|readme|.CSW$' > $LOGDIR/conffiles
+echo "-> Adding .CSW to `wc -l $LOGDIR/conffiles | awk '{print $1}'` configurable files ..." | tee -a $LOG
+for i in `cat $LOGDIR/conffiles`
+do
+  echo "---> Adding .CSW to $i ..." >> $LOG
+  mv $i ${i}.CSW
+done
+cd ../..
+
+# add CSW files to doc dir, also move MS doc files there
+
+echo "-> Adding files to doc dir ..." | tee -a $LOG
+mkdir -p share/doc/mailscanner
+cd share/doc/mailscanner
+cp $LOGDIR/conffiles .
+cp $LOGDIR/README.CSW .
+cp $LOGDIR/history .
+cp $LOGDIR/cswmailscanner .
+cp $LOGDIR/cswmailscanner.sendmail .
+cp $LOGDIR/mailscanner.xml .
+cp $LOGDIR/mailscanner.sendmail.xml .
+mv ../../../mailscanner/README .
+mv ../../../mailscanner/ChangeLog .
+mv ../../../mailscanner/COPYING license
+cd ../../..
+
+# create prototype
+
+echo "-> Creating prototype ..." | tee -a $LOG
+find mailscanner | pkgproto | grep -v prototype.find > prototype.find
+cat $LOGDIR/prototype.stub prototype.find > prototype.combined
+sed 's/bonivart csw/root bin/' prototype.combined > prototype
+rm prototype.find prototype.combined
+
+# add pstamp
+
+pstamp=`uname -n``date +%Y%m%d%H%M%S`
+
+# fix pkginfo
+
+echo "-> Creating pkginfo ..." | tee -a $LOG
+cp $LOGDIR/pkginfo.stub pkginfo
+echo "VERSION=$version.$rev$cswrev" >> pkginfo
+echo "PSTAMP=$pstamp" >> pkginfo
+
+# add symlinks to pkg build files
+
+echo "-> Adding symlinks to package build files ..." | tee -a $LOG
+cp $PKGDIR/copyright .
+ln -s $LOGDIR/depend depend
+ln -s $LOGDIR/postinstall postinstall
+#ln -s $LOGDIR/postremove postremove	# not used at the moment
+#ln -s $LOGDIR/preinstall preinstall	# not used at the moment
+ln -s $LOGDIR/preremove preremove
+ln -s $LOGDIR/checkinstall checkinstall
+ln -s $LOGDIR/i.smfyes i.smfyes
+ln -s $LOGDIR/i.smfno i.smfno
+ln -s $LOGDIR/space space
+
+# pkgmk
+
+echo "-> Making package ..." | tee -a $LOG
+pkgmk -r `pwd` 2>> $LOG
+
+# pkgtrans
+
+echo "-> Translating package ..." | tee -a $LOG
+cd /var/spool/pkg
+pkg=mailscanner-$version.$rev$cswrev-SunOS5.9-all-CSW.pkg
+pkgtrans -s `pwd` $LOGDIR/$pkg CSWmailscanner 2>> $LOG
+
+# gzip
+
+echo "-> Compressing package ..." | tee -a $LOG
+cd $LOGDIR
+gzip $pkg
+
+# copy to /home/experimental/bonivart
+
+echo "-> Copying package to /home/experimental/bonivart ..." | tee -a $LOG
+cp $pkg.gz $TESTDIR/
+
+# cleaning up
+
+echo "-> Cleaning up spool dir ..." | tee -a $LOG
+rm -rf /var/spool/pkg/CSWmailscanner
+echo "-> Cleaning up build dir ..." | tee -a $LOG
+cd $BUILDDIR/MailScanner-install-$version
+rm -rf perl-tar CheckModuleVersion install.*
+
+# copy pkginfo and prototype to pkg dir
+
+echo "-> Copying pkginfo and prototype to log dir ..." | tee -a $LOG
+cp $BUILDDIR/MailScanner-install-$version/pkginfo $LOGDIR
+cp $BUILDDIR/MailScanner-install-$version/prototype $LOGDIR
+
+# exiting
+
+echo "-> Exiting build script ..." | tee -a $LOG
+exit 0


Property changes on: csw/mgar/pkg/MailScanner/trunk/files/buildms.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/MailScanner/trunk/files/check_mailscanner.patch
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/check_mailscanner.patch	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/check_mailscanner.patch	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,18 @@
+--- check_mailscanner.orig	Wed Aug 15 11:09:25 2007
++++ check_mailscanner	Wed Aug 15 11:20:29 2007
+@@ -54,4 +54,5 @@
+ FGREP=fgrep
+ EGREP=egrep
++PGREP=pgrep
+ PS=ps
+ UNAME='uname -a'
+@@ -71,8 +72,5 @@
+ if $UNAME | $FGREP "SunOS" >/dev/null ; then
+     # Version for Solaris/SysV systems:
+-    pid=`/usr/ucb/ps auxww |
+-         egrep $msbindir/$process'|'$process'[:]' |
+-         grep -v grep |
+-         awk '{print $2}'`
++    pid=`$PGREP $process`
+ elif $UNAME | $FGREP "HP" >/dev/null ; then
+     # Version for HP-UX

Added: csw/mgar/pkg/MailScanner/trunk/files/cswmailscanner
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/cswmailscanner	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/cswmailscanner	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,70 @@
+#!/sbin/sh
+
+# cswmailscanner - controls MailScanner
+# 2007-08-15 Peter Bonivart
+
+DIR=/opt/csw/mailscanner
+MSCONF=$DIR/etc/MailScanner.conf
+MS_LOCKFILE=$DIR/var/MailScanner.off
+PPID=$DIR/var/MailScanner.pid
+HOSTNAME=`hostname`
+export HOSTNAME
+
+case "$1" in
+  start)
+    [ -f "$MSCONF" ] || exit
+    msin=`grep '^Incoming Work Dir' /opt/csw/mailscanner/etc/MailScanner.conf | awk '{print $5}'`
+    msquar=`grep '^Quarantine Dir' /opt/csw/mailscanner/etc/MailScanner.conf | awk '{print $4}'`
+    if [ ! -d "$msin" ]; then
+      /usr/bin/mkdir -m 0755 "$msin"
+      /usr/bin/chown root:bin "$msin"
+    fi
+    if [ ! -d "$msquar" ]; then
+      /usr/bin/mkdir -m 0750 "$msquar"
+      /usr/bin/chown root:bin "$msquar"
+    fi
+    $DIR/bin/check_mailscanner
+    rm -f $MS_LOCKFILE
+    ;;
+  stop)
+    echo Shutting down MailScanner...
+    if [ -s "$PPID" ]; then
+      kill `cat $PPID`
+      > $PPID
+      touch $MS_LOCKFILE
+    else
+      echo MailScanner is not running
+    fi
+    ;;
+  restart)
+    echo Restarting MailScanner...
+    $0 stop
+    echo "Waiting for MailScanner to stop.\c"
+    while ( pgrep MailScanner > /dev/null )
+    do
+      echo ".\c"
+      sleep 1
+    done
+    echo
+    sleep 1
+    $0 start
+    ;;
+  reload)
+    echo Reloading MailScanner...
+    pkill -HUP -x MailScanner
+    ;;
+  status)
+    PID=`pgrep MailScanner`
+    if [ "$PID" ]; then
+      echo MailScanner running with pid $PID
+    else
+      echo MailScanner not running
+    fi
+    ;;
+  *)
+    echo "Usage: $0 { start | stop | restart | reload | status }"
+    exit 1
+    ;;
+esac
+
+exit 0

Added: csw/mgar/pkg/MailScanner/trunk/files/cswmailscanner.sendmail
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/cswmailscanner.sendmail	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/cswmailscanner.sendmail	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,126 @@
+#!/sbin/sh
+#
+# Copyright (c) 1992 - 2001 by Sun Microsystems, Inc.
+# All rights reserved.
+#
+#ident  "@(#)sendmail   1.19    01/12/05 SMI"
+# Modified for CSW by Alex Moore 01/01/2004
+# Modified for MailScanner by Peter Bonivart 2007-07-10
+
+ERRMSG1='WARNING: /var/mail is NFS-mounted without setting actimeo=0,'
+ERRMSG2='this can cause mailbox locking and access problems.'
+SERVER_PID_FILE="/var/run/sendmail.pid"
+CLIENT_PID_FILE="/opt/csw/var/spool/clientmqueue/sm-client.pid"
+DEFAULT_FILE="/opt/csw/etc/default/sendmail"
+ALIASES_FILE="/opt/csw/etc/mail/aliases"
+CSW_DIR="/opt/csw"
+MSCONF="$CSW_DIR/mailscanner/etc/MailScanner.conf"
+
+check_queue_interval_syntax()
+{
+        default="15m"
+        if [ $# -lt 1 ]; then
+                answer=$default
+                return
+        fi
+        if echo $1 | egrep '^([0-9]*[1-9][0-9]*[smhdw])+$' >/dev/null 2>&1; then
+                answer=$1
+        else
+                answer=$default
+        fi
+}
+
+case "$1" in
+'restart')
+#       [ -f $SERVER_PID_FILE ] && kill -1 `head -1 $SERVER_PID_FILE`
+#       [ -f $CLIENT_PID_FILE ] && kill -1 `head -1 $CLIENT_PID_FILE`
+        $0 stop
+        sleep 2
+        $0 start
+        ;;
+
+'start')
+	[ -f "$MSCONF" ] || exit
+        echo Starting Sendmail
+        if [ -f $CSW_DIR/lib/sendmail -a -f $CSW_DIR/etc/mail/sendmail.cf ]; then
+		INDIR=`grep '^Incoming Queue Dir' $MSCONF | awk -F'=' '{print $2}' | awk '{print $1}'`
+		OUTDIR=`grep '^Outgoing Queue Dir' $MSCONF | awk -F'=' '{print $2}' | awk '{print $1}'`
+		if [ ! -d $INDIR ]; then
+			/usr/bin/mkdir -m 0750 $INDIR
+			/usr/bin/chown root:bin $INDIR
+		fi
+		if [ ! -d $OUTDIR ]; then
+			/usr/bin/mkdir -m 0750 $OUTDIR
+			/usr/bin/chown root:bin $OUTDIR
+		fi
+                if [ ! -f $ALIASES_FILE.db ] && [ ! -f $ALIASES_FILE.dir ] \
+                    && [ ! -f $ALIASES_FILE.pag ]; then
+                        $CSW_DIR/bin/newaliases
+                fi
+                MODE="-bd"
+                [ -f $DEFAULT_FILE ] && . $DEFAULT_FILE
+                #
+                # * MODE should be "-bd" or null (MODE= or MODE="") or
+                #   left alone.  Anything else and you're on your own.
+                # * QUEUEOPTION should be "p" or null (as above).
+                # * [CLIENT]QUEUEINTERVAL should be set to some legal value;
+                #   sanity checks are done below.
+                # * [CLIENT]OPTIONS are catch-alls; set with care.
+                #
+                if [ -n "$QUEUEOPTION" -a "$QUEUEOPTION" != "p" ]; then
+                        QUEUEOPTION=""
+                fi
+                if [ -z "$QUEUEOPTION" -o -n "$QUEUEINTERVAL" ]; then
+                        check_queue_interval_syntax $QUEUEINTERVAL
+                        QUEUEINTERVAL=$answer
+                fi
+                check_queue_interval_syntax $CLIENTQUEUEINTERVAL
+                CLIENTQUEUEINTERVAL=$answer
+                $CSW_DIR/lib/sendmail -L sm-mta -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=$INDIR &
+                $CSW_DIR/lib/sendmail -L sm-mta -q$CLIENTQUEUEINTERVAL -OQueueDirectory=$OUTDIR
+                $CSW_DIR/lib/sendmail -L sm-msp -Ac -q$CLIENTQUEUEINTERVAL $CLIENTOPTIONS &
+                #
+                # ETRN_HOSTS should be of the form
+                # "s1:c1.1,c1.2        s2:c2.1 s3:c3.1,c3.2,c3.3"
+                # i.e., white-space separated groups of server:client where
+                # client can be one or more comma-separated names; N.B. that
+                # the :client part is optional; see etrn(1M) for details.
+                # server is the name of the server to prod; a mail queue run
+                # is requested for each client name.  This is comparable to
+                # running "/usr/lib/sendmail -qRclient" on the host server.
+                #
+                # See RFC 1985 for more information.
+                #
+                for i in $ETRN_HOSTS; do
+                        SERVER=`echo $i | /usr/bin/sed -e 's/:.*$//'`
+                        CLIENTS=`echo $i | /usr/bin/sed -n -e 's/,/ /g' \
+                            -e '/:/s/^.*://p'`
+                        /usr/sbin/etrn $SERVER $CLIENTS >/dev/null 2>&1 &
+                done
+        fi
+
+        if /usr/bin/nawk 'BEGIN{s = 1}
+            $2 == "/var/mail" && $3 == "nfs" && $4 !~ /actimeo=0/ &&
+            $4 !~ /noac/{s = 0} END{exit s}' /etc/mnttab; then
+
+                /usr/bin/logger -p mail.crit "$ERRMSG1"
+                /usr/bin/logger -p mail.crit "$ERRMSG2"
+        fi
+        ;;
+
+'stop')
+        echo Stopping Sendmail
+        [ -f $SERVER_PID_FILE ] && kill `head -1 $SERVER_PID_FILE`
+        if [ -f $CLIENT_PID_FILE ]; then
+                kill `head -1 $CLIENT_PID_FILE`
+                rm -f $CLIENT_PID_FILE
+        fi
+        /usr/bin/pkill -x -u 0 sendmail
+        ;;
+
+*)
+        echo "Usage: $0 { start | stop | restart }"
+        exit 1
+        ;;
+esac
+exit 0

Added: csw/mgar/pkg/MailScanner/trunk/files/history
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/history	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/history	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,112 @@
+2010-09-06 4.81.4-1,REV=2010.09.06
+----------
+- no news related to the package itself.
+
+2010-09-03 4.79.11-1,REV=2010.09.03
+----------
+- removed dependency to pm_podescapes.
+- added dependencies Sys::SigAction and Compress::Raw::Zlib.
+- fixed paths in update_spamassassin and update_spamassassin.cron.
+
+2010-07-03 4.79.11-1,REV=2010.07.03
+----------
+- changed SA path from /opt/csw/etc/spamassassin to
+  /etc/opt/csw/spamassassin.
+- moved mailscanner.cf symlink to new SA location.
+- use /tmp for clamd socket.
+
+2009-10-01 4.78.17-1,REV=2009.10.01
+----------
+- no news related to the package itself.
+
+2009-06-01 4.77.8-1,REV=2009.06.01
+----------
+- no news related to the package itself.
+
+2009-05-12 4.76.25-1,REV=2009.05.12
+----------
+- no news related to the package itself.
+
+2009-05-04 4.76.24-3,REV=2009.05.04
+----------
+- no news related to the package itself.
+
+2009-04-22 4.75.11-1,REV=2009.04.22
+----------
+- no news related to the package itself.
+
+2009-01-21 4.74.16-1,REV=2009.01.21
+----------
+- added dir creation to postinstall script.
+- fixed path for ClamAV update monitoring.
+- fixed path for SpamAssassin Site Rules Dir.
+- fixed update_spamassassin script.
+- fixed svc-mailscanner.sendmail.
+
+2008-12-18 4.73.4-2,REV=2008.12.18
+----------
+- no news related to the package itself.
+
+2008-09-03 4.71.10-1,REV=2008.11.18
+----------
+- added dependency antiword.
+
+2008-08-06 4.70.7-1,REV=2008.08.06
+----------
+- added support for SMF.
+- added dependencies to pm_converttnef, pm_podescapes, pm_podsimple and
+  pm_testpod.
+- never released.
+
+2008-05-05 4.69.9-2,REV=2008.05.05
+----------
+- added dependency pm_olestoragelite.
+
+2008-04-14 4.68.8-1,REV=2008.04.14
+----------
+- changed paths to (g)awk in SA.pm to support timestamp feature when --debug-sa is used.
+- added dependencies to pm_mailtools, unrar and gawk.
+- removed dependency to pm_io since main Perl package is upgraded with new IO.
+- PERLLIB removed from rc-script.
+- wrapper /opt/csw/bin/MailScanner replaced with the old symlink.
+
+2008-01-04 4.66.5-2 (not officially released, only in testing)
+----------
+- new dependency pm_io, IO is included in core Perl but is too old.
+- PERLLIB added to rc-script to use new IO.
+- wrapper added to /opt/csw/bin/MailScanner to use new IO.
+
+2008-01-04 4.65.3-1,REV=2008.01.04
+----------
+- replace test -L with -h in preremove/postinstall scripts, caused error in
+  Solaris 8.
+
+2007-11-01 4.65.3-1
+----------
+- no news related to the package itself.
+
+2007-10-01 4.64.3-1
+----------
+- moved documentation to share/doc/mailscanner.
+
+2007-09-17 4.63.8-1,REV=2007.09.17
+----------
+- added dependency pm_syshostnamelong.
+
+2007-09-13 4.63.8-1
+----------
+- added official changelog.
+
+2007-09-03 4.63.7-2
+----------
+- add/remove symlink mailscanner.cf -> spam.assassin.prefs.conf.
+- removed unnecessary files (install guides for other OS:es and so on).
+- added history file to package.
+
+2007-08-16 4.62.9-3,REV=2007.08.16
+----------
+- Fixed init and cron scripts to better fit Solaris/CSW.
+
+2007-08-14 4.62.9-3
+----------
+- First CSW release.

Added: csw/mgar/pkg/MailScanner/trunk/files/history.csw
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/history.csw	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/history.csw	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,134 @@
+- updated cswmailscanner to support SMF.
+
+2010-09-06 4.81.4-1,REV=2010.09.06
+----------
+- no news related to the package itself.
+
+2010-09-03 4.79.11-1,REV=2010.09.03
+----------
+- removed dependency to pm_podescapes.
+- added dependencies Sys::SigAction and Compress::Raw::Zlib.
+- fixed paths in update_spamassassin and update_spamassassin.cron.
+
+2010-07-03 4.79.11-1,REV=2010.07.03
+----------
+- changed SA path from /opt/csw/etc/spamassassin to
+  /etc/opt/csw/spamassassin.
+- moved mailscanner.cf symlink to new SA location.
+- use /tmp for clamd socket.
+
+2009-10-01 4.78.17-1,REV=2009.10.01
+----------
+- no news related to the package itself.
+
+2009-06-01 4.77.8-1,REV=2009.06.01
+----------
+- no news related to the package itself.
+
+2009-05-12 4.76.25-1,REV=2009.05.12
+----------
+- no news related to the package itself.
+
+2009-05-04 4.76.24-3,REV=2009.05.04
+----------
+- no news related to the package itself.
+
+2009-04-22 4.75.11-1,REV=2009.04.22
+----------
+- no news related to the package itself.
+
+2009-01-21 4.74.16-1,REV=2009.01.21
+----------
+- added dir creation to postinstall script.
+- fixed path for ClamAV update monitoring.
+- fixed path for SpamAssassin Site Rules Dir.
+- fixed update_spamassassin script.
+- fixed svc-mailscanner.sendmail.
+
+2008-12-18 4.73.4-2,REV=2008.12.18
+----------
+- no news related to the package itself.
+
+2008-09-03 4.71.10-1,REV=2008.11.18
+----------
+- added dependency antiword.
+
+2008-08-06 4.70.7-1,REV=2008.08.06
+----------
+- added support for SMF.
+- added dependencies to pm_converttnef, pm_podescapes, pm_podsimple and
+  pm_testpod.
+- never released.
+
+2008-05-05 4.69.9-2,REV=2008.05.05
+----------
+- added dependency pm_olestoragelite.
+
+2008-04-14 4.68.8-1,REV=2008.04.14
+----------
+- changed paths to (g)awk in SA.pm to support timestamp feature when --debug-sa is used.
+- added dependencies to pm_mailtools, unrar and gawk.
+- removed dependency to pm_io since main Perl package is upgraded with new IO.
+- PERLLIB removed from rc-script.
+- wrapper /opt/csw/bin/MailScanner replaced with the old symlink.
+
+2008-01-04 4.66.5-2 (not officially released, only in testing)
+----------
+- new dependency pm_io, IO is included in core Perl but is too old.
+- PERLLIB added to rc-script to use new IO.
+- wrapper added to /opt/csw/bin/MailScanner to use new IO.
+
+2008-01-04 4.65.3-1,REV=2008.01.04
+----------
+- replace test -L with -h in preremove/postinstall scripts, caused error in
+  Solaris 8.
+
+2007-11-01 4.65.3-1
+----------
+- no news related to the package itself.
+
+2007-10-01 4.64.3-1
+----------
+- moved documentation to share/doc/mailscanner.
+
+2007-09-17 4.63.8-1,REV=2007.09.17
+----------
+- added dependency pm_syshostnamelong.
+
+2007-09-13 4.63.8-1
+----------
+- added official changelog.
+
+2007-09-03 4.63.7-2
+----------
+- add/remove symlink mailscanner.cf -> spam.assassin.prefs.conf.
+- removed unnecessary files (install guides for other OS:es and so on).
+- added history file to package.
+
+2007-08-16 4.62.9-3,REV=2007.08.16
+----------
+- Fixed init and cron scripts to better fit Solaris/CSW.
+
+2007-08-14 4.62.9-3
+----------
+- Modified to not need symlink from /opt. Changes to build script and prototype
+  stub. Updated README.CSW with upgrade info. Added CSWpmtimedate as dep.
+
+2007-07-11 4.61.7-2
+----------
+- Build script now fixes everything.
+
+2006-05-15 4.52.2-1,REV=2006.05.15
+----------
+- Added Sendmail as a dependency. Preinst and prerem scripts now removed and
+  postinst and postremo scripts are somewhat meaningful. First version built
+  with the build script.
+
+2006-05-12 4.52.2-1,REV=2006.05.12
+----------
+- Fixed dependency error (CSWpmtimedate incorrectly named).
+
+2006-05-11 4.52.2-1
+----------
+- First release. All scripts (preinst, postint, prerem, postrem) are just
+  dummies. Built on login since nothing needs to be compiled.

Added: csw/mgar/pkg/MailScanner/trunk/files/mailscanner.sendmail.xml
===================================================================
(Binary files differ)


Property changes on: csw/mgar/pkg/MailScanner/trunk/files/mailscanner.sendmail.xml
___________________________________________________________________
Added: svn:mime-type
   + application/xml

Added: csw/mgar/pkg/MailScanner/trunk/files/mailscanner.xml
===================================================================
(Binary files differ)


Property changes on: csw/mgar/pkg/MailScanner/trunk/files/mailscanner.xml
___________________________________________________________________
Added: svn:mime-type
   + application/xml

Added: csw/mgar/pkg/MailScanner/trunk/files/postinstall
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/postinstall	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/postinstall	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,113 @@
+#!/bin/sh
+
+# postinstall with SMF support for MailScanner
+# 2009-01-13 Peter Bonivart
+
+CHMOD=/usr/bin/chmod
+CHOWN=/usr/bin/chown
+CHROOT=/usr/sbin/chroot
+CP=/usr/bin/cp
+ECHO=/usr/bin/echo
+LN=/usr/bin/ln
+MKDIR=/usr/bin/mkdir
+SVCADM=/usr/sbin/svcadm
+SVCCFG=/usr/sbin/svccfg
+
+CONFFILES=$BASEDIR/share/doc/mailscanner/conffiles
+INSTALLDIR=$BASEDIR/mailscanner
+ETC=$INSTALLDIR/etc
+MSCONF=$ETC/MailScanner.conf
+SADIR=$PKG_INSTALL_ROOT/etc/opt/csw/spamassassin
+
+# check csw.conf
+if [ -f $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf ] ; then
+  . $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf
+fi
+if [ -f $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf ] ; then
+  . $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf
+fi
+
+# create symlink to spam.assassin.prefs.conf
+if [ -d "$SADIR" -a ! -h "$SADIR/mailscanner.cf" ]; then
+  $ECHO "Creating symlink to spam.assassin.prefs.conf."
+  $LN -s $ETC/spam.assassin.prefs.conf $SADIR/mailscanner.cf
+fi
+
+# create symlink cswmailscanner
+$ECHO "Creating symlink cswmailscanner."
+if [ -f "$PKG_INSTALL_ROOT/etc/init.d/cswmailscanner" ]; then
+  $LN -s $PKG_INSTALL_ROOT/etc/init.d/cswmailscanner $BASEDIR/bin/cswmailscanner
+else
+  $LN -s $PKG_INSTALL_ROOT/var/opt/csw/svc/method/svc-mailscanner $BASEDIR/bin/cswmailscanner
+fi
+
+# copying x.CSW to x
+$ECHO "Copying `wc -l $CONFFILES | awk '{print $1}'` CSW-configuration files to default files."
+for i in `cat $CONFFILES`
+do
+  if [ ! -f "$ETC/$i" ]; then
+    if [ "$i" = "./MailScanner.conf" -a "$autoenable_daemons" = "no" ]; then
+      $ECHO "\nMailScanner.conf not created due to csw.conf setting."
+    else
+      $CP $ETC/${i}.CSW $ETC/$i
+      $CHOWN root:bin $ETC/$i
+      $CHMOD 644 $ETC/$i
+      $ECHO ".\c"
+    fi
+  else
+    $ECHO "\n$i already present. Not copied."
+  fi
+done
+$ECHO
+
+# create mailscanner dirs
+WD=`grep '^Incoming Work Dir' $MSCONF | awk -F'=' '{print $2}'`
+IQ=`grep '^Incoming Queue Dir' $MSCONF | awk -F'=' '{print $2}'`
+OQ=`grep '^Outgoing Queue Dir' $MSCONF | awk -F'=' '{print $2}'`
+LD=`grep '^Lockfile Dir' $MSCONF | awk -F'=' '{print $2}'`
+QD=`grep '^Quarantine Dir' $MSCONF | awk -F'=' '{print $2}'`
+for i in $WD $LD $QD $IQ $OQ
+do
+  $ECHO "Creating $i directory."
+  if [ -h "$i" -o -f "$i" -o -d "$i" ]; then
+    $ECHO "! $i already exists. Could not create directory."
+  else
+    $MKDIR -p -m 755 $i
+    $CHOWN root:bin $i
+  fi
+done
+$CHMOD 750 $IQ
+
+# SMF
+smf=no
+if [ -f $PKG_INSTALL_ROOT/usr/sbin/svccfg -a -f $PKG_INSTALL_ROOT/usr/sbin/svcadm ]; then
+  if [ "$use_smf" != "no" ]; then
+    smf=yes
+  fi
+fi
+
+if [ "$smf" = "yes" ]; then
+  $ECHO "Configuring service in SMF."
+  $SVCCFG import /var/opt/csw/svc/manifest/network/smtp/mailscanner.xml > /dev/null 2>&1
+  $SVCADM disable svc:/network/smtp/cswmailscanner > /dev/null 2>&1
+  $SVCCFG import /var/opt/csw/svc/manifest/network/smtp/mailscanner.sendmail.xml > /dev/null 2>&1
+  $SVCADM disable svc:/network/smtp/cswmailscannersendmail > /dev/null 2>&1
+  $ECHO "MailScanner is using SMF. The FMRI is: svc:/network/smtp/cswmailscanner, svc:/network/smtp/cswmailscanner.sendmail"
+fi
+
+# If enabled, start the daemon
+#if [ "$enable_daemon" = "yes" -a x"$PKG_INSTALL_ROOT" = x"" ]; then
+#  $ECHO "Starting MailScanner."
+#  if [ "$smf" = "no" ]; then
+#    /etc/init.d/cswmailscanner start
+#  else
+#    $SVCADM enable svc:/network/smtp/cswmailscanner
+#  fi
+#fi
+
+# info
+$ECHO
+$ECHO ">>> Please read /opt/csw/share/doc/mailscanner/README.CSW <<<"
+$ECHO
+
+exit 0


Property changes on: csw/mgar/pkg/MailScanner/trunk/files/postinstall
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/MailScanner/trunk/files/preremove
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/preremove	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/preremove	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,96 @@
+#!/bin/sh
+
+# preremove with SMF support for MailScanner
+# 2008-09-04 Peter Bonivart
+
+CHROOT=/usr/sbin/chroot
+ECHO=/usr/bin/echo
+RM=/usr/bin/rm
+RMDIR=/usr/bin/rmdir
+SVCADM=/usr/sbin/svcadm
+SVCCFG=/usr/sbin/svccfg
+
+CONFFILES=$BASEDIR/share/doc/mailscanner/conffiles
+ETC=$BASEDIR/mailscanner/etc
+MSDIR=$PKG_INSTALL_ROOT/var/spool/MailScanner
+SADIR=$PKG_INSTALL_ROOT/etc/opt/csw/spamassassin
+
+# If removing from a filesystem that is not running the OS, exit this script.
+if [ ! x"$PKG_INSTALL_ROOT" = x"" ]; then
+  exit 0
+fi
+
+# check csw.conf
+if [ -f $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf ] ; then
+  . $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf
+fi
+if [ -f $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf ] ; then
+  . $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf
+fi
+
+# SMF
+smf=no
+if [ -f $PKG_INSTALL_ROOT/usr/sbin/svccfg -a -f $PKG_INSTALL_ROOT/usr/sbin/svcadm ]; then
+  if [ "$use_smf" != "no" ]; then
+    smf=yes
+  fi
+fi
+
+# killing mailscanner
+$ECHO "Stopping MailScanner."
+if [ "$smf" = "yes" ]; then
+  $SVCADM disable -s svc:network/smtp/cswmailscanner > /dev/null 2>&1
+  $SVCADM disable -s svc:network/smtp/cswmailscannersendmail > /dev/null 2>&1
+else
+  /etc/init.d/cswmailscanner stop >/dev/null 2>&1
+  /etc/init.d/cswmailscanner.sendmail stop >/dev/null 2>&1
+fi
+
+if [ "$smf" = "yes" ]; then
+  # Unregister with SMF
+  $ECHO "Unregister with SMF."
+  $SVCCFG delete svc:network/smtp/cswmailscanner > /dev/null 2>&1
+  $SVCCFG delete svc:network/smtp/cswmailscannersendmail > /dev/null 2>&1
+fi
+
+# remove mailscanner dir
+$ECHO "Removing $MSDIR directory."
+if [ -d "$MSDIR" ]; then
+  dirs=`find $MSDIR -type d | wc -l | awk '{print $1}'` 
+  test -f "$MSDIR/incoming/SpamAssassin.cache.db"
+  sacache=$?
+  if [ "$dirs" -le "3" -a "$sacache" -ne "0" ]; then
+    $RM -rf $MSDIR
+  else
+    $ECHO "! $MSDIR does not seem empty. Not removing."
+  fi
+else
+  $ECHO "! No directory found."
+fi
+
+# remove symlink to spam.assassin.prefs.conf
+if [ -h "$SADIR/mailscanner.cf" ]; then
+  $ECHO "Removing symlink to spam.assassin.prefs.conf."
+  $RM $SADIR/mailscanner.cf
+fi
+
+# remove symlink cswmailscanner
+$ECHO "Removing symlink cswmailscanner."
+$RM -f $BASEDIR/bin/cswmailscanner
+
+# remove x conf file if same as x.CSW
+$ECHO "Removing configuration files that have not been modified."
+for i in `cat $CONFFILES`
+do
+  cmp -s "$ETC/$i" "$ETC/${i}.CSW"
+  if [ "x$?" = "x1" ]; then
+    $ECHO
+    echo "! $i modified, will not remove it."
+  else
+    $ECHO ".\c"
+    $RM -f $ETC/$i
+  fi
+done
+$ECHO
+
+exit 0


Property changes on: csw/mgar/pkg/MailScanner/trunk/files/preremove
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/MailScanner/trunk/files/readme
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/readme	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/readme	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,91 @@
+Edited 060424, 060425, 060512, 060515, 060516, 070705, 070711, 070717, 070721,
+       081218
+
+Todo
+----
+# if csw.conf is enabled, try to get up and running immediately
+# - stop/disable sun sendmail and csw sendmail (note: smf on sol10)
+# - start cswmailscanner.sendmail and cswmailscanner
+# -- maybe not such a good idea after upgrades?
+# -- stop/disable can be done but start?
+
+Build script
+------------
+- menu based
++ fix ownership/permissions
++ add csw-directory
++ ask for version
++ add pstamp
++ create prototype
++ pkgmk
++ pkgtrans
++ gzip
++ copy to testing
+
+Misc
+----
++ Add CSW specific things (start scripts...) in csw-directory
++ Add CSW readme, history and so on in csw-directory
++ SMF support
+
+Postinstall
+----------
++ symlink /opt/MailScanner to /opt/csw/mailscanner
+++ detect if link already present
+- ask if to disable CSWsendmail/SUNWsendmail (rename init.d file or remove K/S
+  symlinks?)
++ install start script (cswmailscanner) with K/S symlinks
+- start script should support general MTA operation (start/stop)
++ start script should support Sendmail
+- ask for queue folders (default: /var/spool)
++ create queue folders and MailScanner folder
++ support S10 svc feature
++ copy .CSW config files to non .CSW
+
+Postremove
+----------
++ remove symlink /opt/MailScanner
++ diff config files against originals, if modified copy to other name
+++ should package only contain config files named x.CSW to avoid above issue?
++++ yes!
+
+Modifications
+-------------
++ #!/usr/bin/perl -> #!/opt/csw/bin/perl
+- /opt in bin/MailScanner
+- /var in bin/update_virus_scanners
+- /etc in bin/cron/check_MailScanner.cron
+          bin/cron/update_phishing_sites.cron
+          bin/cron/update_virus_scanners.cron
+          bin/check_mailscanner
+          bin/update_phishing_sites
+          lib/ConfigDefs.pl
+          lib/CustomConfig.pm
+          etc/MailScanner.conf
+          etc/virus.scanners.conf
+
+New pkgs
+--------
+
+- Net::IP (needed for Net::DNS 0.60)
+
+MTA
+---
+Support only Sendmail and how? Replace/disable CSWsendmail's start script?
+
+Dependencies
+------------
+common
+perl
+pm_archivezip
+pm_convertbinhex
+pm_dbdsqlite
+pm_dbi
+pm_filesysdf
+pm_htmlparser
+pm_mimebase64 (probably not needed, seems included in perl 5.8.8)
+pm_mimetools
+pm_netcidr
+tnef
+
+:EOF

Added: csw/mgar/pkg/MailScanner/trunk/files/svc-mailscanner
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/svc-mailscanner	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/svc-mailscanner	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,70 @@
+#!/sbin/sh
+
+# cswmailscanner - controls MailScanner
+# 2007-08-15 Peter Bonivart
+
+DIR=/opt/csw/mailscanner
+MSCONF=$DIR/etc/MailScanner.conf
+MS_LOCKFILE=$DIR/var/MailScanner.off
+PPID=$DIR/var/MailScanner.pid
+HOSTNAME=`hostname`
+export HOSTNAME
+
+case "$1" in
+  start)
+    [ -f "$MSCONF" ] || exit
+    msin=`grep '^Incoming Work Dir' /opt/csw/mailscanner/etc/MailScanner.conf | awk '{print $5}'`
+    msquar=`grep '^Quarantine Dir' /opt/csw/mailscanner/etc/MailScanner.conf | awk '{print $4}'`
+    if [ ! -d "$msin" ]; then
+      /usr/bin/mkdir -m 0755 "$msin"
+      /usr/bin/chown root:bin "$msin"
+    fi
+    if [ ! -d "$msquar" ]; then
+      /usr/bin/mkdir -m 0750 "$msquar"
+      /usr/bin/chown root:bin "$msquar"
+    fi
+    $DIR/bin/check_mailscanner
+    rm -f $MS_LOCKFILE
+    ;;
+  stop)
+    echo Shutting down MailScanner...
+    if [ -s "$PPID" ]; then
+      kill `cat $PPID`
+      > $PPID
+      touch $MS_LOCKFILE
+    else
+      echo MailScanner is not running
+    fi
+    ;;
+  restart)
+    echo Restarting MailScanner...
+    $0 stop
+    echo "Waiting for MailScanner to stop.\c"
+    while ( pgrep MailScanner > /dev/null )
+    do
+      echo ".\c"
+      sleep 1
+    done
+    echo
+    sleep 1
+    $0 start
+    ;;
+  reload)
+    echo Reloading MailScanner...
+    pkill -HUP -x MailScanner
+    ;;
+  status)
+    PID=`pgrep MailScanner`
+    if [ "$PID" ]; then
+      echo MailScanner running with pid $PID
+    else
+      echo MailScanner not running
+    fi
+    ;;
+  *)
+    echo "Usage: $0 { start | stop | restart | reload | status }"
+    exit 1
+    ;;
+esac
+
+exit 0

Added: csw/mgar/pkg/MailScanner/trunk/files/svc-mailscanner.sendmail
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/files/svc-mailscanner.sendmail	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/files/svc-mailscanner.sendmail	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,126 @@
+#!/sbin/sh
+#
+# Copyright (c) 1992 - 2001 by Sun Microsystems, Inc.
+# All rights reserved.
+#
+#ident  "@(#)sendmail   1.19    01/12/05 SMI"
+# Modified for CSW by Alex Moore 01/01/2004
+# Modified for MailScanner by Peter Bonivart 2007-07-10
+
+ERRMSG1='WARNING: /var/mail is NFS-mounted without setting actimeo=0,'
+ERRMSG2='this can cause mailbox locking and access problems.'
+SERVER_PID_FILE="/var/run/sendmail.pid"
+CLIENT_PID_FILE="/opt/csw/var/spool/clientmqueue/sm-client.pid"
+DEFAULT_FILE="/opt/csw/etc/default/sendmail"
+ALIASES_FILE="/opt/csw/etc/mail/aliases"
+CSW_DIR="/opt/csw"
+MSCONF="$CSW_DIR/mailscanner/etc/MailScanner.conf"
+
+check_queue_interval_syntax()
+{
+        default="15m"
+        if [ $# -lt 1 ]; then
+                answer=$default
+                return
+        fi
+        if echo $1 | egrep '^([0-9]*[1-9][0-9]*[smhdw])+$' >/dev/null 2>&1; then
+                answer=$1
+        else
+                answer=$default
+        fi
+}
+
+case "$1" in
+'restart')
+#       [ -f $SERVER_PID_FILE ] && kill -1 `head -1 $SERVER_PID_FILE`
+#       [ -f $CLIENT_PID_FILE ] && kill -1 `head -1 $CLIENT_PID_FILE`
+        $0 stop
+        sleep 2
+        $0 start
+        ;;
+
+'start')
+	[ -f "$MSCONF" ] || exit
+        echo Starting Sendmail
+        if [ -f $CSW_DIR/lib/sendmail -a -f $CSW_DIR/etc/mail/sendmail.cf ]; then
+		INDIR=`grep '^Incoming Queue Dir' $MSCONF | awk -F'=' '{print $2}' | awk '{print $1}'`
+		OUTDIR=`grep '^Outgoing Queue Dir' $MSCONF | awk -F'=' '{print $2}' | awk '{print $1}'`
+		if [ ! -d $INDIR ]; then
+			/usr/bin/mkdir -m 0750 $INDIR
+			/usr/bin/chown root:bin $INDIR
+		fi
+		if [ ! -d $OUTDIR ]; then
+			/usr/bin/mkdir -m 0750 $OUTDIR
+			/usr/bin/chown root:bin $OUTDIR
+		fi
+                if [ ! -f $ALIASES_FILE.db ] && [ ! -f $ALIASES_FILE.dir ] \
+                    && [ ! -f $ALIASES_FILE.pag ]; then
+                        $CSW_DIR/bin/newaliases
+                fi
+                MODE="-bd"
+                [ -f $DEFAULT_FILE ] && . $DEFAULT_FILE
+                #
+                # * MODE should be "-bd" or null (MODE= or MODE="") or
+                #   left alone.  Anything else and you're on your own.
+                # * QUEUEOPTION should be "p" or null (as above).
+                # * [CLIENT]QUEUEINTERVAL should be set to some legal value;
+                #   sanity checks are done below.
+                # * [CLIENT]OPTIONS are catch-alls; set with care.
+                #
+                if [ -n "$QUEUEOPTION" -a "$QUEUEOPTION" != "p" ]; then
+                        QUEUEOPTION=""
+                fi
+                if [ -z "$QUEUEOPTION" -o -n "$QUEUEINTERVAL" ]; then
+                        check_queue_interval_syntax $QUEUEINTERVAL
+                        QUEUEINTERVAL=$answer
+                fi
+                check_queue_interval_syntax $CLIENTQUEUEINTERVAL
+                CLIENTQUEUEINTERVAL=$answer
+                $CSW_DIR/lib/sendmail -L sm-mta -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=$INDIR &
+                $CSW_DIR/lib/sendmail -L sm-mta -q$CLIENTQUEUEINTERVAL -OQueueDirectory=$OUTDIR
+                $CSW_DIR/lib/sendmail -L sm-msp -Ac -q$CLIENTQUEUEINTERVAL $CLIENTOPTIONS &
+                #
+                # ETRN_HOSTS should be of the form
+                # "s1:c1.1,c1.2        s2:c2.1 s3:c3.1,c3.2,c3.3"
+                # i.e., white-space separated groups of server:client where
+                # client can be one or more comma-separated names; N.B. that
+                # the :client part is optional; see etrn(1M) for details.
+                # server is the name of the server to prod; a mail queue run
+                # is requested for each client name.  This is comparable to
+                # running "/usr/lib/sendmail -qRclient" on the host server.
+                #
+                # See RFC 1985 for more information.
+                #
+                for i in $ETRN_HOSTS; do
+                        SERVER=`echo $i | /usr/bin/sed -e 's/:.*$//'`
+                        CLIENTS=`echo $i | /usr/bin/sed -n -e 's/,/ /g' \
+                            -e '/:/s/^.*://p'`
+                        /usr/sbin/etrn $SERVER $CLIENTS >/dev/null 2>&1 &
+                done
+        fi
+
+        if /usr/bin/nawk 'BEGIN{s = 1}
+            $2 == "/var/mail" && $3 == "nfs" && $4 !~ /actimeo=0/ &&
+            $4 !~ /noac/{s = 0} END{exit s}' /etc/mnttab; then
+
+                /usr/bin/logger -p mail.crit "$ERRMSG1"
+                /usr/bin/logger -p mail.crit "$ERRMSG2"
+        fi
+        ;;
+
+'stop')
+        echo Stopping Sendmail
+        [ -f $SERVER_PID_FILE ] && kill `head -1 $SERVER_PID_FILE`
+        if [ -f $CLIENT_PID_FILE ]; then
+                kill `head -1 $CLIENT_PID_FILE`
+                rm -f $CLIENT_PID_FILE
+        fi
+        /usr/bin/pkill -x -u 0 sendmail
+        ;;
+
+*)
+        echo "Usage: $0 { start | stop | restart }"
+        exit 1
+        ;;
+esac
+exit 0

Modified: csw/mgar/pkg/MailScanner/trunk/legacy/MailScanner
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/MailScanner	2011-11-21 16:32:55 UTC (rev 16226)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/MailScanner	2011-11-21 21:31:09 UTC (rev 16227)
@@ -9,5 +9,5 @@
 #export http_proxy
 
 # Used by the update_spamassassin script
-# Example: "--channelfile /opt/csw/etc/spamassassin/sa.update.txt --gpgkey 123456"
+# Example: "--channelfile /etc/opt/csw/spamassassin/sa.update.txt --gpgkey 123456"
 #SAUPDATEARGS=""

Added: csw/mgar/pkg/MailScanner/trunk/legacy/_postremove
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/_postremove	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/_postremove	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,33 @@
+### NOT USED AT THE MOMENT 070710 ###
+
+#!/bin/sh
+
+# postremove for MailScanner
+# 2006-05-12 Peter Bonivart
+
+ECHO=/usr/bin/echo
+READ=/usr/bin/read
+
+$ECHO "Removing symlink from /opt to /opt/csw"
+/usr/bin/rm -s /opt/mailscanner
+
+$ECHO "Removing start script"
+
+$ECHO "The Sendmail start script seems to be disabled,"
+$ECHO "do you want to enable it? [y] \c"
+$READ a
+if [ "$a" = "n" -o "$a" = "N" ]; then
+  $ECHO "Sendmail is still disabled"
+else
+  $ECHO "Enabled Sendmail start script by renaming"
+  $ECHO "/etc/init.d/cswsendmail.disabled to cswsendmail"
+fi
+
+$ECHO "Queue directories prefix? [/var/spool] \c"
+$READ a
+
+$ECHO "Creating incoming queue directory"
+
+$ECHO "Removing MailScanner work directory"
+
+exit 0


Property changes on: csw/mgar/pkg/MailScanner/trunk/legacy/_postremove
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/MailScanner/trunk/legacy/_preinstall
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/_preinstall	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/_preinstall	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo preinstall


Property changes on: csw/mgar/pkg/MailScanner/trunk/legacy/_preinstall
___________________________________________________________________
Added: svn:executable
   + *

Modified: csw/mgar/pkg/MailScanner/trunk/legacy/buildms.sh
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/buildms.sh	2011-11-21 16:32:55 UTC (rev 16226)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/buildms.sh	2011-11-21 21:31:09 UTC (rev 16227)
@@ -45,6 +45,7 @@
 #            from /opt/csw/etc/spamassassin to /etc/opt/csw/spamassassin
 # 2010-07-02 Lowercase license filename. Make conffiles 0400 to protect it
 # 2010-07-03 Use /tmp/clamd.socket for ClamAV socket
+# 2010-09-01 Fixed update_spamassassin.cron, switch to 5.9
 
 # todo: 
 
@@ -52,7 +53,7 @@
 
 set -e
 
-BSVER=2.10
+BSVER=2.22
 SLTYPE=udp
 
 PATHPREFIX1=/home/bonivart
@@ -237,11 +238,19 @@
 
 cd mailscanner/bin
 echo "-> Modifying update_spamassassin for use with CSW ..." | tee -a $LOG
-# set replace /usr with /opt/csw, replace /etc/init.d with /opt/csw/bin, replace /etc/mail with /opt/csw/etc, replace /etc/sysconfig with /opt/csw/mailscanner/etc, insert PATH
-sed 's/\/usr/\/opt\/csw/;s/^\/etc\/init.d\/MailScanner/\/opt\/csw\/bin\/cswmailscanner/;s/\/etc\/mail/\/opt\/csw\/etc/;s/\/etc\/sysconfig/\/opt\/csw\/mailscanner\/etc/;s/^SAUPDATEARGS/PATH=\/opt\/csw\/bin:\/usr\/bin ; export PATH ; SAUPDATEARGS/' update_spamassassin > update_spamassassin.tmp
+# sed replace /usr with /opt/csw, replace /etc/init.d with /opt/csw/bin, replace /etc/mail with /opt/csw/etc, replace /etc/sysconfig with /opt/csw/mailscanner/etc, insert PATH, SA conf file
+sed 's/\/usr/\/opt\/csw/;s/^\/etc\/init.d\/MailScanner/\/opt\/csw\/bin\/cswmailscanner/;s/\/etc\/mail/\/opt\/csw\/etc/;s/\/etc\/sysconfig/\/opt\/csw\/mailscanner\/etc/;s/^SAUPDATEARGS/PATH=\/opt\/csw\/bin:\/usr\/bin ; export PATH ; SAUPDATEARGS/;s/\/opt\/csw\/mailscanner\/etc\/update_spamassassin/\/opt\/csw\/mailscanner\/etc\/MailScanner/;s/\/opt\/csw\/etc\/spamassassin/\/etc\/opt\/csw\/spamassassin/' update_spamassassin > update_spamassassin.tmp
 mv update_spamassassin.tmp update_spamassassin
 cd ../..
 
+# fix update_spamassassin.cron
+
+cd mailscanner/bin/cron
+echo "-> Modifying update_spamassassin.cron for use with CSW ..." | tee -a $LOG
+sed 's/\/etc\/sysconfig\/update_spamassassin/\/opt\/csw\/mailscanner\/etc\/MailScanner/' update_spamassassin.cron > update_spamassassin.cron.tmp
+mv update_spamassassin.cron.tmp update_spamassassin.cron
+cd ../../..
+
 # fix check_MailScanner.cron
 
 cd mailscanner/bin/cron
@@ -406,7 +415,7 @@
 
 echo "-> Translating package ..." | tee -a $LOG
 cd /var/spool/pkg
-pkg=mailscanner-$version.$rev$cswrev-SunOS5.8-all-CSW.pkg
+pkg=mailscanner-$version.$rev$cswrev-SunOS5.9-all-CSW.pkg
 pkgtrans -s `pwd` $LOGDIR/$pkg CSWmailscanner 2>> $LOG
 
 # gzip
@@ -415,9 +424,9 @@
 cd $LOGDIR
 gzip $pkg
 
-# copy to experimental/bonivart
+# copy to /home/experimental/bonivart
 
-echo "-> Copying package to /experimental/bonivart ..." | tee -a $LOG
+echo "-> Copying package to /home/experimental/bonivart ..." | tee -a $LOG
 cp $pkg.gz $TESTDIR/
 
 # cleaning up

Modified: csw/mgar/pkg/MailScanner/trunk/legacy/depend
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/depend	2011-11-21 16:32:55 UTC (rev 16226)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/depend	2011-11-21 21:31:09 UTC (rev 16227)
@@ -3,19 +3,20 @@
 P CSWgawk
 P CSWperl
 P CSWpmarchivezip
+P CSWpm-compress-raw-zlib
 P CSWpmconvertbinhex
 P CSWpmconverttnef
-P CSWpmdbdsqlite
-P CSWpmdbi
+P CSWpm-dbd-sqlite
+P CSWpm-dbi
 P CSWpmfilesysdf
-P CSWpmhtmlparser
+P CSWpm-html-parser
 P CSWpmmailtools
 P CSWpmmimetools
-P CSWpmnetcidr
+P CSWpm-net-cidr
 P CSWpmolestoragelite
-P CSWpmpodescapes
-P CSWpmpodsimple
+P CSWpm-pod-simple
 P CSWpmsyshostnamelong
+P CSWpmsyssigaction
 P CSWpmtestpod
 P CSWpmtimedate
 P CSWtnef

Modified: csw/mgar/pkg/MailScanner/trunk/legacy/history
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/history	2011-11-21 16:32:55 UTC (rev 16226)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/history	2011-11-21 21:31:09 UTC (rev 16227)
@@ -1,3 +1,13 @@
+2010-09-06 4.81.4-1,REV=2010.09.06
+----------
+- no news related to the package itself.
+
+2010-09-03 4.79.11-1,REV=2010.09.03
+----------
+- removed dependency to pm_podescapes.
+- added dependencies Sys::SigAction and Compress::Raw::Zlib.
+- fixed paths in update_spamassassin and update_spamassassin.cron.
+
 2010-07-03 4.79.11-1,REV=2010.07.03
 ----------
 - changed SA path from /opt/csw/etc/spamassassin to

Modified: csw/mgar/pkg/MailScanner/trunk/legacy/history.csw
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/history.csw	2011-11-21 16:32:55 UTC (rev 16226)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/history.csw	2011-11-21 21:31:09 UTC (rev 16227)
@@ -1,3 +1,15 @@
+- updated cswmailscanner to support SMF.
+
+2010-09-06 4.81.4-1,REV=2010.09.06
+----------
+- no news related to the package itself.
+
+2010-09-03 4.79.11-1,REV=2010.09.03
+----------
+- removed dependency to pm_podescapes.
+- added dependencies Sys::SigAction and Compress::Raw::Zlib.
+- fixed paths in update_spamassassin and update_spamassassin.cron.
+
 2010-07-03 4.79.11-1,REV=2010.07.03
 ----------
 - changed SA path from /opt/csw/etc/spamassassin to

Added: csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.nosmf
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.nosmf	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.nosmf	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# postinstall for MailScanner
+# 2007-09-03 Peter Bonivart
+
+CHMOD=/usr/bin/chmod
+CHOWN=/usr/bin/chown
+CP=/usr/bin/cp
+ECHO=/usr/bin/echo
+LN=/usr/bin/ln
+MKDIR=/usr/bin/mkdir
+
+CONFFILES=$BASEDIR/share/doc/mailscanner/conffiles
+INSTALLDIR=$BASEDIR/mailscanner
+ETC=$INSTALLDIR/etc
+MSDIR=$PKG_INSTALL_ROOT/var/spool/MailScanner
+SADIR=$BASEDIR/etc/spamassassin
+
+# check csw.conf
+if [ -x $BASEDIR/etc/csw.conf ] ; then
+  . $BASEDIR/etc/csw.conf
+fi
+if [ -x $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf ] ; then
+  . $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf
+fi
+
+# create mailscanner dir
+$ECHO "Creating $MSDIR directory."
+if [ -h "$MSDIR" -o -f "$MSDIR" -o -d "$MSDIR" ]; then
+  $ECHO "! $MSDIR already exists. Could not create directory."
+else
+  $MKDIR -m 755 "$MSDIR"
+  $CHOWN root:bin "$MSDIR"
+fi
+
+# create symlink to spam.assassin.prefs.conf
+if [ -d "$SADIR" -a ! -h "$SADIR/mailscanner.cf" ]; then
+  $ECHO "Creating symlink to spam.assassin.prefs.conf."
+  $LN -s $ETC/spam.assassin.prefs.conf $SADIR/mailscanner.cf
+fi
+
+# copying x.CSW to x
+$ECHO "Copying `wc -l $CONFFILES | awk '{print $1}'` CSW-configuration files to default files."
+for i in `cat $CONFFILES`
+do
+  if [ ! -f "$ETC/$i" ]; then
+    if [ "$i" = "./MailScanner.conf" -a "$autoenable_daemons" = "no" ]; then
+      $ECHO "\nMailScanner.conf not created due to csw.conf setting."
+    else
+      $CP $ETC/${i}.CSW $ETC/$i
+      $CHOWN root:bin $ETC/$i
+      $CHMOD 644 $ETC/$i
+      $ECHO ".\c"
+    fi
+  else
+    $ECHO "\n$i already present. Not copied."
+  fi
+done
+$ECHO
+
+# info
+$ECHO
+$ECHO ">>> Please read /opt/csw/share/doc/mailscanner/README.CSW <<<"
+$ECHO
+
+exit 0


Property changes on: csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.nosmf
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.smf
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.smf	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.smf	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,92 @@
+#!/bin/sh
+
+# postinstall with SMF support for MailScanner
+# 2007-09-13 Peter Bonivart
+
+CHMOD=/usr/bin/chmod
+CHOWN=/usr/bin/chown
+CHROOT=/usr/sbin/chroot
+CP=/usr/bin/cp
+ECHO=/usr/bin/echo
+LN=/usr/bin/ln
+MKDIR=/usr/bin/mkdir
+SVCADM=/usr/sbin/svcadm
+SVCCFG=/usr/sbin/svccfg
+
+CONFFILES=$BASEDIR/share/doc/mailscanner/conffiles
+INSTALLDIR=$BASEDIR/mailscanner
+ETC=$INSTALLDIR/etc
+MSDIR=$PKG_INSTALL_ROOT/var/spool/MailScanner
+SADIR=$BASEDIR/etc/spamassassin
+
+# check csw.conf
+if [ -x $BASEDIR/etc/csw.conf ] ; then
+  . $BASEDIR/etc/csw.conf
+fi
+if [ -x $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf ] ; then
+  . $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf
+fi
+
+# create mailscanner dir
+$ECHO "Creating $MSDIR directory."
+if [ -h "$MSDIR" -o -f "$MSDIR" -o -d "$MSDIR" ]; then
+  $ECHO "! $MSDIR already exists. Could not create directory."
+else
+  $MKDIR -m 755 "$MSDIR"
+  $CHOWN root:bin "$MSDIR"
+fi
+
+# create symlink to spam.assassin.prefs.conf
+if [ -d "$SADIR" -a ! -h "$SADIR/mailscanner.cf" ]; then
+  $ECHO "Creating symlink to spam.assassin.prefs.conf."
+  $LN -s $ETC/spam.assassin.prefs.conf $SADIR/mailscanner.cf
+fi
+
+# copying x.CSW to x
+$ECHO "Copying `wc -l $CONFFILES | awk '{print $1}'` CSW-configuration files to default files."
+for i in `cat $CONFFILES`
+do
+  if [ ! -f "$ETC/$i" ]; then
+    if [ "$i" = "./MailScanner.conf" -a "$autoenable_daemons" = "no" ]; then
+      $ECHO "\nMailScanner.conf not created due to csw.conf setting."
+    else
+      $CP $ETC/${i}.CSW $ETC/$i
+      $CHOWN root:bin $ETC/$i
+      $CHMOD 644 $ETC/$i
+      $ECHO ".\c"
+    fi
+  else
+    $ECHO "\n$i already present. Not copied."
+  fi
+done
+$ECHO
+
+# SMF
+smf=no
+if [ -f $PKG_INSTALL_ROOT/usr/sbin/svccfg -a -f $PKG_INSTALL_ROOT/usr/sbin/svcadm ]; then
+  smf=yes
+fi
+
+if [ "$smf" = "yes" ]; then
+  $ECHO "Configuring service in SMF"
+  $CHROOT $PKG_INSTALL_ROOT $SVCCFG import /opt/csw/var/svc/manifest/network/smtp/mailscanner.xml >/dev/null 2>&1
+  $CHROOT $PKG_INSTALL_ROOT $SVCADM disable svc:/network/smtp/cswmailscanner >/dev/null 2>&1
+  $ECHO "MailScanner is using SMF. The FMRI is: svc:/network/smtp/cswmailscanner:default"
+fi
+
+# If enabled, start the daemon
+#if [ "$enable_daemon" = "yes" -a x"$PKG_INSTALL_ROOT" = x"" ]; then
+#  $ECHO "Starting MailScanner"
+#  if [ "$smf" = "no" ]; then
+#    /etc/init.d/cswmailscanner start
+#  else
+#    $SVCADM enable svc:/network/smtp/cswmailscanner
+#  fi
+#fi
+
+# info
+$ECHO
+$ECHO ">>> Please read /opt/csw/share/doc/mailscanner/README.CSW <<<"
+$ECHO
+
+exit 0


Property changes on: csw/mgar/pkg/MailScanner/trunk/legacy/postinstall.smf
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/MailScanner/trunk/legacy/preremove.nosmf
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/preremove.nosmf	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/preremove.nosmf	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# preremove for MailScanner
+# 2007-08-21 Peter Bonivart
+
+ECHO=/usr/bin/echo
+RM=/usr/bin/rm
+RMDIR=/usr/bin/rmdir
+
+CONFFILES=$BASEDIR/share/doc/mailscanner/conffiles
+ETC=$BASEDIR/mailscanner/etc
+MSDIR=$PKG_INSTALL_ROOT/var/spool/MailScanner
+SADIR=$BASEDIR/etc/spamassassin
+
+# killing mailscanner
+/etc/init.d/cswmailscanner stop
+
+# remove mailscanner dir
+$ECHO "Removing $MSDIR directory."
+if [ -d "$MSDIR" ]; then
+  dirs=`find $MSDIR -type d | wc -l | awk '{print $1}'` 
+  test -f "$MSDIR/incoming/SpamAssassin.cache.db"
+  sacache=$?
+  if [ "$dirs" -le "3" -a "$sacache" -ne "0" ]; then
+    $RM -rf $MSDIR
+  else
+    $ECHO "! $MSDIR does not seem empty. Not removing."
+  fi
+else
+  $ECHO "! No directory found."
+fi
+
+# remove symlink to spam.assassin.prefs.conf
+if [ -h "$SADIR/mailscanner.cf" ]; then
+  $ECHO "Removing symlink to spam.assassin.prefs.conf."
+  $RM $SADIR/mailscanner.cf
+fi
+
+# remove x conf file if same as x.CSW
+$ECHO "Removing configuration files that have not been modified."
+for i in `cat $CONFFILES`
+do
+  cmp -s "$ETC/$i" "$ETC/${i}.CSW"
+  if [ "x$?" = "x1" ]; then
+    $ECHO
+    echo "! $i modified, will not remove it."
+  else
+    $ECHO ".\c"
+    $RM -f $ETC/$i
+  fi
+done
+$ECHO
+
+exit 0


Property changes on: csw/mgar/pkg/MailScanner/trunk/legacy/preremove.nosmf
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/MailScanner/trunk/legacy/preremove.smf
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/preremove.smf	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/preremove.smf	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+# preremove with SMF support for MailScanner
+# 2007-09-13 Peter Bonivart
+
+CHROOT=/usr/sbin/chroot
+ECHO=/usr/bin/echo
+RM=/usr/bin/rm
+RMDIR=/usr/bin/rmdir
+SVCADM=/usr/sbin/svcadm
+SVCCFG=/usr/sbin/svccfg
+
+CONFFILES=$BASEDIR/share/doc/mailscanner/conffiles
+ETC=$BASEDIR/mailscanner/etc
+MSDIR=$PKG_INSTALL_ROOT/var/spool/MailScanner
+SADIR=$BASEDIR/etc/spamassassin
+
+# SMF
+smf=no
+if [ -f $PKG_INSTALL_ROOT/usr/sbin/svccfg -a -f $PKG_INSTALL_ROOT/usr/sbin/svcadm ]; then
+  smf=yes
+fi
+
+# killing mailscanner
+if [ "$smf" = "yes" ]; then
+  $SVCADM disable -s svc:network/smtp/cswmailscanner:default >/dev/null 2>&1
+  $SVCCFG delete svc:network/smtp/cswmailscanner:default >/dev/null 2>&1
+else
+  /etc/init.d/cswmailscanner stop >/dev/null 2>&1
+fi
+
+if [ "$smf" = "yes" ]; then
+  # Unregister with SMF
+  $CHROOT $PKG_INSTALL_ROOT $SVCCFG delete svc:network/smtp/cswmailscanner:\default >/dev/null 2>&1
+fi
+
+# remove mailscanner dir
+$ECHO "Removing $MSDIR directory."
+if [ -d "$MSDIR" ]; then
+  dirs=`find $MSDIR -type d | wc -l | awk '{print $1}'` 
+  test -f "$MSDIR/incoming/SpamAssassin.cache.db"
+  sacache=$?
+  if [ "$dirs" -le "3" -a "$sacache" -ne "0" ]; then
+    $RM -rf $MSDIR
+  else
+    $ECHO "! $MSDIR does not seem empty. Not removing."
+  fi
+else
+  $ECHO "! No directory found."
+fi
+
+# remove symlink to spam.assassin.prefs.conf
+if [ -h "$SADIR/mailscanner.cf" ]; then
+  $ECHO "Removing symlink to spam.assassin.prefs.conf."
+  $RM $SADIR/mailscanner.cf
+fi
+
+# remove x conf file if same as x.CSW
+$ECHO "Removing configuration files that have not been modified."
+for i in `cat $CONFFILES`
+do
+  cmp -s "$ETC/$i" "$ETC/${i}.CSW"
+  if [ "x$?" = "x1" ]; then
+    $ECHO
+    echo "! $i modified, will not remove it."
+  else
+    $ECHO ".\c"
+    $RM -f $ETC/$i
+  fi
+done
+$ECHO
+
+exit 0


Property changes on: csw/mgar/pkg/MailScanner/trunk/legacy/preremove.smf
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.nosmf
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.nosmf	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.nosmf	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,25 @@
+i pkginfo
+i depend
+i copyright
+i postinstall=./postinstall
+i preremove=./preremove
+d none share 0755 root bin
+d none share/doc 0755 root bin
+d none share/doc/mailscanner 0755 root bin
+f none share/doc/mailscanner/ChangeLog 0644 root bin
+f none share/doc/mailscanner/README.CSW 0644 root bin
+f none share/doc/mailscanner/README 0644 root bin
+f none share/doc/mailscanner/conffiles 0644 root bin
+f none share/doc/mailscanner/copyright 0644 root bin
+f none share/doc/mailscanner/history 0644 root bin
+f none /etc/init.d/cswmailscanner=share/doc/mailscanner/cswmailscanner 0744 root bin
+f none /etc/init.d/cswmailscanner.sendmail=share/doc/mailscanner/cswmailscanner.sendmail 0744 root bin
+s none /etc/rc2.d/K28cswmailscanner=/etc/init.d/cswmailscanner
+s none /etc/rc3.d/S28cswmailscanner=/etc/init.d/cswmailscanner
+s none /etc/rc2.d/K78cswmailscanner.sendmail=/etc/init.d/cswmailscanner.sendmail
+s none /etc/rc3.d/S78cswmailscanner.sendmail=/etc/init.d/cswmailscanner.sendmail
+s none bin/MailScanner=../mailscanner/bin/MailScanner
+s none bin/analyze_SpamAssassin_cache=../mailscanner/bin/analyze_SpamAssassin_cache
+s none bin/upgrade_MailScanner_conf=../mailscanner/bin/upgrade_MailScanner_conf
+s none bin/upgrade_languages_conf=../mailscanner/bin/upgrade_languages_conf
+s none bin/cswmailscanner=/etc/init.d/cswmailscanner

Added: csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.smf
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.smf	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.smf	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,40 @@
+i pkginfo
+i depend
+i copyright
+i checkinstall
+i postinstall=./postinstall
+i preremove=./preremove
+i i.smfno
+i i.smfyes
+i space
+d none share 0755 root bin
+d none share/doc 0755 root bin
+d none share/doc/mailscanner 0755 root bin
+f none share/doc/mailscanner/ChangeLog 0644 root bin
+f none share/doc/mailscanner/README.CSW 0644 root bin
+f none share/doc/mailscanner/README 0644 root bin
+f none share/doc/mailscanner/conffiles 0644 root bin
+f none share/doc/mailscanner/copyright 0644 root bin
+f none share/doc/mailscanner/history 0644 root bin
+f smfno /etc/init.d/cswmailscanner=share/doc/mailscanner/cswmailscanner 0744 root bin
+f smfno /etc/init.d/cswmailscanner.sendmail=share/doc/mailscanner/cswmailscanner.sendmail 0744 root bin
+s smfno /etc/rc2.d/K28cswmailscanner=/etc/init.d/cswmailscanner
+s smfno /etc/rc3.d/S28cswmailscanner=/etc/init.d/cswmailscanner
+s smfno /etc/rc2.d/K78cswmailscanner.sendmail=/etc/init.d/cswmailscanner.sendmail
+s smfno /etc/rc3.d/S78cswmailscanner.sendmail=/etc/init.d/cswmailscanner.sendmail
+s smfno bin/cswmailscanner=/etc/init.d/cswmailscanner
+d smfyes /var/opt/csw/svc 0755 root bin
+d smfyes /var/opt/csw/svc/manifest 0755 root bin
+d smfyes /var/opt/csw/svc/manifest/network 0755 root bin
+d smfyes /var/opt/csw/svc/manifest/network/smtp 0755 root bin
+f smfyes /var/opt/csw/svc/manifest/network/smtp/mailscanner.xml=/mailscanner.xml 0644 root bin
+f smfyes /var/opt/csw/svc/manifest/network/smtp/mailscanner.sendmail.xml=/mailscanner.sendmail.xml 0644 root bin
+d smfyes /var/opt/csw/svc 0755 root bin
+d smfyes /var/opt/csw/svc/method 0755 root bin
+f smfyes /var/opt/csw/svc/method/svc-mailscanner 0755 root bin
+f smfyes /var/opt/csw/svc/method/svc-mailscanner.sendmail 0755 root bin
+s smfyes bin/cswmailscanner=/var/opt/csw/svc/method/svc-mailscanner
+s none bin/MailScanner=../mailscanner/bin/MailScanner
+s none bin/analyze_SpamAssassin_cache=../mailscanner/bin/analyze_SpamAssassin_cache
+s none bin/upgrade_MailScanner_conf=../mailscanner/bin/upgrade_MailScanner_conf
+s none bin/upgrade_languages_conf=../mailscanner/bin/upgrade_languages_conf

Added: csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.smf.080903
===================================================================
--- csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.smf.080903	                        (rev 0)
+++ csw/mgar/pkg/MailScanner/trunk/legacy/prototype.stub.smf.080903	2011-11-21 21:31:09 UTC (rev 16227)
@@ -0,0 +1,39 @@
+i pkginfo
+i depend
+i copyright
+i checkinstall
+i postinstall=./postinstall
+i preremove=./preremove
+i i.smfno
+i i.smfyes
+i space
+d none share 0755 root bin
+d none share/doc 0755 root bin
+d none share/doc/mailscanner 0755 root bin
+f none share/doc/mailscanner/ChangeLog 0644 root bin
+f none share/doc/mailscanner/README.CSW 0644 root bin
+f none share/doc/mailscanner/README 0644 root bin
+f none share/doc/mailscanner/conffiles 0644 root bin
+f none share/doc/mailscanner/copyright 0644 root bin
+f none share/doc/mailscanner/history 0644 root bin
+f smfno /etc/init.d/cswmailscanner=share/doc/mailscanner/cswmailscanner 0744 root bin
+f smfno /etc/init.d/cswmailscanner.sendmail=share/doc/mailscanner/cswmailscanner.sendmail 0744 root bin
+s smfno /etc/rc2.d/K28cswmailscanner=/etc/init.d/cswmailscanner
+s smfno /etc/rc3.d/S28cswmailscanner=/etc/init.d/cswmailscanner
+s smfno /etc/rc2.d/K78cswmailscanner.sendmail=/etc/init.d/cswmailscanner.sendmail
+s smfno /etc/rc3.d/S78cswmailscanner.sendmail=/etc/init.d/cswmailscanner.sendmail
+d smfyes /var/opt/csw/svc 0755 root bin
+d smfyes /var/opt/csw/svc/manifest 0755 root bin
+d smfyes /var/opt/csw/svc/manifest/network 0755 root bin
+d smfyes /var/opt/csw/svc/manifest/network/smtp 0755 root bin
+f smfyes /var/opt/csw/svc/manifest/network/smtp/mailscanner.xml=/mailscanner.xml 0644 root bin
+f smfyes /var/opt/csw/svc/manifest/network/smtp/mailscanner.sendmail.xml=/mailscanner.sendmail.xml 0644 root bin
+d smfyes /var/opt/csw/svc 0755 root bin
+d smfyes /var/opt/csw/svc/method 0755 root bin
+f smfyes /var/opt/csw/svc/method/svc-mailscanner 0755 root bin
+f smfyes /var/opt/csw/svc/method/svc-mailscanner.sendmail 0755 root bin
+s none bin/MailScanner=../mailscanner/bin/MailScanner
+s none bin/analyze_SpamAssassin_cache=../mailscanner/bin/analyze_SpamAssassin_cache
+s none bin/upgrade_MailScanner_conf=../mailscanner/bin/upgrade_MailScanner_conf
+s none bin/upgrade_languages_conf=../mailscanner/bin/upgrade_languages_conf
+s none bin/cswmailscanner=/etc/init.d/cswmailscanner

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