Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2016 05:08:59 +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: r421665 - head/security/yafic
Message-ID:  <201609100508.u8A58xlD053139@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Sep 10 05:08:59 2016
New Revision: 421665
URL: https://svnweb.freebsd.org/changeset/ports/421665

Log:
  security/yafic: Document SSL requirement, convert to options
  
  This port was using the WITHOUT_OPENSSL knob.  Convert it to a default
  option "CRYPTO" and bump the port revision.  THere's a build dependency
  on OpenSSL headers when this option is on.
  
  Note that the WWW value is obsolete.
  
  Approved by:	SSL blanket

Modified:
  head/security/yafic/Makefile

Modified: head/security/yafic/Makefile
==============================================================================
--- head/security/yafic/Makefile	Sat Sep 10 04:48:58 2016	(r421664)
+++ head/security/yafic/Makefile	Sat Sep 10 05:08:59 2016	(r421665)
@@ -3,7 +3,7 @@
 
 PORTNAME=	yafic
 PORTVERSION=	1.2.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	SF
 
@@ -14,27 +14,32 @@ GNU_CONFIGURE=	yes
 USES=		gmake
 LDFLAGS+=	-static
 
-.if defined(WITHOUT_OPENSSL)
-CONFIGURE_ARGS=	--disable-crypto
-PLIST_SUB+=	CRYPTO="@comment "
-.else
-PLIST_SUB+=	CRYPTO=""
-.endif
+OPTIONS_DEFINE=	CRYPTO
+OPTIONS_DEFAULT=	CRYPTO
+OPTIONS_SUB=	yes
+
+CRYPTO_DESC=			Cryptographic support
+CRYPTO_USES=			ssl:build
+CRYPTO_CONFIGURE_ENABLE=	crypto
+CRYPTO_LDFLAGS=			-L${OPENSSLLIB}
+CRYPTO_CFLAGS=			-I${OPENSSLINC}
 
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${SED} -e "s;@@PREFIX@@;${PREFIX};g" \
 		${.CURDIR}/pkg-message > ${PKGMESSAGE}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/yafic ${STAGEDIR}${PREFIX}/bin
-.if !defined(WITHOUT_OPENSSL)
+.if ${PORT_OPTIONS:MCRYPTO}
 	${INSTALL_PROGRAM} ${WRKSRC}/yafic-sign ${STAGEDIR}${PREFIX}/bin
 	${LN} -sf yafic-sign ${STAGEDIR}${PREFIX}/bin/yafic-check
 .endif
 	${INSTALL_MAN} ${WRKSRC}/yafic.1 ${STAGEDIR}${PREFIX}/man/man1
-.if !defined(WITHOUT_OPENSSL)
+.if ${PORT_OPTIONS:MCRYPTO}
 	${INSTALL_MAN} ${WRKSRC}/yafic-sign.1 ${STAGEDIR}${PREFIX}/man/man1
 	${LN} -sf yafic-sign.1 ${STAGEDIR}${PREFIX}/man/man1/yafic-check.1
 .endif



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