Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2006 14:35:22 -0000
From:      Shaun Amott <shaun@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/105692: mail/p5-Mail-SpamAssassin: GnuPG dependency should be optional
Message-ID:  <1164033322.2006@charon.picobyte.net>
Resent-Message-ID: <200611201440.kAKEeBOL023585@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105692
>Category:       ports
>Synopsis:       mail/p5-Mail-SpamAssassin: GnuPG dependency should be optional
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 20 14:40:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Shaun Amott
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:

>Description:

GnuPG isn't really needed, so it'd be better if it were optional.
p5-libwww is also not required, but is much smaller than GnuPG.

>How-To-Repeat:

>Fix:

--- p5-Mail-SpamAssassin.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/p5-Mail-SpamAssassin/Makefile,v
retrieving revision 1.99
diff -u -r1.99 Makefile
--- Makefile	7 Nov 2006 03:34:43 -0000	1.99
+++ Makefile	20 Nov 2006 14:30:23 -0000
@@ -22,8 +22,7 @@
 		${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools
 RUN_DEPENDS=	${BUILD_DEPENDS} \
 		${SITE_PERL}/Bundle/LWP.pm:${PORTSDIR}/www/p5-libwww \
-		${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
-		gpg:${PORTSDIR}/security/gnupg
+		${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar
 
 PERL_CONFIGURE=	yes
 CONFIGURE_ARGS=	SYSCONFDIR="${PREFIX}/etc" \
@@ -36,6 +35,7 @@
 OPTIONS=	AS_ROOT "Run spamd as root (recommended)" on \
 		DOMAINKEYS "DomainKeys support" off \
 		SSL "Build with SSL support for spamd/spamc" on \
+		GNUPG "Install GnuPG (for sa-update)" on \
 		MYSQL "Add MySQL support" off \
 		PGSQL "Add PostreSQL support" off \
 		RAZOR "Add Vipul's Razor support" on \
@@ -60,6 +60,10 @@
 CONFIGURE_ARGS+=	ENABLE_SSL=no
 .endif
 
+.if !defined(WITHOUT_GNUPG)
+RUN_DEPENDS+=	gpg:${PORTSDIR}/security/gnupg
+.endif
+
 .if defined(WITH_MYSQL)
 RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
 .endif
--- p5-Mail-SpamAssassin.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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