---
name: tokyopromenade
version: 0.9.22
origin: www/tokyopromenade
comment: A content management system
arch: freebsd:9:x86:64
www: http://fallabs.com/tokyopromenade/
maintainer: qingfeng@douban.com
prefix: /usr/local
licenselogic: single
flatsize: 416237
desc: |
  Tokyo Promenade is a browser-based content management system with the
  following features:

    * simple and logical user interface : aims at conciseness like LaTeX

    * high accessibility : XHTML 1.0 compliant and considering WCAG 1.0

    * hybrid data structure : available as BBS, blog, and Wiki

    * sufficient functionality : supports user management and file management

    * high performance : uses an embedded database, Tokyo Cabinet

    * lightweight : implemented by C99 and without any dependency
                    on other libraries

  WWW: http://fallabs.com/tokyopromenade/
deps:
  spawn-fcgi: {origin: www/spawn-fcgi, version: 1.6.3}
  tokyocabinet: {origin: databases/tokyocabinet, version: 1.4.48}
categories: [www]
options: {LUA: off}
files:
  /usr/local/bin/prommgr: f13c6232eecd19d04d742d4dea08a1660a657c74861e2285bfccbf62ad80285e
  /usr/local/libexec/promenade.cgi: 7a0bebbb84a175982458cbffd020a126c7b48577ee97fe6d7ce10d2fcbaeea53
  /usr/local/libexec/promenade.fcgi: 956340d60e71adc81621c64d1e5b103d02aa5a6814d0cc48f27387df459d4a24
  /usr/local/libexec/promscrcount.lua: 1f92c32002fcc607fad341ee14623aaf280e75ca6af0bbf0f4972d389274c9ff
  /usr/local/libexec/promscrsample.lua: 72fd03bc79e4b101b50d1b029c4f9b26b8e57d33d1f9857863413e8cd4fe53da
  /usr/local/libexec/promupdiff.sh: ceb002ce86decae730665ca1010b9252509118253a70d77c44237395a482c982
  /usr/local/libexec/promupping.sh: 38fdecd977449d708c5e09fe4cc4e9d5989642213d608540280018c64099dbe9
  /usr/local/man/man1/prommgr.1.gz: 75b6033854b4b16a8b4f2bcda683cddfab16695d0132ad1856f2d08a8c56ab45
  /usr/local/share/tokyopromenade/COPYING: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903
  /usr/local/share/tokyopromenade/ChangeLog: 59e3baeae3897c974da3ecec712e996a9280e166b32d3cd3191cb1421e471d7c
  /usr/local/share/tokyopromenade/THANKS: f7ab84fc3c4ac94f2189a671cc01f45e416e3b4496f73415f729a1cf8561ef2e
  /usr/local/share/tokyopromenade/doc/common.css: 6e0bc6c29c27f6a41179abd361690b5f8401ea76b45eef31722cbe92fe31084c
  /usr/local/share/tokyopromenade/doc/index.html: b2d517b5b71008bd4135bb0d6176e50c94d270b42e691eae8decb41cc7e97d49
  /usr/local/share/tokyopromenade/doc/spex.html: 1fbed6c7c839b1ad24f514997f17edb5d023aa0877ccbb512a9b6f2e9ade05f5
  /usr/local/share/tokyopromenade/misc/about.tpw: dd696e00c93d7c2ebc2dbafe818c2e57a920b1f702aeb4fcdce186de699e691a
  /usr/local/share/tokyopromenade/misc/banner.svg: 6445b8fb81181afbf953e80c5081c4d65e1556cd9f512008685d1a8cb49b94ee
  /usr/local/share/tokyopromenade/misc/blog.tpw: 2d3695169693711b3712f9381ff46d9ab81eb8204e8a01b094cd13d0170511ce
  /usr/local/share/tokyopromenade/misc/chars.tpw: 4c2bbeb813ddd69664287c7d92d615eeee5b4d8c809feb044be27ca611bb4ae6
  /usr/local/share/tokyopromenade/misc/dup1.tpw: 6b3aaaaf2ad4446b3b7dbf723872c9b0a814cb4cddf19d32de9575195fe70d1c
  /usr/local/share/tokyopromenade/misc/dup2.tpw: 857ff4ca636f4bfd7f0f0a2b7d18919d204eaed58f1f6cbbd7679f2d73be5af0
  /usr/local/share/tokyopromenade/misc/dup3.tpw: ed5fa3d45c8f10f3a346fcfb6c0373430c6b5c091e86795db8c12e2ff356b746
  /usr/local/share/tokyopromenade/misc/dup4.tpw: 96a72e7c753d330c74a8fb55d2e8cda241665896f95998646b3bfb06f649ddca
  /usr/local/share/tokyopromenade/misc/front.tpw: 88b1ece3a7225924714612bdf1f5dc3110d82b94160e5094b90d7674a99436b6
  /usr/local/share/tokyopromenade/misc/help-en.tpw: 83ca4f4d06bd24c5f694d857411ee9e6c2a3772b24864a247bec460d15b9d44f
  /usr/local/share/tokyopromenade/misc/help-ja.tpw: d46e5ffef9e21cee40bf91355985e3b99d6b2fc8a5d748a135f9267835cc6894
  /usr/local/share/tokyopromenade/misc/tc.tpw: d22c8545285d0d4f7903b2efa17557091524bff5f13b79ce4edb145115aa4859
  /usr/local/share/tokyopromenade/passwd.txt: 4ac607c02c515fe23cab1a215714712a47ebeffb433c03116bd657267548147b
  /usr/local/share/tokyopromenade/promenade.css: 093aab4ae2ca7f3a5c4d83c1c97ec6f672b299ed051041a2053013edaf83e3e4
  /usr/local/share/tokyopromenade/promenade.tmpl: 8169b307b91f7d39a41af712bdbb09022b7a7d6ad998aa0ebadcfad84c7f0b7e
