Commit 0702f6d2 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Debian packaging changes

parent cb026862
<VirtualHost *>
ServerName __SERVERNAME__
ServerName __SERVERNAME__
DocumentRoot /var/www/mahara
DocumentRoot /var/www/mahara
CustomLog __APACHELOGDIR__/mahara.access.log full
ErrorLog __APACHELOGDIR__/mahara.error.log
CustomLog __APACHELOGDIR__/mahara.access.log full
ErrorLog __APACHELOGDIR__/mahara.error.log
<Directory /var/www/mahara>
AllowOverride All
</Directory>
<Directory /var/www/mahara>
AllowOverride All
</Directory>
<Location /lib>
Deny from all
</Location>
<Location /lib>
Deny from all
</Location>
<Location /js>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 hour"
</IfModule>
</Location>
<Location /theme/default/static/style>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 hour"
</IfModule>
</Location>
</VirtualHost>
mahara (0.2-2) unstable; urgency=low
* Added servername to the config file
* Added simple mod_expires directives for the default theme and js
-- Martyn Smith <martyn@flange.wgtn.cat-it.co.nz> Fri, 12 Jan 2007 09:22:16 +1300
mahara (0.2-1) unstable; urgency=low
* Initial Debian packaging
......
......@@ -23,5 +23,5 @@ function restart_apache2 {
}
function set_config {
perl -i -e '$field=shift;$value=shift if (scalar(@ARGV)>1);$value||="";while (<>) { s/(\$cfg->$field.*=\s*).*/$1'\''$value'\'';/; print; }' $1 $2 /var/www/mahara/config.php
perl -i -e '$field=shift;$value=shift if (scalar(@ARGV)>1);$value||="";while (<>) { s/(?:\s*\/\/\s*)?(\$cfg->$field.*=\s*).*/$1'\''$value'\'';/; print; }' $1 $2 /var/www/mahara/config.php
}
......@@ -7,7 +7,7 @@ Standards-Version: 3.7.2
Package: mahara-apache
Architecture: any
Depends: ${misc:Depends}, apache, libapache-mod-php5, php5-json, php5-pgsql, php5-cli, php5-gd, file, cron
Depends: ${misc:Depends}, apache, libapache-mod-php5, php5-json | libapache-mod-php5 (>= 5.2), php5-pgsql, php5-cli, php5-gd, file, cron
Conflicts: mahara-apache2
Recommends: postgresql-8.1
Pre-Depends: m4, perl, postgresql-client-8.1
......@@ -40,7 +40,7 @@ Description: Mahara is an electronic portfolio, weblog, and resume builder
Package: mahara-apache2
Architecture: any
Depends: ${misc:Depends}, apache2, libapache2-mod-php5, php5-json, php5-pgsql, php5-cli, php5-gd, file, cron
Depends: ${misc:Depends}, apache, libapache2-mod-php5, php5-json | libapache2-mod-php5 (>= 5.2), php5-pgsql, php5-cli, php5-gd, file, cron
Conflicts: mahara-apache
Recommends: postgresql-8.1
Pre-Depends: m4, perl, postgresql-client-8.1
......
......@@ -36,6 +36,8 @@ case "$1" in
set_config dbname "${RET}"
db_get mahara/db_user
set_config dbuser "${RET}"
db_get mahara/servername
set_config wwwroot "http://${RET}/"
# Set Dataroot
chown -R www-data:www-data /var/lib/mahara
......
......@@ -36,6 +36,8 @@ case "$1" in
set_config dbname "${RET}"
db_get mahara/db_user
set_config dbuser "${RET}"
db_get mahara/servername
set_config wwwroot "http://${RET}/"
# Set Dataroot
chown -R www-data:www-data /var/lib/mahara
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment