summaryrefslogtreecommitdiff
path: root/mail/qmail-scanner1
diff options
context:
space:
mode:
Diffstat (limited to 'mail/qmail-scanner1')
-rw-r--r--mail/qmail-scanner1/Makefile165
-rw-r--r--mail/qmail-scanner1/distinfo2
-rw-r--r--mail/qmail-scanner1/files/patch-configure145
-rw-r--r--mail/qmail-scanner1/files/patch-qmail-scanner-queue.template51
-rw-r--r--mail/qmail-scanner1/files/patch-sub-spamassassin.pl10
-rw-r--r--mail/qmail-scanner1/files/pkg-deinstall.in5
-rw-r--r--mail/qmail-scanner1/pkg-descr11
-rw-r--r--mail/qmail-scanner1/pkg-install45
-rw-r--r--mail/qmail-scanner1/pkg-message12
-rw-r--r--mail/qmail-scanner1/pkg-plist22
10 files changed, 0 insertions, 468 deletions
diff --git a/mail/qmail-scanner1/Makefile b/mail/qmail-scanner1/Makefile
deleted file mode 100644
index 10129030f832..000000000000
--- a/mail/qmail-scanner1/Makefile
+++ /dev/null
@@ -1,165 +0,0 @@
-# Created by: moeti
-# $FreeBSD$
-
-PORTNAME= qmail-scanner
-PORTVERSION= 1.25
-PORTREVISION= 3
-CATEGORIES= mail security
-MASTER_SITES= SF
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
-PKGNAMESUFFIX= 1
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Content/Anti-virus Scanner for qmail
-
-BUILD_DEPENDS= reformime:${PORTSDIR}/mail/maildrop \
- p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
-
-MANUAL_PACKAGE_BUILD= Requires qmail built with non-standard setting
-
-SUB_FILES= pkg-deinstall
-SUB_LIST= SPOOLDIR=${SPOOLDIR}
-
-CONFLICTS= qmail-scanner-2.*
-
-USES= qmail perl5 tar:tgz
-
-QMAIL_QUEUE= ${QMAIL_PREFIX}/bin/qmail-queue
-
-NO_BUILD= yes
-
-# Barely optionnal
-.if !defined(WITHOUT_TNEF)
-BUILD_DEPENDS+= ${LOCALBASE}/bin/tnef:${PORTSDIR}/converters/tnef
-.endif
-
-# Options
-QMAILSCAN_ADMIN?= root
-.if defined(QMAILSCAN_ADMINREALNAME)
-CONFIGURE_ARGS+= --admin-realname "${QMAILSCAN_ADMINREALNAME}"
-.endif
-.if defined(QMAILSCAN_ARCHIVE)
-CONFIGURE_ARGS+= --archive yes
-.endif
-QMAILSCAN_NOTIFY?= psender,precips
-.if defined(QMAILSCAN_LANG)
-CONFIGURE_ARGS+= --lang "${QMAILSCAN_LANG}"
-.endif
-.if defined(QMAILSCAN_LOCALDOMAINS) && !empty(QMAILSCAN_LOCALDOMAINS)
-CONFIGURE_ARGS+= --local-domains "${QMAILSCAN_LOCALDOMAINS}"
-.endif
-.if defined(QMAILSCAN_LOGCRYPTO)
-CONFIGURE_ARGS+= --log-crypto yes
-.endif
-.if defined(QMAILSCAN_NOTUNZIP)
-CONFIGURE_ARGS+= --unzip no
-.else
-CONFIGURE_ARGS+= --unzip yes
-.if defined(QMAILSCAN_MAXZIPSIZE)
-CONFIGURE_ARGS+= --max-zip-size "${QMAILSCAN_MAXZIPSIZE}"
-.endif
-.if !defined(QMAILSCAN_NOTBLKZIPPW)
-BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
-CONFIGURE_ARGS+= --block-password-protected yes
-.endif
-.endif
-.if defined(QMAILSCAN_SCANNERS)
-CONFIGURE_ARGS+= --scanners "${QMAILSCAN_SCANNERS}"
-.else
-CONFIGURE_ARGS+= --scanners auto
-.endif
-QMAILSCAN_SILENTVIRUSES?= auto
-.if defined(QMAILSCAN_SPAMSREDIRECT)
-CONFIGURE_ARGS+= --spams-redirect "${QMAILSCAN_SPAMSREDIRECT}"
-.endif
-.if defined(QMAILSCAN_SPAMSTOSUFFIX)
-CONFIGURE_ARGS+= --spams-tosuffix "${QMAILSCAN_SPAMSTOSUFFIX}"
-.endif
-
-RUN_DEPENDS:= ${BUILD_DEPENDS}
-
-SPOOLDIR= ${PREFIX}/qmailscan
-PLIST_SUB= SPOOLDIR="${SPOOLDIR:S,${PREFIX}/,,}"
-
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS+= \
- --qmaildir "${QMAIL_PREFIX}" --spooldir "${SPOOLDIR}" \
- --bindir "${PREFIX}/bin" --qmail-queue-binary "${QMAIL_QUEUE}" \
- --admin "${QMAILSCAN_ADMIN}" --notify "${QMAILSCAN_NOTIFY}" \
- --silent-viruses "${QMAILSCAN_SILENTVIRUSES}" \
- --redundant yes \
- --add-dscr-hdrs yes \
- --log-details syslog --debug no \
- --batch
-
-NO_STAGE= yes
-pre-configure:
- @${ECHO_MSG} ""
- @${ECHO_MSG} "----------------------------------------"
- @${ECHO_MSG} "You may use the following build options:"
- @${ECHO_MSG} ""
- @${ECHO_MSG} "QMAILSCAN_ADMIN email adress of qmail-scanner admin for alerts"
- @${ECHO_MSG} "QMAILSCAN_ADMINREALNAME* name to use when sending alerts"
- @${ECHO_MSG} "QMAILSCAN_LANG specify languages for QS mails (notify, etc..)"
- @${ECHO_MSG} " supported languages are: af_ZA, cs_CZ, da_DK, de_DE,"
- @${ECHO_MSG} " en_GB, en_PL, enlt_LT, enlt_LT_short, es_ES, fr_FR,"
- @${ECHO_MSG} " it_IT, ja_JP.EUC, nl_NL, no_NO, pl_PL, pt_BR, pt_PT,"
- @${ECHO_MSG} " sk_SK, sv_SE, tr_TR, tr_TR_ascii and tw_BIG5"
- @${ECHO_MSG} " default depends on your LANG variable"
- @${ECHO_MSG} " (en_GB if LANG is not set)"
- @${ECHO_MSG} "QMAILSCAN_LOCALDOMAINS domains classified as local domains preventing alerts"
- @${ECHO_MSG} " of externals users (and mailing-lists...)"
- @${ECHO_MSG} "QMAILSCAN_LOGCRYPTO simply notes in the log record if the message"
- @${ECHO_MSG} " contained any form of digital signing or encryption"
- @${ECHO_MSG} " (S/MIME, PGP and password protected files)"
- @${ECHO_MSG} " default is disabled"
- @${ECHO_MSG} "QMAILSCAN_MAXZIPSIZE zip that would have unpacked into more diskspace"
- @${ECHO_MSG} " than this value will be blocked (prevent DoS)"
- @${ECHO_MSG} " default is 1000000000"
- @${ECHO_MSG} "QMAILSCAN_NOTBLKZIPPW zip password protected are blocked by default"
- @${ECHO_MSG} " setting this variable to disable this function"
- @${ECHO_MSG} "QMAILSCAN_NOTIFY who has to be notify of viruses/spams"
- @${ECHO_MSG} " defaults to 'psender,precips'"
- @${ECHO_MSG} "QMAILSCAN_SCANNERS list of installed content scanner"
- @${ECHO_MSG} " default is automatic, so you do not need to set this"
- @${ECHO_MSG} "QMAILSCAN_SILENTVIRUSES viruses that qs shoud not notify about"
- @${ECHO_MSG} "QMAILSCAN_SPAMSREDIRECT* set this if you want to redirect all spams to a"
- @${ECHO_MSG} " specific email address"
- @${ECHO_MSG} "QMAILSCAN_SPAMSTOSUFFIX* suffix to alter spams recipients with"
- @${ECHO_MSG} ""
- @${ECHO_MSG} "When you set the last option to 'spam', a detected spam will be delivered to"
- @${ECHO_MSG} "'user-spam@domain' instead of 'user@domain'."
- @${ECHO_MSG} ""
- @${ECHO_MSG} "* Please note these options are only available with FreeBSD ports "
- @${ECHO_MSG} "So please, do not report relatives bugs to qmail-scanner team, but maintainer."
- @${ECHO_MSG} "----------------------------------------"
- @${ECHO_MSG} ""
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} PRE-INSTALL
- @if ! ${TEST} -f ${QMAIL_QUEUE}; then \
- ${ECHO_MSG} "Unable to found qmail-queue binary trying '${QMAIL_QUEUE}'."; \
- ${ECHO_MSG} "Please set QMAIL_PREFIX to your qmail installation directory !"; \
- exit 1; \
- fi
-
-post-configure:
- ${TEST} -f ${WRKSRC}/qmail-scanner-queue.pl
-
-do-install:
- -${TEST} -f ${PREFIX}/bin/qmail-scanner-queue.pl && \
- ${MV} ${PREFIX}/bin/qmail-scanner-queue.pl \
- ${PREFIX}/bin/qmail-scanner-queue.pl.old
- ${INSTALL_SCRIPT} ${WRKSRC}/qmail-scanner-queue.pl ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/contrib/qs2mrtg.pl ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/quarantine-attachments.txt \
- ${SPOOLDIR}/quarantine-attachments.sample
- ${TEST} -f ${SPOOLDIR}/quarantine-attachments.txt || \
- ${INSTALL_DATA} ${WRKSRC}/quarantine-attachments.txt ${SPOOLDIR}
- ${INSTALL_DATA} ${WRKSRC}/contrib/mrtg-qmail-scanner.cfg \
- ${PREFIX}/share/examples/qs2mrtg
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
- @${CAT} ${PKGMESSAGE}
-
-test:
- @${WRKSRC}/contrib/test_installation.sh -doit
-
-.include <bsd.port.mk>
diff --git a/mail/qmail-scanner1/distinfo b/mail/qmail-scanner1/distinfo
deleted file mode 100644
index 127d76939629..000000000000
--- a/mail/qmail-scanner1/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (qmail-scanner-1.25.tgz) = 6fa5743a0d180bc4d1a626c4bf56c06a29ec3c0d7cb2ce834add8faceefb9c01
-SIZE (qmail-scanner-1.25.tgz) = 221156
diff --git a/mail/qmail-scanner1/files/patch-configure b/mail/qmail-scanner1/files/patch-configure
deleted file mode 100644
index 6c2bfd5adfac..000000000000
--- a/mail/qmail-scanner1/files/patch-configure
+++ /dev/null
@@ -1,145 +0,0 @@
---- ./configure.orig Mon Oct 18 21:26:55 2004
-+++ ./configure Mon Jan 31 09:07:22 2005
-@@ -1,13 +1,6 @@
- #!/bin/sh
- #
-
--#Pipe into bash if it's present
--
--if [ "`bash --version 2>&1|grep 'GNU bash'`" != "" -a "$BASH_VERSION" = "" ]; then
-- exec bash $0 $*
-- exit
--fi
--
- umask 007
-
- OLD_LANG="$LANG"
-@@ -51,6 +44,12 @@
- #reset all English to en_GB
- QSLANG="en_GB"
- fi
-+
-+QSLANG=`echo $QSLANG|sed 's/\..*//'`
-+if [ "$QSLANG" = "ja_JP" ]; then
-+ #reset all Japanese to ja_JP.EUC
-+ QSLANG="ja_JP.EUC"
-+fi
-
- if [ ! -d "./locale/$QSLANG" ]; then
- echo "
-@@ -87,7 +86,8 @@
- QUARANTINE_PASSWORD_PROTECTED="0"
- DESCRIPTIVE_HEADERS="0"
- NOTIFY_ADDRESSES="psender,nmlvadm"
--USERNAME="$USER"
-+ADMIN_MAIL="$USER"
-+ADMIN_REALNAME="System Anti-Virus Administrator"
- MANUAL_INSTALL="0"
- INSTALLIT="0"
- DONOTCONFIRM="0"
-@@ -100,13 +100,17 @@
-
- while [ -n "$1" ]
- do
-+
-+
- case $1 in
- --qs-user) if [ "$2" != "" ] ; then shift ; fi ; QS_USER="$1" ;;
- --spooldir) if [ "$2" != "" ] ; then shift ; fi ; AS_QQ="$1" ;;
- --qmaildir) if [ "$2" != "" ]; then shift ; fi ; QMAILDIR="$1" ;;
- --bindir) if [ "$2" != "" ] ; then shift ; fi ; BINDIR="$1" ;;
-- --user|--admin) if [ "$2" != "" ] ; then shift ; fi ; USERNAME="$1" ;;
-- --domain) if [ "$2" != "" ] ; then shift ; fi ; MAILDOMAIN="$1" ;;
-+ --admin|--user) if [ "$2" != "" ] ; then shift ; fi ; ADMIN_MAIL=`echo $1 | sed 's/@/\\\\@/'` ;;
-+ --admin-realname) if [ "$2" != "" ] ; then shift ; fi ; ADMIN_REALNAME="$1" ;;
-+ --spams-redirect) if [ "$2" != "" ] ; then shift ; fi ; SPAMS_REDIRECT=`echo $1 | sed 's/@/\\\\@/'` ;;
-+ --spams-tosuffix) if [ "$2" != "" ] ; then shift ; fi ; SPAMS_TOSUFFIX="$1" ;;
- --notify) if [ "$2" != "" ]; then shift ; fi ; NOTIFY_ADDRESSES="$1" ;;
- --batch) DONOTCONFIRM="1" ; if [ "$2" != "" -a "`echo $2|grep '\-'`" = "" ] ; then shift ; fi ;;
- --silent-viruses) if [ "$2" != "" ]; then shift ; fi ; FIND_SILENT_VIRUSES="$1" ;;
-@@ -138,9 +142,17 @@
- --spooldir <spooldir> defaults to $AS_QQ/
- --bindir <installdir> where to install qmail-scanner-queue.pl
- Defaults to /var/qmail/bin/
-- --admin <username> user to Email alerts to (default: $USERNAME)
-- --domain <domain name> "user"@"domain" makes up Email address
-- to Email alerts to.
-+ --admin <email> email to send alerts to (default: $ADMIN_MAIL)
-+ --admin-realname <...> realname for sending alerts
-+ Defaults to "$ADMIN_REALNAME"
-+ nb: use '_' instead of ' ' (sorry for inconvenience)
-+ --spams-redirect <email> email to redirect detected spams to
-+ Defaults to empty (no redirection)
-+ --spams-tosuffix <suffix> suffix to alter recipient with
-+ i.e. recipient user@domain
-+ will be transform into user-suffix@domain
-+ Defaults to empty (do not alter recipients)
-+ nb: 'spams-admin' option has precedence on this
- --scanners <list of installed content scanners>
- Defaults to "auto" - will use
- whatever scanners are found on system.
-@@ -910,7 +922,7 @@
- #Test to see if spamc is calling Unix sockets instead of TCP
- SPAMD_SOCKET=`ps -ef 2>/dev/null|egrep 'spamd.*socket'|grep -v grep|sed -e 's/^.*socketpath=//'|awk '{print $1}'`
- if [ "$SPAMD_SOCKET" = "" ]; then
-- SPAMD_SOCKET=`ps aux 2>/dev/null|egrep 'spamd.*socket'|grep -v grep|sed -e 's/^.*socketpath=//'|awk '{print $1}'`
-+ SPAMD_SOCKET=`ps auxwww 2>/dev/null|egrep 'spamd.*socket'|grep -v grep|sed -e 's/^.*socketpath[\ |=]//'|awk '{print $1}'`
- fi
- if [ "$SPAMD_SOCKET" != "" -a -S "$SPAMD_SOCKET" ]; then
- SPAMC_BINARY="$SPAMC_BINARY -U $SPAMD_SOCKET"
-@@ -1005,9 +1017,14 @@
-
- MAILDOMAIN=${MAILDOMAIN:-$FQDN}
- LOCAL_DOMAINS_ARRAY=${LOCAL_DOMAINS_ARRAY:-$MAILDOMAIN}
--CMDLINE="$0 --spooldir $AS_QQ --qmaildir $QMAILDIR --bindir $BINDIR --qmail-queue-binary $QMAILQUEUE_BIN --admin $USERNAME --domain $MAILDOMAIN --notify $NOTIFY_ADDRESSES --local-domains $LOCAL_DOMAINS_ARRAY --silent-viruses $SILENT_VIRUSES --lang $QSLANG --debug $DEBUG_LEVEL --unzip $FORCE_UNZIP --block-password-protected $QUARANTINE_PASSWORD_PROTECTED --add-dscr-hdrs $DESCRIPTIVE_HEADERS --archive $ARCHIVEIT --redundant $REDUNDANT --log-details $LOG_DETAILS --log-crypto $LOG_CRYPTO --fix-mime $FIX_MIME --ignore-eol-check $DISABLE_EOL_CHECK --scanners \"$SCANNERS\""
--
-+CMDLINE="$0 --spooldir $AS_QQ --qmaildir $QMAILDIR --bindir $BINDIR --qmail-queue-binary $QMAILQUEUE_BIN --admin $ADMIN_MAIL --admin-realname \"$ADMIN_REALNAME\" --domain $MAILDOMAIN --notify $NOTIFY_ADDRESSES --local-domains $LOCAL_DOMAINS_ARRAY --silent-viruses $SILENT_VIRUSES --lang $QSLANG --debug $DEBUG_LEVEL --unzip $FORCE_UNZIP --block-password-protected $QUARANTINE_PASSWORD_PROTECTED --add-dscr-hdrs $DESCRIPTIVE_HEADERS --archive $ARCHIVEIT --redundant $REDUNDANT --log-details $LOG_DETAILS --log-crypto $LOG_CRYPTO --fix-mime $FIX_MIME --ignore-eol-check $DISABLE_EOL_CHECK --scanners \"$SCANNERS\""
-
-+if [ -n "$SPAMS_REDIRECT" ]; then
-+ CMDLINE="$CMDLINE --spams-redirect $SPAMS_REDIRECT"
-+fi
-+if [ -n "$SPAMS_TOSUFFIX" ]; then
-+ CMDLINE="$CMDLINE --spams-tosuffix $SPAMS_TOSUFFIX"
-+fi
- if [ "$MANUAL_INSTALL" = "1" ]; then
- CMDLINE="$CMDLINE --no-QQ-check $MANUAL_INSTALL"
- fi
-@@ -1381,7 +1398,7 @@
- fi
- fi
-
--USERNAME=${USERNAME:-$LOGNAME}
-+ADMIN_MAIL=${ADMIN_MAIL:-$LOGNAME}
-
- SCANNER_ARRAY=`echo $SCANNER_ARRAY|sed 's/^,//g'`
-
-@@ -1461,7 +1478,13 @@
- fi
- echo "archiving $ASTRING into $AS_QQ/$ARCHIVEDIR/"
- fi
--echo "virus-admin=$USERNAME@$MAILDOMAIN"
-+echo "admin=$ADMIN_MAIL"
-+if [ -n "$SPAMS_REDIRECT" ]; then
-+ echo "spams-admin=$SPAMS_REDIRECT"
-+fi
-+if [ -n "$SPAMS_TOSUFFIX" ]; then
-+ echo "spams-suffix=$SPAMS_TOSUFFIX"
-+fi
- echo "local-domains=$LOCAL_DOMAINS_ARRAY"
- echo "silent-viruses=$FIND_SILENT_VIRUSES_ARRAY"
- echo "scanners=$SCANNER_ARRAY"
-@@ -1623,10 +1646,12 @@
- s?SPAMC_BINARY?$SPAMC_BINARY?g;
- s?SPAMC_OPTIONS?$SPAMC_OPTIONS?g;
- s?SPAMC_SUBJECT?$SPAMC_SUBJECT?g;
--s?USERNAME?$USERNAME?g;
-+s?ADMIN_MAIL?$ADMIN_MAIL?g;
-+s?ADMIN_REALNAME?$ADMIN_REALNAME?g;
-+s?SPAMS_REDIRECT?$SPAMS_REDIRECT?g;
-+s?SPAMS_TOSUFFIX?$SPAMS_TOSUFFIX?g;
- s?SKIP_TEXT_MSGS?$SKIP_TEXT_MSGS?g;
- s?FQDN?$FQDN?g;
--s?MAILDOMAIN?$MAILDOMAIN?g;
- s?LOCAL_DOMAINS_ARRAY?$LOCAL_DOMAINS_ARRAY?g;
- s?NOTIFY_ADDRESSES?$NOTIFY_ADDRESSES?g;
- s?FIND?$FIND?g;
diff --git a/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template b/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template
deleted file mode 100644
index ad2728979032..000000000000
--- a/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template
+++ /dev/null
@@ -1,51 +0,0 @@
---- qmail-scanner-queue.template.orig Wed Mar 10 21:02:05 2004
-+++ qmail-scanner-queue.template Mon Mar 15 01:26:52 2004
-@@ -85,11 +85,17 @@
-
-
- #From: line information used when making reports
--my $V_FROM='USERNAME@MAILDOMAIN';
--my $V_FROMNAME='System Anti-Virus Administrator';
-+my $V_FROM='ADMIN_MAIL';
-+my $V_FROMNAME='ADMIN_REALNAME';
-
- # Address carbon-copied on any virus reports
--my $QUARANTINE_CC='USERNAME@MAILDOMAIN';
-+my $QUARANTINE_CC='ADMIN_MAIL';
-+
-+# Address to where spams are redirected
-+my $SPAMSADMIN='SPAMS_REDIRECT';
-+
-+# Suffix to alter recipients with (when spam detected)
-+my $SPAMSSUFFIX='SPAMS_TOSUFFIX';
-
- #Array of local domains that are checked against for
- #deciding whether or not to send recipient alerts to
-@@ -302,6 +308,7 @@
- }
-
- my ($quarantine_event,$quarantine_event_tmp,$quarantine_DOS)=0;
-+my $spam_event=0;
-
- my $file_id = &uniq_id();
-
-@@ -424,7 +431,18 @@
- &email_quarantine_report;
- } else {
- &qmail_parent_check;
-- &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id");
-+ if ($spam_event) {
-+ if ($SPAMSADMIN) {
-+ &qmail_requeue($env_returnpath,"T$SPAMSADMIN\0\0","$scandir/$wmaildir/new/$file_id");
-+ } elsif ($SPAMSSUFFIX) {
-+ $env_recips =~ s/\@/\-$SPAMSSUFFIX\@/g;
-+ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id");
-+ } else {
-+ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id");
-+ }
-+ } else {
-+ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id");
-+ }
- }
- alarm 0;
- };
diff --git a/mail/qmail-scanner1/files/patch-sub-spamassassin.pl b/mail/qmail-scanner1/files/patch-sub-spamassassin.pl
deleted file mode 100644
index 8daf87ded5c2..000000000000
--- a/mail/qmail-scanner1/files/patch-sub-spamassassin.pl
+++ /dev/null
@@ -1,10 +0,0 @@
---- sub-spamassassin.pl.orig Thu Dec 4 22:17:55 2003
-+++ sub-spamassassin.pl Mon Mar 15 01:27:28 2004
-@@ -61,6 +61,7 @@
- $tag_score .= "SA:1($sa_score/$sa_max):";
- $sa_comment = "Yes, hits=$sa_score required=$sa_max" if ($sa_fast);
- &debug("SA: yup, this smells like SPAM");
-+ $spam_event = 1;
- }
- if ($sa_score > 0) {
- $sa_score=int($sa_score);
diff --git a/mail/qmail-scanner1/files/pkg-deinstall.in b/mail/qmail-scanner1/files/pkg-deinstall.in
deleted file mode 100644
index b5be2efd41d8..000000000000
--- a/mail/qmail-scanner1/files/pkg-deinstall.in
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-if [ "$2" = "DEINSTALL" ]; then
- echo "If you're not updating this port, you can delete directory %%SPOOLDIR%%"
-fi
diff --git a/mail/qmail-scanner1/pkg-descr b/mail/qmail-scanner1/pkg-descr
deleted file mode 100644
index e1a3e30d6f0e..000000000000
--- a/mail/qmail-scanner1/pkg-descr
+++ /dev/null
@@ -1,11 +0,0 @@
-Qmail-Scanner is e-mail content scanner that enables a qmail server to
-scan all messages it receives for certain characteristics (normally viruses),
-and react accordingly.
-
-If you have a commercial virus scanner (eg, Sophos sweep, McAfee
-uvscan, etc) installed when you build qmail-scanner, qmail-scanner
-will configure itself to use that. Otherwise, it will only use its
-internal content filter which only allows you to block mail based
-on text in the subject/body, general types of attachments, etc.
-
-WWW: http://qmail-scanner.sourceforge.net/
diff --git a/mail/qmail-scanner1/pkg-install b/mail/qmail-scanner1/pkg-install
deleted file mode 100644
index e42be90badcb..000000000000
--- a/mail/qmail-scanner1/pkg-install
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-CHMOD=/bin/chmod
-CHOWN=/usr/sbin/chown
-MKDIR=/bin/mkdir
-PW=/usr/sbin/pw
-
-GU_ID=98
-GU_NAME=qscand
-
-PREFIX=${PKG_PREFIX}
-SPOOLDIR=${PREFIX}/qmailscan
-
-case "$2" in
-PRE-INSTALL)
- # User and group
- ${PW} groupshow -n ${GU_NAME} >/dev/null 2>&1 \
- || ${PW} groupadd -n ${GU_NAME} -g ${GU_ID}
- ${PW} usershow -n ${GU_NAME} >/dev/null 2>&1 \
- || ${PW} useradd ${GU_NAME} -g ${GU_NAME} -u ${GU_ID} -s /sbin/nologin
- ${MKDIR} -p ${SPOOLDIR}
- ${MKDIR} -p ${PREFIX}/share/examples/qs2mrtg
- ;;
-POST-INSTALL)
- # Directories
- for i in quarantine working archives; do
- for j in tmp cur new; do
- ${MKDIR} -p ${SPOOLDIR}/$i/$j
- done
- done
- ${MKDIR} -p ${SPOOLDIR}/tmp
-
- # Mod and owner
- ${CHOWN} -R ${GU_NAME}:${GU_NAME} ${SPOOLDIR}
- ${CHOWN} ${GU_NAME}:${GU_NAME} ${PREFIX}/bin/qmail-scanner-queue.pl
- ${CHMOD} 4755 ${PREFIX}/bin/qmail-scanner-queue.pl
-
- # Initialize
- ${PREFIX}/bin/qmail-scanner-queue.pl -z
- ${PREFIX}/bin/qmail-scanner-queue.pl -g
-
- # Mod and owner (final)
- ${CHOWN} -R ${GU_NAME}:${GU_NAME} ${SPOOLDIR}
- ;;
-esac
diff --git a/mail/qmail-scanner1/pkg-message b/mail/qmail-scanner1/pkg-message
deleted file mode 100644
index e61b55935bea..000000000000
--- a/mail/qmail-scanner1/pkg-message
+++ /dev/null
@@ -1,12 +0,0 @@
-****************************************************
-NOTES:
- - You have to configure your anti-virus and anti-spams products!
- - You HAVE to reinstall this port each time you add or remove one!
-
-Now, you have to modify your qmail startup files to call qmail-scanner.
-In most case, you just need to add:
- export QMAILQUEUE="${PREFIX}/bin/qmail-scanner-queue.pl"
-to your tcpserver startup file.
-
-You can test installation by running 'make test' in port dir.
-****************************************************
diff --git a/mail/qmail-scanner1/pkg-plist b/mail/qmail-scanner1/pkg-plist
deleted file mode 100644
index 41b7c3f6df5d..000000000000
--- a/mail/qmail-scanner1/pkg-plist
+++ /dev/null
@@ -1,22 +0,0 @@
-bin/qmail-scanner-queue.pl
-bin/qs2mrtg.pl
-share/examples/qs2mrtg/mrtg-qmail-scanner.cfg
-@dirrm share/examples/qs2mrtg
-@unexec if cmp -s %D/%%SPOOLDIR%%/quarantine-attachments.txt %D/%%SPOOLDIR%%/quarantine-attachments.sample; then rm -f %D/%%SPOOLDIR%%/quarantine-attachments.txt && rm -f %D/%%SPOOLDIR%%/quarantine-attachments.db; fi
-%%SPOOLDIR%%/quarantine-attachments.sample
-@exec [ ! -f %D/%%SPOOLDIR%%/quarantine-attachments.txt ] && cp %D/%%SPOOLDIR%%/quarantine-attachments.sample %D/%%SPOOLDIR%%/quarantine-attachments.txt
-%%SPOOLDIR%%/qmail-scanner-queue-version.txt
-@dirrmtry %%SPOOLDIR%%/archives/cur
-@dirrmtry %%SPOOLDIR%%/archives/new
-@dirrmtry %%SPOOLDIR%%/archives/tmp
-@dirrmtry %%SPOOLDIR%%/archives
-@dirrmtry %%SPOOLDIR%%/quarantine/cur
-@dirrmtry %%SPOOLDIR%%/quarantine/new
-@dirrmtry %%SPOOLDIR%%/quarantine/tmp
-@dirrmtry %%SPOOLDIR%%/quarantine
-@dirrmtry %%SPOOLDIR%%/working/cur
-@dirrmtry %%SPOOLDIR%%/working/new
-@dirrmtry %%SPOOLDIR%%/working/tmp
-@dirrmtry %%SPOOLDIR%%/working
-@dirrmtry %%SPOOLDIR%%/tmp
-@dirrmtry %%SPOOLDIR%%