directories:
  /usr/local/share/tokyopromenade/misc/: y
  /usr/local/share/tokyopromenade/doc/: y
  /usr/local/share/tokyopromenade/: y
scripts: {}
message: |
  POST-INSTALL CONFIGURATION FOR Tokyo Promenade
  ==============================================

  1) Install an arbitrary web server which supports the CGI mechanism.
     Then, create a directory where CGI scripts can be executed. We call
     it the base directory, which contains some files of Tokyo Promenade.

     mkdir -p /path/to/the/base/directory
     cd /path/to/the/base/directory

  2) Copy the CGI script and some configuration files into the base
     directory.

     cp /usr/local/libexec/promenade.fcgi .
     cp /usr/local/share/tokyopromenade/promenade.* .
     cp /usr/local/share/tokyopromenade/passwd.txt .

  3) Create the database file where articles are stored.

     prommgr create promenade.tct

  4) Import the help articles into the database.

     prommgr import promenade.tct /usr/local/share/tokyopromenade/misc/help-*.tpw

  5) Create a directory where uploaded files are stored.

     mkdir upload

  6) The CGI script should have permissions to read/write the database
     file, the upload directory and the password file. To achieve the
     purpose, one of the following is suggested.

     Change the owner:
        sudo chown -R www:nobody /path/to/the/base/directory

     Forget the security:
        chmod -R 777 /path/to/the/base/directory

     Run the web server by the same user of the owner of the base
     directory.

     Change the user ID of the CGI script by using a feature of the
     web server like suExec.

  7) Run the FastCGI script.

     /usr/local/bin/spawn-fcgi -a 127.0.0.1 -p 8889 \
                               -d /path/to/the/base/directory \
                               -f /path/to/the/base/directory/promenade.fcgi

  8) Configure your web browser with FastCGI-specific directives. For
     Apache, this might look like:

     FastCgiExternalServer /path/to/the/base/directory/promenade.fcgi \
        -host 127.0.0.1:8889

  When all steps above are finished, access the CGI script with a Web
  browser.
