diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-26 05:13:27 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-26 05:13:27 -0400 |
commit | 6cecc26206c4a539999b04664136c6f785211a41 (patch) | |
tree | 146dbfa65cd54da6531367d13ad6faf5d7c041e3 | |
parent | 9d6b59d0e21e5917d098a84b7b1654bd8d07efb3 (diff) |
update build deps
-rw-r--r-- | Utility/WebApp.hs | 4 | ||||
-rw-r--r-- | debian/control | 5 | ||||
-rw-r--r-- | doc/install.mdwn | 8 | ||||
-rw-r--r-- | git-annex.cabal | 7 |
4 files changed, 18 insertions, 6 deletions
diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs index fb82c2050..6936c6699 100644 --- a/Utility/WebApp.hs +++ b/Utility/WebApp.hs @@ -25,7 +25,7 @@ import Control.Exception import Crypto.Random import Data.Digest.Pure.SHA import qualified Data.ByteString.Lazy as L -import Data.AssocList +import Data.List import qualified Data.Text as T import qualified Data.Text.Encoding as TE import Blaze.ByteString.Builder.Char.Utf8 (fromText) @@ -130,7 +130,7 @@ checkAuthToken extractToken = do webapp <- getYesod req <- getRequest let params = reqGetParams req - if lookupDef "" "auth" params == extractToken webapp + if lookup "auth" params == Just (extractToken webapp) then return Authorized else return AuthenticationRequired diff --git a/debian/control b/debian/control index 65c666cde..58645259e 100644 --- a/debian/control +++ b/debian/control @@ -24,12 +24,17 @@ Build-Depends: libghc-stm-dev (>= 2.3), libghc-dbus-dev, libghc-yesod-dev, + libghc-yesod-static-dev, libghc-case-insensitive-dev, libghc-http-types-dev, libghc-transformers-dev, libghc-wai-dev, libghc-wai-logger-dev, libghc-warp-dev, + libghc-blaze-builder-dev, + libghc-blaze-html-dev, + libghc-crypto-api-dev, + libghc-hamlet-dev, ikiwiki, perlmagick, git, diff --git a/doc/install.mdwn b/doc/install.mdwn index 619d5fa11..38039fbb9 100644 --- a/doc/install.mdwn +++ b/doc/install.mdwn @@ -23,7 +23,8 @@ it yourself and [[manually_build_with_cabal|install/cabal]]. ## Installation by hand -To build and use git-annex, you will need: +This is not recommended, it's easier to let cabal pull in the many haskell +libraries. To build and use git-annex by hand, you will need: * Haskell stuff * [The Haskell Platform](http://haskell.org/platform/) (GHC 7.4 or newer) @@ -49,12 +50,17 @@ To build and use git-annex, you will need: (Linux only) * [dbus](http://hackage.haskell.org/package/dbus) * [yesod](http://hackage.haskell.org/package/yesod) + * [yesod-static](http://hackage.haskell.org/package/yesod-static) * [case-insensitive](http://hackage.haskell.org/package/case-insensitive) * [http-types](http://hackage.haskell.org/package/http-types) * [transformers](http://hackage.haskell.org/package/transformers) * [wai](http://hackage.haskell.org/package/wai) * [wai-logger](http://hackage.haskell.org/package/wai-logger) * [warp](http://hackage.haskell.org/package/warp) + * [blaze-builder](http://hackage.haskell.org/package/blaze-builder) + * [blaze-html](http://hackage.haskell.org/package/blaze-html) + * [crypto-api](http://hackage.haskell.org/package/crypto-api) + * [hamlet](http://hackage.haskell.org/package/hamlet) * Shell commands * [git](http://git-scm.com/) * [uuid](http://www.ossp.org/pkg/lib/uuid/) diff --git a/git-annex.cabal b/git-annex.cabal index 086df31d2..c7d9bf570 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -46,8 +46,7 @@ Executable git-annex unix, containers, utf8-string, network, mtl, bytestring, old-locale, time, pcre-light, extensible-exceptions, dataenc, SHA, process, json, HTTP, base == 4.5.*, monad-control, transformers-base, lifted-base, - IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process, - case-insensitive, http-types, transformers, wai, wai-logger, warp + IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process -- Need to list these because they're generated from .hsc files. Other-Modules: Utility.Touch Utility.Mounts Include-Dirs: Utility @@ -75,7 +74,9 @@ Executable git-annex CPP-Options: -DWITH_DBUS if flag(Webapp) - Build-Depends: yesod + Build-Depends: yesod, yesod-static, case-insensitive, http-types, + transformers, wai, wai-logger, warp, blaze-builder, blaze-html, + crypto-api, hamlet CPP-Options: -DWITH_WEBAPP if (os(darwin)) |