diff options
author | Yorhel <git@yorhel.nl> | 2010-10-12 17:20:31 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-10-12 17:20:31 +0200 |
commit | 2541eef8a806d56c06614199ce7826ca675c892d (patch) | |
tree | dddfa847b3af88372961c35884a5498cd0532133 | |
parent | ec2176b35b706f7377a9d56b92589a7cd976a9a2 (diff) |
Added README and license information
-rw-r--r-- | COPYING | 20 | ||||
-rw-r--r-- | README | 44 |
2 files changed, 64 insertions, 0 deletions
@@ -0,0 +1,20 @@ +Copyright (c) 2010 Yoran Heling + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -0,0 +1,44 @@ +p.blicky.net source code +------------------------ + +REQUIREMENTS + + A webserver with CGI support (only tested with lighttpd) + perl (only tested on 5.10) + postgresql (only tested on 8.4) + vim + CGI::Minimal + DBI + DBD::Pg + Text::VimColor + + +INSTALL + + 1. Create a postgresql database + 2. Load the schema from index.cgi in your database + 3. Configure your webserver. Make sure all requests are passed to index.cgi, + with the query string set to the actual URL. Also make sure the correct + environment variables are set for your database login to work. The following + example can be used for lighttpd: + + $HTTP["host"] == "p.blicky.net" { + server.document-root = "/path/to/dir/" + cgi.assign = ( ".cgi" => "") + url.rewrite-once = ( + "/bpaste.pl" => "/bpaste.pl", + "/style.css" => "/style.css", + "/script.js" => "/script.js", + "^/(.*)$" => "/index.cgi?$1" + ) + setenv.add-environment = ( + "DBI_DSN" => "dbi:Pg:dbname=<databasename>", + "DBI_USER" => "<databaseuser>", + "DBI_PASS" => "<databasepassword>" + ) + } + + +CONTACT + + ayo@blicky.net |