initial import of Univention packaging
authorLars Kneschke <l.kneschke@metaways.de>
Fri, 6 Apr 2012 09:32:06 +0000 (11:32 +0200)
committerLars Kneschke <l.kneschke@metaways.de>
Fri, 6 Apr 2012 09:32:06 +0000 (11:32 +0200)
39 files changed:
scripts/packaging/Univention/70tine204ucs.inst [new file with mode: 0755]
scripts/packaging/Univention/conffiles/tine20-cfg.py [new file with mode: 0755]
scripts/packaging/Univention/conffiles/var/www/ucs-overview/de.html.d/42tine20-webaccess.html [new file with mode: 0644]
scripts/packaging/Univention/conffiles/var/www/ucs-overview/en.html.d/42tine20-webaccess.html [new file with mode: 0644]
scripts/packaging/Univention/debian/README.Debian [new file with mode: 0644]
scripts/packaging/Univention/debian/changelog [new file with mode: 0644]
scripts/packaging/Univention/debian/compat [new file with mode: 0644]
scripts/packaging/Univention/debian/control [new file with mode: 0644]
scripts/packaging/Univention/debian/copyright [new file with mode: 0644]
scripts/packaging/Univention/debian/etc/apache.conf [new file with mode: 0644]
scripts/packaging/Univention/debian/etc/lighttpd.conf [new file with mode: 0644]
scripts/packaging/Univention/debian/etc/php5.ini [new file with mode: 0644]
scripts/packaging/Univention/debian/patches/config.inc.php.dist.diff [new file with mode: 0644]
scripts/packaging/Univention/debian/patches/series [new file with mode: 0644]
scripts/packaging/Univention/debian/po/POTFILES.in [new file with mode: 0644]
scripts/packaging/Univention/debian/po/templates.pot [new file with mode: 0644]
scripts/packaging/Univention/debian/rules [new file with mode: 0755]
scripts/packaging/Univention/debian/source/format [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-activesync.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-calendar.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-crm.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-felamimail.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-filemanager.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-projects.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-sales.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tasks.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-timetracker.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tinebase.dirs [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tinebase.docs [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tinebase.examples [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tinebase.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tinebase.logrotate [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tinebase.postinst [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tinebase.postrm [new file with mode: 0644]
scripts/packaging/Univention/debian/tine20-tinebase.univention-config-registry [new file with mode: 0644]
scripts/packaging/Univention/debian/tine204ucs-webstack.install [new file with mode: 0644]
scripts/packaging/Univention/debian/tine204ucs-webstack.postinst [new file with mode: 0644]
scripts/packaging/Univention/debian/usclint.overrides [new file with mode: 0644]
scripts/packaging/Univention/debian/watch [new file with mode: 0644]

diff --git a/scripts/packaging/Univention/70tine204ucs.inst b/scripts/packaging/Univention/70tine204ucs.inst
new file mode 100755 (executable)
index 0000000..f2c0c48
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# Tine 2.0 for UCS
+#
+# Copyright 2012-2012 by Metaways Infosystems GmbH
+#
+# http://www.metaways.de/
+#
+# All rights reserved.
+#
+# The source code of this program is made available
+# under the terms of the GNU Affero General Public License version 3
+# (GNU AGPL V3) as published by the Free Software Foundation.
+#
+# Binary versions of this program provided by Univention to you as
+# well as other copyrighted, protected or trademarked materials like
+# Logos, graphics, fonts, specific documentations and configurations,
+# cryptographic keys etc. are subject to a license agreement between
+# you and Univention and not subject to the GNU AGPL V3.
+#
+# In the case you use this program under the terms of the GNU AGPL V3,
+# the program is provided in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License with the Debian GNU/Linux or Univention distribution in file
+# /usr/share/common-licenses/AGPL-3; if not, see
+# <http://www.gnu.org/licenses/>.
+
+VERSION=1
+
+. /usr/share/univention-join/joinscripthelper.lib
+. /usr/share/univention-lib/all.sh
+
+joinscript_init
+
+eval "$(univention-config-registry shell)"
+
+# call server password change script
+/usr/lib/univention-server/server_password_change.d/50univention-mail-server prechange
+/usr/lib/univention-server/server_password_change.d/50univention-mail-server postchange
+
+joinscript_save_current_version
+
+exit 0
diff --git a/scripts/packaging/Univention/conffiles/tine20-cfg.py b/scripts/packaging/Univention/conffiles/tine20-cfg.py
new file mode 100755 (executable)
index 0000000..625f41a
--- /dev/null
@@ -0,0 +1,91 @@
+# -*- coding: utf-8 -*-
+#
+# Tine 2.0 for UCS
+#  config registry module to update Tine 2.0 configuration
+#
+# Copyright 2012-2012 by Metaways Infosystems GmbH
+#
+# http://www.metaways.de/
+#
+# All rights reserved.
+#
+# The source code of this program is made available
+# under the terms of the GNU Affero General Public License version 3
+# (GNU AGPL V3) as published by the Free Software Foundation.
+#
+# Binary versions of this program provided by Univention to you as
+# well as other copyrighted, protected or trademarked materials like
+# Logos, graphics, fonts, specific documentations and configurations,
+# cryptographic keys etc. are subject to a license agreement between
+# you and Univention and not subject to the GNU AGPL V3.
+#
+# In the case you use this program under the terms of the GNU AGPL V3,
+# the program is provided in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License with the Debian GNU/Linux or Univention distribution in file
+# /usr/share/common-licenses/AGPL-3; if not, see
+# <http://www.gnu.org/licenses/>.
+
+import sys, re
+
+def handler(bc,changes):
+    db_dbname   = bc.get('tine20/cfg/server/mysql_database', 'tine20')
+    db_host     = bc.get('tine20/cfg/server/mysql_host'    , 'localhost')
+    db_username = bc.get('tine20/cfg/server/mysql_user'    , 'tine20')
+    
+    db_password_file = bc.get('tine20/cfg/server/mysql_password', '@&@/etc/tine20/mysql.secret@&@').replace('@&@','')
+    try:
+        db_password = open(db_password_file,'r').readline().strip()
+    except IOError, e:
+        db_password = none
+    
+    try:
+        f = open('/etc/tine20/config.inc.php', 'r')
+    except IOError, e:
+        print e
+        sys.exit(1)
+        
+    newlines = []
+    line = f.readline()
+    
+    while line:
+        if re.search('.*database.*=> array', line):
+            
+            newlines.append(line)
+            line = f.readline()
+            
+            while not re.search('\A\s*\)', line):
+                if re.search('.*host.*=>', line):
+                    line = '        \'host\'          => \'%s\',\n' % str(db_host)
+                
+                if re.search('.*dbname.*=>', line):
+                    line = '        \'dbname\'        => \'%s\',\n' % str(db_dbname)
+                    
+                if re.search('.*username.*=>', line):
+                    line = '        \'username\'      => \'%s\',\n' % str(db_username)
+        
+                if re.search('.*password.*=>', line) and db_password:
+                    line = '        \'password\'      => \'%s\',\n' % str(db_password)
+        
+                newlines.append(line)
+                line = f.readline()
+                
+        newlines.append(line)
+        line = f.readline()
+            
+    f.close()
+    
+    try:
+        f = open('/etc/tine20/config.inc.php', 'w')
+    except IOError, e:
+        print e
+        sys.exit(1)
+        
+    f.truncate();
+    f.writelines(newlines)
+    f.close()
+
diff --git a/scripts/packaging/Univention/conffiles/var/www/ucs-overview/de.html.d/42tine20-webaccess.html b/scripts/packaging/Univention/conffiles/var/www/ucs-overview/de.html.d/42tine20-webaccess.html
new file mode 100644 (file)
index 0000000..abc4f8f
--- /dev/null
@@ -0,0 +1,5 @@
+<tr>
+<td class="overview"><a href="../tine20/"><img src="../tine20/images/favicon.ico" alt="" border="0" /></a></td>
+<td class="overview"><a href="../tine20/">Tine 2.0</a></td>
+<td class="overview">Zugriff auf Tine 2.0 Groupware und CRM)</td>
+</tr>
diff --git a/scripts/packaging/Univention/conffiles/var/www/ucs-overview/en.html.d/42tine20-webaccess.html b/scripts/packaging/Univention/conffiles/var/www/ucs-overview/en.html.d/42tine20-webaccess.html
new file mode 100644 (file)
index 0000000..dcbe284
--- /dev/null
@@ -0,0 +1,5 @@
+<tr>
+<td class="overview"><a href="../tine20/"><img src="../tine20/images/favicon.ico" alt="" border="0" /></a></td>
+<td class="overview"><a href="../tine20/">Tine 2.0</a></td>
+<td class="overview">Access to Tine 2.0 groupware and CRM</td>
+</tr>
diff --git a/scripts/packaging/Univention/debian/README.Debian b/scripts/packaging/Univention/debian/README.Debian
new file mode 100644 (file)
index 0000000..52308e9
--- /dev/null
@@ -0,0 +1,16 @@
+Tine 2.0 for Debian
+-----------------------------
+
+By default Tine 2.0 is available at http://yourserver/tine20/.
+
+If you like to make Tine 2.0 available at a separate vhost please comment out these lines in /etc/tine20/apache.conf
+
+From:
+Alias /tine20 /usr/share/tine20
+Alias /Microsoft-Server-ActiveSync /usr/share/tine20/Microsoft-Server-ActiveSync
+
+To:
+#Alias /tine20 /usr/share/tine20
+#Alias /Microsoft-Server-ActiveSync /usr/share/tine20/Microsoft-Server-ActiveSync
+s
+ -- Lars Kneschke <l.kneschke@metaways.de>  Sat, 01 May 2010 16:40:48 +0200
diff --git a/scripts/packaging/Univention/debian/changelog b/scripts/packaging/Univention/debian/changelog
new file mode 100644 (file)
index 0000000..b9100f1
--- /dev/null
@@ -0,0 +1,5 @@
+tine20 (2012.03.2-0) stable; urgency=low
+
+  * New upstream release
+
+ -- Lars Kneschke <l.kneschke@metaways.de>  Wed, 04 Apr 2012 10:20:47 +0200
diff --git a/scripts/packaging/Univention/debian/compat b/scripts/packaging/Univention/debian/compat
new file mode 100644 (file)
index 0000000..45a4fb7
--- /dev/null
@@ -0,0 +1 @@
+8
diff --git a/scripts/packaging/Univention/debian/control b/scripts/packaging/Univention/debian/control
new file mode 100644 (file)
index 0000000..84b5000
--- /dev/null
@@ -0,0 +1,152 @@
+Source: tine20
+Section: web
+Priority: optional
+Maintainer: Lars Kneschke <l.kneschke@metaways.de>
+Build-Depends: debhelper (>= 8), po-debconf,
+ ucslint,
+ python-support,
+ univention-config-dev,
+ python-all,
+ python-support (>= 0.90)
+Standards-Version: 3.9.2
+Homepage: http://www.tine20.org/
+Vcs-Git: http://git.tine20.org/git/tine20/scripts/packaging/Univention/
+Vcs-Browser: http://git.tine20.org/git/tine20/scripts/packaging/Univention/
+
+Package: tine204ucs
+Architecture: all
+Depends: tine204ucs-webstack (= ${binary:Version}),
+ tine204ucs-mailstack (= ${binary:Version})
+Description: Tine 2.0 integration package for Univention Corporate Server
+ Integration package for installation and configuration of the Tine 2.0
+ groupware solution on Univention Corporate Server.
+
+Package: tine204ucs-webstack
+Architecture: all
+Depends: ${misc:Depends}, 
+ ${python:Depends},
+ tine20 (= ${binary:Version}),
+ mysql-server
+Description: Tine 2.0 integration package for Univention Corporate Server
+ Integration package for installation and configuration of the Tine 2.0
+ groupware solution on Univention Corporate Server.
+
+Package: tine204ucs-mailstack
+Architecture: all
+Depends: ${misc:Depends}, 
+ ${python:Depends},
+ univention-mail-postfix,
+ univention-mail-cyrus
+Recommends: bsd-mailx,
+ univention-spamassassin,
+ univention-antivir-mail
+Description: Tine 2.0 integration package for Univention Corporate Server
+ Integration package for installation and configuration of the Tine 2.0
+ groupware solution on Univention Corporate Server.
+
+Package: tine20
+Architecture: all
+Depends: ${misc:Depends}, tine20-tinebase, 
+    ${tine20:Modules}
+Description: webbased groupware and crm - metapackage
+ Tine 2.0 is an open source project which combines groupware and CRM in one
+ consistent interface. Tine 2.0 is web-based and optimises collaboration and
+ organisation of groups in a lasting manner. Tine 2.0 unites all the
+ advantages of open source software with an extraordinarily high level of
+ usability and an equally high standard of professional software development.
+ This is what makes the difference between Tine 2.0 and many other existing
+ groupware solutions.
+ Tine 2.0 includes address book, calendar, email, tasks, time tracking and
+ CRM. Intelligent functions and links make collaboration in Tine 2.0 a true
+ pleasure and include:
+  * Synchronising mobile telephones
+  * VoiP integration
+  * Flexible assigning of authorisation rights
+  * Dynamic lists
+  * Search functions
+  * History
+  * PDF export
+
+Package: tine20-tinebase
+Architecture: all
+Depends: ${misc:Depends}, 
+    univention-apache, 
+    libapache2-mod-php5 | php5 | php5-cgi | php5-fpm, 
+    wwwconfig-common, 
+    php5-mysql | php5-mysqli, 
+    php5-mcrypt, 
+    php5-gd,
+    makepasswd
+Recommends: mysql-server, 
+    php5-ldap
+Suggests: www-browser
+Description: webbased groupware and crm - core + addressbook module
+ This packages contains the core librarys of Tine 2.0 and the addressbook module.
+ Installing this package enables you to manage user accounts and contacts. Also
+ provides integration with openstreet map.
+
+Package: tine20-activesync
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - activesync module
+ This package contains the activesync module of Tine 2.0. Installing this package
+ enables you to syncronize contacts, event, tasks and emails with your mobile phone.
+
+Package: tine20-calendar
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - calendar module
+ This package contains the calendar module of Tine 2.0. Installing this package
+ enables you to schedule events for your self and other Tine 2.0 users.
+
+Package: tine20-crm
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - crm module
+ This package contains the CRM module of Tine 2.0. Installing this package
+ enables you to manage leads. Typically used by sales people.
+
+Package: tine20-felamimail
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - email module
+ This package contains the email module of Tine 2.0. Installing this package
+ enables you to read emails stored on a imap server. You can read emails on 
+ multiple imap servers.
+Package: tine20-filemanager
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - filemanager module
+ This package contains the filemanager module of Tine 2.0. Installing this package
+ enables you to store files on your webserver.
+Package: tine20-tasks
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - tasks module
+ This package contains the tasks module of Tine 2.0. Installing this package
+ enables you to manage tasks.
+Package: tine20-projects
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - projects module
+ This package contains the projects module of Tine 2.0.
+
+Package: tine20-sales
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - sales module
+ This package contains the sales module of Tine 2.0. Installing this package
+ enables you to manage products and orders. This package has only very limited
+ functionality, because it's integrated into other modules (for example the CRM
+ module)
+
+Package: tine20-timetracker
+Architecture: all
+Depends: tine20-tinebase (= ${binary:Version})
+Description: webbased groupware and crm - timetracker module
+ This package contains the timetracke module of Tine 2.0. Installing this package
+ enables you to keep track of time spent on different projects. You can export
+ timesheets for easy reporting in different formats. 
diff --git a/scripts/packaging/Univention/debian/copyright b/scripts/packaging/Univention/debian/copyright
new file mode 100644 (file)
index 0000000..a8da963
--- /dev/null
@@ -0,0 +1,362 @@
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&view=markup
+Upstream-Name: Tine 2.0
+Upstream-Contact: Lars Kneschke <l.kneschke@metaways.de>
+Source: http://www.tine20.org/download.html
+
+Files: *
+Copyright: Copyright 2007-2012 by Metaways Infosystems GmbH
+License: AGPL-3.0
+ 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, version 3 of the License.
+ ,
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Affero General Public License for more details.
+ .
+ You should have received a copy of the GNU Affero General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Files: library/ExtJS/*
+Copyright: Copyright (C) 2006-2009, Ext JS, LLC
+License: GPL-3.0
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'. 
+Comment: There are several FLOSS exceptions available for use with this release for
+ open source applications that are distributed under a license other than the GPL.
+ .
+ * Open Source License Exception for Applications
+ .
+  http://extjs.com/products/floss-exception.php
+ .
+ * Open Source License Exception for Development
+ .
+ http://extjs.com/products/ux-exception.php
+
+Files: library/GeoExt/*
+Copyright: Copyright (c) 2008-2009, The Open Source Geospatial Foundation
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+    * Neither the name of the Open Source Geospatial Foundation nor the names
+      of its contributors may be used to endorse or promote products derived
+      from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+Files: library/HTMLPurifier/*
+Copyright: Copyright (C) 2006-2008 Edward Z. Yang
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
+
+Files: library/idnaconvert/*
+Copyright: (c) 2004-2011 phlyLabs, Berlin
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
+
+Files: library/jsb2tk/*
+ library/OpenDocument/*
+Copyright: Copyright (c) 2009-2011 Metaways Infosystems GmbH (http://www.metaways.de)
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+    * Neither the name of Metaways Infosystems GmbH nor the names
+      of its contributors may be used to endorse or promote products derived
+      from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+Files: library/OpenLayers/*
+Copyright: Copyright (c) 2005-2008 MetaCarta, Inc.
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+    * Neither the name of MetaCarta, Inc. nor the names
+      of its contributors may be used to endorse or promote products derived
+      from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+Files: library/PHPExcel/*
+Copyright: Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
+
+Files: library/qCal/*
+Copyright: Luke Visinoni (luke.visinoni@gmail.com)
+License: LGPL-2.1
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; version 2.1 
+ of the License.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
+
+Files: library/Sabre/*
+Copyright: Copyright (C) 2007-2011 Rooftop Solutions.
+ Copyright (C) 2007-2009 FileMobile inc.
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice,
+   this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ * Neither the name of the SabreDAV nor the names of its contributors
+   may be used to endorse or promote products derived from this software 
+   without specific prior written permission.
+ .    
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
+ POSSIBILITY OF SUCH DAMAGE.
+     
+Files: library/vcardphp/*
+Copyright: Frank Hellwig <frank@hellwig.org>
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice,
+   this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ * Neither the name of the vcardphp nor the names of its contributors
+   may be used to endorse or promote products derived from this software 
+   without specific prior written permission.
+ .    
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
+ POSSIBILITY OF SUCH DAMAGE.
+     
+Files: Zend/*
+ library/Zend/*
+Copyright: Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+ .
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+ .
+    * Neither the name of Zend Technologies USA, Inc. nor the names of its
+      contributors may be used to endorse or promote products derived from this
+      software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+Files: Zend/Json/Client/IntrospectException.php
+ Zend/Json/Client/SMD.php
+ Zend/Json/Client/ServerProxy.php
+ Zend/Json/Client/HttpException.php
+ Zend/Json/Client/FaultException.php
+ Zend/Json/Client/Exception.php
+ Zend/Json/Client/Response.php
+ Zend/Json/Client/ServerIntrospection.php
+ Zend/Json/Client.php
+Copyright: Copyright (C) 2007-2011 Metaways Infosystems GmbH
+ Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+ .
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+ .
+    * Neither the name of Zend Technologies USA, Inc. nor the names of its
+      contributors may be used to endorse or promote products derived from this
+      software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+
+Files: Zend/Service/Nominatim.php
+ Zend/Service/Tine20.php
+Copyright: Copyright (C) 2009-2009 Metaways Infosystems GmbH
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+ .
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+ .
+    * Neither the name of Zend Technologies USA, Inc. nor the names of its
+      contributors may be used to endorse or promote products derived from this
+      software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
\ No newline at end of file
diff --git a/scripts/packaging/Univention/debian/etc/apache.conf b/scripts/packaging/Univention/debian/etc/apache.conf
new file mode 100644 (file)
index 0000000..d3fa9d6
--- /dev/null
@@ -0,0 +1,81 @@
+# Apache and PHP configuration for Tine 2.0
+#
+
+Alias /tine20 /usr/share/tine20
+Alias /Microsoft-Server-ActiveSync /usr/share/tine20/Microsoft-Server-ActiveSync
+
+# some people prefer a simple URL like http://tine20.example.org
+# in this case you also have to disable to Alias lines above
+#<VirtualHost 1.2.3.4:80>
+#  DocumentRoot /usr/share/tine20
+#  ServerName tine20.example.org
+#</VirtualHost>
+
+<Directory /usr/share/tine20/>
+
+    DirectoryIndex index.php
+
+    Options +ExecCGI
+
+    # uncomment this in vhost config for fastcgi
+    #<IfModule mod_fastcgi.c>
+    #    ScriptAlias /fastcgi/ /usr/share/tine20/fastcgi/
+    #    
+    #    # redirect php files to fastcgi server
+    #    Action     php-fastcgi /fastcgi/php5-fastcgi
+    #    AddHandler php-fastcgi .php
+    #    
+    #    # pass headers needed by Tine 2.0
+    #    FastCGIExternalServer /usr/share/tine20/fastcgi/php5-fastcgi -pass-header Authorization -pass-header If-Modified-Since -pass-header If-None-Match -flush -socket /dev/shm/fpm-www.pool
+    #</IfModule>
+    
+    <IfModule mod_php5.c>
+        php_admin_value max_input_time 120
+        php_admin_value include_path .:/usr/share/tine20:/usr/share/tine20/library:/etc/tine20
+        php_admin_value open_basedir .:/usr/share/tine20:/var/lib/tine20:/tmp:/usr/share/php:/etc/tine20:/var/log/tine20
+        php_admin_value session.gc_maxlifetime 86400
+        php_admin_value max_execution_time 90
+        php_admin_value memory_limit 64M
+        php_admin_value upload_max_filesize 20M
+        php_admin_value post_max_size 20M
+        php_admin_value safe_mode off
+        php_admin_flag display_errors off
+        php_admin_flag log_errors on
+        php_admin_flag magic_quotes_gpc off
+        php_admin_flag magic_quotes_runtime off
+        php_admin_flag register_globals off
+    </IfModule>
+    
+    <IfModule mod_rewrite.c>
+        RewriteEngine on
+
+        RewriteBase /tine20
+
+        # ActiveSync
+        RewriteRule ^Microsoft-Server-ActiveSync index.php?frontend=activesync         [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
+        
+        # OpenID
+        RewriteRule ^users/(.*)                  index.php?frontend=openid&username=$1 [L,QSA]
+
+        # WebDAV / CalDAV / CardDAV
+        RewriteCond %{REQUEST_METHOD} !^(GET|POST)$
+        RewriteRule ^$                           index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
+
+        RewriteRule ^addressbooks                index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
+        RewriteRule ^calendars                   index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
+        RewriteRule ^webdav                      index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
+        RewriteRule ^principals                  index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
+        
+    </IfModule>
+
+    <IfModule mod_expires.c>
+        ExpiresActive on
+
+        ExpiresByType image/gif "access plus 1 month 1 days"
+        ExpiresByType image/jpeg "access plus 1 month 1 days"
+        ExpiresByType image/png "access plus 1 month 1 days" 
+    </IfModule>
+
+</Directory>
+
+
diff --git a/scripts/packaging/Univention/debian/etc/lighttpd.conf b/scripts/packaging/Univention/debian/etc/lighttpd.conf
new file mode 100644 (file)
index 0000000..21bb5aa
--- /dev/null
@@ -0,0 +1,21 @@
+# Alias for Tine 2.0 directory
+server.modules += ( "mod_alias" )
+server.modules += ( "mod_rewrite" )
+
+alias.url += ( 
+    "/tine20" => "/usr/share/tine20",
+)
+
+url.rewrite-once = (
+    # activesync
+    "^/Microsoft-Server-ActiveSync\??(.*)$" => "/tine20/index.php?frontend=activesync&$1",
+    
+    # openid
+    "^/tine20/users/(.*)\??(.*)$"           => "/tine20/index.php?frontend=openid&username=$1&$2",
+    
+    # webdav
+    "^/tine20/addressbooks\??(.*)$"         => "/tine20/index.php?frontend=webdav&$1",
+    "^/tine20/calendars\??(.*)$"            => "/tine20/index.php?frontend=webdav&$1",
+    "^/tine20/webdav\??(.*)$"               => "/tine20/index.php?frontend=webdav&$1",
+    "^/tine20/principals\??(.*)$"           => "/tine20/index.php?frontend=webdav&$1"
+)
diff --git a/scripts/packaging/Univention/debian/etc/php5.ini b/scripts/packaging/Univention/debian/etc/php5.ini
new file mode 100644 (file)
index 0000000..9ab5aa8
--- /dev/null
@@ -0,0 +1,13 @@
+[PATH=/usr/share/tine20]
+max_input_time      = 120
+include_path        = .:/usr/share/tine20:/usr/share/tine20/library:/etc/tine20
+display_errors      = off
+log_errors          = on
+magic_quotes_gpc    = off
+magic_quotes_runtime = off
+register_globals    = off
+max_execution_time  = 90
+memory_limit        = 64M
+open_basedir        = /usr/share/tine20:/var/lib/tine20:/etc/tine20:/var/log/tine20
+upload_max_filesize = 20M
+post_max_size       = 20M
diff --git a/scripts/packaging/Univention/debian/patches/config.inc.php.dist.diff b/scripts/packaging/Univention/debian/patches/config.inc.php.dist.diff
new file mode 100644 (file)
index 0000000..119429d
--- /dev/null
@@ -0,0 +1,48 @@
+--- a/config.inc.php.dist
++++ b/config.inc.php.dist
+@@ -7,32 +7,29 @@
+ // minimal configuration
+ return array(
+     'database' => array(
+-        'host'          => 'ENTER DATABASE HOSTNAME',
+-        'dbname'          => 'ENTER DATABASE NAME',
+-        'username'      => 'ENTER DATABASE USERNAME',
+-        'password'      => 'ENTER DATABASE PASSWORD',
++        'host'          => '_DBC_DBSERVER_',
++        'dbname'          => '_DBC_DBNAME_',
++        'username'      => '_DBC_DBUSER_',
++        'password'      => '_DBC_DBPASS_',
+         'adapter'       => 'pdo_mysql',
+         'tableprefix'   => 'tine20_',
+     ),
+     'setupuser' => array(
+-        'username'      => 'SETUP USERNAME',
+-        'password'      => 'SETUP PASSWORD' 
++        'username'      => '_SETUPUSERNAME_',
++        'password'      => '_SETUPPASSWORD_' 
+     ),
+-    
+-    /* // optional cache (recommended)
+     'caching' => array (
+         'active' => true,
+-        'path' => 'PATH TO CACHE (NEEDS TO BE WRITEABLE BY WEBSERVER)',
++        'path' => '/var/lib/tine20/cache',
+         'lifetime' => 3600,
+     ),
+-    */
+-    
+-    /* // optional logger
+     'logger' => array (
+         'active' => true,
+-        'filename' => 'LOG FILE (NEEDS TO BE WRITEABLE BY WEBSERVER)',
+-        'priority' => '7',
++        'filename' => '/var/log/tine20/tine20.log',
++        'priority' => '3',
+     ),
+-    */
++    'tmpdir'     => '/var/lib/tine20/tmp',
++    'sessiondir' => '/var/lib/tine20/sessions',
++    'filesdir'   => '/var/lib/tine20/files',
++    'mapPanel'   => 1
+ );
+-
diff --git a/scripts/packaging/Univention/debian/patches/series b/scripts/packaging/Univention/debian/patches/series
new file mode 100644 (file)
index 0000000..a50e7f2
--- /dev/null
@@ -0,0 +1 @@
+config.inc.php.dist.diff
diff --git a/scripts/packaging/Univention/debian/po/POTFILES.in b/scripts/packaging/Univention/debian/po/POTFILES.in
new file mode 100644 (file)
index 0000000..608f7aa
--- /dev/null
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] tine20-tinebase.templates
diff --git a/scripts/packaging/Univention/debian/po/templates.pot b/scripts/packaging/Univention/debian/po/templates.pot
new file mode 100644 (file)
index 0000000..86e676a
--- /dev/null
@@ -0,0 +1,53 @@
+# translations for Tine 2.0 debian package
+# Copyright (C) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
+# This file is distributed under the same license as the tine20 package.
+# Lars Kneschke <l.kneschke@metaways.de>, 2011.
+#
+"Project-Id-Version: 1.0\n"
+"Report-Msgid-Bugs-To: packages@tine20.org\n"
+"POT-Creation-Date: 2011-07-14 19:05+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Lars Kneschke <l.kneschke@metaways.de>\n"
+"Language-Team: EN <translators@tine20.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Description
+#: ../tine20-tinebase.templates:1002
+msgid "Web server to reconfigure automatically:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../tine20-tinebase.templates:1002
+msgid ""
+"If you do not select a web server to reconfigure automatically, Tine 2.0 "
+"will not be usable until you reconfigure your webserver to enable Tine 2.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../tine20-tinebase.templates:6001
+msgid "Tine 2.0 setup username"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../tine20-tinebase.templates:6001
+msgid "Username used to login into Tine 2.0 setup"
+msgstr ""
+
+#. Type: password
+#. Description
+#: ../tine20-tinebase.templates:7001
+msgid "Tine 2.0 setup password"
+msgstr ""
+
+#. Type: password
+#. Description
+#: ../tine20-tinebase.templates:7001
+msgid "Password used to login into Tine 2.0 setup"
+msgstr ""
diff --git a/scripts/packaging/Univention/debian/rules b/scripts/packaging/Univention/debian/rules
new file mode 100755 (executable)
index 0000000..33ab303
--- /dev/null
@@ -0,0 +1,65 @@
+#!/usr/bin/make -f
+#
+# Copyright 2012-2012 by Metaways Infosystems GmbH
+#
+# http://www.metaways.de/
+#
+# All rights reserved.
+#
+# The source code of this program is made available
+# under the terms of the GNU Affero General Public License version 3
+# (GNU AGPL V3) as published by the Free Software Foundation.
+#
+# Binary versions of this program provided by Univention to you as
+# well as other copyrighted, protected or trademarked materials like
+# Logos, graphics, fonts, specific documentations and configurations,
+# cryptographic keys etc. are subject to a license agreement between
+# you and Univention and not subject to the GNU AGPL V3.
+#
+# In the case you use this program under the terms of the GNU AGPL V3,
+# the program is provided in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License with the Debian GNU/Linux or Univention distribution in file
+# /usr/share/common-licenses/AGPL-3; if not, see
+# <http://www.gnu.org/licenses/>.
+
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+PACKAGES := $(shell dh_listpackages)
+MODULES = $(filter-out tinebase,$(patsubst tine20-%,%,$(filter tine20-%,$(PACKAGES))))
+
+%:
+       dh  $@
+
+# overwrite dh_installdeb to execute an additional shell script
+override_dh_installdeb:
+       dh_installdeb
+       
+       # generate list of available subpackages
+       (echo -n "tine20:Modules="; for x in $(MODULES); do echo -n "tine20-$$x,"; done; echo "") >> debian/tine20.substvars
+
+# overwrite dh_fixperms to execute an additional shell script
+override_dh_fixperms:
+       dh_fixperms
+       
+       # remove executable bits from all php files as dh_fixperms does not remove them
+       (find $(CURDIR)/debian/tine20-*/usr/share/tine20 -type f -name "*.php" -print0 2>/dev/null | xargs -0r chmod a-x)
+       
+       # make tine20.php executable again
+       chmod 0755 $(CURDIR)/debian/tine20-tinebase/usr/share/tine20/tine20.php
+       
+       chmod 0755 $(CURDIR)/debian/tine204ucs-webstack/usr/lib/univention-install/70tine204ucs.inst
+
+# UCS specific rules
+#override_dh_auto_test:
+#      ucslint
+
+override_dh_auto_install:
+       univention-install-config-registry
+       dh_auto_install
diff --git a/scripts/packaging/Univention/debian/source/format b/scripts/packaging/Univention/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/scripts/packaging/Univention/debian/tine20-activesync.install b/scripts/packaging/Univention/debian/tine20-activesync.install
new file mode 100644 (file)
index 0000000..66fd2f2
--- /dev/null
@@ -0,0 +1 @@
+ActiveSync     /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-calendar.install b/scripts/packaging/Univention/debian/tine20-calendar.install
new file mode 100644 (file)
index 0000000..ce9dbcd
--- /dev/null
@@ -0,0 +1 @@
+Calendar       /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-crm.install b/scripts/packaging/Univention/debian/tine20-crm.install
new file mode 100644 (file)
index 0000000..f2a9c02
--- /dev/null
@@ -0,0 +1 @@
+Crm    /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-felamimail.install b/scripts/packaging/Univention/debian/tine20-felamimail.install
new file mode 100644 (file)
index 0000000..e71e6c1
--- /dev/null
@@ -0,0 +1 @@
+Felamimail     /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-filemanager.install b/scripts/packaging/Univention/debian/tine20-filemanager.install
new file mode 100644 (file)
index 0000000..02ae5b2
--- /dev/null
@@ -0,0 +1 @@
+Filemanager    /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-projects.install b/scripts/packaging/Univention/debian/tine20-projects.install
new file mode 100644 (file)
index 0000000..9c44bb4
--- /dev/null
@@ -0,0 +1 @@
+Projects       /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-sales.install b/scripts/packaging/Univention/debian/tine20-sales.install
new file mode 100644 (file)
index 0000000..46fdf76
--- /dev/null
@@ -0,0 +1 @@
+Sales  /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-tasks.install b/scripts/packaging/Univention/debian/tine20-tasks.install
new file mode 100644 (file)
index 0000000..b024368
--- /dev/null
@@ -0,0 +1 @@
+Tasks  /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-timetracker.install b/scripts/packaging/Univention/debian/tine20-timetracker.install
new file mode 100644 (file)
index 0000000..d6bd2a1
--- /dev/null
@@ -0,0 +1 @@
+Timetracker    /usr/share/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-tinebase.dirs b/scripts/packaging/Univention/debian/tine20-tinebase.dirs
new file mode 100644 (file)
index 0000000..d41d036
--- /dev/null
@@ -0,0 +1,3 @@
+/etc/tine20
+/var/lib/tine20
+/var/log/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-tinebase.docs b/scripts/packaging/Univention/debian/tine20-tinebase.docs
new file mode 100644 (file)
index 0000000..9a4fe7e
--- /dev/null
@@ -0,0 +1,3 @@
+RELEASENOTES
+LICENSE
+PRIVACY
\ No newline at end of file
diff --git a/scripts/packaging/Univention/debian/tine20-tinebase.examples b/scripts/packaging/Univention/debian/tine20-tinebase.examples
new file mode 100644 (file)
index 0000000..1bbc0f5
--- /dev/null
@@ -0,0 +1 @@
+config.inc.php.dist
diff --git a/scripts/packaging/Univention/debian/tine20-tinebase.install b/scripts/packaging/Univention/debian/tine20-tinebase.install
new file mode 100644 (file)
index 0000000..3d25d09
--- /dev/null
@@ -0,0 +1,17 @@
+Addressbook              /usr/share/tine20
+Admin                    /usr/share/tine20
+images                   /usr/share/tine20
+index.php                /usr/share/tine20
+langHelper.php           /usr/share/tine20
+library                  /usr/share/tine20
+Setup                    /usr/share/tine20
+setup.php                /usr/share/tine20
+styles                   /usr/share/tine20
+tine20.php               /usr/share/tine20
+Tinebase                 /usr/share/tine20
+Zend                     /usr/share/tine20
+LICENSE                  /usr/share/tine20
+PRIVACY                  /usr/share/tine20
+debian/etc/apache.conf   /etc/tine20
+debian/etc/php5.ini      /etc/tine20
+debian/etc/lighttpd.conf /etc/tine20
diff --git a/scripts/packaging/Univention/debian/tine20-tinebase.logrotate b/scripts/packaging/Univention/debian/tine20-tinebase.logrotate
new file mode 100644 (file)
index 0000000..1b00f7e
--- /dev/null
@@ -0,0 +1,8 @@
+/var/log/tine20/*.log {
+  rotate 12
+  weekly
+  compress
+  delaycompress
+  missingok
+  notifempty
+}
diff --git a/scripts/packaging/Univention/debian/tine20-tinebase.postinst b/scripts/packaging/Univention/debian/tine20-tinebase.postinst
new file mode 100644 (file)
index 0000000..c8c4bb8
--- /dev/null
@@ -0,0 +1,157 @@
+#!/bin/sh
+#
+# Copyright 2012-2012 by Metaways Infosystems GmbH
+#
+# http://www.metaways.de/
+#
+# All rights reserved.
+#
+# The source code of this program is made available
+# under the terms of the GNU Affero General Public License version 3
+# (GNU AGPL V3) as published by the Free Software Foundation.
+#
+# Binary versions of this program provided by Univention to you as
+# well as other copyrighted, protected or trademarked materials like
+# Logos, graphics, fonts, specific documentations and configurations,
+# cryptographic keys etc. are subject to a license agreement between
+# you and Univention and not subject to the GNU AGPL V3.
+#
+# In the case you use this program under the terms of the GNU AGPL V3,
+# the program is provided in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License with the Debian GNU/Linux or Univention distribution in file
+# /usr/share/common-licenses/AGPL-3; if not, see
+# <http://www.gnu.org/licenses/>.
+
+#DEBHELPER#
+
+. /usr/share/univention-lib/all.sh
+
+fix_permissions() {
+    for dir in sessions tmp cache files; do
+        install -d -m 0750 -o www-data -g www-data /var/lib/tine20/$dir
+    done
+    
+    chown www-data:www-data /var/log/tine20
+    chmod 0750 /var/log/tine20    
+}
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+if [ "$1" = "configure" ]; then
+
+    # fix directory permissions
+    fix_permissions
+    
+    # set ucr default values
+    univention-config-registry set \
+        tine20/cfg/server/mysql_host?'localhost' \
+        tine20/cfg/server/mysql_port?'3306' \
+        tine20/cfg/server/mysql_user?'tine20' \
+        tine20/cfg/server/mysql_password?'@&@/etc/tine20/mysql.secret@&@' \
+        tine20/cfg/server/mysql_database?'tine20' \
+        tine20/cfg/directory/cache?"/var/lib/tine20/cache" \
+        tine20/cfg/directory/files?"/var/lib/tine20/files" \
+        tine20/cfg/directory/sessions?"/var/lib/tine20/sessions" \
+        tine20/cfg/directory/tmp?"/var/lib/tine20/tmp"
+    
+    # make ucr values available as shell variables
+    eval "$(univention-config-registry shell)"
+    
+    # create database if needed
+    mysqlPasswordFile="$(echo $tine20_cfg_server_mysql_password | sed -se 's/@&@//g')"
+    
+    if [ ! -e "$mysqlPasswordFile" -a "$tine20_cfg_server_mysql_host" = "localhost" ]; then
+        touch      "$mysqlPasswordFile"
+        chmod 0600 "$mysqlPasswordFile"
+        chown 0:0  "$mysqlPasswordFile"
+        
+        password=$(makepasswd --minchars=15 --maxchars=20)
+        echo "$password" > "$mysqlPasswordFile"
+    
+        mysqlCmd="mysql --defaults-file=/etc/mysql/debian.cnf"
+        echo "CREATE DATABASE IF NOT EXISTS $tine20_cfg_server_mysql_database;" | $mysqlCmd
+        echo "GRANT ALL ON $tine20_cfg_server_mysql_database.* TO '$tine20_cfg_server_mysql_user'@'localhost' IDENTIFIED BY '$password';" | $mysqlCmd
+    fi
+    
+    # create config.inc.php if needed
+    if [ ! -e /etc/tine20/config.inc.php ] ; then
+        cp /usr/share/doc/tine20-tinebase/examples/config.inc.php.dist /etc/tine20/config.inc.php
+        chmod 0640 /etc/tine20/config.inc.php
+        chown root:www-data /etc/tine20/config.inc.php
+
+        mysqlpassword=$(cat "$mysqlPasswordFile")
+        sed -i -e "s/_DBC_DBSERVER_/$tine20_cfg_server_mysql_host/g"   /etc/tine20/config.inc.php
+        sed -i -e "s/_DBC_DBNAME_/$tine20_cfg_server_mysql_database/g" /etc/tine20/config.inc.php
+        sed -i -e "s/_DBC_DBUSER_/$tine20_cfg_server_mysql_user/g"     /etc/tine20/config.inc.php
+        sed -i -e "s/_DBC_DBPASS_/$mysqlpassword/g"                    /etc/tine20/config.inc.php
+
+        setuppassword=$(makepasswd --minchars=10 --maxchars=15)
+        sed -i -e 's/_SETUPUSERNAME_/tine20setup/g' /etc/tine20/config.inc.php
+        sed -i -e "s/_SETUPPASSWORD_/$setuppassword/g" /etc/tine20/config.inc.php
+    fi
+    
+    ucr commit /var/www/ucs-overview/de.html /var/www/ucs-overview/en.html
+    
+    # setup webserver
+    webservers="apache2"
+    
+    if [ "$webservers" != "" ]; then
+
+        for webserver in $webservers; do
+            webserver=${webserver%,}
+            
+            # check if webserver is installed
+            test -x /usr/sbin/$webserver || continue
+    
+            case "$webserver" in
+                apache2)
+                    if [ -d /etc/apache2/mods-enabled ]; then
+                        if [ ! -f /etc/apache2/mods-enabled/rewrite.load -a ! -h /etc/apache2/mods-enabled/rewrite.load ]; then
+                            /usr/sbin/a2enmod rewrite
+                        fi
+                        if [ ! -f /etc/apache2/mods-enabled/expires.load -a ! -h /etc/apache2/mods-enabled/expires.load ]; then
+                            /usr/sbin/a2enmod expires
+                        fi
+                        if [ -f /etc/apache2/mods-available/php5.load ]; then
+                            if [ ! -f /etc/apache2/mods-enabled/php5.load -a ! -h /etc/apache2/mods-enabled/php5.load ]; then
+                                /usr/sbin/a2enmod php5
+                            fi 
+                        fi
+                    fi
+
+                    # create vhost configuration links
+                    servers="apache2"
+                    linkdestination_apache="../../tine20/apache.conf"
+                    linkname="tine20"
+        
+                    if [ -e /usr/share/wwwconfig-common/confd-link.sh ]; then
+                        . /usr/share/wwwconfig-common/confd-link.sh
+                    fi
+                    
+                    # mark webserver for restart (used by restart.sh)
+                    restart="$restart $webserver"
+                    
+                    ;;
+                
+            esac
+            
+        done
+        
+        # restart webserver
+        if [ -e /usr/share/wwwconfig-common/restart.sh ]; then
+            . /usr/share/wwwconfig-common/restart.sh
+        fi
+    fi
+
+fi
+
+# restart ud listener
+/etc/init.d/univention-directory-listener crestart
+
+exit 0
\ No newline at end of file
diff --git a/scripts/packaging/Univention/debian/tine20-tinebase.postrm b/scripts/packaging/Univention/debian/tine20-tinebase.postrm
new file mode 100644 (file)
index 0000000..7e98324
--- /dev/null
@@ -0,0 +1,86 @@
+#!/bin/sh
+#
+# Copyright 2012-2012 by Metaways Infosystems GmbH
+#
+# http://www.metaways.de/
+#
+# All rights reserved.
+#
+# The source code of this program is made available
+# under the terms of the GNU Affero General Public License version 3
+# (GNU AGPL V3) as published by the Free Software Foundation.
+#
+# Binary versions of this program provided by Univention to you as
+# well as other copyrighted, protected or trademarked materials like
+# Logos, graphics, fonts, specific documentations and configurations,
+# cryptographic keys etc. are subject to a license agreement between
+# you and Univention and not subject to the GNU AGPL V3.
+#
+# In the case you use this program under the terms of the GNU AGPL V3,
+# the program is provided in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License with the Debian GNU/Linux or Univention distribution in file
+# /usr/share/common-licenses/AGPL-3; if not, see
+# <http://www.gnu.org/licenses/>.
+
+#DEBHELPER#
+
+if [ -f /usr/share/debconf/confmodule ]; then
+   . /usr/share/debconf/confmodule
+fi
+
+db_version 2.0
+
+if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
+    webservers="apache2"
+
+    if [ "$webservers" != "" ]; then
+
+        for webserver in $webservers; do
+            webserver=${webserver%,}
+
+            # check if webserver is installed
+            test -x /usr/sbin/$webserver || continue
+    
+            case "$webserver" in
+                apache2)
+                    rm -f /etc/$webserver/conf.d/tine20
+                    
+                    # mark webserver for restart (used by restart.sh)
+                    restart="$restart $webserver"
+                    ;;
+            esac
+        done
+    
+        # restart webserver
+        if [ -e /usr/share/wwwconfig-common/restart.sh ]; then
+            . /usr/share/wwwconfig-common/restart.sh
+        fi
+        
+    fi
+fi
+
+if [ "$1" = "purge" ]; then
+    
+    rm -f /etc/tine20/config.inc.php
+    if which ucf >/dev/null 2>&1; then
+        ucf --purge /etc/tine20/config.inc.php
+    fi
+    rm -rf /var/lib/tine20
+    rm -rf /var/log/tine20
+    
+fi
+
+if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule ]; then
+       . /usr/share/debconf/confmodule
+       db_purge
+fi
+
+#DEBHELPER#
+
+exit 0
\ No newline at end of file
diff --git a/scripts/packaging/Univention/debian/tine20-tinebase.univention-config-registry b/scripts/packaging/Univention/debian/tine20-tinebase.univention-config-registry
new file mode 100644 (file)
index 0000000..de37cee
--- /dev/null
@@ -0,0 +1,17 @@
+Type: module
+Module: tine20-cfg.py
+Variables: tine20/*
+
+Type: multifile
+Multifile: var/www/ucs-overview/de.html
+
+Type: multifile
+Multifile: var/www/ucs-overview/en.html
+
+Type: subfile
+Multifile: var/www/ucs-overview/de.html
+Subfile: var/www/ucs-overview/de.html.d/42tine20-webaccess.html
+
+Type: subfile
+Multifile: var/www/ucs-overview/en.html
+Subfile: var/www/ucs-overview/en.html.d/42tine20-webaccess.html
diff --git a/scripts/packaging/Univention/debian/tine204ucs-webstack.install b/scripts/packaging/Univention/debian/tine204ucs-webstack.install
new file mode 100644 (file)
index 0000000..cd50f2b
--- /dev/null
@@ -0,0 +1 @@
+70tine204ucs.inst usr/lib/univention-install/
\ No newline at end of file
diff --git a/scripts/packaging/Univention/debian/tine204ucs-webstack.postinst b/scripts/packaging/Univention/debian/tine204ucs-webstack.postinst
new file mode 100644 (file)
index 0000000..09a1ad4
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# Copyright 2012-2012 by Metaways Infosystems GmbH
+#
+# http://www.metaways.de/
+#
+# All rights reserved.
+#
+# The source code of this program is made available
+# under the terms of the GNU Affero General Public License version 3
+# (GNU AGPL V3) as published by the Free Software Foundation.
+#
+# Binary versions of this program provided by Univention to you as
+# well as other copyrighted, protected or trademarked materials like
+# Logos, graphics, fonts, specific documentations and configurations,
+# cryptographic keys etc. are subject to a license agreement between
+# you and Univention and not subject to the GNU AGPL V3.
+#
+# In the case you use this program under the terms of the GNU AGPL V3,
+# the program is provided in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License with the Debian GNU/Linux or Univention distribution in file
+# /usr/share/common-licenses/AGPL-3; if not, see
+# <http://www.gnu.org/licenses/>.
+
+#DEBHELPER#
+
+. /usr/share/univention-lib/all.sh
+
+# excecute join script
+call_joinscript 70tine204ucs.inst
+
+# restart listener
+#/etc/init.d/univention-directory-listener crestart
+
+exit 0
\ No newline at end of file
diff --git a/scripts/packaging/Univention/debian/usclint.overrides b/scripts/packaging/Univention/debian/usclint.overrides
new file mode 100644 (file)
index 0000000..76c4d0f
--- /dev/null
@@ -0,0 +1,5 @@
+0008-3: *
+0008-4: *
+0010-2: *
+0011-3: *
+0011-5: *
diff --git a/scripts/packaging/Univention/debian/watch b/scripts/packaging/Univention/debian/watch
new file mode 100644 (file)
index 0000000..9ea4cab
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://www.tine20.org/download.html /downloads/(\d+)-(\d+)-(\d+)/tine20-allinone_.+\.tar\.bz2 debian uupdate
\ No newline at end of file