Subject: Re: POSTFIX_USE_* options deprecated
To: Eric Haszlakiewicz <erh@nimenees.com>
From: Juan RP <xtraeme@netbsd.org>
List: current-users
Date: 07/27/2004 07:16:48
--Signature=_Tue__27_Jul_2004_07_16_48_+0200_/mMJvO2JezIancst
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Tue, 27 Jul 2004 00:13:05 -0500
Eric Haszlakiewicz <erh@nimenees.com> wrote:

> > What about adding SSL support? it will be useful for some people IMO.
> 	That needs the sasl2 libraries from pkgsrc.  Assuming you have those
> installed, apply this patch, set POSTFIX_SASL (e.g. in mk.conf) and rebuild
> postfix.

I didn't know about this requiring cyrus-sasl2.

> 	I thought about comitting this, but couldn't figure out whether it
> was a good idea or if custom installations like this should be handled
> by a package.  Anyone else have an opinion?
> 
> Index: Makefile.inc
> ===================================================================
> RCS file: /cvsroot/src/gnu/usr.sbin/postfix/Makefile.inc,v
> retrieving revision 1.11
> diff -u -r1.11 Makefile.inc
> --- Makefile.inc	7 Feb 2004 05:10:44 -0000	1.11
> +++ Makefile.inc	27 Jul 2004 05:08:17 -0000
> @@ -11,6 +11,10 @@
> 	-I${PFIX_DISTDIR}/src/master -I${PFIX_DISTDIR}/src/util
>  # IPv6
>  #CPPFLAGS+= -DINET6
> +.if defined(POSTFIX_SASL)
> +CPPFLAGS+= -DUSE_SASL_AUTH -I/usr/pkg/include/sasl -DHAS_SSL
> -I/usr/pkg/include
> /openssl
> +LDADD+= -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lsasl2 -lssl -lcrypto
> +.endif
> 
>  PFIX_SRCDIR=	${NETBSDSRCDIR}/gnu/usr.sbin/postfix

I don't think this patch it's ok, because at least /usr/pkg should be replaced
by LOCALBASE.

Cheers.

--Signature=_Tue__27_Jul_2004_07_16_48_+0200_/mMJvO2JezIancst
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFBBeVAypkLYVDran0RAseCAKDNWs7cX4AT9ozL+Uw92rod/efQIQCfYAgo
TDl7z1ErNQNVMtiotYHMcoQ=
=EqDU
-----END PGP SIGNATURE-----

--Signature=_Tue__27_Jul_2004_07_16_48_+0200_/mMJvO2JezIancst--