summaryrefslogtreecommitdiff
path: root/mail/exim
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2003-10-29 11:56:02 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2003-10-29 11:56:02 +0000
commit2f8efac5b690d9dc8b44611ac7c217f52256c46a (patch)
tree76ef1de33c7f5a9831738ffd3031c3e4339a55d4 /mail/exim
parentUpdate to 0.25.05 (diff)
* Remove old saslauthd bugfix, included in 4.24.
* Add bugfix for numeric overflow. * Update clamav installation instructions for changes to the clamav port. Bump PORTREVISION accordingly. Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Notes
Notes: svn path=/head/; revision=92561
Diffstat (limited to 'mail/exim')
-rw-r--r--mail/exim/Makefile2
-rw-r--r--mail/exim/files/POST-INSTALL-NOTES.clamd43
-rw-r--r--mail/exim/files/patch-src::expand.c22
3 files changed, 18 insertions, 49 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 711833a32416..b0ca064e1098 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -7,7 +7,7 @@
PORTNAME= exim
PORTVERSION= 4.24
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_EXIM}
MASTER_SITE_SUBDIR= exim4
diff --git a/mail/exim/files/POST-INSTALL-NOTES.clamd b/mail/exim/files/POST-INSTALL-NOTES.clamd
index 7ea8aad22694..0a6240208c8c 100644
--- a/mail/exim/files/POST-INSTALL-NOTES.clamd
+++ b/mail/exim/files/POST-INSTALL-NOTES.clamd
@@ -3,10 +3,10 @@ It is important to follow them in sequence.
* Install security/clamav from the ports tree.
-* Add user clamav to the mail group in /etc/group.
+* Confirm that user clamav was added to the mail group in /etc/group.
-* Create /var/log/clamav and /var/run/clamav, and change the ownership
- of both to clamav:clamav.
+* Confirm that /var/log/clamav and /var/run/clamav exist and are owned
+ by clamav:clamav.
* In Exim's configure file, set av_scanner=clamd:/var/run/clamav/clamd
@@ -28,47 +28,18 @@ It is important to follow them in sequence.
You may wish to make other changes as well.
-* Install the shell script included at the end of these instructions as
- /usr/local/etc/rc.d/clamd.sh, taking care to make it executable.
+* Make sure clamd_enable="YES" has been added to /etc/rc.conf; this is
+ required by the clamav port's startup script,
+ %%RC_DIR%%/clamd%%RC_SUFX%% .
* Run freshclam.
* Add a cron job that runs freshclam --daemon-notify --quiet at least
once a day.
-* Start clamd with /usr/local/etc/rc.d/clamd.sh start .
+* Start clamd with %%RC_DIR%%/clamd%%RC_SUFX%% start .
* Start Exim with %%RC_DIR%%/exim%%RC_SUFX%% start .
Sheldon Hearn <sheldonh@FreeBSD.org>
-#!/bin/sh
-#
-PREFIX=/usr/local
-CLAMAV_BIN=${PREFIX}/sbin
-
-case $1 in
-start)
- [ -x ${CLAMAV_BIN}/clamd ] && {
- ${CLAMAV_BIN}/clamd
- echo -n ' clamd'
- }
- ;;
-
-stop)
- kill `cat /var/run/clamav/clamd.pid`
- if [ $? = 0 ] ; then
- echo -n ' clamd'
- fi
- ;;
-
-restart)
- /usr/local/etc/rc.d/clamd.sh stop && \
- /usr/local/etc/rc.d/clamd.sh start
- ;;
-
-*)
- echo "usage: `basename $0` {start|stop|restart}" >&2
- exit 64
- ;;
-esac
diff --git a/mail/exim/files/patch-src::expand.c b/mail/exim/files/patch-src::expand.c
index 0d3cdca90cac..daca81773825 100644
--- a/mail/exim/files/patch-src::expand.c
+++ b/mail/exim/files/patch-src::expand.c
@@ -1,12 +1,10 @@
---- src/expand.c.orig Mon Aug 18 14:52:54 2003
-+++ src/expand.c Fri Aug 29 17:51:12 2003
-@@ -1462,6 +1462,9 @@
- if (yield != NULL)
- {
- int rc;
-+
-+ if ( sub[2] == NULL ) sub[3] = NULL;
-+
- rc = auth_call_saslauthd(sub[0], sub[1], sub[2], sub[3],
- &expand_string_message);
- if (rc == ERROR || rc == DEFER) return NULL;
+--- /var/tmp/usr/ports/mail/exim/work/exim-4.24/src/expand.c.orig Mon Sep 22 10:29:56 2003
++++ /var/tmp/usr/ports/mail/exim/work/exim-4.24/src/expand.c Tue Oct 28 15:39:43 2003
+@@ -4114,6 +4114,7 @@
+
+ if (s == NULL) return -1;
+
++errno = 0;
+ value = strtol(CS s, CSS &endptr, 0);
+
+ if (endptr == s)