Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2004 21:15:39 +0300
From:      Sergey Matveychuk <sem@FreeBSD.org>
To:        Linus Nordberg <linus@nordberg.se>
Cc:        perl@FreeBSD.org
Subject:   Re: p5-Mail-SpamAssassin dependency possibly missing
Message-ID:  <419A43CB.3000407@FreeBSD.org>
In-Reply-To: <ysz8y92da8k.fsf@bam.nordberg.se>
References:  <yszekiudcxk.fsf@bam.nordberg.se> <E84922A1B9F03BEC520F7607@[192.168.1.5]> <ysz8y92da8k.fsf@bam.nordberg.se>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------000900020709040101010401
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Linus Nordberg wrote:

> Mathieu Arnold <mat@FreeBSD.org> wrote
> Mon, 15 Nov 2004 23:14:07 +0100:
> 
> |  | It seems like the p5-Mail-SpamAssassin port should have a runtime
> |  | dependency to databases/p5-DBD-mysql or so.
> |  
> |  I don't know why it should, I use it without any problems without any
> |  database.
> 
> Ah, of course.  I'm using spamd with --setuid-with-sql.
> 
> Then perhaps a WITH_MYSQL or similar would be a good hint?

Examine a patch.
Is it enough?

-- 
Sem.

--------------000900020709040101010401
Content-Type: text/plain;
 name="SpamAssassin.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="SpamAssassin.patch"

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/p5-Mail-SpamAssassin/Makefile,v
retrieving revision 1.64
diff -u -r1.64 Makefile
--- Makefile	28 Oct 2004 16:45:16 -0000	1.64
+++ Makefile	16 Nov 2004 18:14:15 -0000
@@ -37,6 +37,16 @@
 CONFIGURE_ARGS+=	ENABLE_SSL=no
 .endif
 
+.if defined(WITH_MYSQL)
+USE_MYSQL=	yes
+USE_SQLDB=	yes
+.endif
+
+.if defined(WITH_PGSQL)
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+USE_SQLDB=	yes
+.endif
+
 MAN3=		Mail::SpamAssassin.3 \
 		Mail::SpamAssassin::ArchiveIterator.3 \
 		Mail::SpamAssassin::AutoWhitelist.3 \
@@ -74,6 +84,10 @@
 USE_RC_SUBR=	yes
 SED_SCRIPT=	-e 's|%%PREFIX%%|${PREFIX}|g' \
 		-e 's|%%RC_SUBR%%|${RC_SUBR}|g'
+.if defined(WITH_SQLDB)
+SED_SCRIPT+=	-e 's|%%SQL%%|-Q|g'
+.endif
+
 post-patch:
 	@${FIND} ${WRKSRC} -name \*.orig -delete
 	@${SED} -e 's#B_CONFDIR)/local.cf#B_CONFDIR)/local.cf.sample#g' \
Index: files/spamd.sh
===================================================================
RCS file: /home/pcvs/ports/mail/p5-Mail-SpamAssassin/files/spamd.sh,v
retrieving revision 1.8
diff -u -r1.8 spamd.sh
--- files/spamd.sh	12 Oct 2004 10:42:38 -0000	1.8
+++ files/spamd.sh	16 Nov 2004 18:14:15 -0000
@@ -35,7 +35,7 @@
 
 spamd_enable=${spamd_enable:-"NO"}
 spamd_pidfile=${spamd_pidfile:-"/var/run/spamd.pid"}
-spamd_flags=${spamd_flags:-"-c -d -r ${spamd_pidfile}"}
+spamd_flags=${spamd_flags:-"-c -d %%SQL%% -r ${spamd_pidfile}"}
 
 load_rc_config $name
 run_rc_command "$1"

--------------000900020709040101010401--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?419A43CB.3000407>