debian/0000755000000000000000000000000012265525642007177 5ustar debian/compat0000644000000000000000000000000212265522731010371 0ustar 8 debian/changelog0000644000000000000000000001435012265525642011054 0ustar hiki (1.0.0-0.2) unstable; urgency=low [ Antonio Terceiro ] * Team upload. - the Ruby team is bringing this package in. - add team email to Uploaders [ Jonas Genannt ] * Upload to unstable * d/control - changed homepage - changed suggests from librt-ruby1.8 to ruby-rt - bumped standards version to 3.9.5 (no changes needed) - changed vcs urls to PKG Ruby team git - changed ruby to ruby | interpreter (Closes: #735423) - removed whitespaces from description - updated missing depends docdiff, hikidoc * d/copyright - update to verion 1.0, added myself - fixed typo Locense => License * d/rules: do not change interpreter to 1.8 * d/hikisetup: fixed interpreter call -- Jonas Genannt Wed, 15 Jan 2014 12:12:50 +0100 hiki (1.0.0-0.1) experimental; urgency=low * Non-maintainer upload. * New upstream release * debian/watch - deal with upstream moved to github * debian/control - set "Standards-Version: 3.9.4" * debian/patches - drop: 010_use_ruby1.8, since merged to upstream - drop: 020_remove_shebang_from_library, upstream delete file, so it's unnecessary anymore -- Hideki Yamane Wed, 24 Apr 2013 06:13:38 +0900 hiki (0.8.8.1-3) unstable; urgency=low * Change debhelper compat level to 8 * Follow for Ruby package name transition * Change debian source format to '3.0 (quilt)' * Remove lintian warnings - Add patch: 020_remove_shebang_from_library * Force to use ruby1.8 - Add patch: debian/patches/010_use_ruby1.8 -- Taku YASUI Sun, 13 May 2012 15:02:31 +0900 hiki (0.8.8.1-2) unstable; urgency=low * Bump Standards-Version to 3.9.3 * Moved repository to svn.debian.org - svn://svn.debian.org/svn/collab-maint/deb-maint/hiki -- Taku YASUI Mon, 26 Mar 2012 23:46:40 +0900 hiki (0.8.8.1-1) unstable; urgency=low * New upstream release * Fix debian/watch to find correct latest release -- Taku YASUI Tue, 22 Sep 2009 13:52:43 +0900 hiki (0.8.8-1) unstable; urgency=low * New upstream release * Update debian/watch file for new SourceForge.JP release page layout -- Taku YASUI Mon, 10 Aug 2009 00:18:25 +0900 hiki (0.8.7-3) unstable; urgency=low * Add debian/watch file -- Taku YASUI Tue, 21 Apr 2009 11:54:04 +0900 hiki (0.8.7-2) unstable; urgency=low * Change maintainer email address: tach@debian.org * Update debhelper compat version: 7 * Update Depends: line - apache2 instead of apache * Update Standards-Version: 3.8.1 * Add hikisetup manual page * New debian/copyright format http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=454 * Fix ruby binary path on script -- Taku YASUI Tue, 21 Apr 2009 03:16:19 +0900 hiki (0.8.7-1) unstable; urgency=high * New upstream release * [SECURITY] fix unsafe session management See http://hikiwiki.org/en/advisory20070624.html for more information (closes: #430691) -- Taku YASUI Wed, 27 Jun 2007 11:43:21 +0900 hiki (0.8.6-5) unstable; urgency=low * Remove unwanted patch from source package * Fix: unable to write page (closes: #417570) -- Taku YASUI Tue, 10 Apr 2007 03:07:58 +0900 hiki (0.8.6-4) unstable; urgency=low * Make to copy default text files * Change default language of hikisetup command to "en" * Add more languages to hikisetup language option * Update README.Debian (closes: #242918) * Fix to run hikisetup correctly (closes: #335484) -- Taku YASUI Sun, 3 Dec 2006 00:06:01 +0900 hiki (0.8.6-3) unstable; urgency=low * Fix: orig.tar.gz does not include... -- Taku YASUI Sun, 3 Dec 2006 00:04:03 +0900 hiki (0.8.6-2) unstable; urgency=low * Fix: hikisetup does not work correctly. * Add --lang option to hikisetup -- Taku YASUI Sat, 2 Dec 2006 23:40:12 +0900 hiki (0.8.6-1) unstable; urgency=high * New upstream release * Security release for CVE-2006-3379 (closes: #378059) * Change to use cdbs for building -- Taku YASUI Fri, 21 Jul 2006 02:49:13 +0900 hiki (0.8.4-1) unstable; urgency=low * New upstream release * Add i18n support to hikisetup command - --lang option - gettextize -- Taku YASUI Thu, 29 Sep 2005 16:43:18 +0900 hiki (0.8.3-1) unstable; urgency=high * New upstream release - Security fix release (fix cross-site scripting) -- Taku YASUI Fri, 5 Aug 2005 07:43:00 +0900 hiki (0.8.2-1) unstable; urgency=high * New upstream release * Fix some XSS security vul. -- Taku YASUI Tue, 2 Aug 2005 19:32:21 +0900 hiki (0.6.5-1) unstable; urgency=high * New upstrem release - several security fixes (closes: #256614) * hikisetup fix: Despite enabling help option, setup completed -- Taku YASUI Tue, 29 Jun 2004 01:23:24 +0900 hiki (0.6.4-1) unstable; urgency=high * New upstream release (closes: #255456) -- Taku YASUI Mon, 21 Jun 2004 15:17:57 +0900 hiki (0.6.3-1) unstable; urgency=high * New upstream release -- Taku YASUI Sun, 30 May 2004 20:11:26 +0900 hiki (0.6.2-1) unstable; urgency=low * New upstream release (closes: #237434) -- Taku YASUI Fri, 19 Mar 2004 18:04:44 +0900 hiki (0.5+20031214-1) experimental; urgency=low * New upstream release (cvs snapshot) -- Taku YASUI Sun, 14 Dec 2003 15:21:38 +0900 hiki (0.4.2a-4) unstable; urgency=low * More dependency fix (closes: #215429) -- Taku YASUI Mon, 13 Oct 2003 21:35:34 +0900 hiki (0.4.2a-3) unstable; urgency=low * Fix dependency (closes: #212363) * Force to use /usr/bin/ruby1.6 (closes: #212428) -- Taku YASUI Fri, 26 Sep 2003 11:05:16 +0900 hiki (0.4.2a-2) unstable; urgency=low * Fix: Cannot execute install.rb (closes: #201055) -- Taku YASUI Thu, 17 Jul 2003 10:25:48 +0900 hiki (0.4.2a-1) unstable; urgency=low * Initial Release. (closes: #199125) -- Taku YASUI Sun, 6 Jul 2003 23:28:18 +0900 debian/examples0000644000000000000000000000001512265522731010730 0ustar dot.htaccess debian/copyright0000644000000000000000000000155712265522731011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: TAKEUCHI Hitoshi Source: http://hikiwiki.org/ Upstream-Name: Hiki Files: * Copyright: 2002-2004 TAKEUCHI Hitoshi License: GPL-2 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2003-2009 Taku YASUI 2014 Jonas Genannt License: GPL-2 On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. debian/README.Debian0000644000000000000000000000130112265522731011227 0ustar hiki for Debian --------------- HOW TO SETUP hiki ================= You can run 'hikisetup' to setup hiki easily. % mkdir /var/www/hiki % hikisetup /var/www/hiki INFO: hiki basedir is /var/www/hiki Please input data_path [/var/www/hiki/data]: hikisetup succeeded! Please edit /var/www/hiki/hikiconf.rb Use "--lang" option to use the other language instead of English. Be sure that Apache allows users to override configurations with a `.htaccess' file because the default hikisetup requires it. SEE ALSO ======== Useful documents are in following URL. You should read some documents on it. http://hikiwiki.org/en/ -- Taku YASUI , Sat, 28 Jun 2003 11:01:05 +0900 debian/control0000644000000000000000000000212312265525620010574 0ustar Source: hiki Section: web Priority: optional Maintainer: Taku YASUI Uploaders: Debian Ruby Extras Maintainers Build-Depends: debhelper (>= 8), gem2deb, cdbs, quilt, perl Homepage: https://github.com/hiki/hiki Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/hiki.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/hiki.git;a=summary Package: hiki Architecture: all Depends: ${misc:Depends}, ruby | ruby-interpreter, ruby-uconv, docdiff, ruby-hikidoc Suggests: apache2 | httpd, tdiary-theme, ruby-imagesize, ruby-rd, ruby-rt Description: Wiki Engine written in Ruby Hiki is one of WikiWiki Web clone (Wiki Engine) written in programming language Ruby. WikiWikiWeb is web base collaboration tool. Hiki has following features: . * Simple syntax like original Wiki. * Theme function by CSS(Cascading Style Sheet). You can use a lot of tDiary themes (http://www.tdiary.net/theme.rhtml). * Plugin function, you can add various functions. * InterWiki support. * Categorize. debian/install.rb0000644000000000000000000000073212265522731011170 0ustar #!/usr/bin/env ruby require "rbconfig" require "ftools" include Config DSTPATH = ENV['DESTDIR'] + CONFIG["rubylibdir"] File.makedirs(DSTPATH) def join( *arg ) File.join( *arg ) end def base( name ) File.basename( name ) end begin Dir.glob('hiki/**/*.rb').each do | name | File.makedirs(join(DSTPATH, File.dirname(name))) File.install(name, join(DSTPATH, name), 0644, true ) end puts "install succeed!" rescue puts "install failed!" puts $! end debian/rules0000755000000000000000000000263612265522731010262 0ustar #!/usr/bin/make -f # Sample debian/rules that uses cdbs. Originaly written by Robert Millan. # This file is public domain. include /usr/share/cdbs/1/rules/debhelper.mk DEB_COMPRESS_EXCLUDE = hikiconf.rb.sample DEB_INSTALL_MANPAGES_hiki = debian/hikisetup.1 install/hiki:: cp -r data hiki messages misc plugin style template theme $(CURDIR)/debian/hiki/usr/share/hiki find $(CURDIR)/debian/hiki -type d -name CVS -print | xargs rm -rf find $(CURDIR)/debian/hiki -name \*.rb -print | xargs chmod 644 install -m 755 hiki.cgi $(CURDIR)/debian/hiki/usr/share/hiki/hiki.cgi install -m 755 debian/hikisetup $(CURDIR)/debian/hiki/usr/bin/hikisetup install -m 644 hikiconf.rb.sample $(CURDIR)/debian/hiki/usr/share/doc/hiki/examples/hikiconf.rb.sample.ja mv $(CURDIR)/debian/hiki/usr/share/hiki/misc/i18n/hikiconf.rb.sample.en $(CURDIR)/debian/hiki/usr/share/doc/hiki/examples/hikiconf.rb.sample.en && rmdir $(CURDIR)/debian/hiki/usr/share/hiki/misc/i18n ln -s hikiconf.rb.sample.en $(CURDIR)/debian/hiki/usr/share/doc/hiki/examples/hikiconf.rb.sample.de mv $(CURDIR)/debian/hiki/usr/share/hiki/data/text $(CURDIR)/debian/hiki/usr/share/hiki/misc/text/default.ja perl -i -npe '$$i++; $$i==1 and s|^#!\s*(?:/usr)?/bin/env ruby|#!/usr/bin/ruby|' debian/hiki/usr/share/hiki/hiki/auth/typekey.rb chmod 755 $(CURDIR)/debian/hiki/usr/share/hiki/hiki/auth/typekey.rb chmod 755 $(CURDIR)/debian/hiki/usr/share/hiki/misc/webrick/hikilet.rb debian/source/0000755000000000000000000000000012265522731010473 5ustar debian/source/format0000644000000000000000000000001412265522731011701 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000031312265522731010221 0ustar # format version number, currently 3; this line is compulsory! version=3 # URL to the package page followed by a regex to search https://github.com/hiki/hiki/tags \ /hiki/hiki/archive/(\d*.*)\.tar\.gz debian/prepare-cvs.sh0000755000000000000000000000110312265522731011754 0ustar #!/bin/sh # prepare-cvs.sh - prepare to create hiki deb package from cvs VERSION=0.5 BRANCH=v0_5_branch if [ -z "$1" ]; then DESTDIR=. else DESTDIR=$1 fi cd ${DESTDIR} DEBVERSION=${VERSION}+`date '+%Y%m%d'` DIR=hiki-${DEBVERSION} if [ -d ${DIR} ]; then echo "Directory ${DIR} already exists." exit 1 fi cvs -Q -d:pserver:anonymous@cvs.sourceforge.jp:/cvsroot/hiki co -r ${BRANCH} -d ${DIR} hiki cp -a ${DIR} ${DIR}.orig cd ${DIR} dch -D experimental -v ${DEBVERSION}-1 'New upstream release (cvs snapshot)' echo Please type \"cd ${DESTDIR}/${DIR}\" and debuild debian/hikisetup0000755000000000000000000001127112265522731011130 0ustar #!/usr/bin/ruby # # hikisetup - setup hiki for debian systems # Copyright (C) Taku YASUI # require 'getoptlong' require 'fileutils' include FileUtils HIKIDIR = '/usr/share/hiki' def parse_options options = Hash.new parser = GetoptLong.new parser.set_options(['--help', '-h', GetoptLong::NO_ARGUMENT], ['--lang', '-l', GetoptLong::REQUIRED_ARGUMENT]) parser.each_option { |name, arg| options[name.sub(/^--/, "")] = arg } if ( ! options['lang'] ) options['lang'] = 'en' elsif ( ! options['lang'].match(/^(#{get_languages.join('|')})$/) ) STDERR.puts("Argument of --lang must be one of following: #{get_languages.join(', ')}") exit 1 end show_usage if options['help'] return options end def input_data(default, var='variable') print "Please input #{var} [#{default}]: " ret = STDIN.gets.chop ret = default if ret.match(/^\s*$/) return ret end def get_languages Dir.glob(File.join(HIKIDIR, "messages/*.rb")).map{ |s| s.scan(%r!([^/]+)\.rb$!).first } end def check_datapath if @data_path elsif $data_path @data_path = $data_path else @data_path = File.join @hikidir, 'data' end @data_path = input_data(@data_path, 'data_path') end def check_pluginpath @plugin_path = '/usr/share/hiki/plugin' if ! @plugin_path end def check_templatepath @template_path = '/usr/share/hiki/template' if ! @template_path end def create_hikiconf if $data_path && File.exist?('hikiconf.rb') oldconf = 'hikiconf.rb.' + Time.now.strftime('%Y%m%d-%H%M%S') mv 'hikiconf.rb', oldconf puts "WARN: Old hikiconf.rb format found and converted to new one" puts "WARN: Please read /usr/share/doc/hiki/VERSIONUP.txt" puts "INFO: hikiconf.rb was moved to #{oldconf}" puts "INFO: Please remove #{oldconf} if it will be not nesessory" end if ! File.exist?('hikiconf.rb') begin cp('/usr/share/doc/hiki/examples/hikiconf.rb.sample.' + @opts['lang'] , 'hikiconf.rb') rescue STDERR.puts("Sample hikiconf.rb of \"#{@opts['lang']}\" does not found. Using \"en\" one.") cp('/usr/share/doc/hiki/examples/hikiconf.rb.sample.en' , 'hikiconf.rb') end end conf=<<_EOT ### BEGIN: CREATED BY DEBIAN HIKISETUP ### @data_path = '#{@data_path}' @plugin_path = '#{@plugin_path}' @template_path = '#{@template_path}' @cgi_name = '#{@cgi_name}' @lang = '#{@opts["lang"]}' ### END: CREATED BY DEBIAN HIKISETUP ### _EOT hikiconf = File.read('hikiconf.rb') if ! hikiconf.sub!(/### BEGIN: CREATED BY DEBIAN HIKISETUP ###.*### END: CREATED BY DEBIAN HIKISETUP ###\s*\n/m, conf) hikiconf += conf end File.open('hikiconf.rb', 'w') do |f| f.print hikiconf end end def create_hikicgi if ! @cgi_name @cgi_name = $cgi_name || 'hiki.cgi' end @cgi_name = File.basename(@cgi_name).sub(/^\.*/, '') @cgi_name = 'hiki.cgi' if @cgi_name == '' if File.exist?(@cgi_name) oldcgi = @cgi_name + '.' + Time.now.strftime('%Y%m%d-%H%M%S') mv @cgi_name, oldcgi puts "INFO: #{@cgi_name} was moved to #{oldcgi}" puts "INFO: Please remove #{oldcgi} if it will be not nesessory" end File.open(@cgi_name, 'w') do |f| f.print <<_EOT #!/usr/bin/ruby -I#{HIKIDIR} load '#{HIKIDIR}/hiki.cgi' _EOT end chmod 0755, @cgi_name end def create_datadir if ( ! File.directory? @data_path ) mkdir_p @data_path begin cp_r "#{HIKIDIR}/misc/text/default.#{@opts['lang']}", @data_path + "/text" rescue STDERR.puts("Default text data of \"#{@opts['lang']}\" does not found. Using \"en\" one.") cp_r "#{HIKIDIR}/misc/text/default.en", @data_path + "/text" end end end def create_theme if ! File.exist? "#{@hikidir}/theme" cp_r "#{HIKIDIR}/theme", @hikidir end end def create_dothtaccess if ( @first && ! File.exist?("#{@hikidir}/.htaccess") ) cp "/usr/share/doc/hiki/examples/dot.htaccess", ".htaccess" end end def show_usage print <<_EOT Usage: hikisetup [OPTIONS] [directory] OPTIONS: --help, -h: Show this help --lang LANGUAGE, -l: Specify config language (default: en) LANGUAGE must be one of following: #{get_languages.join(", ")} _EOT exit 1 end def main begin @opts = parse_options @first = false @hikidir = File.expand_path(ARGV[0] || '.') chdir @hikidir puts "INFO: hiki basedir is #{@hikidir}" begin require 'hikiconf' rescue LoadError @first = true end check_datapath check_pluginpath check_templatepath makedirs(@hikidir) create_hikicgi create_theme create_datadir create_hikiconf create_dothtaccess puts "hikisetup succeeded!" puts "Please edit #{@hikidir}/hikiconf.rb" rescue puts 'Error: ' + $! puts "hikisetup failed!" end end main if __FILE__ == $0 debian/README.Debian.ja0000644000000000000000000000360512265522731011631 0ustar Debian での hiki について ------------------------- Debian では,簡単に hiki をセットアップするために,hikisetup コマンドを 用意しています.hiki を設置するディレクトリで hikisetup コマンドを実行 するだけで,hiki を動作させる環境ができあがります. ~/public_html/hiki% hikisetup --lang ja INFO: hiki basedir is /home/tach/public_html/hiki Please input data_path [/home/tach/public_html/hiki/data]: hikisetup succeeded! Please edit /home/tach/public_html/hiki/hikiconf.rb hikisetup コマンドで設置した hiki は,パッケージをアップグレードした 際に,自動的に新しい hiki が動作するようになっています.そのため, hiki を更新するときにはパッケージをアップグレードするだけで OK です. しかし,hiki のメジャーアップグレードの際には設定ファイルの書式が 変更になる可能性がありますので,そのときは再度 hikisetup コマンドを 実行することをおすすめします.hikisetup コマンドは,何度実行しても 環境を壊さないように作成してあります. Version 0.6.x 以前をお使いの方へ -------------------------------- hiki は,Version 0.8 から設定ファイルの書式が変更になっています. hikisetup コマンドでは,$data_path と $cgi_name のみ新しいファイル に移行し,その他の設定はサンプルのものをそのまま利用し,hikiconf.rb を生成します.古いファイルはリネームして残してありますので,手動で 再設定してください.なお,プラグインなどの書式も変わっていますので, ご注意ください.詳しくは,/usr/share/doc/hiki/VERSIONUP.txt を参照 してください. -- Taku YASUI , Sat, 28 Jun 2003 11:01:05 +0900 debian/hikisetup.10000644000000000000000000000220012265522731011254 0ustar .\" hikisetup manpage for Debian GNU/Linux .\" written by Taku YASUI .TH HIKISETUP 1 .\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection .\" other parms are allowed: see man(7), man(1) .SH NAME hikisetup \- hiki setup utility for Debian .SH SYNOPSIS .B hikisetup .RI [--copy] .RI [directory] .SH DESCRIPTION This manual page documents briefly the support commands for .BR hiki . It was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP .B hikisetup is a program that make directory and create configuration file for Hiki. If directory is specified, it setup to the directory. If not, to current directory. .SH OPTIONS .TP .B --copy copy various files instead of symlink. It symlinks some files and directories by default. Then, cgi and some files to use are upgraded automatically when the package is upgraded. But if your web server does not allow to run CGI which is symlink, you should copy CGI file. .SH AUTHOR hikisetup and this manual page was written by Taku YASUI , for the Debian GNU/Linux system (but may be used by others). debian/docs0000644000000000000000000000020612265522731010044 0ustar doc/HACKING.en doc/HACKING.txt doc/NEWS.en doc/NEWS.txt doc/README-attach.txt doc/README.en doc/README.txt doc/VERSIONUP.txt doc/rd+/ debian/dirs0000644000000000000000000000006312265522731010056 0ustar usr/bin usr/share/hiki usr/share/doc/hiki/examples