Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2019 09:11:34 +0000 (UTC)
From:      Dima Panov <fluffy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r515849 - in branches/2019Q4/dns: libasr libasr-devel
Message-ID:  <201910280911.x9S9BYI2064945@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fluffy
Date: Mon Oct 28 09:11:34 2019
New Revision: 515849
URL: https://svnweb.freebsd.org/changeset/ports/515849

Log:
  MFH: r515713
  
  - LibASR doesn't need to depend on *SSL but optional CAroots package
  
  Approved by:	ports-secteam (miwi)

Modified:
  branches/2019Q4/dns/libasr-devel/Makefile
  branches/2019Q4/dns/libasr/Makefile
Directory Properties:
  branches/2019Q4/   (props changed)

Modified: branches/2019Q4/dns/libasr-devel/Makefile
==============================================================================
--- branches/2019Q4/dns/libasr-devel/Makefile	Mon Oct 28 08:09:34 2019	(r515848)
+++ branches/2019Q4/dns/libasr-devel/Makefile	Mon Oct 28 09:11:34 2019	(r515849)
@@ -3,10 +3,9 @@
 
 PORTNAME=	libasr
 PORTVERSION=	201602131606
-PORTREVISION=	1
+PORTREVISION=	3
 CATEGORIES=	dns
-MASTER_SITES=	http://www.opensmtpd.org/archives/ \
-		http://distfiles.pirateparty.in/ashish/
+MASTER_SITES=	http://www.opensmtpd.org/archives/
 PKGNAMESUFFIX=	-devel
 
 MAINTAINER=	fluffy@FreeBSD.org
@@ -16,14 +15,26 @@ LICENSE=	ISCL BSD4CLAUSE BSD3CLAUSE BSD2CLAUSE
 LICENSE_COMB=	multi
 LICENSE_FILE=	${WRKSRC}/LICENCE
 
+USES=		cpe groff libtool
+
 CONFLICTS=	libasr-[0-9]*
 
-USES=		groff libtool ssl:build
+OPTIONS_DEFINE=	CA_BUNDLE
+OPTIONS_DEFAULT=	CA_BUNDLE
+
+CA_BUNDLE_DESC=	Use NSS CA bundle for SSL instead of /etc/ssl/cert.pem
+
+CPE_VENDOR=	openbsd
+
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--with-mantype="man"
 INSTALL_TARGET=	install-strip
 
-CFLAGS+=	-I${OPENSSLINC}
+CA_BUNDLE_CONFIGURE_WITH=	ca-file=${LOCALBASE}/share/certs/ca-root-nss.crt
+CA_BUNDLE_RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
+
+post-patch:
+	${REINPLACE_CMD} -e '/opensslv.h/d' ${WRKSRC}/openbsd-compat/includes.h
 
 .include <bsd.port.mk>

Modified: branches/2019Q4/dns/libasr/Makefile
==============================================================================
--- branches/2019Q4/dns/libasr/Makefile	Mon Oct 28 08:09:34 2019	(r515848)
+++ branches/2019Q4/dns/libasr/Makefile	Mon Oct 28 09:11:34 2019	(r515849)
@@ -3,10 +3,9 @@
 
 PORTNAME=	libasr
 PORTVERSION=	1.0.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	dns
-MASTER_SITES=	http://www.opensmtpd.org/archives/ \
-		http://distfiles.pirateparty.in/ashish/
+MASTER_SITES=	http://www.opensmtpd.org/archives/
 
 MAINTAINER=	fluffy@FreeBSD.org
 COMMENT=	Asynchronous DNS resolver library
@@ -15,14 +14,26 @@ LICENSE=	ISCL BSD4CLAUSE BSD3CLAUSE BSD2CLAUSE
 LICENSE_COMB=	multi
 LICENSE_FILE=	${WRKSRC}/LICENCE
 
+USES=		cpe groff libtool
+
 CONFLICTS=	libasr-devel-[0-9]*
 
-USES=		groff libtool ssl:build
+OPTIONS_DEFINE=	CA_BUNDLE
+OPTIONS_DEFAULT=	CA_BUNDLE
+
+CA_BUNDLE_DESC=	Use NSS CA bundle for SSL instead of /etc/ssl/cert.pem
+
+CPE_VENDOR=	openbsd
+
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--with-mantype="man"
 INSTALL_TARGET=	install-strip
 
-CFLAGS+=	-I${OPENSSLINC}
+CA_BUNDLE_CONFIGURE_WITH=	ca-file=${LOCALBASE}/share/certs/ca-root-nss.crt
+CA_BUNDLE_RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
+
+post-patch:
+	${REINPLACE_CMD} -e '/opensslv.h/d' ${WRKSRC}/openbsd-compat/includes.h
 
 .include <bsd.port.mk>



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