Skip to content

Commit

Permalink
dev-haskell/hsdns: fixed 'metadata.xml'
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information
Sergei Trofimovich committed Oct 27, 2012
1 parent 4452005 commit 2b23218
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
16 changes: 8 additions & 8 deletions dev-haskell/hsdns/hsdns-1.5.ebuild
@@ -1,25 +1,25 @@
# 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"
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"
17 changes: 16 additions & 1 deletion dev-haskell/hsdns/metadata.xml
Expand Up @@ -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
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:

&gt; $ ./adns-reverse-lookup cryp.to localhost www.example.com
&gt; OK: localhost &lt;-&gt; 127.0.0.1
&gt; FAIL: cryp.to -&gt; 217.19.183.102 -&gt; [&quot;zuse.cryp.to&quot;]
&gt; OK: www.example.com &lt;-&gt; 192.0.32.10
</longdescription>
</pkgmetadata>

0 comments on commit 2b23218

Please sign in to comment.