Commit bd563f2e authored by Carsten Schoenert's avatar Carsten Schoenert

New upstream version 3.1.0

parent aafea493

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

# Vim files
# Ignore config.php, debug.php and debug.txt
# Ant deploy directory
# files generated by Ant
# PHP storm IDE folder
# sass cache directory
# translation files (you can copy them to your dev environment if you want to test)
# Eclipse files
# Closed tests
# some apache settings
Options -Indexes
# register globals must be off
php_flag register_globals off
# magic quotes must be off
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
# The maximum POST limit. To upload large files, this value must be larger than upload_max_filesize.
php_value post_max_size 31M
php_value upload_max_filesize 30M
# For debugging only
# make sure apache/php can write this file, or else no errors are logged!
php_flag log_errors on
php_value error_log errors.txt
# Deny access to config.php, config.php.dist, debug.php, debug.php.dist, defaults.php
# because they could become a security vulnerability when accessible
# Better safe then sorry
<IfVersion < 2.4>
<FilesMatch "^(config|debug|defaults|init)\.php">
Deny from all
<FilesMatch "^(config|debug|defaults|init)\.php">
<IfVersion < 2.4>
Deny from all
<IfVersion >= 2.4>
<FilesMatch "^(config|debug|defaults|init)\.php">
Require all denied
<IfVersion >= 2.4>
Require all denied
// JSHint Default Configuration File (as on JSHint website)
// See for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
"eqeqeq" : false, // true: Require triple equals (===) for comparison
"forin" : false, // true: Require filtering loops with obj.hasOwnProperty()
"freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"latedef" : false, // true: Require variables/functions to be defined before being used
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"noempty" : true, // true: Prohibit use of empty blocks
"nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters.
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
"plusplus" : false, // true: Prohibit use of `++` and `--`
"quotmark" : false, // Quotation mark consistency:
// false : do nothing (default)
// true : ensure whatever is used is consistent
// "single" : require single quotes
// "double" : require double quotes
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused" : "vars", // Unused variables:
// true : all variables, last function parameter
// "vars" : all variables only
// "strict" : all variables, all function parameters
"strict" : false, // true: Requires all functions run in ES5 Strict Mode
"maxparams" : false, // {int} Max number of formal params allowed per function
"maxdepth" : 7, // {int} Max depth of nested blocks (within functions)
"maxstatements" : false, // {int} Max number statements per function
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
"maxlen" : false, // {int} Max number of characters per line
"varstmt" : false, // true: Disallow any var statements. Only `let` and `const` are allowed.
// Relaxing
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
"boss" : true, // true: Tolerate assignments where comparisons would be expected
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
"eqnull" : false, // true: Tolerate use of `== null`
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
"esnext" : false, // true: Allow (ES6) syntax (ex: `const`)
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
// (ex: `for each`, multiple try/catch, function expression…)
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs
"funcscope" : false, // true: Tolerate defining variables inside control statements
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
"iterator" : false, // true: Tolerate using the `__iterator__` property
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
"laxbreak" : true, // true: Tolerate possibly unsafe line breakings
"laxcomma" : false, // true: Tolerate comma-first style coding
"loopfunc" : true, // true: Tolerate functions being defined in loops
"multistr" : false, // true: Tolerate multi-line strings
"noyield" : false, // true: Tolerate generator functions with no yield statement in them.
"notypeof" : false, // true: Tolerate invalid typeof operator values
"proto" : false, // true: Tolerate using the `__proto__` property
"scripturl" : false, // true: Tolerate script-targeted URLs
"shadow" : true, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
"sub" : true, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
"validthis" : false, // true: Tolerate using this in a non-constructor function
// Environments
"browser" : true, // Web Browser (window, document, etc)
"browserify" : false, // Browserify (node.js code in the browser)
"couch" : false, // CouchDB
"devel" : true, // Development/debugging (alert, confirm, etc)
"dojo" : false, // Dojo Toolkit
"jasmine" : false, // Jasmine
"jquery" : false, // jQuery
"mocha" : true, // Mocha
"mootools" : false, // MooTools
"node" : false, // Node.js
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
"phantom" : false, // PhantomJS
"prototypejs" : false, // Prototype and Scriptaculous
"qunit" : false, // QUnit
"rhino" : false, // Rhino
"shelljs" : false, // ShellJS
"typed" : false, // Globals for typed array constructions
"worker" : false, // Web Workers
"wsh" : false, // Windows Scripting Host
"yui" : false, // Yahoo User Interface
// Custom Globals
"globals" : {}, // additional predefined global variables
"predef" : [ "Ext", "Zarafa", "container", "pgettext", "_", "XRegExp", "npgettext", "ngettext" ,"settings", "serverconfig", "user", "version", "languages", "onResize", "urlActionData"]
Zarafa is grateful for the valuable contributions to ZCP and/or related components by the following persons and companies:
Bitbone AG
Andreas Brodowski
Catworkx GmbH
Collax GmbH
Andreas Dembach
Julian Dohle
Jan Engelhardt
Mel Flynn
Michael Monnerie
Robert Scheck
Science + Computing AG
Radik Usupov
Please contact us if we have made an error or omission.
Copyright (C) 2005 - 2015 Zarafa B.V. <> and its licensors
Copyright (C) 2005 - 2016 Zarafa B.V. <> and its licensors
Copyright (C) 2016 Kopano and its licensors
This program is free software: you can redistribute it and/or modify it under the terms of the
GNU Affero General Public License as published by the Free Software Foundation, either version
SVN_REVISION?=$(shell svn info |grep Revision|awk '{print $$2}')
ant clean
rm -f *.spec *.tar.gz *.rpm *.deb *.changes antdeploy
.SUFFIXES: .spec.m4 .spec
ls -l $@
rm -rf zarafa-webapp*.tar.gz ${TARGET} antdeploy
antdeploy: buildclean build.xml
ant deploy
ant deploy-plugins
touch antdeploy
zarafa-webapp.tar.gz: antdeploy
rm -rf ${TARGET}
mkdir ${TARGET}
# add revision to version file
sed -i -e 's/\(.*\)$$/\1-${SVN_REVISION}/' deploy/version
mv deploy ${TARGET}
mv zarafa-webapp.spec ${TARGET} || true
cp -p AGPL-3 ${TARGET}
tar zcpf $@ ${TARGET}
rm -rf ${TARGET}
zarafa-webapp.rpm: zarafa-webapp.spec zarafa-webapp.tar.gz
rpmbuild --clean --nodeps -tb zarafa-webapp.tar.gz
mv -v `rpm -E %{_topdir}`/RPMS/noarch/*rpm .
rm -rf zarafa-webapp.tar.gz
zarafa-webapp.deb: zarafa-webapp.tar.gz
rm -rf ${TARGET}
tar zxpf zarafa-webapp.tar.gz
REQUIRED=$(REQUIRED) ./zarafa-webapp.debian ${TARGET}
rm -rf zarafa-webapp.tar.gz
zarafa-webapp-source.tar.gz: buildclean
mkdir ${TARGET}
svn export . ${TARGET}/source
cd ${TARGET}/source && rm -rf Makefile *.debian *.spec.m4 manual projspec tools client/design client/*xml test
find ${TARGET} -type f -name build.xml -exec rm -f {} \;
mv zarafa-webapp-source.spec ${TARGET} || true
cp -p AGPL-3 ${TARGET}
tar zcpf $@ ${TARGET}
rm -rf ${TARGET}
zarafa-webapp-source.rpm: zarafa-webapp-source.spec zarafa-webapp-source.tar.gz
rpmbuild --clean --nodeps -tb zarafa-webapp-source.tar.gz
mv -v `rpm -E %{_topdir}`/RPMS/noarch/*rpm .
rm -rf zarafa-webapp-source.tar.gz
zarafa-webapp-source.deb: zarafa-webapp-source.tar.gz
rm -rf ${TARGET}
tar zxpf zarafa-webapp-source.tar.gz
REQUIRED=$(REQUIRED) ./zarafa-webapp-source.debian ${TARGET}
rm -rf zarafa-webapp-source.tar.gz
SVN_REVISION=${SVN_REVISION} $(MAKE) zarafa-webapp.deb
SVN_REVISION=${SVN_REVISION} $(MAKE) zarafa-webapp-source.deb
SVN_REVISION=${SVN_REVISION} DISTRO=rhel $(MAKE) zarafa-webapp.rpm
SVN_REVISION=${SVN_REVISION} DISTRO=rhel $(MAKE) zarafa-webapp-source.rpm