mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
aria2: add recipe for version 1.32.0.
This commit is contained in:
70
net-misc/aria2/aria2-1.32.0.recipe
Normal file
70
net-misc/aria2/aria2-1.32.0.recipe
Normal file
@@ -0,0 +1,70 @@
|
||||
SUMMARY="A download utility with segmented downloading and BitTorrent support"
|
||||
DESCRIPTION="
|
||||
aria2 is a utility for downloading files. The supported protocols are \
|
||||
HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from \
|
||||
multiple sources/protocols and tries to utilize your maximum download \
|
||||
bandwidth. It supports downloading a file from HTTP(S)/FTP and \
|
||||
BitTorrent at the same time, while the data downloaded from \
|
||||
HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's \
|
||||
chunk checksums, aria2 automatically validates chunks of data while \
|
||||
downloading a file like BitTorrent."
|
||||
HOMEPAGE="http://aria2.sourceforge.net"
|
||||
COPYRIGHT="2006-2014 Tatsuhiro Tsujikawa"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/tatsuhiro-t/aria2/releases/download/release-$portVersion/aria2-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="546e9194a9135d665fce572cb93c88f30fb5601d113bfa19951107ced682dc50"
|
||||
PATCHES="aria2-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
aria2$secondaryArchSuffix = $portVersion compat >= 1
|
||||
cmd:aria2c
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:gettext
|
||||
cmd:find
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
CPPFLAGS="-D_BSD_SOURCE" runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make tests
|
||||
}
|
||||
47
net-misc/aria2/patches/aria2-1.32.0.patchset
Normal file
47
net-misc/aria2/patches/aria2-1.32.0.patchset
Normal file
@@ -0,0 +1,47 @@
|
||||
From c19c3b019a37dc1e3d2c1d384905b935a6dce9c5 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Mon, 2 Feb 2015 20:42:42 +0000
|
||||
Subject: haiku: detect libnetwork
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 863d36f..0a66ff1 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -720,6 +720,9 @@ case "$host" in
|
||||
EXTRALIBS="$LIBS $EXTRALIBS"
|
||||
LIBS=$save_LIBS
|
||||
;;
|
||||
+ *haiku*)
|
||||
+ AC_SEARCH_LIBS([getaddrinfo], [network])
|
||||
+ ;;
|
||||
esac
|
||||
|
||||
# Checks for header files.
|
||||
--
|
||||
2.12.2
|
||||
|
||||
|
||||
From fb3dda4caf43201f9cfb48eb629a8bfe56010822 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Wed, 4 Feb 2015 17:19:50 +0000
|
||||
Subject: check SSL_OP_NO_TLSv1_1
|
||||
|
||||
|
||||
diff --git a/src/LibsslTLSContext.cc b/src/LibsslTLSContext.cc
|
||||
index fb74ccc..5147cab 100644
|
||||
--- a/src/LibsslTLSContext.cc
|
||||
+++ b/src/LibsslTLSContext.cc
|
||||
@@ -113,7 +113,9 @@ OpenSSLTLSContext::OpenSSLTLSContext(TLSSessionSide side, TLSVersion minVer)
|
||||
long ver_opts = 0;
|
||||
switch (minVer) {
|
||||
case TLS_PROTO_TLS12:
|
||||
+#ifdef SSL_OP_NO_TLSv1_1
|
||||
ver_opts |= SSL_OP_NO_TLSv1_1;
|
||||
+#endif
|
||||
// fall through
|
||||
case TLS_PROTO_TLS11:
|
||||
ver_opts |= SSL_OP_NO_TLSv1;
|
||||
--
|
||||
2.12.2
|
||||
|
||||
Reference in New Issue
Block a user