diff options
| author | Sergei Kolobov <sergei@FreeBSD.org> | 2005-02-17 11:28:00 +0000 |
|---|---|---|
| committer | Sergei Kolobov <sergei@FreeBSD.org> | 2005-02-17 11:28:00 +0000 |
| commit | 23ffd90ad13cf60b7b6f8b2fa7b959d73d5e9ce1 (patch) | |
| tree | 435d1f1a9cf7f55d8231291ffc74130baac16838 /mail/qmail-scanner1/files/patch-configure | |
| parent | Fix gzip namespace pollution (bump PORTREV) (diff) | |
- Update to 1.25
- Fix a bug when you run spamd/spamc using sockets and
`ps -aux` can“t find socket path
PR: ports/76888
Submitted by: Renato Botelho <renato@galle.com.br>
Approved by: maintainer
Diffstat (limited to 'mail/qmail-scanner1/files/patch-configure')
| -rw-r--r-- | mail/qmail-scanner1/files/patch-configure | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mail/qmail-scanner1/files/patch-configure b/mail/qmail-scanner1/files/patch-configure index e368f0b5eb7c..10809f909b3b 100644 --- a/mail/qmail-scanner1/files/patch-configure +++ b/mail/qmail-scanner1/files/patch-configure @@ -1,5 +1,5 @@ ---- configure.orig Tue Oct 19 02:26:55 2004 -+++ configure Fri Oct 22 01:36:34 2004 +--- ./configure.orig Mon Oct 18 21:26:55 2004 ++++ ./configure Mon Jan 31 09:07:22 2005 @@ -1,13 +1,6 @@ #!/bin/sh # @@ -78,6 +78,15 @@ --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} |
