1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

New port: aswiki

This is yet another wiki clone, written in Ruby.  It supports contents
logging with RCS; you can easily checks the difference of each change.

Reviewed by:	kuriyama, knu
This commit is contained in:
Makoto Matsushita 2003-06-14 14:27:30 +00:00
parent 3548b99839
commit 758280150b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82984
6 changed files with 172 additions and 0 deletions

View File

@ -23,6 +23,7 @@
SUBDIR += ashe # requires Motif
SUBDIR += asp2php
SUBDIR += aswedit
SUBDIR += aswiki
SUBDIR += august
SUBDIR += auth_ldap
SUBDIR += awstats

54
www/aswiki/Makefile Normal file
View File

@ -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>

1
www/aswiki/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (aswiki-1.0.1.tar.gz) = 01fb02e0aaa0793b0a1444e2a0410b48

55
www/aswiki/files/setup.sh Normal file
View File

@ -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

7
www/aswiki/pkg-descr Normal file
View File

@ -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/

54
www/aswiki/pkg-plist Normal file
View File

@ -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%%