Changeset - 62cbf0d350c1
[Not reviewed]
default
0 0 5
Nathan Brink (binki) - 16 years ago 2009-01-15 00:19:03
ohnobinki@ohnopublishing.net
added a version of net-dns/c-ares that is patched so that unrealircd can compile against it
see gentoo bug #254966, http://www.freebsdsoftware.org/dns/c-ares.html for the reason this patch is neede
5 files changed with 292 insertions and 0 deletions:
0 comments (0 inline, 0 general)
net-dns/c-ares/ChangeLog
Show inline comments
 
new file 100644
 
# ChangeLog for net-dns/c-ares
 
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
 
# $Header: /var/cvsroot/gentoo-x86/net-dns/c-ares/ChangeLog,v 1.45 2008/09/18 08:12:32 pva Exp $
 

	
 
  15 Jan 2009; Nathan Phillip Brink <ohnobinki@ohnopublishing.net> -c-ares-1.5.1.ebuild -c-ares-1.4.0.ebuild -c-ares-1.5.2.ebuild +files/c-ares-unrealircd.patch:
 
  imported from portage; added patch that provides a function unrealircd requires.
 
	
 
*c-ares-1.5.3 (18 Sep 2008)
 

	
 
  18 Sep 2008; Peter Volkov <pva@gentoo.org> +c-ares-1.5.3.ebuild:
 
  Version bump.
 

	
 
*c-ares-1.5.2 (01 Jun 2008)
 

	
 
  01 Jun 2008; Daniel Black <dragonheart@gentoo.org> +c-ares-1.5.2.ebuild:
 
  version bump
 

	
 
