mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
c_ares: add recipe for version 1.13.0.
This commit is contained in:
85
net-dns/c_ares/c_ares-1.13.0.recipe
Normal file
85
net-dns/c_ares/c_ares-1.13.0.recipe
Normal 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="http://c-ares.haxx.se/"
|
||||
COPYRIGHT=" 2004-2013 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="http://c-ares.haxx.se/download/c-ares-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="03f708f1b14a26ab26c38abd51137640cb444d3ec72380b21b20f1a8d2861da7"
|
||||
SOURCE_DIR="c-ares-$portVersion"
|
||||
PATCHES="c_ares-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86 !x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86 !x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
c_ares$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libcares$secondaryArchSuffix = 2.2.0 compat >= 2
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:ahost$secondaryArchSuffix = $portVersion compat >= 1
|
||||
cmd:adig$secondaryArchSuffix = $portVersion compat >= 1
|
||||
cmd:acountry$secondaryArchSuffix = $portVersion compat >= 1
|
||||
"
|
||||
fi
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
c_ares${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||||
devel:libcares$secondaryArchSuffix = 2.2.0 compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
c_ares$secondaryArchSuffix == $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoconf
|
||||
runConfigure ./configure
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool file
|
||||
rm $libDir/libcares.la
|
||||
|
||||
prepareInstalledDevelLibs libcares
|
||||
fixPkgconfig
|
||||
packageEntries devel $developDir \
|
||||
$manDir/man3
|
||||
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
mkdir -p $binDir
|
||||
cp -af .libs/ahost .libs/adig .libs/acountry $binDir
|
||||
mkdir -p $manDir/man1
|
||||
cp -af ahost.1 adig.1 acountry.1 $manDir/man1
|
||||
fi
|
||||
}
|
||||
52
net-dns/c_ares/patches/c_ares-1.13.0.patchset
Normal file
52
net-dns/c_ares/patches/c_ares-1.13.0.patchset
Normal file
@@ -0,0 +1,52 @@
|
||||
From f216b7020930b1c1d5d9bbc8be326a304c0354fb Mon Sep 17 00:00:00 2001
|
||||
From: Chris Roberts <cpr420@gmail.com>
|
||||
Date: Wed, 30 Oct 2013 15:41:17 -0600
|
||||
Subject: applying patch c_ares-1.10.0.patch
|
||||
|
||||
|
||||
diff --git a/ares.h b/ares.h
|
||||
index cfd72b0..0635672 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.12.2
|
||||
|
||||
|
||||
From 6aa3f0a11037e40832a7e1920bf24012e1e552ca Mon Sep 17 00:00:00 2001
|
||||
From: Chris Roberts <cpr420@gmail.com>
|
||||
Date: Wed, 30 Oct 2013 15:52:39 -0600
|
||||
Subject: Search for libnetwork
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 92bffaa..93ff9fa 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -231,6 +231,15 @@ then
|
||||
])
|
||||
fi
|
||||
|
||||
+if test "$HAVE_GETHOSTBYNAME" != "1"
|
||||
+then
|
||||
+ dnl gethostbyname in the network lib?
|
||||
+ AC_CHECK_LIB(network, gethostbyname,
|
||||
+ [HAVE_GETHOSTBYNAME="1"
|
||||
+ LIBS="$LIBS -lnetwork"
|
||||
+ ])
|
||||
+fi
|
||||
+
|
||||
dnl At least one system has been identified to require BOTH nsl and socket
|
||||
dnl libs at the same time to link properly.
|
||||
if test "$HAVE_GETHOSTBYNAME" != "1"
|
||||
--
|
||||
2.12.2
|
||||
|
||||
Reference in New Issue
Block a user