From owner-freebsd-perl@FreeBSD.ORG Tue Nov 16 18:15:47 2004 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AD7416A4CE; Tue, 16 Nov 2004 18:15:47 +0000 (GMT) Received: from mail.ciam.ru (mail.ciam.ru [213.147.57.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A0F43D53; Tue, 16 Nov 2004 18:15:44 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from ppp83-237-164-17.pppoe.mtu-net.ru ([83.237.164.17]) by mail.ciam.ru with esmtpa (Exim 4.x) id 1CU7rf-0002xU-SK; Tue, 16 Nov 2004 21:15:41 +0300 Message-ID: <419A43CB.3000407@FreeBSD.org> Date: Tue, 16 Nov 2004 21:15:39 +0300 From: Sergey Matveychuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Linus Nordberg References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------000900020709040101010401" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "proxy.ciam.ru", hasmessagelabel similar future email. If you have any questions, see the administrator of that system for details. Content preview: Linus Nordberg wrote: > Mathieu Arnold wrote > Mon, 15 Nov 2004 23:14:07 +0100: > > | | It seems like the p5-Mail-SpamAssassin port should have a runtime > | | itAh, of course. I'm using spamd with --setuid-with-sql. > > Then perhaps a WITH_MYSQL or similar would be a good hint? [...] Content analysis details: (2.9 points, 5.0 required) pts rule name description --------------------------------------------------addr 1)address [83.237.164.17 listed in dnsbl.sorbs.net] cc: Mathieu Arnold cc: perl@FreeBSD.org Subject: Re: p5-Mail-SpamAssassin dependency possibly missing X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2004 18:15:47 -0000 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 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--