diff options
Diffstat (limited to 'www/aswiki/files')
-rw-r--r-- | www/aswiki/files/patch-2chbbs.rb | 20 | ||||
-rw-r--r-- | www/aswiki/files/patch-demo.rb | 11 | ||||
-rw-r--r-- | www/aswiki/files/patch-handler.rb | 29 | ||||
-rw-r--r-- | www/aswiki/files/patch-scanner.rb | 16 | ||||
-rw-r--r-- | www/aswiki/files/setup.sh | 56 |
5 files changed, 0 insertions, 132 deletions
diff --git a/www/aswiki/files/patch-2chbbs.rb b/www/aswiki/files/patch-2chbbs.rb deleted file mode 100644 index 7c3ff4f07ba9..000000000000 --- a/www/aswiki/files/patch-2chbbs.rb +++ /dev/null @@ -1,20 +0,0 @@ ---- plugin/2chbbs.rb.dist Wed Jan 8 11:01:21 2003 -+++ plugin/2chbbs.rb Sun Apr 29 22:05:37 2007 -@@ -24,7 +24,7 @@ - t = Time.now - time = t.strftime("%Y/%m/%d (#{weekstr[t.wday]}) %R") - data = "\n#{number}: #{from}: #{name} #{date}: #{time} \n\n" + -- session['textdata'] + "\n" -+ session['textdata'].to_s + "\n" - file = @repository.load(pname) - file[session['begin'].to_i-1, 0 ] = data - file[session['begin'].to_i] = "#2chbbs #{number}\n" -@@ -40,7 +40,7 @@ - session['number'] = av[1].to_i - @data = { - :_session_id => session.session_id, -- :md5sum => Digest::MD5::new(@repository.load(@name).to_s).to_s, -+ :md5sum => Digest::MD5::new.update(@repository.load(@name).to_s).to_s, - :msg_2chbbs_from => msg_2chbbs_from, - :msg_2chbbs_write => msg_2chbbs_write, - } diff --git a/www/aswiki/files/patch-demo.rb b/www/aswiki/files/patch-demo.rb deleted file mode 100644 index 5e21d9db4f1d..000000000000 --- a/www/aswiki/files/patch-demo.rb +++ /dev/null @@ -1,11 +0,0 @@ ---- plugin/demo.rb.dist Wed Jan 8 11:01:21 2003 -+++ plugin/demo.rb Sat Apr 28 13:41:46 2007 -@@ -48,7 +48,7 @@ - # session.close - @data = { - :session_id => session.session_id, -- :md5sum => Digest::MD5::new(@repository.load(@name).to_s).to_s, -+ :md5sum => Digest::MD5::new.update(@repository.load(@name).to_s).to_s, - :msg_list_item => msg_list_item, - :msg_list_add => msg_list_add, - } diff --git a/www/aswiki/files/patch-handler.rb b/www/aswiki/files/patch-handler.rb deleted file mode 100644 index 10b40fdff936..000000000000 --- a/www/aswiki/files/patch-handler.rb +++ /dev/null @@ -1,29 +0,0 @@ ---- aswiki/handler.rb.dist Wed Jun 23 10:54:16 2004 -+++ aswiki/handler.rb Fri Apr 27 13:09:17 2007 -@@ -138,7 +138,7 @@ - begin - c = @repository.load(name) - orig = c.dup -- if cgi.value('md5sum')[0] != Digest::MD5::new(c.to_s).to_s -+ if cgi.value('md5sum')[0] != Digest::MD5::new.update(c.to_s).to_s - bl = body.map{|l| l.sub("\r\n", "\n")} - bol = (cgi.value('ebol')[0] or 1).to_i - eol = (cgi.value('eeol')[0] or c.size).to_i -@@ -164,7 +164,7 @@ - super - session = CGI::Session.new(cgi ,{'tmpdir' => $DIR_SESSION}) # XXX - if cgi['md5sum'][0] != -- Digest::MD5::new(@repository.load(session['pname']).to_s).to_s -+ Digest::MD5::new.update(@repository.load(session['pname']).to_s).to_s - raise AsWiki::TimestampMismatch - end - cgi.params.each{|key, value| session[key] = value} -@@ -226,7 +226,7 @@ - c = [true] - end - pd = AsWiki::PageData.new(pname) -- pd.md5sum = Digest::MD5::new(c.to_s).to_s -+ pd.md5sum = Digest::MD5::new.update(c.to_s).to_s - pd.title = title - if body.nil? - bol = (cgi.value('ebol')[0] or 1).to_i diff --git a/www/aswiki/files/patch-scanner.rb b/www/aswiki/files/patch-scanner.rb deleted file mode 100644 index 3f21ea325135..000000000000 --- a/www/aswiki/files/patch-scanner.rb +++ /dev/null @@ -1,16 +0,0 @@ ---- aswiki/scanner.rb.dist Fri Jan 17 22:56:47 2003 -+++ aswiki/scanner.rb Tue May 4 22:17:21 2004 -@@ -97,11 +97,11 @@ - q.push [:TABLE_END, tmp] - elsif tmp = sc.scan(/\A\|\|/) - q.push [:TABLE, tmp] -- elsif tmp = sc.scan(/\A\[img:#{URI::REGEXP::PATTERN::X_ABS_URI}\s+[^]]+?\]/xn) -+ elsif tmp = sc.scan(/\A\[img:#{URI::REGEXP::PATTERN::X_ABS_URI}\s+[^\]]+?\]/xn) - q.push [:MOINHREFIMG, tmp] - # elsif tmp = sc.scan(/\A\[\S+ +\S+?\]/) - # elsif tmp = sc.scan(/\A\[\S+ +[^]]+?\]/) -- elsif tmp = sc.scan(/\A\[#{URI::REGEXP::PATTERN::X_ABS_URI}\s+[^]]+?\]/xn) -+ elsif tmp = sc.scan(/\A\[#{URI::REGEXP::PATTERN::X_ABS_URI}\s+[^\]]+?\]/xn) - q.push [:MOINHREF, tmp] - elsif tmp = sc.scan(/\A\{\{/) - q.push [:ESCAPE_BEGIN, tmp] diff --git a/www/aswiki/files/setup.sh b/www/aswiki/files/setup.sh deleted file mode 100644 index 857d55f14f43..000000000000 --- a/www/aswiki/files/setup.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/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 - install -m 644 __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 - ask_copy default.css - echo "done." -else - echo "Stopped." - exit 1 -fi |