diff --git a/README.md b/README.md index be4c89ff..2c5af78b 100644 --- a/README.md +++ b/README.md @@ -95,9 +95,12 @@ virthualenv --name=yesod #### individual cabal packages ~~~ { .bash } -# install and test all packages +# install and test all packages in a repo ./scripts/install +# If things seem weird, you may need to do a clean. +./scripts/install --clean + # move to the individual package you are working on cd shakespeare-text @@ -109,17 +112,12 @@ cabal test #### cabal-dev -cabal-dev works very well if you are working on a single package, but it can be very cumbersome to work on multiple packages at once. +cabal-dev works very well if you are working on a single package. +For working on multiple packages at once (installing Yesod), you need to use the shared sandbox feature. ### Use your development version of Yesod in your application Note that we have recommended to you to install Yesod into a sandboxed virthualenv environment. This is great for development, but when you want to use these development versions in your application that means they are not available through your user/global cabal database for your application. You should just continue to use your yesod virthualenv shell for your application. - -You can also use `cabal-dev install` to retrieve these packages. -cd to your application directory, and the reference the source list. - -~~~ { .bash } -cabal-dev install /path/to/yesodweb/yesod/*(/) -~~~ +You can also use the same`cabal-dev shared sandbox. diff --git a/scripts b/scripts index d4cb555c..6a95e0a8 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit d4cb555ca5fd6bc67f7da484a63d1fcdb149eac9 +Subproject commit 6a95e0a8dbc1b3d26d58c1eaadf24d1bdaa48c8b diff --git a/sources.txt b/sources.txt index 60ba2fa0..b5266622 100644 --- a/sources.txt +++ b/sources.txt @@ -1,10 +1,11 @@ -yesod-core -yesod-json -yesod-static -yesod-persistent -yesod-newsfeed -yesod-form -yesod-auth -yesod-sitemap -yesod-default -yesod +./yesod-routes +./yesod-core +./yesod-json +./yesod-static +./yesod-persistent +./yesod-newsfeed +./yesod-form +./yesod-auth +./yesod-sitemap +./yesod-default +./yesod diff --git a/yesod-auth-kerberos/LICENSE b/yesod-auth-kerberos/LICENSE deleted file mode 100644 index 8643e5d8..00000000 --- a/yesod-auth-kerberos/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -The following license covers this documentation, and the source code, except -where otherwise indicated. - -Copyright 2010, Michael Snoyman. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, -OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/yesod-auth-kerberos/Setup.lhs b/yesod-auth-kerberos/Setup.lhs deleted file mode 100755 index 1bc517f6..00000000 --- a/yesod-auth-kerberos/Setup.lhs +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env runhaskell - -> module Main where -> import Distribution.Simple -> import System.Cmd (system) - -> main :: IO () -> main = defaultMain diff --git a/yesod-auth-kerberos/Yesod/Auth/Kerberos.hs b/yesod-auth-kerberos/Yesod/Auth/Kerberos.hs deleted file mode 100644 index f28d5406..00000000 --- a/yesod-auth-kerberos/Yesod/Auth/Kerberos.hs +++ /dev/null @@ -1,123 +0,0 @@ -{-# LANGUAGE QuasiQuotes #-} -{-# LANGUAGE CPP #-} -{-# LANGUAGE ScopedTypeVariables #-} -{-# LANGUAGE OverloadedStrings #-} --- | In-built kerberos authentication for Yesod. --- --- Please note that all configuration should have been done --- manually on the machine prior to running the code. --- --- On linux machines the configuration might be in /etc/krb5.conf. --- It's worth checking if the Kerberos service provider (e.g. your university) --- already provide a complete configuration file. --- --- Be certain that you can manually login from a shell by typing --- --- > kinit username --- --- If you fill in your password and the program returns no error code, --- then your kerberos configuration is setup properly. --- Only then can this module be of any use. -module Yesod.Auth.Kerberos - ( authKerberos, - genericAuthKerberos, - KerberosConfig(..), - defaultKerberosConfig - ) where - -#include "qq.h" - -import Yesod.Auth -import Yesod.Auth.Message -import Web.Authenticate.Kerberos -import Data.Text (Text) -import qualified Data.Text as T -import Text.Hamlet -import Yesod.Handler -import Yesod.Widget -import Control.Monad.IO.Class (liftIO) -import Yesod.Form -import Control.Applicative ((<$>), (<*>)) - -data KerberosConfig = KerberosConfig { - -- | When a user gives username x, f(x) will be passed to Kerberos - usernameModifier :: Text -> Text - -- | When a user gives username x, f(x) will be passed to Yesod - , identifierModifier :: Text -> Text - } - --- | A configuration where the username the user provides is the one passed --- to both kerberos and yesod -defaultKerberosConfig :: KerberosConfig -defaultKerberosConfig = KerberosConfig id id - --- | A configurable version of 'authKerberos' -genericAuthKerberos :: YesodAuth m => KerberosConfig -> AuthPlugin m -genericAuthKerberos config = AuthPlugin "kerberos" dispatch $ \tm -> addHamlet - [QQ(hamlet)| -