Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2016 21:19:17 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421742 - head/mail/qmail
Message-ID:  <201609102119.u8ALJHo1025808@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Sep 10 21:19:17 2016
New Revision: 421742
URL: https://svnweb.freebsd.org/changeset/ports/421742

Log:
  mail/qmail-spamcontrol: document and support SSL requirement
  
  My eyes are bleeding from looking at this qmail stuff.  The compiling
  in the pre-patch target is an essentially nice touch.
  
  Approved by:	SSL blanket

Modified:
  head/mail/qmail/Makefile

Modified: head/mail/qmail/Makefile
==============================================================================
--- head/mail/qmail/Makefile	Sat Sep 10 20:23:46 2016	(r421741)
+++ head/mail/qmail/Makefile	Sat Sep 10 21:19:17 2016	(r421742)
@@ -283,9 +283,12 @@ EXTRA_MAN8=	qmail-badloadertypes.8 qmail
 		qmail-recipients.8 qmail-smtpam.8
 ALL_TARGET+=	${EXTRA_MAN8}
 MMAN8+=		${EXTRA_MAN8}
-USES+=		perl5
+USES+=		perl5 ssl
 USE_PERL5=	patch build
 CFLAGS+=	-include /usr/include/errno.h
+CFLAGS+=	-I${OPENSSLINC} -L${OPENSSLLIB}
+# Required for the insane pre-patch compiling done by this slave port
+PATCH_DEPENDS+=	${BUILD_DEPENDS:M*ssl*}
 .endif
 
 .if defined(SLAVE_LDAP)
@@ -660,6 +663,8 @@ post-extract:
 .if defined(SLAVE_SPAMCONTROL)
 	@cd ${WRKSRC} && ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${SPAMCONTROL_DIST}
 	@cd ${WRKDIR} && ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${UCSPI_SSL_DIST}
+	${REINPLACE_CMD} -e "s@-lssl@-L${OPENSSLLIB} -lssl@g" \
+		${UCSPISRC}/src/ssl.lib
 .endif
 
 # XXX - Move all the major patch applications to post-extract



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