svn commit: r315146 - head/www/aria2
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Mar 24 16:50:28 UTC 2013
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 <bsd.port.options.mk>
+.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
More information about the svn-ports-head
mailing list