1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

- Update to 1.16.0

- Cleanup Makefile header

Changes:	http://sourceforge.net/projects/aria2/files/stable/aria2-1.16.0/README.rst/view
Feature safe:	yes
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-12-09 10:38:47 +00:00
parent 668d3d095e
commit 5427637080
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308521
3 changed files with 29 additions and 11 deletions

View File

@ -1,12 +1,8 @@
# New ports collection makefile for: aria2
# Date created: 1 May 2006
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= aria2
PORTVERSION= 1.15.2
PORTVERSION= 1.16.0
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/stable/${PORTNAME}-${PORTVERSION}
@ -52,9 +48,16 @@ PLIST_DIRS= %%DOCSDIR%%/xmlrpc \
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=--with-libintl-prefix=${LOCALBASE}
USE_GETTEXT= yes
LANGS= ar bg ca da de el en@boldquot en@quot es fi fr he hu id it ja \
ko nl nn pl pt pt_BR ru sk sr sv th tr uk vi zh_CN zh_TW
PLIST_FILES+= ${LANGS:S|^|share/locale/|:S|$|/LC_MESSAGES/aria2.mo|}
LANGS= en@boldquot en@quot fil kk oc zh_HK
LANGS_MTREE= ar bg bn ca da de el es fa fi fr he hr hu id it ja ko ms nb nl \
nn pl pt pt_BR ro ru sk sr sv th tr uk vi zh_CN zh_TW
.for lang in ${LANGS} ${LANGS_MTREE}
PLIST_FILES+= share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
.for lang in ${LANGS}
PLIST_DIRSTRY+= share/locale/${lang}/LC_MESSAGES \
share/locale/${lang}
.endfor
.else
CONFIGURE_ARGS+=--disable-nls
.endif

View File

@ -1,2 +1,2 @@
SHA256 (aria2-1.15.2.tar.bz2) = 6400431f4248f7a779ae8216ec2711b56ad7481fc659f06db1f22ed97b260836
SIZE (aria2-1.15.2.tar.bz2) = 2043212
SHA256 (aria2-1.16.0.tar.bz2) = 3d5760f5aa43b5d1199e373f93d704bd38f973706edd3b1661cc4ebe3fed0f1e
SIZE (aria2-1.16.0.tar.bz2) = 2062545

View File

@ -0,0 +1,15 @@
--- src/LibsslTLSContext.cc.orig 2012-12-01 22:52:46.000000000 +0800
+++ src/LibsslTLSContext.cc 2012-12-09 00:35:46.456524052 +0800
@@ -57,8 +57,12 @@
ERR_error_string(ERR_get_error(), 0)));
}
// Disable SSLv2 and enable all workarounds for buggy servers
+ #ifdef SSL_OP_NO_COMPRESSION
SSL_CTX_set_options(sslCtx_, SSL_OP_ALL|SSL_OP_NO_SSLv2|
SSL_OP_NO_COMPRESSION);
+ #else
+ SSL_CTX_set_options(sslCtx_, SSL_OP_ALL|SSL_OP_NO_SSLv2);
+ #endif
SSL_CTX_set_mode(sslCtx_, SSL_MODE_AUTO_RETRY);
SSL_CTX_set_mode(sslCtx_, SSL_MODE_ENABLE_PARTIAL_WRITE);
#ifdef SSL_MODE_RELEASE_BUFFERS