Permalink
Browse files

Adding cabal file for easy building

Adding licence file and copyright information
Updated README with new instructions
Updated TODO
  • Loading branch information...
1 parent 97ae2bb commit 9b867189a3f60f55c64c08ba51eecc30ad73ba98 @eelco committed Jan 3, 2009
Showing with 66 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +30 −0 LICENSE
  3. +29 −0 Luisterpaal.fm.cabal
  4. 0 Main.hs → Luisterpaal.hs
  5. +5 −1 README
  6. +1 −0 TODO
View
@@ -1,4 +1,4 @@
*.hi
*.o
.last.fm
-Main
+dist
View
30 LICENSE
@@ -0,0 +1,30 @@
+Copyright (c) 2009, Tupil
+
+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.
+
+ * Neither the name of Tupil nor the names of other
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"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
+OWNER OR CONTRIBUTORS 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.
View
@@ -0,0 +1,29 @@
+Name: Luisterpaal-fm
+Version: 0.1
+Synopsis: Mashup of 3VOOR12 Luisterpaal + Last.fm
+Description: Last.fm Scrobbler for the 3VOOR12 Luisterpaal
+License: BSD3
+License-file: LICENSE
+Copyright: (c) 2009 Tupil
+Author: Eelco Lempsink (eml [at] tupil.com)
+Build-Type: Simple
+Build-Depends: base
+ , containers
+ , mtl
+ , HAppS-Server >= 0.9.3
+ , parsec == 2.*
+ , bytestring == 0.9.*
+ , HTTP >= 3001
+ , network >= 2.2
+ , json >= 0.3
+ , old-time == 1.*
+ , nano-md5 >= 0.1
+ , utf8-string >= 0.3
+ , xhtml >= 3000
+Extra-Source-Files: README
+ , TODO
+Data-Files: static/luisterpaal.js
+ , static/style.css
+Executable: Luisterpaal
+Main-Is: Luisterpaal.hs
+Other-Modules: LastFm, Pages, Cookies
File renamed without changes.
View
6 README
@@ -2,12 +2,16 @@ Last.fm Scrobbler for the 3VOOR12 Luisterpaal
=============================================
* Compile the server
+ - Run 'cabal configure'
+ - Run 'cabal build'
+ - (Optional, fix missing dependencies and repeat)
* Create a file called '.last.fm' with, in order, seperated by (any form of) whitespace
- Your Last.fm API key (required)
- Your Last.fm API secret (required)
- Your client id (optional, unless client version is given; default: 'tst')
- Your client version (optional, default '1.0')
-* Start the server with ./Main from the directory containing the static/ dir and the .last.fm file.
+* Start the server with from the directory containing the static/ dir and the .last.fm file.
+ - The executable should be at ./dist/build/Luisterpaal/Luisterpaal
* In your Last.fm API profile, set the Callback URL to http://127.0.0.1:8016
* Go to http://127.0.0.1:8016
* Enjoy!
View
1 TODO
@@ -10,6 +10,7 @@ Todo:
[ ] P C - Handle response codes from now playing and submission protocol correctly
[ ] P U - Get/create/mashup a logo for on the Last.fm page
[ ] P C - Add interface to 'love' tracks
+[ ] A E - Make the port configurable
Done:
[x] A E - Make the client id configurable

0 comments on commit 9b86718

Please sign in to comment.