diff options
author | pav <pav@FreeBSD.org> | 2005-09-16 04:42:56 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-09-16 04:42:56 +0800 |
commit | c4b1d207eec0a03ef1af34abade02b50822511ee (patch) | |
tree | 0dd08840caa83fbf369d8b44e643d054830dba15 /www/tdiary | |
parent | 14b85f5efd15cd63936af7ba04fd98d63d710f68 (diff) | |
download | freebsd-ports-gnome-c4b1d207eec0a03ef1af34abade02b50822511ee.tar.gz freebsd-ports-gnome-c4b1d207eec0a03ef1af34abade02b50822511ee.tar.zst freebsd-ports-gnome-c4b1d207eec0a03ef1af34abade02b50822511ee.zip |
- Fix a bug in the installer
PR: ports/84866
Submitted by: Fumihiko Kimura <jfkimura@yahoo.co.jp> (maintainer)
Diffstat (limited to 'www/tdiary')
-rw-r--r-- | www/tdiary/Makefile | 1 | ||||
-rw-r--r-- | www/tdiary/files/tdiaryinst.rb.in | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/www/tdiary/Makefile b/www/tdiary/Makefile index aa019cbd6f0a..1742146c2dbf 100644 --- a/www/tdiary/Makefile +++ b/www/tdiary/Makefile @@ -7,6 +7,7 @@ PORTNAME= tdiary PORTVERSION= 2.0.2 +PORTREVISION= 1 CATEGORIES?= www ruby MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.tdiary.org/download/ diff --git a/www/tdiary/files/tdiaryinst.rb.in b/www/tdiary/files/tdiaryinst.rb.in index 2be03b38607f..8e304084b85d 100644 --- a/www/tdiary/files/tdiaryinst.rb.in +++ b/www/tdiary/files/tdiaryinst.rb.in @@ -230,6 +230,9 @@ class TdiaryInstall FileUtils16.chmod(0755, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/update.rb", *@fileutilOptions) FileUtils16.cp("#{@tdiarymaster}/tdiary.rb", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", *@fileutilOptions) FileUtils16.cp("#{@tdiarymaster}/README", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", *@fileutilOptions) + if @lang == 'ja' then + FileUtils16.ln_s("#{@passwd.dir}/#{@httpdir}/#{@diarydir}/misc/plugin/jdate.rb", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/plugin/000jdate.rb", *@fileutilOptions) + end end def installConfig @@ -261,6 +264,11 @@ class TdiaryInstall FileUtils16.chmod(0777, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", *@fileutilOptions) if ! defined?($OPT_SUEXEC) FileUtils16.rm("#{@passwd.dir}/#{@httpdir}/#{@diarydir}/tdiary-FreeBSD.sh", :force, *@fileutilOptions) + FileUtils16.chmod(0701, "#{@passwd.dir}/#{@diarydir}", *@fileutilOptions) if defined?($OPT_SUEXEC) + FileUtils16.chmod(0701, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}", *@fileutilOptions) if defined?($OPT_SUEXEC) + FileUtils16.chmod(0700, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/index.rb", *@fileutilOptions) if defined?($OPT_SUEXEC) + FileUtils16.chmod(0700, "#{@passwd.dir}/#{@httpdir}/#{@diarydir}/update.rb", *@fileutilOptions) if defined?($OPT_SUEXEC) + if @euid == 0 then Find.find("#{@passwd.dir}/#{@diarydir}", "#{@passwd.dir}/#{@httpdir}/#{@diarydir}") do |f| File.chown(@passwd.uid, @passwd.gid, f) |