summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-25 17:54:00 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-25 17:54:00 -0400
commitd7f4a6178918476e1f66d9a0a387c9f057adab46 (patch)
tree01a61304e8e1ab7d6671592cefa6a34b9b4c50d9 /git-annex.cabal
parentbe9f7bcae56083e83a31509e023dd562b3ec213c (diff)
SRV lookup library
This uses the ADNS library, if available. Otherwise, the host program. I anticipate that cabal users won't easily get hsdns installed, since it's a Haskell binding to a C library. And using host is just fine, as long as the system has it.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 3a1f7866d..862d9f9a5 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -46,6 +46,9 @@ Flag Pairing
Flag XMPP
Description: Enable notifications using XMPP
+Flag Adns
+ Description: Enable the ADNS library for DNS lookup
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
@@ -98,6 +101,10 @@ Executable git-annex
Build-Depends: network-protocol-xmpp
CPP-Options: -DWITH_XMPP
+ if flag(XMPP) && flag(Assistant) && flag(Adns)
+ Build-Depends: hsdns
+ CPP-Options: -DWITH_ADNS
+
Test-Suite test
Type: exitcode-stdio-1.0
Main-Is: test.hs