Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jan 2005 15:54:55 +0100
From:      Mathieu Arnold <mat@mat.cc>
To:        Olli Hauer <ohauer@gmx.de>, perl@FreeBSD.org
Subject:   Re: FreeBSD Port: p5-Mail-SpamAssassin-3.0.2
Message-ID:  <FD74AF046EF8BEDCBBCD30B4@cc-147.int.t-online.fr>
In-Reply-To: <29682.1105195828@www47.gmx.net>
References:  <29682.1105195828@www47.gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
That's nice, could you change the WITH_OPENSSL to some keyworld not already
registered, say, WITH_SSL, and send-pr your patch ?

+-le 08/01/2005 15:50 +0100, Olli Hauer =E9crivait :
| Hello,
|=20
| perhaps i found a missing modul at p5-Mail-SpamAssassin.
|=20
| The install instruction for Mail-SpamAssassin say for SSL:
|   - IO::Socket::SSL (from CPAN)
|=20
|     If you wish to use SSL encryption to communicate between spamc and
|     spamd (the --ssl option to spamd), you need to install this
|     module. (You will need the OpenSSL libraries and use the
|     ENABLE_SSL=3D"yes" argument to Makefile.PL to build and run an SSL
|     compatibile spamc.)
|=20
|=20
| I have written a little patch for the Makefile and also added the=20
| option dialog. One thing i could not fix is "make fetch-recursive" to=20
| get all the ssl stuff for the port if ssl is enabled and "make config"=20
| was not executed before -> so i switch this off.
|=20
| here is my patch (i hope you like it).
| ----
|=20
| --- Makefile~	Sat Jan  8 14:54:53 2005
| +++ Makefile	Sat Jan  8 15:18:46 2005
| @@ -7,6 +7,7 @@
| =20
|  PORTNAME=3D	Mail-SpamAssassin
|  PORTVERSION=3D	3.0.2
| +PORTREVISION=3D	1
|  CATEGORIES=3D	mail perl5
|  MASTER_SITES=3D	${MASTER_SITE_APACHE:S/$/:apache/}
| ${MASTER_SITE_PERL_CPAN:S/$/:cpan/}
|  MASTER_SITE_SUBDIR=3D	spamassassin/:apache Mail/:cpan
| @@ -27,11 +28,23 @@
|  	       	CONTACT_ADDRESS=3D"the administrator of that system" \
|  		BUILD_SPAMC=3Dyes RUN_NET_TESTS=3Dyes
| =20
| +OPTIONS=3D	OPENSSL		"enable SSL between spamc and spamd"	off \
| +		MYSQL		"add MySQL support"			off \
| +		PGSQL		"add PostgreSQL support"		off \
| +		SPF_QUERY	"add SPF query support"			off
| +
| +.include <bsd.port.pre.mk>
| +
|  .if defined(WITH_SPF_QUERY)
|  RUN_DEPENDS+=3D	spfd:${PORTSDIR}/mail/p5-Mail-SPF-Query
|  .endif
| =20
| -.if !defined(WITHOUT_OPENSSL)
| +.if defined(WITH_OPENSSL)
| +# we need to .include bsd.openssl.mk manually here because USE_OPENSSL =
only
| +# works when it is defined before bsd.port{.pre}.mk is .included and this
| is
| +# not possible when using OPTIONS
| +.include
| "${PORTSDIR}/Mk/bsd.openssl.mk"
| +RUN_DEPENDS+=3D
| 	${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
|  USE_OPENSSL=3D	yes
|  CFLAGS+=3D	-I${OPENSSLINC}
|  LDFLAGS+=3D	-L${OPENSSLLIB}
| @@ -93,19 +106,6 @@
|  SED_SCRIPT+=3D	-e 's|%%SQL%%||g'
|  .endif
| =20
| -pre-patch:
| -	@${ECHO_MSG} ""
| -	@${ECHO_MSG}
| =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"
| -	@${ECHO_MSG} "You can use folowed options to install SpamAssassin with"
| -	@${ECHO_MSG} "	an addition features:"
| -	@${ECHO_MSG} ""
| -	@${ECHO_MSG} "WITHOUT_SSL=3Dyes	 - disable SSL,"
| -	@${ECHO_MSG} "WITH_MYSQL=3Dyes	 - add MySQL support,"
| -	@${ECHO_MSG} "WITH_PGSQL=3Dyes	 - add PostgreSQL support,"
| -	@${ECHO_MSG} "WITH_SPF_QUERY=3Dyes - add SPF query support."
| -	@${ECHO_MSG}
| =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"
| -	@${ECHO_MSG} ""
| -
|  post-patch:
|  	@${FIND} ${WRKSRC} -name \*.orig -delete
|  	@${SED} -e 's#B_CONFDIR)/local.cf#B_CONFDIR)/local.cf.sample#g' \
| @@ -132,8 +132,6 @@
| =20
|  .endif
|  	@${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
| -
| -.include <bsd.port.pre.mk>
|=20
|=20
| ----
| olli



--=20
Mathieu Arnold



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