diff options
author | Makoto Matsushita <matusita@FreeBSD.org> | 2003-06-14 14:27:30 +0000 |
---|---|---|
committer | Makoto Matsushita <matusita@FreeBSD.org> | 2003-06-14 14:27:30 +0000 |
commit | 758280150bfe832990ec6f0b0973510914c48dab (patch) | |
tree | 82b2acacfb7177cd7ad33dd60e125b176ca29197 /www/aswiki | |
parent | 3548b99839d81918605e09228f20037a530c5ef3 (diff) | |
download | ports-758280150bfe832990ec6f0b0973510914c48dab.tar.gz ports-758280150bfe832990ec6f0b0973510914c48dab.zip |
Notes
Diffstat (limited to 'www/aswiki')
-rw-r--r-- | www/aswiki/Makefile | 54 | ||||
-rw-r--r-- | www/aswiki/distinfo | 1 | ||||
-rw-r--r-- | www/aswiki/files/setup.sh | 55 | ||||
-rw-r--r-- | www/aswiki/pkg-descr | 7 | ||||
-rw-r--r-- | www/aswiki/pkg-plist | 54 |
5 files changed, 171 insertions, 0 deletions
diff --git a/www/aswiki/Makefile b/www/aswiki/Makefile new file mode 100644 index 000000000000..14eefb984619 --- /dev/null +++ b/www/aswiki/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: ruby-aswiki +# Date created: 13 June 2003 +# Whom: Makoto Matsushita <matusita@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= aswiki +PORTVERSION= 1.0.1 +CATEGORIES= www ruby +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= matusita@FreeBSD.org +COMMENT= WikiWikiWeb clone written in Ruby + +RUN_DEPENDS= ${RUBY_SITELIBDIR}/amrita/xml.rb:${PORTSDIR}/textproc/ruby-amrita \ + ${RUBY_SITELIBDIR}/algorithm/diff.rb:${PORTSDIR}/textproc/ruby-diff \ + ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb + +NO_BUILD= YES +USE_REINPLACE= YES + +USE_RUBY= YES +RUBY_NO_BUILD_DEPENDS= YES +RUBY_SHEBANG_FILES= aswiki.cgi +USE_RUBY_FEATURES= strscan + +post-extract: + ${CP} ${FILESDIR}/setup.sh ${WRKSRC} + +post-patch: + ${REINPLACE_CMD} -e "s|__DATADIR__|${DATADIR}|" ${WRKSRC}/setup.sh + ${ECHO} "\$$DIR_TEMPLATE = '__DATADIR__/templete'" \ + >> ${WRKSRC}/aswiki.conf + ${ECHO} "\$$DIR_PLUGIN = '__DATADIR__/plugin'" \ + >> ${WRKSRC}/aswiki.conf + ${REINPLACE_CMD} -e "s|^# \\$$|\\$$|" -e "s|__DATADIR__|${DATADIR}|" \ + -e "s|\\A(\?:|\\A(|" ${WRKSRC}/aswiki.conf + +do-install: + # Ruby libraries + ${CP} -R ${WRKSRC}/aswiki ${RUBY_SITELIBDIR}/${PORTNAME} + # Data files + ${MKDIR} ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/aswiki.cgi ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/aswiki.conf ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/default.css ${DATADIR} + ${CP} -R ${WRKSRC}/plugin ${DATADIR} + ${CP} -R ${WRKSRC}/templete ${DATADIR} + # Setup script + ${INSTALL_SCRIPT} ${WRKSRC}/setup.sh ${DATADIR} + +.include <bsd.port.mk> diff --git a/www/aswiki/distinfo b/www/aswiki/distinfo new file mode 100644 index 000000000000..fd1c73153906 --- /dev/null +++ b/www/aswiki/distinfo @@ -0,0 +1 @@ +MD5 (aswiki-1.0.1.tar.gz) = 01fb02e0aaa0793b0a1444e2a0410b48 diff --git a/www/aswiki/files/setup.sh b/www/aswiki/files/setup.sh new file mode 100644 index 000000000000..ce8f73f62ec9 --- /dev/null +++ b/www/aswiki/files/setup.sh @@ -0,0 +1,55 @@ +#!/bin/sh +# +# setup_aswiki: a script for setup the current directory for aswiki +# $FreeBSD$ +# + +ask_noyes() +{ + local key + + echo -n "$1 [y/N]: " + read key + case "$key" in + [Yy]*) + return 0;; + *) + return 1;; + esac +} + +ask_copy() +{ + local file ans + file=$1 + + if [ -f ./$file ]; then + if ask_noyes "Overwrite $file?"; then + ans=YES + else + ans=NO + fi + else + ans=YES + fi + if [ $ans = "YES" ]; then + cp __DATADIR__/$file . + else + echo "$file is untouched; you may update with __DATADIR__/$file." + fi + +} + +echo "This script will setup current directory for aswiki." +if ask_noyes "Are you ready?"; then + echo -n "Creating directories..." + mkdir RCS session cache attach text + echo "done." + echo -n "Copying files..." + ask_copy aswiki.conf + ask_copy aswiki.cgi + echo "done." +else + echo "Stopped." + exit 1 +fi diff --git a/www/aswiki/pkg-descr b/www/aswiki/pkg-descr new file mode 100644 index 000000000000..1166200caa97 --- /dev/null +++ b/www/aswiki/pkg-descr @@ -0,0 +1,7 @@ +AsWiki is WikiWikiWeb clone (Wiki Engine) written in Ruby. WikiWikiWeb +is web base collaboration tool. AsWiki provide web-site which anyone +can create and edit page. It has features easy customize its publish +html and RCS base version log. + -- excerpt from RAA (Ruby Application Archive) + +WWW: http://aswiki.sourceforge.net/ diff --git a/www/aswiki/pkg-plist b/www/aswiki/pkg-plist new file mode 100644 index 000000000000..333243baaee1 --- /dev/null +++ b/www/aswiki/pkg-plist @@ -0,0 +1,54 @@ +%%RUBY_SITELIBDIR%%/aswiki/attachdb.rb +%%RUBY_SITELIBDIR%%/aswiki/backup.rb +%%RUBY_SITELIBDIR%%/aswiki/cgi.rb +%%RUBY_SITELIBDIR%%/aswiki/config.rb +%%RUBY_SITELIBDIR%%/aswiki/exception.rb +%%RUBY_SITELIBDIR%%/aswiki/handler.rb +%%RUBY_SITELIBDIR%%/aswiki/i18n +%%RUBY_SITELIBDIR%%/aswiki/interwiki.rb +%%RUBY_SITELIBDIR%%/aswiki/merge.rb +%%RUBY_SITELIBDIR%%/aswiki/node.rb +%%RUBY_SITELIBDIR%%/aswiki/page.rb +%%RUBY_SITELIBDIR%%/aswiki/pagedata.rb +%%RUBY_SITELIBDIR%%/aswiki/parser.rb +%%RUBY_SITELIBDIR%%/aswiki/plugin.rb +%%RUBY_SITELIBDIR%%/aswiki/repository.rb +%%RUBY_SITELIBDIR%%/aswiki/revlink.rb +%%RUBY_SITELIBDIR%%/aswiki/scanner.rb +%%RUBY_SITELIBDIR%%/aswiki/util.rb +%%RUBY_SITELIBDIR%%/aswiki/i18n/en.rb +%%RUBY_SITELIBDIR%%/aswiki/i18n/ja.rb +@dirrm %%RUBY_SITELIBDIR%%/aswiki/i18n +@dirrm %%RUBY_SITELIBDIR%%/aswiki +%%DATADIR%%/aswiki.cgi +%%DATADIR%%/aswiki.conf +%%DATADIR%%/default.css +%%DATADIR%%/setup +%%DATADIR%%/plugin/2chbbs.rb +%%DATADIR%%/plugin/attach.rb +%%DATADIR%%/plugin/core.rb +%%DATADIR%%/plugin/demo.rb +%%DATADIR%%/templete/Node.html +%%DATADIR%%/templete/PageBase.html +%%DATADIR%%/templete/RSS.xml +%%DATADIR%%/template/Page/Edit.html +%%DATADIR%%/template/Page/Error.html +%%DATADIR%%/template/Page/History.html +%%DATADIR%%/template/Page/Raw.html +%%DATADIR%%/template/Page/Ro.html +%%DATADIR%%/template/Page/View.html +%%DATADIR%%/template/plugin/2chbbs.html +%%DATADIR%%/template/plugin/allpages.html +%%DATADIR%%/template/plugin/attach.html +%%DATADIR%%/template/plugin/list.html +%%DATADIR%%/template/plugin/metapages.html +%%DATADIR%%/template/plugin/notcreatedpages.html +%%DATADIR%%/template/plugin/orphanedpages.html +%%DATADIR%%/template/plugin/pluginlist.html +%%DATADIR%%/template/plugin/recentpages.html +%%DATADIR%%/template/plugin/reverselinklist.html +@dirrm %%DATADIR%%/template/plugin +@dirrm %%DATADIR%%/template/Page +@dirrm %%DATADIR%%/templete +@dirrm %%DATADIR%%/plugin +@dirrm %%DATADIR%% |