c-ares, bump version (#2644)

This commit is contained in:
Schrijvers Luc
2018-06-16 23:31:11 +02:00
committed by waddlesplash
parent b1e0155599
commit f8c8fdefb6
2 changed files with 135 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
SUMMARY="A C library for asynchronous DNS requests"
DESCRIPTION="This is c-ares, an asynchronous resolver library. It is intended \
for applications which need to perform DNS queries without blocking, or need \
to perform multiple DNS queries in parallel. The primary examples of such \
applications are servers which communicate with multiple clients and programs \
with graphical user interfaces."
HOMEPAGE="https://c-ares.haxx.se/"
COPYRIGHT="2004-2018 by Daniel Stenberg et al
1998-2013 by the Massachusetts Institute of Technology
1987-2001 The Regents of the University of California
1996-2004 by Internet Software Consortium
2009 by Jakub Hrozek
2010 Jeremy Lal
2012 Marko Kreen
2005 Dominick Meglio"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://c-ares.haxx.se/download/c-ares-$portVersion.tar.gz"
CHECKSUM_SHA256="45d3c1fd29263ceec2afc8ff9cd06d5f8f889636eb4e80ce3cc7f0eaf7aadc6e"
SOURCE_DIR="c-ares-$portVersion"
PATCHES="c_ares-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
libVersion=2.2.0
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
c_ares$secondaryArchSuffix = $portVersion compat >= 1
cmd:acountry$secondaryArchSuffix = $portVersion
cmd:adig$secondaryArchSuffix = $portVersion
cmd:ahost$secondaryArchSuffix = $portVersion
lib:libcares$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
c_ares${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libcares$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
c_ares$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage c_ares$secondaryArchSuffix \
"$libDir"/libcares.so.$libVersion
BUILD()
{
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# remove libtool file
rm $libDir/libcares.la
prepareInstalledDevelLibs libcares
fixPkgconfig
packageEntries devel \
"$developDir" \
"$manDir/man3"
install -d -m 755 $binDir
install -m 755 -t $binDir acountry adig ahost
}

View File

@@ -0,0 +1,50 @@
From 8b3841b3566b177db69126ad493971e0e6aa3e0c Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 4 Jun 2018 13:06:38 +0200
Subject: applying patch c_ares-1.10.0.patch
diff --git a/ares.h b/ares.h
index 65a82cb..6e19217 100644
--- a/ares.h
+++ b/ares.h
@@ -39,7 +39,7 @@
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \
- defined(__QNXNTO__)
+ defined(__QNXNTO__) || defined(__HAIKU__)
#include <sys/select.h>
#endif
#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
--
2.16.4
From 73fb52f311d7b2811b607c6c3f9ed8ac823cdb62 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 4 Jun 2018 13:07:28 +0200
Subject: Search for libnetwork
diff --git a/configure.ac b/configure.ac
index 856cede..5e859f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -223,10 +223,10 @@ AC_CHECK_FUNC(gethostbyname,
if test "$HAVE_GETHOSTBYNAME" != "1"
then
- dnl gethostbyname in the socket lib?
- AC_CHECK_LIB(socket, gethostbyname,
+ dnl gethostbyname in the network lib?
+ AC_CHECK_LIB(network, gethostbyname,
[HAVE_GETHOSTBYNAME="1"
- LIBS="$LIBS -lsocket"
+ LIBS="$LIBS -lnetwork"
])
fi
--
2.16.4