initial commit of file from CVS for smeserver-egroupware on Sat Sep 7 20:22:36 AEST 2024
This commit is contained in:
1
root/etc/e-smith/db/accounts/defaults/egroupware/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/egroupware/type
Normal file
@@ -0,0 +1 @@
|
||||
reserved
|
@@ -0,0 +1 @@
|
||||
egroupware
|
@@ -0,0 +1 @@
|
||||
egwuser
|
@@ -0,0 +1 @@
|
||||
on
|
@@ -0,0 +1 @@
|
||||
eGroupWare
|
@@ -0,0 +1 @@
|
||||
global
|
@@ -0,0 +1 @@
|
||||
url
|
35
root/etc/e-smith/db/configuration/migrate/85egroupware
Normal file
35
root/etc/e-smith/db/configuration/migrate/85egroupware
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
my $rec = $DB->get('egroupware')
|
||||
|| $DB->new_record('egroupware', {type => 'service'});
|
||||
|
||||
my $pw = $rec->prop('DbPassword');
|
||||
|
||||
return "" if $pw;
|
||||
if (not $pw or length($pw) < 25)
|
||||
{
|
||||
use MIME::Base64 qw(encode_base64);
|
||||
|
||||
$pw = "not set due to error";
|
||||
|
||||
if ( open( RANDOM, "/dev/urandom" ) )
|
||||
{
|
||||
my $buf;
|
||||
if ( read( RANDOM, $buf, 25 ) != 25 )
|
||||
{
|
||||
warn("Short read from /dev/random: $!");
|
||||
}
|
||||
else
|
||||
{
|
||||
$pw = encode_base64($buf);
|
||||
chomp $pw;
|
||||
}
|
||||
close RANDOM;
|
||||
}
|
||||
else
|
||||
{
|
||||
warn "Could not open /dev/urandom: $!";
|
||||
}
|
||||
|
||||
$rec->set_prop('DbPassword', $pw);
|
||||
}
|
||||
}
|
0
root/etc/e-smith/events/.gitignore
vendored
Normal file
0
root/etc/e-smith/events/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
PERMS=0540
|
@@ -0,0 +1 @@
|
||||
PERMS=0540
|
@@ -0,0 +1 @@
|
||||
PERMS=0540
|
@@ -0,0 +1,34 @@
|
||||
# eGroupWare MySQL init template
|
||||
#
|
||||
# This files creates/updates eGroupWare's MySQL database
|
||||
|
||||
|
||||
USE mysql;
|
||||
|
||||
CREATE DATABASE IF NOT EXISTS { $egroupware{DbName} };
|
||||
|
||||
REPLACE INTO user (
|
||||
host,
|
||||
user,
|
||||
password)
|
||||
VALUES (
|
||||
'localhost',
|
||||
'{ $egroupware{DbUser} }',
|
||||
PASSWORD ('{ $egroupware{DbPassword} }'));
|
||||
|
||||
REPLACE INTO db (
|
||||
host,
|
||||
db,
|
||||
user,
|
||||
select_priv, insert_priv, update_priv, delete_priv,
|
||||
create_priv, alter_priv, index_priv, drop_priv, create_tmp_table_priv,
|
||||
grant_priv, lock_tables_priv, references_priv)
|
||||
VALUES (
|
||||
'localhost',
|
||||
'{ $egroupware{DbName} }',
|
||||
'{ $egroupware{DbUser} }',
|
||||
'Y', 'Y', 'Y', 'Y',
|
||||
'Y', 'Y', 'Y', 'Y', 'Y',
|
||||
'N', 'Y', 'Y');
|
||||
|
||||
FLUSH PRIVILEGES;
|
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/bin/mysql { $egroupware{DbName} } </usr/share/doc/eGroupWare-1.8.005/Sources/egroupware-1.8.005.sql
|
@@ -0,0 +1,17 @@
|
||||
# eGroupWare MySQL init template
|
||||
#
|
||||
# This files updates eGroupWare's domain name
|
||||
|
||||
|
||||
USE mysql;
|
||||
|
||||
USE { $egroupware{DbName} };
|
||||
|
||||
REPLACE INTO `egw_config` (`config_app`, `config_name`, `config_value`)
|
||||
VALUES ('phpgwapi', 'hostname', '{$SystemName }.{ $DomainName }');
|
||||
|
||||
REPLACE INTO `egw_config` (`config_app`, `config_name`, `config_value`)
|
||||
VALUES ('phpgwapi', 'mail_suffix', '{ $DomainName }' );
|
||||
|
||||
REPLACE INTO `egw_emailadmin` (`ea_profile_id`, `ea_smtp_server`, `ea_smtp_type`, `ea_smtp_port`, `ea_smtp_auth`, `ea_editforwardingaddress`, `ea_smtp_ldap_server`, `ea_smtp_ldap_basedn`, `ea_smtp_ldap_admindn`, `ea_smtp_ldap_adminpw`, `ea_smtp_ldap_use_default`, `ea_imap_server`, `ea_imap_type`, `ea_imap_port`, `ea_imap_login_type`, `ea_imap_tsl_auth`, `ea_imap_tsl_encryption`, `ea_imap_enable_cyrus`, `ea_imap_admin_user`, `ea_imap_admin_pw`, `ea_imap_enable_sieve`, `ea_imap_sieve_server`, `ea_imap_sieve_port`, `ea_description`, `ea_default_domain`, `ea_organisation_name`, `ea_user_defined_accounts`, `ea_order`, `ea_appname`, `ea_group`, `ea_smtp_auth_username`, `ea_smtp_auth_password`)
|
||||
VALUES (1, 'localhost', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'localhost', 2, 143, 'standard', NULL, '0', NULL, NULL, NULL, NULL, NULL, NULL, 'default profile (created by setup)', '{ $DomainName }', NULL, NULL, NULL, '', '0', '', '');
|
@@ -0,0 +1,107 @@
|
||||
|
||||
#--------------------------------------------------------------
|
||||
# eGroupWare
|
||||
#--------------------------------------------------------------
|
||||
Alias /egroupware /usr/share/egroupware
|
||||
|
||||
RedirectMatch ^/.well-known/(caldav|carddav)$ /egroupware/groupdav.php/
|
||||
# iOS 4.3+ calendar requires that to autodetect accounts
|
||||
RedirectMatch ^(/principals/users/.*)$ /egroupware/groupdav.php$1
|
||||
|
||||
|
||||
<Directory /usr/share/egroupware/>
|
||||
{
|
||||
my $egwsec = $egroupware{'HTTPS'} || "off";
|
||||
if ($egwsec eq "off")
|
||||
{
|
||||
$OUT .= " # SSLRequireSSL on";
|
||||
} else {
|
||||
$OUT .= " SSLRequireSSL on";
|
||||
}
|
||||
}
|
||||
AddType application/x-httpd-php .php .php3 .phtml
|
||||
AddType text/xml .xml
|
||||
Options FollowSymLinks ExecCGI
|
||||
AllowOverride None
|
||||
{
|
||||
my $egw = $egroupware{'PublicAccess'} || "local";
|
||||
if ($egw eq "local")
|
||||
{
|
||||
$OUT .= " Require ip $localAccess";
|
||||
} else {
|
||||
$OUT .= " Require all granted";
|
||||
}
|
||||
}
|
||||
DirectoryIndex index.html index.php
|
||||
AddHandler cgi-script .cgi
|
||||
AddDefaultCharset Off
|
||||
php_flag file_uploads on
|
||||
php_flag log_errors on
|
||||
php_flag magic_quotes_gpc off
|
||||
php_flag magic_quotes_runtime off
|
||||
php_flag register_globals off
|
||||
php_flag short_open_tag on
|
||||
php_flag track_vars on
|
||||
php_flag display_errors off
|
||||
# E_ALL & ~E_NOTICE & ~E_STRICT = 8191 - 8 - 2048 = 6135
|
||||
# php_value error_reporting 6135
|
||||
php_value error_reporting 'E_ALL & ~E_NOTICE'
|
||||
php_value max_execution_time 90
|
||||
php_value mbstring.func_overload 7
|
||||
php_value memory_limit 128M
|
||||
php_value session.gc_maxlifetime 14400
|
||||
php_value session.save_path /usr/share/egroupware_sess
|
||||
php_value include_path .:/usr/share/pear
|
||||
php_value open_basedir /usr/share/egroupware:/var/lib/egroupware:/usr/share/pear:/usr/bin/zip:/usr/share/jpgraph:/usr/bin/tnef:/usr/bin/aspell:/usr/share/fonts:/usr/share/egroupware_sess:/usr/share/egroupware_tmp
|
||||
php_admin_value upload_tmp_dir /usr/share/egroupware_tmp
|
||||
php_value upload_max_filesize 65M
|
||||
php_value max_input_vars 3000
|
||||
<Files ~ "\.inc\.php$">
|
||||
Require all denied
|
||||
</Files>
|
||||
</Directory>
|
||||
|
||||
<Directory /usr/share/egroupware/phpsysinfo/>
|
||||
php_value open_basedir /
|
||||
</Directory>
|
||||
|
||||
<Directory /usr/share/egroupware/gallery/>
|
||||
php_admin_value upload_tmp_dir /usr/share/egroupware_tmp
|
||||
php_admin_value open_basedir /usr/share/egroupware:/var/lib/egroupware:/tmp:/usr/share/pear:/usr/bin:/bin:/usr/share/egroupware_tmp
|
||||
</Directory>
|
||||
|
||||
|
||||
<Location /egroupware/icalsrv.php>
|
||||
Script PUT /opt/egroupware/html/icalsrv.php
|
||||
AddHandler ical/ics .ics
|
||||
Action ical/ics /opt/egroupware/html/icalsrv.php
|
||||
{
|
||||
my $egw = $egroupware{'PublicAccess'} || "local";
|
||||
if ($egw eq "local")
|
||||
{
|
||||
$OUT .= " Require ip $localAccess";
|
||||
} else {
|
||||
$OUT .= " Require all granted";
|
||||
}
|
||||
}
|
||||
</Location>
|
||||
|
||||
<Location /egroupware/rpc.php>
|
||||
php_value mbstring.func_overload 0
|
||||
{
|
||||
my $egw = $egroupware{'PublicAccess'} || "local";
|
||||
if ($egw eq "local")
|
||||
{
|
||||
$OUT .= " Require ip $localAccess";
|
||||
} else {
|
||||
$OUT .= " Require all granted";
|
||||
}
|
||||
}
|
||||
</Location>
|
||||
|
||||
<Location /egroupware>
|
||||
php_admin_value mbstring.func_overload 7
|
||||
php_value display_errors Off
|
||||
</Location>
|
||||
|
||||
#--------------------------------------------------------------
|
@@ -0,0 +1,12 @@
|
||||
{
|
||||
if ($port eq "80")
|
||||
{
|
||||
my $egwsec = $egroupware{'HTTPS'} || "off";
|
||||
if ($egwsec eq "off")
|
||||
{ $OUT = ' #'; }
|
||||
else
|
||||
{ $OUT = ' RewriteRule ^/egroupware(/.*|$) https://%{HTTP_HOST}/egroupware$1 [L,R]'; }
|
||||
}
|
||||
else
|
||||
{ $OUT = ' #'; }
|
||||
}
|
Reference in New Issue
Block a user