Skip to content

Commit

Permalink
Item10132: update to Foswiki 1.1.3 final release
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FoswikiOnLinuxSharedHostCommandShell@11516 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Apr 20, 2011
1 parent b34f5ed commit 72d3932
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
@@ -1,5 +1,11 @@
CHANGELOG

2011-04-20 1.1.3
* Updated to Foswiki 1.1.3

2011-04-12 1.1.3-RC1
* Updated to Foswiki 1.1.3-RC1

2010-11-20 1.1.2-1
* Updated to Foswiki 1.1.2

Expand Down
9 changes: 8 additions & 1 deletion Makefile
@@ -1,7 +1,7 @@

INSTALLER_SCRIPT_REV = 1

FOSWIKI_RELEASE = 1.1.2
FOSWIKI_RELEASE = 1.1.3

FOSWIKI_BASE_FILENAME = Foswiki-$(FOSWIKI_RELEASE)
INSTALLER_SCRIPT_FILENAME = $(FOSWIKI_BASE_FILENAME)-SharedHosting-$(INSTALLER_SCRIPT_REV).tgz
Expand Down Expand Up @@ -54,3 +54,10 @@ clean :

realclean : clean
-rm $(FOSWIKI_BASE_FILENAME).tgz FastCGIEngineContrib.tgz 2>/dev/null

print :
@echo RELEASE_FILES = $(RELEASE_FILES)
@echo INSTALLER_SCRIPT_REV = $(INSTALLER_SCRIPT_REV)
@echo FOSWIKI_RELEASE = $(FOSWIKI_RELEASE)
@echo FOSWIKI_BASE_FILENAME = $(FOSWIKI_BASE_FILENAME)
@echo INSTALLER_SCRIPT_FILENAME = $(INSTALLER_SCRIPT_FILENAME)
21 changes: 7 additions & 14 deletions foswiki-install-shared-hosting-preamble.pl
@@ -1,6 +1,6 @@
#! /usr/bin/perl -w
# Copyright (c) 2010, Will Norris. Licensed under the GPLv2.
# Version 1.1.2-1 - 19 Oct 2010
# Version 1.1.3 - 20 Apr 2011
use strict;
use warnings;
use Data::Dumper qw( Dumper );
Expand Down Expand Up @@ -34,7 +34,7 @@
# welcome banner
unless ( $opts->{hostname} and $opts->{email} ) {
print <<__WELCOME__;
This script will install Foswiki v1.1.2 to "$pwd"
This script will install Foswiki v1.1.3 to "$pwd"
The following information will be needed:
1. domain name
2. wiki webmaster email address
Expand Down Expand Up @@ -171,6 +171,7 @@
system( cp => "$foswiki_root/root-htaccess.txt" => "$foswiki_root/.htaccess" );
system( chmod => 'u+w' => "$foswiki_root/.htaccess" );
open( FH, '>>', "$foswiki_root/.htaccess" ) or die $!;
print FH "Options -Indexes", "\n";
print FH "Redirect $foswiki_url/index.html http://$DefaultUrlHost$foswiki_url/bin/view", "\n";
close( FH );
system( chmod => 'u-w' => "$foswiki_root/.htaccess" );
Expand Down Expand Up @@ -223,16 +224,8 @@
</ifmodule>
__FASTCGI__

my $compress = <<'__DEFLATE__';
<ifmodule mod_deflate.c>
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html application/xhtml+xml application/xml text/plain text/xml
</ifmodule>
__DEFLATE__

open( FH, '>>', "$foswiki_root/bin/.htaccess" ) or die $!;
print FH $fastcgi;
print FH $compress;
close( FH );
}

Expand All @@ -251,8 +244,9 @@
</filesmatch>
</ifmodule>
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript
AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript text/html application/xhtml+xml application/xml text/plain text/xml
</ifmodule>
FileETag MTime Size
__MOD_DEFLATE__

system( chmod => 'u+w' => "$foswiki_root/pub/.htaccess" );
Expand Down Expand Up @@ -373,8 +367,7 @@ sub generate_password {
sub _encode_password {
my $pass = shift;
my @saltchars = ( 'a' .. 'z', 'A' .. 'Z', '0' .. '9', '.', '/' );
# SMELL: why not simple length instead of $# + 1 ?
my $salt = $saltchars[ int( rand( $#saltchars + 1 ) ) ] . $saltchars[ int( rand( $#saltchars + 1 ) ) ];
my $salt = $saltchars[ int( rand( scalar @saltchars ) ) ] . $saltchars[ int( rand( scalar @saltchars ) ) ];
return crypt( $pass, $salt );
}

Expand All @@ -395,12 +388,12 @@ sub DEBUG {
# * support ShortURLs
# * perform the initial configure save via this script (STUCK)
# * use Apache::Htpasswd (which also means i don't have to look for htpasswd or htpasswd2)
# * use WWW::Mechanize::Foswiki to drive configure
# * provide CPAN installation support
# * add "Cache-Control: private" and "KeepAlive on" (http://www.die.net/musings/page_load_time/) to pub/.htaccess ?
# * ability to disable mod_deflate support on pub (better to serve the raw file instead of trying to compress it on an overloaded shared host?)
# * test and support (better) https
# * trivial browser frontend for ftp installation
# * use WWW::Mechanize::Foswiki to drive configure (?)
################################################################################
# NOTES:
# * http://cgipan.cvs.sourceforge.net/cgipan/cgipan/cgipan.cgi?view=markup
Expand Down

0 comments on commit 72d3932

Please sign in to comment.