diff options
Diffstat (limited to 'security/drweb-sendmail/files')
-rw-r--r-- | security/drweb-sendmail/files/drweb-sendmail.sh | 20 | ||||
-rw-r--r-- | security/drweb-sendmail/files/patch-aa | 119 | ||||
-rw-r--r-- | security/drweb-sendmail/files/patch-ac | 31 | ||||
-rw-r--r-- | security/drweb-sendmail/files/patch-ae | 11 | ||||
-rw-r--r-- | security/drweb-sendmail/files/patch-af | 120 |
5 files changed, 102 insertions, 199 deletions
diff --git a/security/drweb-sendmail/files/drweb-sendmail.sh b/security/drweb-sendmail/files/drweb-sendmail.sh deleted file mode 100644 index 79be9dbc5223..000000000000 --- a/security/drweb-sendmail/files/drweb-sendmail.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -case "$1" in -start) - if [ -x %PREFIX%/sbin/drweb-smf ]; then - rm -f %PREFIX%/drweb/run/drweb-smf.sock; - %PREFIX%/sbin/drweb-smf --conf=%PREFIX%/etc/drweb/drweb_smf.conf && \ - echo -n ' drweb-smf'; - fi - ;; -stop) - killall drweb-smf >/dev/null 2>& 1; - echo -n ' drweb-smf'; - ;; -*) - echo "Usage: `basename $0` {start|stop}" >&2 - ;; -esac - -exit 0 diff --git a/security/drweb-sendmail/files/patch-aa b/security/drweb-sendmail/files/patch-aa index ad505a4baefc..041a304df666 100644 --- a/security/drweb-sendmail/files/patch-aa +++ b/security/drweb-sendmail/files/patch-aa @@ -1,17 +1,102 @@ ---- configure.orig Thu Jul 25 17:31:39 2002 -+++ configure Sat Aug 24 20:10:04 2002 -@@ -148,14 +148,6 @@ - -o\ - $NO_ADD = "yes" ] ; then - echo -- echo "So you should to have next files:" -- echo "$SM_HDR" -- echo "include/libmilter/mfapi.h" -- echo "lib/libmilter.a" -- echo "$SM_LIB" -- echo -- echo "Do it and try again" -- exit 1 - fi - else - DRWEB_SM="" +--- usr/local/etc/drweb/drweb_smf.conf.orig Mon Oct 11 11:55:31 2004 ++++ usr/local/etc/drweb/drweb_smf.conf Mon Oct 11 12:02:22 2004 +@@ -97,10 +97,10 @@ + DenyByDefault = no + + # List with rules for users or domains to block scanning +-DenyList = /usr/local/etc/drweb/users.conf ++DenyList = %CONFDIR%/users.conf + + # Directory used to store temporary files +-Spool = /var/drweb/spool ++Spool = /tmp + + # Permissions for created spool files + SpoolFilesMode = 0600 +@@ -282,16 +282,16 @@ + FilterMail = DrWEB-DAEMON + + # List of unnotificable viruses +-UnnotificableVirusesList = /usr/local/etc/drweb/viruses.conf ++UnnotificableVirusesList = %CONFDIR%/viruses.conf + + # List of unnotificable addresses +-UnnotificableAddressesList = /usr/local/etc/drweb/addresses.conf ++UnnotificableAddressesList = %CONFDIR%/addresses.conf + + # Quarantine directory. + # The infected files could be moved in that dir + # if you leave this field empty or commented out then + # infected messages will not be stored +-Quarantine = /var/drweb/infected ++Quarantine = /usr/local/drweb/infected + + # Permissions for quarantined files + QuarantineFilesMode = 0660 +@@ -330,21 +330,21 @@ + RcptsNotify = yes + + # Files with notification templates +-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/virus-sender.msg +-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/virus-admin.msg +-RcptsTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/virus-rcpts.msg ++SenderTemplate = %CONFDIR%/templates/en-ru/sendmail/virus-sender.msg ++AdminTemplate = %CONFDIR%/templates/en-ru/sendmail/virus-admin.msg ++RcptsTemplate = %CONFDIR%/templates/en-ru/sendmail/virus-rcpts.msg + + [CuredNotifications] + SenderNotify = yes + AdminNotify = yes +-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/cured-sender.msg +-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/cured-admin.msg ++SenderTemplate = %CONFDIR%/templates/en-ru/sendmail/cured-sender.msg ++AdminTemplate = %CONFDIR%/templates/en-ru/sendmail/cured-admin.msg + + [SkipNotifications] + SenderNotify = yes + AdminNotify = no + RcptsNotify = no +-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/skip-sender.msg ++SenderTemplate = %CONFDIR%/templates/en-ru/sendmail/skip-sender.msg + AdminTemplate = + RcptsTemplate = + +@@ -352,16 +352,16 @@ + SenderNotify = yes + AdminNotify = yes + RcptsNotify = no +-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/archive-sender.msg +-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/archive-admin.msg ++SenderTemplate = %CONFDIR%/templates/en-ru/sendmail/archive-sender.msg ++AdminTemplate = %CONFDIR%/templates/en-ru/sendmail/archive-admin.msg + RcptsTemplate = + + [ErrorNotifications] + SenderNotify = yes + AdminNotify = yes + RcptsNotify = no +-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/error-sender.msg +-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/error-admin.msg ++SenderTemplate = %CONFDIR%/templates/en-ru/sendmail/error-sender.msg ++AdminTemplate = %CONFDIR%/templates/en-ru/sendmail/error-admin.msg + RcptsTemplate = + + [RuleFilterNotifications] +@@ -369,7 +369,7 @@ + AdminNotify = yes + RcptsNotify = no + SenderTemplate = +-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/sendmail/rule-admin.msg ++AdminTemplate = %CONFDIR%/templates/en-ru/sendmail/rule-admin.msg + RcptsTemplate = + + ################### +@@ -430,7 +430,7 @@ + + # Milter (libmilter have its own output system) debug level (0 - quiet .. 5 - + # verbose) +-MilterDebugLevel = 0 ++MilterDebugLevel = 1 + + ################################ + # Mail system settings section # diff --git a/security/drweb-sendmail/files/patch-ac b/security/drweb-sendmail/files/patch-ac deleted file mode 100644 index 692e7304b97c..000000000000 --- a/security/drweb-sendmail/files/patch-ac +++ /dev/null @@ -1,31 +0,0 @@ ---- doc/sendmail/configure.orig Wed Jun 4 16:46:57 2003 -+++ doc/sendmail/configure Tue Jul 1 09:41:05 2003 -@@ -1,4 +1,4 @@ --#!/bin/sh -+#!%LOCALBASE%/bin/bash - # - # $Id: configure,v 1.25 2003/04/10 15:47:33 cvser Exp $ - # -@@ -134,7 +134,7 @@ - # Read transport - - POS=`$GREP -i PidFile $DAEMON_INI | $GREP -v ";"` --if [ "x$POS" = "x" ] ; then -+if [ "x" = "x" ] ; then - echo - echo -n "Daemon pidfile not defined in ini-file ..." - if [ $VER -eq 1 ] ; then -@@ -377,8 +377,13 @@ - echo "Edit one of configuration files and try again." - exit 1 - fi -+ else -+ echo "Press Enter" -+ read INPUT - fi - else -+ echo "Press Enter" -+ read INPUT - FILTER_TIMEOUT=0 - fi - diff --git a/security/drweb-sendmail/files/patch-ae b/security/drweb-sendmail/files/patch-ae deleted file mode 100644 index 9ec4d924cd7d..000000000000 --- a/security/drweb-sendmail/files/patch-ae +++ /dev/null @@ -1,11 +0,0 @@ ---- dw_options.c.orig Tue Dec 9 01:23:55 2003 -+++ dw_options.c Tue Mar 2 20:54:56 2004 -@@ -117,7 +117,7 @@ - #if defined(__UNIX_DW) - #if !defined(EMX_DW) - #if defined(FreeBSD_DW) --#define OS_SPEC_CONFNAME "/usr/local/etc/drweb/"CONF_FNAME -+#define OS_SPEC_CONFNAME "%PREFIX%/etc/drweb/"CONF_FNAME - #else /* FreeBSD */ - #define OS_SPEC_CONFNAME "/opt/drweb/"CONF_FNAME - #endif /* FreeBSD */ diff --git a/security/drweb-sendmail/files/patch-af b/security/drweb-sendmail/files/patch-af deleted file mode 100644 index 23012b4381e7..000000000000 --- a/security/drweb-sendmail/files/patch-af +++ /dev/null @@ -1,120 +0,0 @@ ---- etc/drweb_smf.conf.orig Fri Feb 27 23:21:37 2004 -+++ etc/drweb_smf.conf Sat Mar 6 23:10:40 2004 -@@ -18,14 +18,14 @@ - # Address = local:/usr/local/drweb/run/drwebd.skt - # Address = pid:/usr/local/drweb/run/drwebd.pid - # Address = pid:/var/drweb/run/drwebd.pid, inet:3000@backup_server.example.com --Address = inet:3000@localhost -+Address = local:%PREFIX%/drweb/run/drwebd.sock - - # Enable/disable caching of the resolved daemon host - # (useful only if daemon uses TCP/IP communications) - Cache = yes - - # Timeout for the whole scanning session (seconds) --Timeout = 120 -+Timeout = 160 - - ######################## - # Scan options section # -@@ -91,10 +91,10 @@ - DenyByDefault = no - - # List with rules for users or domains to block scanning --DenyList = /etc/drweb/users.conf -+DenyList = %PREFIX%/etc/drweb/users.conf - - # Directory used to store temporary files --Spool = /var/drweb/spool -+Spool = /tmp - - # Permissions for created spool files - SpoolFilesMode = 0600 -@@ -245,7 +245,7 @@ - # pass - pass such messages - # reject - reject such messages with permanent error - # tempfail - reject such message with temporary error --ProcessingErrors = reject -+ProcessingErrors = tempfail - - # These reply strings will be used as SMTP reply if message has been rejected. - # You can specify only text part of reply: 550 5.7.0 Text part of reply. -@@ -269,16 +269,16 @@ - FilterMail = DrWEB-DAEMON - - # List of unnotificable viruses --UnnotificableVirusesList = /etc/drweb/viruses.conf -+UnnotificableVirusesList = %PREFIX%/etc/drweb/viruses.conf - - # List of unnotificable addresses --UnnotificableAddressesList = /etc/drweb/addresses.conf -+UnnotificableAddressesList = %PREFIX%/etc/drweb/addresses.conf - - # Quarantine directory. - # The infected files could be moved in that dir - # if you leave this field empty or commented out then - # infected messages will not be stored --Quarantine = /var/drweb/infected -+Quarantine = %PREFIX%/drweb/infected - - # Permissions for quarantined files - QuarantineFilesMode = 0660 -@@ -317,15 +317,15 @@ - RcptsNotify = yes - - # Files with notification templates --SenderTemplate = /etc/drweb/templates/en-ru/sendmail/virus-sender.msg --AdminTemplate = /etc/drweb/templates/en-ru/sendmail/virus-admin.msg --RcptsTemplate = /etc/drweb/templates/en-ru/sendmail/virus-rcpts.msg -+SenderTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/virus-sender.msg -+AdminTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/virus-admin.msg -+RcptsTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/virus-rcpts.msg - - [SkipNotifications] - SenderNotify = yes - AdminNotify = no - RcptsNotify = no --SenderTemplate = /etc/drweb/templates/en-ru/sendmail/skip-sender.msg -+SenderTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/skip-sender.msg - AdminTemplate = - RcptsTemplate = - -@@ -333,16 +333,16 @@ - SenderNotify = yes - AdminNotify = yes - RcptsNotify = no --SenderTemplate = /etc/drweb/templates/en-ru/sendmail/archive-sender.msg --AdminTemplate = /etc/drweb/templates/en-ru/sendmail/archive-admin.msg -+SenderTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/archive-sender.msg -+AdminTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/archive-admin.msg - RcptsTemplate = - - [ErrorNotifications] - SenderNotify = yes - AdminNotify = yes - RcptsNotify = no --SenderTemplate = /etc/drweb/templates/en-ru/sendmail/error-sender.msg --AdminTemplate = /etc/drweb/templates/en-ru/sendmail/error-admin.msg -+SenderTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/error-sender.msg -+AdminTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/error-admin.msg - RcptsTemplate = - - [RuleFilterNotifications] -@@ -350,7 +350,7 @@ - AdminNotify = yes - RcptsNotify = no - SenderTemplate = --AdminTemplate = /etc/drweb/templates/en-ru/sendmail/rule-admin.msg -+AdminTemplate = %PREFIX%/etc/drweb/templates/en-ru/sendmail/rule-admin.msg - RcptsTemplate = - - ################### -@@ -391,7 +391,7 @@ - # Definition of Sendmail Milter Address according to sendmail.cf - # Note: FAMILY pid is not valid - # MilterAddress = local:/usr/local/drweb/run/drweb-smf.skt --MilterAddress = inet:3001@localhost -+MilterAddress = local:%PREFIX%/drweb/run/drweb-smf.sock - - # Timeout for drweb-smf to sendmail connection - # (Must be greater than any Timeout. parameter in sendmail.cf) |