From d3919ba1b94639c7f4b8f9e5f535f6760427f0ba Mon Sep 17 00:00:00 2001 From: Greg Larkin Date: Wed, 24 Feb 2010 20:58:04 +0000 Subject: 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://1978th.net/tokyopromenade/ PR: ports/143211 Submitted by: Qing Feng Feature safe: yes --- www/Makefile | 1 + www/tokyopromenade/Makefile | 41 +++++++++++++++++++++++ www/tokyopromenade/distinfo | 3 ++ www/tokyopromenade/files/pkg-message.in | 59 +++++++++++++++++++++++++++++++++ www/tokyopromenade/pkg-descr | 17 ++++++++++ www/tokyopromenade/pkg-plist | 30 +++++++++++++++++ 6 files changed, 151 insertions(+) create mode 100644 www/tokyopromenade/Makefile create mode 100644 www/tokyopromenade/distinfo create mode 100644 www/tokyopromenade/files/pkg-message.in create mode 100644 www/tokyopromenade/pkg-descr create mode 100644 www/tokyopromenade/pkg-plist (limited to 'www') diff --git a/www/Makefile b/www/Makefile index 3ad2eb58a3d6..f0befd52c1b5 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1575,6 +1575,7 @@ SUBDIR += tinymce3 SUBDIR += tinyproxy SUBDIR += tinytinyhttpd + SUBDIR += tokyopromenade SUBDIR += tomcat-native SUBDIR += tomcat41 SUBDIR += tomcat55 diff --git a/www/tokyopromenade/Makefile b/www/tokyopromenade/Makefile new file mode 100644 index 000000000000..f37fb56383fd --- /dev/null +++ b/www/tokyopromenade/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: tokyopromenade +# Date created: 2009-08-13 +# Whom: Qing Feng +# +# $FreeBSD$ +# + +PORTNAME= tokyopromenade +PORTVERSION= 0.9.19 +CATEGORIES= www +MASTER_SITES= http://1978th.net/tokyopromenade/ \ + LOCAL/glarkin + +MAINTAINER= qingfeng@me.com +COMMENT= A content management system + +BUILD_DEPENDS= tokyocabinet>=1.4.31:${PORTSDIR}/databases/tokyocabinet \ + fcgi-devkit>=0:${PORTSDIR}/www/fcgi +LIB_DEPENDS= tokyocabinet:${PORTSDIR}/databases/tokyocabinet +RUN_DEPENDS= spawn-fcgi>=0:${PORTSDIR}/www/spawn-fcgi + +GNU_CONFIGURE= yes +USE_GMAKE= yes + +SUB_FILES+= pkg-message + +MAN1= prommgr.1 + +CONFIGURE_ARGS+= --enable-fcgi + +.if defined(WITH_LUA) +CONFIGURE_ARGS+= --enable-lua +CONFIGURE_ENV+= LDFLAGS="-L${LUA_LIBDIR}" +CFLAGS+= -I${LUA_INCDIR} +USE_LUA= yes +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include diff --git a/www/tokyopromenade/distinfo b/www/tokyopromenade/distinfo new file mode 100644 index 000000000000..493699714e70 --- /dev/null +++ b/www/tokyopromenade/distinfo @@ -0,0 +1,3 @@ +MD5 (tokyopromenade-0.9.19.tar.gz) = a6836255c23d6acb4d8ef244385c3326 +SHA256 (tokyopromenade-0.9.19.tar.gz) = 1662319b429210d4f58899f24ea03d1327419e872e02e2ffb2ee4bdb2e264f6f +SIZE (tokyopromenade-0.9.19.tar.gz) = 121147 diff --git a/www/tokyopromenade/files/pkg-message.in b/www/tokyopromenade/files/pkg-message.in new file mode 100644 index 000000000000..2bd2d0a06657 --- /dev/null +++ b/www/tokyopromenade/files/pkg-message.in @@ -0,0 +1,59 @@ +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 %%PREFIX%%/libexec/promenade.fcgi . + cp %%DATADIR%%/promenade.* . + cp %%DATADIR%%/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 %%DATADIR%%/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. + + %%LOCALBASE%%/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. diff --git a/www/tokyopromenade/pkg-descr b/www/tokyopromenade/pkg-descr new file mode 100644 index 000000000000..447ea8cf86a3 --- /dev/null +++ b/www/tokyopromenade/pkg-descr @@ -0,0 +1,17 @@ +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://1978th.net/tokyopromenade/ diff --git a/www/tokyopromenade/pkg-plist b/www/tokyopromenade/pkg-plist new file mode 100644 index 000000000000..39bda7078998 --- /dev/null +++ b/www/tokyopromenade/pkg-plist @@ -0,0 +1,30 @@ +bin/prommgr +libexec/promenade.cgi +libexec/promenade.fcgi +libexec/promscrsample.lua +libexec/promscrcount.lua +libexec/promupdiff.sh +libexec/promupping.sh +%%DATADIR%%/doc/index.html +%%DATADIR%%/doc/spex.html +%%DATADIR%%/doc/common.css +%%DATADIR%%/misc/about.tpw +%%DATADIR%%/misc/banner.svg +%%DATADIR%%/misc/dup1.tpw +%%DATADIR%%/misc/dup2.tpw +%%DATADIR%%/misc/dup3.tpw +%%DATADIR%%/misc/dup4.tpw +%%DATADIR%%/misc/blog.tpw +%%DATADIR%%/misc/help-ja.tpw +%%DATADIR%%/misc/help-en.tpw +%%DATADIR%%/misc/tc.tpw +%%DATADIR%%/misc/front.tpw +%%DATADIR%%/ChangeLog +%%DATADIR%%/COPYING +%%DATADIR%%/THANKS +%%DATADIR%%/promenade.css +%%DATADIR%%/promenade.tmpl +%%DATADIR%%/passwd.txt +@dirrmtry %%DATADIR%%/misc +@dirrmtry %%DATADIR%%/doc +@dirrmtry %%DATADIR%% -- cgit v1.2.3