*c-ares-1.5.1 (01 Apr 2008)
 

	
 
  01 Apr 2008; Daniel Black <dragonheart@gentoo.org> +c-ares-1.5.1.ebuild:
 
  version bump
 

	
 
  06 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> c-ares-1.4.0.ebuild:
 
  Adding back ~x86-fbsd for games-action/bzflag. Someone dropped the KEYWORD
 
  without a ChangeLog, so I am assuming that it was by accident.
 

	
 
  25 Jan 2008; Fabian Groffen <grobian@gentoo.org> c-ares-1.4.0.ebuild:
 
  Dropped ppc-macos keyword, see you in prefix
 

	
 
  06 Aug 2007; Daniel Black <dragonheart@gentoo.org> -c-ares-1.3.0.ebuild,
 
  -c-ares-1.3.1.ebuild, -c-ares-1.3.2.ebuild:
 
  cleanout
 

	
 
  11 Jun 2007; Gustavo Zacarias <gustavoz@gentoo.org> c-ares-1.4.0.ebuild:
 
  Stable on sparc wrt security #181373
 

	
 
  10 Jun 2007; Joshua Kinard <kumba@gentoo.org> c-ares-1.4.0.ebuild:
 
  Stable on mips, per #140068.
 

	
 
  09 Jun 2007; Tobias Scherbaum <dertobi123@gentoo.org> c-ares-1.4.0.ebuild:
 
  ppc stable, bug #181373
 

	
 
  09 Jun 2007; Jeroen Roovers <jer@gentoo.org> c-ares-1.4.0.ebuild:
 
  Stable for HPPA (bug #140068).
 

	
 
  09 Jun 2007; Raúl Porcel <armin76@gentoo.org> c-ares-1.4.0.ebuild:
 
  alpha/ia64/x86 stable wrt security #181373
 

	
 
  09 Jun 2007; Christoph Mende <angelos@gentoo.org> c-ares-1.4.0.ebuild:
 
  Stable on amd64 wrt security bug 181373
 

	
 
  09 Jun 2007; Markus Rothe <corsair@gentoo.org> c-ares-1.4.0.ebuild:
 
  Stable on ppc64; bug #181373
 

	
 
*c-ares-1.4.0 (09 Jun 2007)
 

	
 
  09 Jun 2007; Daniel Black <dragonheart@gentoo.org> -c-ares-1.2.0.ebuild,
 
  -c-ares-1.2.1-r1.ebuild, +c-ares-1.4.0.ebuild:
 
  version bump and cleanout
 

	
 
  18 Mar 2007; Steve Dibb <beandog@gentoo.org> c-ares-1.3.1.ebuild:
 
  amd64 stable, bug 140068
 

	
 
  11 Mar 2007; Raúl Porcel <armin76@gentoo.org> c-ares-1.3.1.ebuild:
 
  x86 stable wrt bug 140068
 

	
 
*c-ares-1.3.2 (06 Nov 2006)
 

	
 
  06 Nov 2006; Daniel Black <dragonheart@gentoo.org> +c-ares-1.3.2.ebuild:
 
  version bump
 

	
 
  30 Oct 2006; Javier Villavicencio <the_paya@gentoo.org>
 
  c-ares-1.3.1.ebuild:
 
  Keyworded ~x86-fbsd.
 

	
 
  05 Aug 2006; Tobias Scherbaum <dertobi123@gentoo.org> c-ares-1.3.1.ebuild:
 
  ppc stable, bug #140068
 

	
 
  20 Jul 2006; Gustavo Zacarias <gustavoz@gentoo.org> c-ares-1.3.1.ebuild:
 
  Stable on sparc wrt #140068
 

	
 
  20 Jul 2006; Markus Rothe <corsair@gentoo.org> c-ares-1.3.1.ebuild:
 
  Stable on ppc64; bug #140068
 

	
 
  18 Jul 2006; Jeroen Roovers <jer@gentoo.org> c-ares-1.3.1.ebuild:
 
  Stable on HPPA (bug #140068).
 

	
 
  12 Jul 2006; Daniel Black <dragonheart@gentoo.org> c-ares-1.2.0.ebuild,
 
  c-ares-1.2.1-r1.ebuild, c-ares-1.3.0.ebuild, +c-ares-1.3.1.ebuild:
 
  version bump. Fix license to MIT.
 

	
 
*c-ares-1.3.1 (12 Jul 2006)
 

	
 
  12 Jul 2006; Daniel Black <dragonheart@gentoo.org> c-ares-1.2.0.ebuild,
 
  c-ares-1.2.1-r1.ebuild, c-ares-1.3.0.ebuild, +c-ares-1.3.1.ebuild:
 
  version bump
 

	
 
  07 Feb 2006; Simon Stelling <blubb@gentoo.org> c-ares-1.3.0.ebuild:
 
  stable on amd64
 

	
 
  06 Feb 2006; Aron Griffis <agriffis@gentoo.org> c-ares-1.3.0.ebuild:
 
  Mark 1.3.0 stable on alpha
 

	
 
  30 Dec 2005; Markus Rothe <corsair@gentoo.org> c-ares-1.3.0.ebuild:
 
  Stable on ppc64
 

	
 
  29 Dec 2005; Gustavo Zacarias <gustavoz@gentoo.org> c-ares-1.3.0.ebuild:
 
  Stable on sparc wrt #117036
 

	
 
  29 Dec 2005; Mark Loeser <halcy0n@gentoo.org> c-ares-1.3.0.ebuild:
 
  Stable on x86; bug #117036
 

	
 
  28 Dec 2005; Daniel Black <dragonheart@gentoo.org> -c-ares-1.2.1.ebuild,
 
  c-ares-1.3.0.ebuild:
 
  added dropped ~alpha and ~ppc64 keywords
 

	
 
  22 Oct 2005; Fabian Groffen <grobian@gentoo.org> c-ares-1.3.0.ebuild:
 
  Marked ~ppc-macos (bug #109097)
 

	
 
  21 Oct 2005; Bryan Østergaard <kloeri@gentoo.org> c-ares-1.3.0.ebuild:
 
  ~ia64 keyword.
 

	
 
  20 Oct 2005; Aaron Walker <ka0ttic@gentoo.org> c-ares-1.2.1-r1.ebuild,
 
  c-ares-1.3.0.ebuild:
 
  Added ~mips.
 

	
 
  20 Oct 2005; Luis Medinas <metalgod@gentoo.org> c-ares-1.2.1-r1.ebuild:
 
  Marked Stable on amd64. Bug #109097.
 

	
 
  19 Oct 2005; Jose Luis Rivero <yoswink@gentoo.org> c-ares-1.2.0.ebuild:
 
  Stable on alpha wrt security bug #109097
 

	
 
  19 Oct 2005; Brent Baude <ranger@gentoo.org> c-ares-1.2.1-r1.ebuild:
 
  Marking ppc64 stable to resolve deps
 

	
 
  19 Oct 2005; Michael Hanselmann <hansmi@gentoo.org> c-ares-1.3.0.ebuild:
 
  Stable on ppc.
 

	
 
  19 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org> c-ares-1.2.1.ebuild,
 
  c-ares-1.2.1-r1.ebuild, c-ares-1.3.0.ebuild:
 
  Gimme ~sparc for the rest
 

	
 
  19 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org> c-ares-1.2.0.ebuild:
 
  Stable on sparc directly wrt #109097
 

	
 
  19 Oct 2005; Brent Baude <ranger@gentoo.org> c-ares-1.2.1-r1.ebuild:
 
  Marking c-ares-1.2.1-r1 ~ppc64
 

	
 
  19 Oct 2005; Rene Nussbaumer <killerfox@gentoo.org> c-ares-1.3.0.ebuild:
 
  Stable on hppa. See bug #109097.
 

	
 
*c-ares-1.3.0 (31 Aug 2005)
 

	
 
  31 Aug 2005; Daniel Black <dragonheart@gentoo.org> +c-ares-1.3.0.ebuild:
 
  version bump as per bug #104260. thanks to Tupone Alfredo
 

	
 
*c-ares-1.2.1-r1 (16 Jul 2005)
 

	
 
  16 Jul 2005; Daniel Black <dragonheart@gentoo.org>
 
  +c-ares-1.2.1-r1.ebuild:
 
  revision bump to enable shared libraries. Bug #99160 thanks to Tupone Alfredo
 

	
 
*c-ares-1.2.1 (21 Apr 2005)
 

	
 
  21 Apr 2005; Daniel Black <dragonheart@gentoo.org> +c-ares-1.2.1.ebuild:
 
  Version bump as per bug #89690. Thanks to Tupone Alfredo <alfredo@tupone.it>
 

	
 
  28 Aug 2004; David Holm <dholm@gentoo.org> c-ares-1.2.0.ebuild:
 
  Added to ~ppc.
 

	
 
*c-ares-1.2.0 (15 Aug 2004)
 

	
 
  15 Aug 2004; Daniel Black <dragonheart@gentoo.org> +metadata.xml,
 
  +c-ares-1.2.0.ebuild:
 
  Initial ebuild. Thanks to Stefan Briesenick <sbriesen@gmx.de> in bug #52288
 

	
net-dns/c-ares/Manifest
Show inline comments
 
new file 100644
 
AUX c-ares-unrealircd.patch 1504 RMD160 52079f5785127b23e108db5b00174c071bb99b38 SHA1 c7f90e735fceabcfd1831c9dff86e7b80162a878 SHA256 2856455900cea9abe085f89f18a161dac7ad27fb7b274a818755fa3a4fdf9778
 
DIST c-ares-1.5.3.tar.gz 481810 RMD160 8f886748783d8d4ef97b494544cebd924730b695 SHA1 885fa291d7ae7d825c732b38ae147d5f83cc1904 SHA256 3037156096ea9fee7c40c771207ab8f21b862cb38b6ca62cc0ac464223f9b643
 
EBUILD c-ares-1.5.3.ebuild 1091 RMD160 c2d9e8792b4a2392b7194df30de11a89dd611b4f SHA1 77e547aea459055433b34a9e332407a57123391d SHA256 05d7bf08c254bbafaad0352695e103a1fcea63bd961c66317764ef71371684a3
 
MISC ChangeLog 6090 RMD160 0f8c13424aa8b145666f7426ba569f8d0cda70e0 SHA1 5943450f15e1717f951159da7bd7c75ec72d40b6 SHA256 c85739cfd17618075325a07b49d0669a998ce4295478e10a10b2c9e85afdafbc
 
MISC metadata.xml 403 RMD160 48afb924f8ddebfd4ea31a43eca3b277a30b62b6 SHA1 ec604212b5eb7dde6256c827184a228eaa8161d5 SHA256 148b8bb5514a7787fab372ad8a71c93c67db9ce84ed2aa5953691c2104ca788a
net-dns/c-ares/c-ares-1.5.3.ebuild
Show inline comments
 
new file 100644
 
# Copyright 1999-2008 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/net-dns/c-ares/c-ares-1.5.3.ebuild,v 1.1 2008/09/18 08:12:32 pva Exp $
 

	
 
inherit eutils
 

	
 
DESCRIPTION="C library that resolves names asynchronously"
 
HOMEPAGE="http://daniel.haxx.se/projects/c-ares/"
 
SRC_URI="http://daniel.haxx.se/projects/c-ares/${P}.tar.gz"
 

	
 
LICENSE="MIT"
 
SLOT="0"
 
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
 
IUSE=""
 

	
 
DEPEND=""
 

	
 

	
 
src_unpack() {
 
	unpack ${A}
 
	cd "${S}"
 

	
 
	epatch "${FILESDIR}"/c-ares-unrealircd.patch || die "epatch failed"
 
}
 

	
 
src_compile() {
 
	econf --enable-shared || die
 
	emake || die
 
}
 

	
 
src_install() {
 
	emake DESTDIR="${D}" install || die
 
	dodoc CHANGES NEWS README*
 
}
 

	
 
pkg_postinst() {
 
	ewarn "The soname for libares has changed in c-ares-1.4.0."
 
	#ewarn "If you have upgraded from that or earlier version, it is recommended to run:"
 
	ewarn
 
	ewarn "revdep-rebuild --library libcares.so.1"
 
	ewarn
 
	ewarn "This will fix linking errors caused by this change."
 
	echo
 
}
net-dns/c-ares/files/c-ares-unrealircd.patch
Show inline comments
 
new file 100644
 
diff -ru c-ares-1.6.0/ares.h Unreal3.2/extras/c-ares-1.6.0/ares.h
 
--- ares.h 2008-12-04 07:53:03.000000000 -0500
 
+++ Unreal3.2/extras/c-ares-1.6.0/ares.h        2008-12-14 08:06:38.000000000 -0500
 
@@ -218,6 +218,13 @@
 
   int nsort;
 
 };
 
 
 
+struct ares_config_info {
 
+       int timeout;
 
+       int tries;
 
+       int numservers;
 
+       char **servers;
 
+};
 
+
 
 struct hostent;
 
 struct timeval;
 
 struct sockaddr;
 
@@ -314,6 +321,8 @@
 
 void ares_free_hostent(struct hostent *host);
 
 const char *ares_strerror(int code);
 
 
 
+int ares_get_config(struct ares_config_info *d, ares_channel c);
 
+
 
 #ifdef  __cplusplus
 
 }
 
 #endif
 
Only in Unreal3.2/extras/c-ares-1.6.0: ares.h.orig
 
diff -ru c-ares-1.6.0/ares_init.c Unreal3.2/extras/c-ares-1.6.0/ares_init.c
 
--- ares_init.c    2008-12-04 07:53:03.000000000 -0500
 
+++ Unreal3.2/extras/c-ares-1.6.0/ares_init.c   2008-12-14 08:06:38.000000000 -0500
 
@@ -1562,3 +1562,24 @@
 
   channel->sock_create_cb = cb;
 
   channel->sock_create_cb_data = data;
 
 }
 
+
 
+int ares_get_config(struct ares_config_info *d, ares_channel c)
 
+{
 
+       int i;
 
+       char *p;
 
+
 
+       memset(d, 0, sizeof(struct ares_config_info));
 
+
 
+       d->timeout = c->timeout;
 
+       d->tries = c->tries;
 
+       d->numservers = c->nservers;
 
+       d->servers = calloc(sizeof(char *), c->nservers);
 
+
 
+       for (i = 0; i < c->nservers; i++)
 
+       {
 
+               p = inet_ntoa(c->servers[i].addr);
 
+               d->servers[i] = p ? strdup(p) : NULL;
 
+       }
 
+
 
+       return ARES_SUCCESS;
 
+}
net-dns/c-ares/metadata.xml
Show inline comments
 
new file 100644
 
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 
<pkgmetadata>
 
<herd>no-herd</herd>
 
<maintainer>
 
  <email>dragonheart@gentoo.org</email>
 
    <name>Daniel Black</name>
 
    <description>A user ebuild that I felt obliged to include. Please take over if you want 
 
it</description>
 
</maintainer>
 
<longdescription></longdescription>
 
</pkgmetadata>
0 comments (0 inline, 0 general)