From 2b23218f4d99fd081173f4c117bc600e1549cb1b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 27 Oct 2012 19:12:12 +0300 Subject: [PATCH] dev-haskell/hsdns: fixed 'metadata.xml' Signed-off-by: Sergei Trofimovich --- dev-haskell/hsdns/hsdns-1.5.ebuild | 16 ++++++++-------- dev-haskell/hsdns/metadata.xml | 17 ++++++++++++++++- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/dev-haskell/hsdns/hsdns-1.5.ebuild b/dev-haskell/hsdns/hsdns-1.5.ebuild index 76ab1f48e2..52c3d4dbed 100644 --- a/dev-haskell/hsdns/hsdns-1.5.ebuild +++ b/dev-haskell/hsdns/hsdns-1.5.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: $ +# $Header: $ -# ebuild generated by hackport 0.2.13 +EAPI=5 -EAPI="3" +# ebuild generated by hackport 0.3 -CABAL_FEATURES="lib profile haddock hscolour hoogle" +CABAL_FEATURES="lib profile haddock hoogle hscolour" inherit haskell-cabal DESCRIPTION="Asynchronous DNS Resolver" @@ -14,12 +14,12 @@ HOMEPAGE="http://gitorious.org/hsdns" SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" LICENSE="LGPL-2.1" -SLOT="0" +SLOT="0/${PV}" KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" IUSE="" -RDEPEND="dev-haskell/network - >=dev-lang/ghc-6.8.2 +RDEPEND="dev-haskell/network:=[profile?] + >=dev-lang/ghc-6.10.4:= net-libs/adns" DEPEND="${RDEPEND} >=dev-haskell/cabal-1.6" diff --git a/dev-haskell/hsdns/metadata.xml b/dev-haskell/hsdns/metadata.xml index 3bc09c0018..b1cc7da4cb 100644 --- a/dev-haskell/hsdns/metadata.xml +++ b/dev-haskell/hsdns/metadata.xml @@ -12,4 +12,19 @@ work nicely. There is also support for retrieving generic RR types, CNAMEs, and for NSEC zone walking. The library can be expected to work with fine ADNS 1.4 or later. It - might also work with version ADNS 1.3, but that hasn \ No newline at end of file + might also work with version ADNS 1.3, but that hasn’t + been tested. + + The example program adns-reverse-lookup.hs demonstrates + how the resolver is used. Given a list of host names on + the command line, it performs an A/PTR double-lookup and + checks whether the records are consistent. The + output is printed in the order in which the DNS responses + arrive: + + > $ ./adns-reverse-lookup cryp.to localhost www.example.com + > OK: localhost <-> 127.0.0.1 + > FAIL: cryp.to -> 217.19.183.102 -> ["zuse.cryp.to"] + > OK: www.example.com <-> 192.0.32.10 + +