aboutsummaryrefslogtreecommitdiff
path: root/www/tokyopromenade
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2010-02-24 20:58:04 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2010-02-24 20:58:04 +0000
commitd3919ba1b94639c7f4b8f9e5f535f6760427f0ba (patch)
tree06c5ced9ecb62459740f22a9437476c8c15e8df7 /www/tokyopromenade
parented19d7f1883f0f95fc159df7ce3eab61bfb8a5ed (diff)
downloadports-d3919ba1b94639c7f4b8f9e5f535f6760427f0ba.tar.gz
ports-d3919ba1b94639c7f4b8f9e5f535f6760427f0ba.zip
Notes
Diffstat (limited to 'www/tokyopromenade')
-rw-r--r--www/tokyopromenade/Makefile41
-rw-r--r--www/tokyopromenade/distinfo3
-rw-r--r--www/tokyopromenade/files/pkg-message.in59
-rw-r--r--www/tokyopromenade/pkg-descr17
-rw-r--r--www/tokyopromenade/pkg-plist30
5 files changed, 150 insertions, 0 deletions
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 <qingfeng@me.com>
+#
+# $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 <bsd.port.mk>
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%%