From owner-svn-ports-head@FreeBSD.ORG Sun Mar 24 16:50:28 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 81A19E96; Sun, 24 Mar 2013 16:50:28 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 744FE66C; Sun, 24 Mar 2013 16:50:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2OGoSbR045353; Sun, 24 Mar 2013 16:50:28 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2OGoSqI045352; Sun, 24 Mar 2013 16:50:28 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201303241650.r2OGoSqI045352@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sun, 24 Mar 2013 16:50:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r315146 - head/www/aria2 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Mar 2013 16:50:28 -0000 Author: sunpoet Date: Sun Mar 24 16:50:27 2013 New Revision: 315146 URL: http://svnweb.freebsd.org/changeset/ports/315146 Log: - Add CA_BUNDLE option Modified: head/www/aria2/Makefile Modified: head/www/aria2/Makefile ============================================================================== --- head/www/aria2/Makefile Sun Mar 24 16:27:23 2013 (r315145) +++ head/www/aria2/Makefile Sun Mar 24 16:50:27 2013 (r315146) @@ -11,8 +11,9 @@ COMMENT= Yet another download tool LICENSE= GPLv2 -OPTIONS_DEFINE= DOCS NLS SQLITE +OPTIONS_DEFINE= CA_BUNDLE DOCS NLS SQLITE OPTIONS_DEFAULT=SQLITE +CA_BUNDLE_DESC= Use CA bundle from Mozilla Project CONFIGURE_ARGS= --disable-epoll --enable-bittorrent --enable-metalink \ --enable-shared --enable-threads=posix --with-libz \ @@ -34,6 +35,13 @@ PLIST_FILES= bin/aria2c .include +.if ${PORT_OPTIONS:MCA_BUNDLE} +RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss +CONFIGURE_ARGS+=--with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt +.else +CONFIGURE_ARGS+=--without-ca-bundle +.endif + .if ${PORT_OPTIONS:MDOCS} PLIST_FILES+= %%DOCSDIR%%/README \ %%DOCSDIR%%/README.html \ @@ -73,8 +81,7 @@ CONFIGURE_ARGS+=--without-sqlite3 .endif post-patch: -.if ${PORT_OPTIONS:MDOCS} -.else +.if !${PORT_OPTIONS:MDOCS} @${REINPLACE_CMD} -e 's|\(install-exec-am\) install-data-am|\1|' ${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in .endif