svn commit: r421742 - head/mail/qmail

John Marino marino at FreeBSD.org
Sat Sep 10 21:19:19 UTC 2016


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 at -lssl@-L${OPENSSLLIB} -lssl at g" \
+		${UCSPISRC}/src/ssl.lib
 .endif
 
 # XXX - Move all the major patch applications to post-extract


More information about the svn-ports-all mailing list