diff options
Diffstat (limited to 'www/tdiary-devel')
-rw-r--r-- | www/tdiary-devel/Makefile | 75 | ||||
-rw-r--r-- | www/tdiary-devel/distinfo | 1 | ||||
-rw-r--r-- | www/tdiary-devel/files/tdiary-FreeBSD.sh.in | 143 | ||||
-rw-r--r-- | www/tdiary-devel/files/tdiaryinst.rb.in | 310 | ||||
-rw-r--r-- | www/tdiary-devel/pkg-descr | 10 | ||||
-rw-r--r-- | www/tdiary-devel/pkg-message | 26 | ||||
-rw-r--r-- | www/tdiary-devel/pkg-plist | 2 |
7 files changed, 0 insertions, 567 deletions
diff --git a/www/tdiary-devel/Makefile b/www/tdiary-devel/Makefile deleted file mode 100644 index 13383966da2f..000000000000 --- a/www/tdiary-devel/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -# New ports collection makefile for: tdiary -# Date created: 21 May 2003 -# Whom: Fumihiko Kimura <jfkimura@yahoo.co.jp> -# -# $FreeBSD$ -# - -PORTNAME= tdiary -PORTVERSION= 1.5.6 -CATEGORIES?= www ruby -MASTER_SITES= \ - ${MASTER_SITE_SOURCEFORGE} \ - http://www.tdiary.org/download/ -MASTER_SITE_SUBDIR= sourceforge/${PORTNAME} -DISTNAME= ${PORTNAME}-full-${PORTVERSION} - -MAINTAINER= jfkimura@yahoo.co.jp -COMMENT= A Web-based diary system (like weblog) written in Ruby - -NO_BUILD= yes -USE_RUBY= yes -.if !defined(WITHOUT_RUBY_FEATURES) -USE_RUBY_FEATURES= fileutils -.endif - -RUBY_SHEBANG_FILES= index.rb update.rb misc/convert2.rb misc/posttdiary.rb misc/plugin/squeeze.rb \ -misc/plugin/windex.rb misc/plugin/a/a_conf.rb misc/plugin/trackback/tb.rb - -TDIARYDIR= ${EXAMPLESDIR} -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -.if !defined(TDIARY_LANG) -TDIARY_LANG= tdiary.conf-en -.endif - -.if defined(WITH_TDIARY_UCONV) -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv -.endif -.if defined(WITH_TDIARY_NORA) -RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora -.endif - -pre-everything:: - @${ECHO_MSG} - @${ECHO_MSG} "=============================================================================" - @${ECHO_MSG} "When you chose plugin, it becomes necessary. Use the following options:" - @${ECHO_MSG} " WITH_TDIARY_UCONV=yes (RDF file creates with UTF-8 : output_rdf.rb)" - @${ECHO_MSG} " WITH_TDIARY_NORA=yes (Referer header support : disp_referrer.rb)" - @${ECHO_MSG} "=============================================================================" - @${ECHO_MSG} - -do-install: - @-${MKDIR} ${TDIARYDIR} - @${SED} -e 's,@@@@PREFIX@@@@,${PREFIX},g' \ - -e 's,@@@@LANG@@@@,${TDIARY_LANG},g' \ - ${FILESDIR}/tdiaryinst.rb.in > ${TDIARYDIR}/tdiaryinst.rb - @${SED} -e 's,@@@@PREFIX@@@@,${PREFIX},g' \ - -e 's,@@@@LANG@@@@,${TDIARY_LANG},g' \ - ${FILESDIR}/tdiary-FreeBSD.sh.in > ${TDIARYDIR}/tdiary-FreeBSD.sh - @${CHMOD} ugo=rx ${TDIARYDIR}/tdiary-FreeBSD.sh - @${CP} -pR ${WRKSRC}/ ${TDIARYDIR} -.if ${TDIARY_LANG} == tdiary.conf-en - @${ECHO_MSG} "===> TDIARY : English Language messages support" - @${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%a]")' ${TDIARYDIR}/misc/i18n/tdiary.conf.sample-en -.else - @${ECHO_MSG} "===> TDIARY : Japanese Language messages support" - @${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%J]")' ${TDIARYDIR}/tdiary.conf.sample -.endif - @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TDIARYDIR} - -post-install: - @cd ${WRKSRC} && ${FIND} . -type f -o -type l | ${SED} -e 's,^\.,${TDIARYDIR:S|${LOCALBASE}/||},' >> ${TMPPLIST} - @cd ${WRKSRC} && ${FIND} . -type d -depth | ${SED} -e 's,^\.,@dirrm ${TDIARYDIR:S|${LOCALBASE}/||},' >> ${TMPPLIST} - @${SED} -e "s,%%EXAMPLESDIR%%,${EXAMPLESDIR},g" ${PKGMESSAGE} - -.include <bsd.port.mk> diff --git a/www/tdiary-devel/distinfo b/www/tdiary-devel/distinfo deleted file mode 100644 index d718cd57e6c2..000000000000 --- a/www/tdiary-devel/distinfo +++ /dev/null @@ -1 +0,0 @@ -MD5 (tdiary-full-1.5.6.tar.gz) = 559fd40263ae7fc76a1792fc71757c8f diff --git a/www/tdiary-devel/files/tdiary-FreeBSD.sh.in b/www/tdiary-devel/files/tdiary-FreeBSD.sh.in deleted file mode 100644 index 8008b0cda1b6..000000000000 --- a/www/tdiary-devel/files/tdiary-FreeBSD.sh.in +++ /dev/null @@ -1,143 +0,0 @@ -#!/bin/sh -# -# tdiary-FreeBSD.sh - tDiary user directory copy script -# -# $FreeBSD$ -# -# usage: -# % /usr/local/share/examples/tdiary/tdiary-FreeBSD.sh install -# or -# # /usr/local/share/examples/tdiary/tdiary-FreeBSD.sh USERid -# - -USERNAME=$1 -DIARYDIR=diary -PUBLICHTML=public_html -PREFIX=@@@@PREFIX@@@@ -TDCONFIG=@@@@LANG@@@@ -EXAMPLES=${PREFIX}/share/examples -HOMEOWN=`grep ^$1: /etc/passwd | cut -f3 -d':'` -HOMEGRP=`grep ^$1: /etc/passwd | cut -f4 -d':'` -AUTHORN=`grep ^$1: /etc/passwd | cut -f5 -d':'` -HOMEDIR=`grep ^$1: /etc/passwd | cut -f6 -d':'` -HOSTSMTP=`hostname` - -cd ${EXAMPLES} - -if [ -z "$1" ]; then - echo "Usage: `basename $0` {username} or install" - exit 1 -else - if [ -z "${HOMEOWN}" ] ; then - if [ "$1" = "install" ] ; then - if [ $(id -u) -eq 0 ]; then - echo "root can not use 'install' parameter." - exit 1 - fi - else - echo "User unknown or no exist User Directory -> " $1 "-" ${HOMEDIR} - echo "Usage: `basename $0` {username} or install" - exit 1 - fi - fi -fi - -echo "************************************************************" -echo "" - -case "$1" in -root) - echo "You can not copy ROOT Directory" - exit 1 - ;; -install) - HOMEOWN=`grep ^$USER: /etc/passwd | cut -f3 -d':'` - HOMEGRP=`grep ^$USER: /etc/passwd | cut -f4 -d':'` - HOMEDIR=`grep ^$USER: /etc/passwd | cut -f6 -d':'` - echo "HOME Directory : " ${HOMEDIR} - USERNAME=$USER - ;; -*) - echo "HOME Directory : " ${HOMEDIR} - echo "USERNAME : " ${USERNAME} - USERNAME=$USER - ;; -esac - -if [ -x ${HOMEDIR} ]; then - if [ -z "$1" ]; then - echo "Usage: `basename $0` {username} or install" - exit 1 - else - echo "" - echo "************************************************************" - echo "Starting tDiary for FreeBSD user directory installation ..." - echo "" - if [ ! -e ${HOMEDIR}/${DIARYDIR} ]; then - echo "Create ..." ${HOMEDIR}/${DIARYDIR} - mkdir ${HOMEDIR}/${DIARYDIR} - echo "Done" - fi - chmod o+rwx ${HOMEDIR}/${DIARYDIR} - chown ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${DIARYDIR} - if [ ! -e ${HOMEDIR}/${PUBLICHTML} ]; then - echo "Create ..." ${HOMEDIR}/${USERNAME}/${PUBLICHTML} - mkdir ${HOMEDIR}/${PUBLICHTML} - chown ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${PUBLICHTML} - echo "Done" - fi - echo "Copy tDiary ..." ${EXAMPLES}/tdiary/ - echo " to " ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/ - cp -pR ${EXAMPLES}/tdiary/ ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/ - chown -R ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/ - chmod o+rwx ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR} - echo "Done" - sed -e 's#'/home/foo/diary'#'${HOMEDIR}'/'${DIARYDIR}'#g' \ - -e 's#smtp.example.net#'${HOSTSMTP}'#g' \ - -e "s#foo@example.net#"${USERNAME}"@"${HOSTSMTP}"#g" \ - -e "s#Your name#${AUTHORN}#g" \ - -e "s#hogehoge diary#${AUTHORN} Diary#g" \ - -e "s#http://www.example.net/~foo/#http://"${HOSTSMTP}"/~"${USERNAME}"#g" \ - < ${EXAMPLES}/tdiary/tdiary.conf.sample > ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/tdiary.conf-ja - chown ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/tdiary.conf-ja - if [ -e ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/.htaccess ]; then - sed -e 's#foo#'${USERNAME}'#g' < ${EXAMPLES}/tdiary/dot.htaccess > ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/dot.htaccess.orig - chown ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/dot.htaccess.orig - else - sed -e 's#foo#'${USERNAME}'#g' < ${EXAMPLES}/tdiary/dot.htaccess > ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/.htaccess - chown ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/.htaccess - fi - sed -e 's#'/home/foo/diary'#'${HOMEDIR}'/'${DIARYDIR}'#g' \ - -e 's#smtp.example.net#'${HOSTSMTP}'#g' \ - -e "s#foo@example.net#"${USERNAME}"@"${HOSTSMTP}"#g" \ - -e "s#Your name#${AUTHORN}#g" \ - -e "s#foobar diary#${AUTHORN} Diary#g" \ - -e "s#Foo\'s diary#${AUTHORN}\'s Diary#g" \ - -e "s#http://www.example.net/~foo/#http://"${HOSTSMTP}"/~"${USERNAME}"#g" \ - < ${EXAMPLES}/tdiary/misc/i18n/tdiary.conf.sample-en > ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/tdiary.conf-en - chown ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/tdiary.conf-en - rm -f ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/tdiary-FreeBSD.sh - if [ -e ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/tdiary.conf ]; then - echo "" - else - echo "Install ${TDCONFIG} ... Done" - mv ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/${TDCONFIG} ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/tdiary.conf - fi - fi -else - echo "" - echo "User unknown or no exist User Directory -> " $1 "-" ${HOMEDIR} - echo "Usage: `basename $0` {username} or install" - exit 1 -fi -echo "" -echo "" -echo "***" -echo "You have to execute the following commands:" -echo " % /usr/local/sbin/htpasswd -c" ${HOMEDIR}/.htpasswd ${USERNAME} -echo "" -echo "Be sure to read the ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/README" -echo " file for additional information." -echo "************************************************************" -echo "" -exit 0 diff --git a/www/tdiary-devel/files/tdiaryinst.rb.in b/www/tdiary-devel/files/tdiaryinst.rb.in deleted file mode 100644 index 23df82306bb4..000000000000 --- a/www/tdiary-devel/files/tdiaryinst.rb.in +++ /dev/null @@ -1,310 +0,0 @@ -#!/usr/bin/env ruby -# -# tdiaryinstall.rb - tDiary user directory copy script -# Date created: 13 July 2003 -# Whom: KAMIYA Satosi <mimoriso@anet.ne.jp> -# -# $FreeBSD$ -# - -require 'getoptlong' -require 'etc.so' -require 'fileutils' -require 'find' -require 'tempfile' - -# make install時に置換されるグローバル変数 --tdiarymaster, --lang オプションで上書き可能 -$OPT_TDIARYMASTER = "@@@@PREFIX@@@@/share/examples/tdiary" -$OPT_LANG = '@@@@LANG@@@@' - -module FileUtils16 - def FileUtils16.mkdir_p(dir, *options) - begin - FileUtils.mkdir_p(dir, *options) - rescue TypeError - optionhash = {} - options.each { |o| optionhash[o] = true } - FileUtils.mkdir_p(dir, optionhash) - end - end - def FileUtils16.cp(src, dest, *options) - begin - FileUtils.cp(src, dest, *options) - rescue TypeError - optionhash = {} - options.each { |o| optionhash[o] = true } - FileUtils.cp(src, dest, optionhash) - end - end - def FileUtils16.cp_r(src, dest, *options) - begin - FileUtils.cp_r(src, dest, *options) - rescue TypeError - optionhash = {} - options.each { |o| optionhash[o] = true } - FileUtils.cp_r(src, dest, optionhash) - end - end - def FileUtils16.rm(list, *options) - begin - FileUtils.rm(list, *options) - rescue TypeError - optionhash = {} - options.each { |o| optionhash[o] = true } - FileUtils.rm(list, optionhash) - end - end - def FileUtils16.ln_s(list, destdir, *options) - begin - FileUtils.ln_s(list, destdir, *options) - rescue TypeError - optionhash = {} - options.each { |o| optionhash[o] = true } - FileUtils.ln_s(list, destdir, optionhash) - end - end - def FileUtils16.chmod(mode, list, *options) - begin - FileUtils.chmod(mode, list, *options) - rescue TypeError - optionhash = {} - options.each { |o| optionhash[o] = true } - FileUtils.chmod(mode, list, optionhash) - end - end -end - -def usage - STDERR.print "Usage: #{File.basename($0)} [options]\n" - STDERR.print "Options:\n" - STDERR.print " --help Display this information\n" - STDERR.print " --user=<username> Specify user's login name\n" - STDERR.print " --diarydir=<diarydir> Specify tDiary data directory default: diary\n" - STDERR.print " --httpdir=<httpdir> Specify apache UserDirectory default: public_html\n" - STDERR.print " --name=<author_name> Specify author name\n" - STDERR.print " --mail=<author_mail> Specify author mail address\n" - STDERR.print " --tdiarymaster=<dir> Specify tDiary master directory default: @@@@PREFIX@@@@/share/examples/tdiary\n" - STDERR.print " --lang=<language> Specify your language ('en' or 'ja') default: @@@@LANG@@@@\n" - STDERR.print " --suexec Use suExec for CGI execution\n" - STDERR.print " --symlink Use symbolic link for tDiary master files\n" - STDERR.print " --quiet Do not display any information\n" - STDERR.print " --noop Do not install any file. Use this option with --verbose\n" - STDERR.print " --verbose Verbose; display verbose debugging messages.\n" - exit 1 -end - -# 引数の解析 -parser = GetoptLong.new -parser.set_options( - ['--user', '-u', GetoptLong::REQUIRED_ARGUMENT], - ['--diarydir','-d', GetoptLong::REQUIRED_ARGUMENT], - ['--httpdir' ,'-h', GetoptLong::REQUIRED_ARGUMENT], - ['--name', '-n', GetoptLong::REQUIRED_ARGUMENT], - ['--mail', '-m', GetoptLong::REQUIRED_ARGUMENT], - ['--tdiarymaster' , GetoptLong::REQUIRED_ARGUMENT], - ['--lang' , GetoptLong::REQUIRED_ARGUMENT], - ['--suexec' , GetoptLong::NO_ARGUMENT], - ['--symlink', '-l', GetoptLong::NO_ARGUMENT], - ['--quiet', '-q', GetoptLong::NO_ARGUMENT], - ['--noop' , GetoptLong::NO_ARGUMENT], - ['--verbose' , GetoptLong::NO_ARGUMENT], - ['--help' , GetoptLong::NO_ARGUMENT]) -begin - parser.each_option do |name, arg| - eval "$OPT_#{name.sub(/^--/, '').gsub(/-/, '_').upcase} = '#{arg}'" - end -rescue - raise "getoptlong" -end -usage() if defined?($OPT_HELP) - -class TdiaryInstall - attr_accessor :tdiarymaster - attr_accessor :tdconfig - attr_accessor :lang - attr_reader :euid # tdiaryinstallを実行しているユーザID - attr_accessor :username - attr_accessor :diarydir - attr_accessor :httpdir - attr_reader :passwd - attr_accessor :fileutilOptions - attr_accessor :author_name - attr_accessor :author_mail - attr_reader :author_host #FK - def initialize # 初期値の設定 - @passwd = Etc.getpwuid() # 初期値はログインユーザ - @euid = @passwd.uid - @username =(@passwd.name) # username=(value) メソッドで再定義している #FK - @diarydir = 'diary' - @httpdir = 'public_html' - @fileutilOptions = [] - @author_name = @passwd.gecos #FK - @author_host = "#{`hostname`.chomp}" #FK - @author_mail = "#{@username}@#{`hostname`.chomp}" #FK - end - - def username=(value) # username を代入する際に passwdメンバ変数も更新する - @username = value - @passwd = Etc.getpwnam(@username) # getpwnam(3) により passwd 構造体を取得する - # ユーザ名が存在しなかった場合、Etc.getpwnam() は例外を発生する。 - @author_name = @passwd.gecos - @author_mail = "#{@username}@#{`hostname`.chomp}" - end - - def lang=(value) - case value - when 'tdiary.conf-en' , 'en' - @lang = 'en' - @tdconfig = 'tdiary.conf-en' - when 'tdiary.conf-ja' , 'ja' - @lang = 'ja' - @tdconfig = 'tdiary.conf-ja' - else - raise "Unknown Language : #{value}" - end - end - - def installAll - raise "You can not use tDiary for superuser." if @passwd.uid == 0 - - echo "************************************************************\n" - echo "Starting tDiary for FreeBSD user directory installation ...\n" - prepareDirs() - - echo "Copy tDiary ...\n" - if $OPT_SYMLINK then - linkBaseFile() - else - copyBaseFile() - end - - installConfig() - setPermissions() if ! defined?($OPT_NOOP) - - echo "***\n" - echo "You have to execute the following commands:\n" - echo " % /usr/local/sbin/htpasswd -c #{@passwd.dir}/.htpasswd #{@username}\n\n" - echo "Please read #{@tdiarymaster}/README\n" - echo " for additional information.\n" - echo "************************************************************\n" - end - - def prepareDirs - # インストール先ディレクトリの用意 - if ! FileTest.exist?("#{@passwd.dir}/#{@diarydir}") - FileUtils16.mkdir_p("#{@passwd.dir}/#{@diarydir}", *@fileutilOptions) - end - if ! FileTest.exist?("#{@passwd.dir}/#{@httpdir}/#{@diarydir}") - FileUtils16.mkdir_p("#{@passwd.dir}/#{@httpdir}/#{@diarydir}", *@fileutilOptions) - end - end - - def linkBaseFile # tDiaryの配布ファイルはコピーしない - FileUtils16.cp_r("#{@tdiarymaster}/plugin", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", :preserve, *@fileutilOptions) - FileUtils16.ln_s("#{@tdiarymaster}/theme", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", *@fileutilOptions) - FileUtils16.ln_s("#{@tdiarymaster}/doc", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", *@fileutilOptions) - tempfile = Tempfile.new("index.rb") - tempfile.write "#!/usr/local/bin/ruby\nrequire '#{@tdiarymaster}/index'\n" - tempfile.close - FileUtils16.cp(tempfile.path, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/index.rb", *@fileutilOptions) - FileUtils16.chmod(0755, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/index.rb", *@fileutilOptions) - tempfile = Tempfile.new("update.rb") - tempfile.write "#!/usr/local/bin/ruby\nrequire '#{@tdiarymaster}/update'\n" - tempfile.close - FileUtils16.cp(tempfile.path, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/update.rb", *@fileutilOptions) - FileUtils16.chmod(0755, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/update.rb", *@fileutilOptions) - end - - def copyBaseFile # tDiaryの配布ファイルをすべてコピー - FileUtils16.cp_r("#{@tdiarymaster}/", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", :preserve, *@fileutilOptions) - end - - def installConfig - # 設定ファイルを生成してインストール - tempfile = Tempfile.new("tdiary.conf-ja") # 日本語環境サンプル - tempfile.write tdiaryConfReplace("#{@tdiarymaster}/tdiary.conf.sample") - tempfile.close - FileUtils16.cp(tempfile.path, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/tdiary.conf-ja", *@fileutilOptions) - - tempfile = Tempfile.new("tdiary.conf-en") # sample configuration for English Environment - tempfile.write tdiaryConfReplace("#{@tdiarymaster}/misc/i18n/tdiary.conf.sample-en") - tempfile.close - FileUtils16.cp(tempfile.path, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/tdiary.conf-en", *@fileutilOptions) - - if ! FileTest.exist?("#{@passwd.dir}/#{@httpdir}/#{@diarydir}/tdiary.conf") # tdiary.conf がなければ設置 - FileUtils16.cp("#{@passwd.dir}/#{@httpdir}/#{@diarydir}/#{@tdconfig}", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/tdiary.conf", *@fileutilOptions) - end - # TODO: @langの値によって plugin/00lang.en.rb コピー/削除の制御もしたい - - tempfile = Tempfile.new("dot.htaccess") - tempfile.write dothtaccessReplace("#{@tdiarymaster}/dot.htaccess") - tempfile.close - FileUtils16.cp(tempfile.path, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/dot.htaccess", *@fileutilOptions) - if ! FileTest.exist?("#{@passwd.dir}/#{@httpdir}/#{@diarydir}/.htaccess") - FileUtils16.cp("#{@passwd.dir}/#{@httpdir}/#{@diarydir}/dot.htaccess", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/.htaccess", *@fileutilOptions) - end - end - - def setPermissions # ファイルコピー・生成以外の処理 - FileUtils16.chmod(0777, "#{@passwd.dir}/#{@diarydir}", *@fileutilOptions) if ! defined?($OPT_SUEXEC) - FileUtils16.chmod(0777, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", *@fileutilOptions) if ! defined?($OPT_SUEXEC) - FileUtils16.rm("#{@passwd.dir}/#{@httpdir}/#{@diarydir}/tdiary-FreeBSD.sh", :force, *@fileutilOptions) - - if @euid == 0 then # superuser 権限でこのインストーラを実行している場合 - # すべてのディレクトリ・ファイルに chown で所有者変更 - Find.find("#{@passwd.dir}/#{@diarydir}", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}") do |f| - File.chown(@passwd.uid, @passwd.gid, f) - end - if File::Stat.new("#{@passwd.dir}/#{@httpdir}").uid == 0 # ~/public_html のオーナーがsuperuser - File.chown(@passwd.uid, @passwd.gid, "#{@passwd.dir}/#{@httpdir}") - end - end - end - - def echo(s) # --quiet が指定されていなかった場合にメッセージを出力する - STDOUT.print s if ! defined?($OPT_QUIET) - end - - def tdiaryConfReplace(filename) # サンプル tdiary.conf を書き換えるメソッド - s = '' - File.open(filename) { |fp| - fp.each { |line| - line = "@data_path = '#{@passwd.dir}/#{@diarydir}'\n" if line =~ /^\@data_path\s/ - line = "@author_name = '#{@author_name}'\n" if line =~ /^\@author_name\s/ - line = "@author_mail = '#{@author_mail}'\n" if line =~ /^\@author_mail\s/ - line = "@html_title = '#{@author_name} diary'\n" if line =~ /^\@html_title\s/ - line = "@index_page = 'http://#{@author_host}/~#{@username}\/'" if line =~ /^\@index_page\s/ #FK - s += line - } - } - s - end - - def dothtaccessReplace(filename) # サンプル dot.htaccess を書き換えるメソッド - s = '' - File.open(filename) { |fp| - fp.each { |line| - line = "\tAuthUserFile #{@passwd.dir}/.htpasswd\n" if line =~ /^\s*AuthUserFile\s/ - line = "\tRequire user #{@username}\n" if line =~ /^\s*Require user\s/ - line = "Options +FollowSymLinks\n" if line =~ /^\#Options \+FollowSymLinks/ && $OPT_SYMLINK - s += line - } - } - s - end -end - -tdiaryinst = TdiaryInstall.new -tdiaryinst.tdiarymaster = $OPT_TDIARYMASTER -tdiaryinst.lang = $OPT_LANG -tdiaryinst.username = $OPT_USER if defined?($OPT_USER) # $OPT_NAMEの設定より前でないといけない -tdiaryinst.diarydir = $OPT_DIARYDIR if defined?($OPT_DIARYDIR) -tdiaryinst.httpdir = $OPT_HTTPDIR if defined?($OPT_HTTPDIR) -tdiaryinst.author_name = $OPT_NAME if defined?($OPT_NAME) -tdiaryinst.author_mail = $OPT_MAIL if defined?($OPT_MAIL) -tdiaryinst.fileutilOptions.push(:noop) if defined?($OPT_NOOP) -tdiaryinst.fileutilOptions.push(:verbose) if defined?($OPT_VERBOSE) - -tdiaryinst.installAll - -exit 0 diff --git a/www/tdiary-devel/pkg-descr b/www/tdiary-devel/pkg-descr deleted file mode 100644 index cdcc8f8482cd..000000000000 --- a/www/tdiary-devel/pkg-descr +++ /dev/null @@ -1,10 +0,0 @@ -tDiary is a Web-based interface system that works as a personal diary. -It is possible for diary readers to add comments to your diary. - - - require Ruby 1.6.3 or later - - currently supported: Japanese, English - - tDiary is developed on http://sourceforge.net/projects/tdiary/ . - See URL for more information. - -WWW: http://www.tdiary.org/ diff --git a/www/tdiary-devel/pkg-message b/www/tdiary-devel/pkg-message deleted file mode 100644 index 237ee08b2814..000000000000 --- a/www/tdiary-devel/pkg-message +++ /dev/null @@ -1,26 +0,0 @@ - -============================================================================= -There is a script to install tDiary in a user directory. -This script should be run manually. - -[Ruby 1.6.x] - - # ruby %%EXAMPLESDIR%%/tdiaryinst.rb --user=User - or - % ruby %%EXAMPLESDIR%%/tdiaryinst.rb - -[Ruby 1.8.x] - - # %%EXAMPLESDIR%%/tdiary-FreeBSD.sh User - or - % %%EXAMPLESDIR%%/tdiary-FreeBSD.sh install - ---- -There is a document by English in the following directories. - See ... - %%EXAMPLESDIR%%/misc/i18n/ - and - Explanation by English of a tDiary system can refer to the following page : - - http://tdiary-users.sourceforge.jp/cgi-bin/wiki.cgi?FrontPage_en -============================================================================= diff --git a/www/tdiary-devel/pkg-plist b/www/tdiary-devel/pkg-plist deleted file mode 100644 index a38ec0becb1b..000000000000 --- a/www/tdiary-devel/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -%%EXAMPLESDIR%%/tdiaryinst.rb -%%EXAMPLESDIR%%/tdiary-FreeBSD.sh |