From 4527f7c4eb4dcd0de8b9a3e535120cfa037061c7 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 7 Apr 2008 11:41:58 +0000 Subject: [PATCH] Added non-working initial version git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10231 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/debian/README.Debian | 83 ++++ gosa-core/debian/changelog | 6 + gosa-core/debian/compat | 1 + gosa-core/debian/control | 97 ++++ gosa-core/debian/copyright | 35 ++ gosa-core/debian/dirs | 5 + gosa-core/debian/docs | 5 + gosa-core/debian/gosa-16.xpm | 137 ++++++ gosa-core/debian/gosa-apache.conf | 6 + gosa-core/debian/gosa-desktop.config | 9 + gosa-core/debian/gosa-desktop.desktop | 12 + gosa-core/debian/gosa-desktop.dirs | 4 + gosa-core/debian/gosa-desktop.install | 5 + gosa-core/debian/gosa-desktop.menu | 8 + gosa-core/debian/gosa-desktop.postinst | 11 + gosa-core/debian/gosa-desktop.postrm | 7 + gosa-core/debian/gosa-desktop.templates | 9 + gosa-core/debian/gosa-dev.dirs | 1 + gosa-core/debian/gosa-dev.install | 3 + gosa-core/debian/gosa-help-en.dirs | 1 + gosa-core/debian/gosa-help-en.install | 1 + gosa-core/debian/gosa-schema.dirs | 1 + gosa-core/debian/gosa-schema.install | 6 + gosa-core/debian/gosa.1 | 41 ++ gosa-core/debian/gosa.postinst | 69 +++ gosa-core/debian/gosa.postrm | 42 ++ gosa-core/debian/gosa.xpm | 490 +++++++++++++++++++++ gosa-core/debian/install | 7 + gosa-core/debian/rules | 116 +++++ gosa-core/debian/smarty-acl-render.dirs | 1 + gosa-core/debian/smarty-acl-render.install | 2 + gosa-core/debian/watch | 3 + 32 files changed, 1224 insertions(+) create mode 100644 gosa-core/debian/README.Debian create mode 100644 gosa-core/debian/changelog create mode 100644 gosa-core/debian/compat create mode 100644 gosa-core/debian/control create mode 100644 gosa-core/debian/copyright create mode 100644 gosa-core/debian/dirs create mode 100644 gosa-core/debian/docs create mode 100644 gosa-core/debian/gosa-16.xpm create mode 100644 gosa-core/debian/gosa-apache.conf create mode 100644 gosa-core/debian/gosa-desktop.config create mode 100644 gosa-core/debian/gosa-desktop.desktop create mode 100644 gosa-core/debian/gosa-desktop.dirs create mode 100644 gosa-core/debian/gosa-desktop.install create mode 100644 gosa-core/debian/gosa-desktop.menu create mode 100644 gosa-core/debian/gosa-desktop.postinst create mode 100644 gosa-core/debian/gosa-desktop.postrm create mode 100644 gosa-core/debian/gosa-desktop.templates create mode 100644 gosa-core/debian/gosa-dev.dirs create mode 100644 gosa-core/debian/gosa-dev.install create mode 100644 gosa-core/debian/gosa-help-en.dirs create mode 100644 gosa-core/debian/gosa-help-en.install create mode 100644 gosa-core/debian/gosa-schema.dirs create mode 100644 gosa-core/debian/gosa-schema.install create mode 100644 gosa-core/debian/gosa.1 create mode 100644 gosa-core/debian/gosa.postinst create mode 100644 gosa-core/debian/gosa.postrm create mode 100644 gosa-core/debian/gosa.xpm create mode 100644 gosa-core/debian/install create mode 100755 gosa-core/debian/rules create mode 100644 gosa-core/debian/smarty-acl-render.dirs create mode 100644 gosa-core/debian/smarty-acl-render.install create mode 100644 gosa-core/debian/watch diff --git a/gosa-core/debian/README.Debian b/gosa-core/debian/README.Debian new file mode 100644 index 000000000..cfb650690 --- /dev/null +++ b/gosa-core/debian/README.Debian @@ -0,0 +1,83 @@ +GOsa 2.6 for debian +------------------- + +* Configure GOsa + +By default you can point your favorite browser to the GOsa setup by +using this URL: + +http://you.server.address/gosa + +Follow the instructions on the screen. + + +* Security related information + +GOsa is running as the www-data user. This makes it possible for other +web applications (well, this is the rule for allmost every web application +that stores information somewhere around) to read the gosa.conf file, which +may contain vital information about your LDAP service. + +To make it harder to extract these passwords, they get passed by request +headers by default. + +If this is not enough for you (exploitable PHP code may make it possible to +read the webservers memory), you can simply create another webserver instance +running as a different user on different port for GOsa exclusively. Or use +apache2-mpm-itk and assign a different user to a virtual host. + + +* Generic informations + +Getting GOsa running itself is not very complicated. Problems normally +arise when integrating it in various services. + +To play nice with your LDAP, you need to include the gosa schema files +into your LDAP configuration. For Debian, you should install the +gosa-schema package and add at least the following lines to your +LDAP-servers slapd.conf: + +Samba 2: +include /etc/ldap/schema/samba.schema +include /etc/ldap/schema/trust.schema +include /etc/ldap/schema/gosystem.schema +include /etc/ldap/schema/gofon.schema +include /etc/ldap/schema/goto.schema +include /etc/ldap/schema/gosa.schema +include /etc/ldap/schema/gofax.schema +include /etc/ldap/schema/goserver.schema +include /etc/ldap/schema/goto-mime.schema + +Samba 3: +include /etc/ldap/schema/samba3.schema +include /etc/ldap/schema/trust.schema +include /etc/ldap/schema/gosystem.schema +include /etc/ldap/schema/gofon.schema +include /etc/ldap/schema/goto.schema +include /etc/ldap/schema/gosa+samba3.schema +include /etc/ldap/schema/gofax.schema +include /etc/ldap/schema/goserver.schema +include /etc/ldap/schema/goto-mime.schema + +Schema files for samba and trust accounts are not part of the +gosa-schema package, but are included in: + +/usr/share/doc/gosa/contrib/openldap + +There's no need to have samba services up and running, GOsa only +uses the NT/LM attributes to pre-generate samba password hashes - +to allow easy switching of account properties without asking for +passwords after adding samba accounts. + + +* Smarty PHP errors + +There might pop up messages about "Only variables should be passed by +reference" when using PHP5. I can't do anything about them - these are +cause by smarty. To get rid of them set your "error_reporting" in the +php.ini to "E_ALL ^ E_NOTICE". This is a workaround only, wait for the +debian smarty package to support PHP5 in a propper way. + + + -- Cajus Pollmeier Mon, 07 Apr 2008 11:18:53 +0200 + diff --git a/gosa-core/debian/changelog b/gosa-core/debian/changelog new file mode 100644 index 000000000..199df838f --- /dev/null +++ b/gosa-core/debian/changelog @@ -0,0 +1,6 @@ +gosa (2.6.0-1) unstable; urgency=low + + * Initial upstream release of GOsa 2.6 + + -- Cajus Pollmeier Mon, 07 Apr 2008 11:18:53 +0200 + diff --git a/gosa-core/debian/compat b/gosa-core/debian/compat new file mode 100644 index 000000000..7ed6ff82d --- /dev/null +++ b/gosa-core/debian/compat @@ -0,0 +1 @@ +5 diff --git a/gosa-core/debian/control b/gosa-core/debian/control new file mode 100644 index 000000000..ba3e0d524 --- /dev/null +++ b/gosa-core/debian/control @@ -0,0 +1,97 @@ +Source: gosa +Section: web +Priority: optional +Maintainer: Cajus Pollmeier +Build-Depends: debhelper (>= 5), dpatch +Standards-Version: 3.7.2 + +Package: gosa +Architecture: all +Depends: php5, php5-cli, apache2-mpm-worker | apache2-mpm-threadpool | apache2-mpm-prefork | apache2-mpm-perchild, exim4 | mail-transport-agent, php5-gd,php5-imap, php5-ldap, php5-mhash, php5-mcrypt, php5-mysql, php5-imagick | imagemagick (>= 5.4.4.5-1) | graphicsmagick-im-compat, libcrypt-smbhash-perl, smarty, php5-recode, smarty-gettext, smarty-acl-render, gettext +Suggests: gosa-si-server, cyrus21-imapd (>= 2.1.11), postfix-ldap, slapd, gosa-schema +Description: Web Based LDAP Administration Program + Provided is access to posix, shadow, samba, proxy, fax, pureftp and + kerberos accounts. It is able to manage the postfix/cyrus server + combination and can write user adapted sieve scripts. + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + +Package: gosa-dev +Architecture: all +Depends: gosa, php5-cli, latex2html, lyx +Description: GOsa development utiles + This package contains a couple of tools to generate online + help, extract localisations and aid developing. + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + +Package: gosa-desktop +Architecture: all +Depends: konqueror | iceweasel | mozilla | firefox, debconf, po-debconf +Suggests: xbase-clients +Description: Desktop integration for GOsa + This package includes a menu definition for your desktop + environment. + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + +Package: gosa-schema +Architecture: all +Depends: slapd +Description: LDAP schema for GOsa + This package includes the LDAP schema needed by GOsa. + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + +Package: gosa-help-en +Architecture: all +Depends: gosa +Description: English online help for GOsa + This package includes the English online documentation for GOsa + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + +Package: gosa-help-de +Architecture: all +Depends: gosa +Description: German online help for GOsa + This package includes the German online documentation for GOsa + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + +Package: gosa-help-fr +Architecture: all +Depends: gosa +Description: French online help for GOsa + This package includes the French online documentation for GOsa + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + +Package: gosa-help-nl +Architecture: all +Depends: gosa +Description: Dutch online help for GOsa + This package includes the Dutch online documentation for GOsa + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + +Package: smarty-acl-render +Architecture: all +Depends: smarty +Suggests: gosa +Description: Provide ACL based rendering for Smarty + smarty-render provides acl based rendering support for Smarty, + the popular PHP templating engine (http://smarty.php.net/). This + module is mainly used by GOsa. + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + diff --git a/gosa-core/debian/copyright b/gosa-core/debian/copyright new file mode 100644 index 000000000..1ca638028 --- /dev/null +++ b/gosa-core/debian/copyright @@ -0,0 +1,35 @@ +This package was debianized by Cajus Pollmeier on +Mon, 07 Apr 2008 11:18:53 +0200. + +It was downloaded from http://www.gosa-project.org + +Upstream Author(s): + + Copyright (C) 2001-2008 Cajus Pollmeier + +Copyright: + + Copyright (C) 2001-2008 GONICUS GmbH + +License: + + This package 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 2 of the License, or + (at your option) any later version. + + This package 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. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2008, Cajus Pollmeier and +is licensed under the GPL, see above. + diff --git a/gosa-core/debian/dirs b/gosa-core/debian/dirs new file mode 100644 index 000000000..859fc2f08 --- /dev/null +++ b/gosa-core/debian/dirs @@ -0,0 +1,5 @@ +etc/gosa +usr/sbin +usr/share/gosa +usr/share/gosa/bin +var/spool/gosa diff --git a/gosa-core/debian/docs b/gosa-core/debian/docs new file mode 100644 index 000000000..222c768ee --- /dev/null +++ b/gosa-core/debian/docs @@ -0,0 +1,5 @@ +FAQ +DEVEL +README +INSTALL +README.safemode diff --git a/gosa-core/debian/gosa-16.xpm b/gosa-core/debian/gosa-16.xpm new file mode 100644 index 000000000..d9940d026 --- /dev/null +++ b/gosa-core/debian/gosa-16.xpm @@ -0,0 +1,137 @@ +/* XPM */ +static char * gosa_16_xpm[] = { +"16 16 118 2", +" c None", +". c #B0B1D3", +"+ c #B3B4D3", +"@ c #BEC1DF", +"# c #C6C9E7", +"$ c #CED0EE", +"% c #D4DAF3", +"& c #CCE0FA", +"* c #9ECEFE", +"= c #BBDDFF", +"- c #D1D8FA", +"; c #BEC8EE", +"> c #B1D3F4", +", c #95D4F5", +"' c #75CDF9", +") c #51BEFE", +"! c #3FAEFF", +"~ c #34A0FF", +"{ c #49A0FC", +"] c #B3B0C4", +"^ c #D0D6FA", +"/ c #A6D5F1", +"( c #87E0FF", +"_ c #6BD9FF", +": c #5BCCFF", +"< c #4EBCFF", +"[ c #41AEFF", +"} c #349FFF", +"| c #308AF1", +"1 c #BABACE", +"2 c #CFD4F4", +"3 c #9AC4EA", +"4 c #76DCFF", +"5 c #63D4FF", +"6 c #57C7FF", +"7 c #4AB8FF", +"8 c #3EAAFF", +"9 c #2C93F8", +"0 c #1D78EA", +"a c #B3B8D4", +"b c #C2C4E3", +"c c #A4C3ED", +"d c #63D6FF", +"e c #5BCBFF", +"f c #50BFFF", +"g c #44B1FE", +"h c #3198F8", +"i c #2382EF", +"j c #1572EA", +"k c #A3B5E2", +"l c #B5B6D2", +"m c #BAC9F3", +"n c #58C8FE", +"o c #51C0FF", +"p c #40ACFE", +"q c #3096F8", +"r c #2688F4", +"s c #1E7BEF", +"t c #136EEA", +"u c #94B4EE", +"v c #C9CEF2", +"w c #57B4F4", +"x c #3EABFF", +"y c #3098FC", +"z c #288CF8", +"A c #2081F4", +"B c #1875EF", +"C c #0D66EA", +"D c #95B8F4", +"E c #C7CBEE", +"F c #64ACF3", +"G c #2F97FF", +"H c #278CFC", +"I c #2082F8", +"J c #1978F3", +"K c #4288F0", +"L c #A0BFF4", +"M c #C1C2DA", +"N c #ACAED4", +"O c #82ABED", +"P c #238AFF", +"Q c #2282FA", +"R c #659FF5", +"S c #B6C8F2", +"T c #B1B2D0", +"U c #9F9FC6", +"V c #C0CAF3", +"W c #83AEF6", +"X c #BCC4EB", +"Y c #BCC1E8", +"Z c #7C7EB2", +"` c #B7BAE1", +" . c #B7B9DE", +".. c #DBE0F8", +"+. c #D1DAFF", +"@. c #9EA4D8", +"#. c #A9B2E1", +"$. c #B6C0F2", +"%. c #9197CF", +"&. c #DADBE9", +"*. c #EEF1FB", +"=. c #BBBDDE", +"-. c #C3C6E6", +";. c #A5AAD9", +">. c #B0B6E3", +",. c #B2BBEC", +"'. c #888DC6", +"). c #EDEDF9", +"!. c #F0F2FE", +"~. c #E8EDFE", +"{. c #D8DDF7", +"]. c #C5CBF0", +"^. c #888CBF", +"/. c #B6B7D4", +"(. c #F2F5FE", +"_. c #CBCFEA", +":. c #8B8CB9", +"<. c #7B7BA8", +" . + ", +" @ # $ % & * = ", +" - ; > , ' ) ! ~ { ] ", +" ^ / ( _ : < [ } | 1 ", +" 2 3 4 5 6 7 8 9 0 a ", +" b c d e f g h i j k ", +" l m n o p q r s t u ", +" v w x y z A B C D ", +" E F G H I J K L M ", +" N O P Q R S T ", +" U V W X Y Z ", +" ` ...+.@.#.$.%. ", +" &.*.=.-.;.>.,.'. ", +" ).!.~.{.].^. ", +" /.(._.:. ", +" <. "}; diff --git a/gosa-core/debian/gosa-apache.conf b/gosa-core/debian/gosa-apache.conf new file mode 100644 index 000000000..c18854571 --- /dev/null +++ b/gosa-core/debian/gosa-apache.conf @@ -0,0 +1,6 @@ +# Include GOsa to your web service +Alias /gosa/ /usr/share/gosa/html/ + + + include /etc/gosa/gosa.secrets + diff --git a/gosa-core/debian/gosa-desktop.config b/gosa-core/debian/gosa-desktop.config new file mode 100644 index 000000000..85204c897 --- /dev/null +++ b/gosa-core/debian/gosa-desktop.config @@ -0,0 +1,9 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# What is the URL? +db_input medium gosa-desktop/url || true +db_go + diff --git a/gosa-core/debian/gosa-desktop.desktop b/gosa-core/debian/gosa-desktop.desktop new file mode 100644 index 000000000..b5293cc05 --- /dev/null +++ b/gosa-core/debian/gosa-desktop.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +MimeType=text/plain +GenericName=GOsa² +Exec=/usr/bin/gosa +Icon=gosa +Path= +Type=Application +Terminal=false +Name=GOsa +X-KDE-StartupNotify=true +Categories=Qt;KDE;Utility;System diff --git a/gosa-core/debian/gosa-desktop.dirs b/gosa-core/debian/gosa-desktop.dirs new file mode 100644 index 000000000..d519c5232 --- /dev/null +++ b/gosa-core/debian/gosa-desktop.dirs @@ -0,0 +1,4 @@ +etc/gosa +usr/bin +usr/share/pixmaps +usr/share/applications diff --git a/gosa-core/debian/gosa-desktop.install b/gosa-core/debian/gosa-desktop.install new file mode 100644 index 000000000..367c52ca0 --- /dev/null +++ b/gosa-core/debian/gosa-desktop.install @@ -0,0 +1,5 @@ +contrib/scripts/desktoprc /etc/gosa +contrib/scripts/gosa /usr/bin +debian/gosa.xpm /usr/share/pixmaps +debian/gosa16.xpm /usr/share/pixmaps +debian/gosa-desktop.desktop /usr/share/applications diff --git a/gosa-core/debian/gosa-desktop.menu b/gosa-core/debian/gosa-desktop.menu new file mode 100644 index 000000000..ba39a861c --- /dev/null +++ b/gosa-core/debian/gosa-desktop.menu @@ -0,0 +1,8 @@ +?package(gosa-desktop):\ + needs="x11"\ + section="Apps/System"\ + hints="KDE"\ + icon32x32="/usr/share/pixmaps/gosa.xpm"\ + icon16x16="/usr/share/pixmaps/gosa-16.xpm"\ + title="GOsa"\ + command="gosa" diff --git a/gosa-core/debian/gosa-desktop.postinst b/gosa-core/debian/gosa-desktop.postinst new file mode 100644 index 000000000..6eb0f922f --- /dev/null +++ b/gosa-core/debian/gosa-desktop.postinst @@ -0,0 +1,11 @@ +#!/bin/sh -e + +#DEBHELPER# + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_get gosa-desktop/url +if [ -n "$RET" ]; then + echo "URL='$RET'" > /etc/gosa/desktoprc +fi diff --git a/gosa-core/debian/gosa-desktop.postrm b/gosa-core/debian/gosa-desktop.postrm new file mode 100644 index 000000000..b1329005f --- /dev/null +++ b/gosa-core/debian/gosa-desktop.postrm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +#DEBHELPER# + +if [ "$1" = "purge" ]; then + rm -f /etc/gosa/desktoprc +fi diff --git a/gosa-core/debian/gosa-desktop.templates b/gosa-core/debian/gosa-desktop.templates new file mode 100644 index 000000000..d4b94398c --- /dev/null +++ b/gosa-core/debian/gosa-desktop.templates @@ -0,0 +1,9 @@ +Template: gosa-desktop/url +Type: string +Default: https://www.gosa-project.org/demo/2.5 +_Description: URL to your GOsa installation: + The gosa start script can automatically point your + browser to a system wide default location of your + GOsa instance. + . + Enter the URL in order to set this default. diff --git a/gosa-core/debian/gosa-dev.dirs b/gosa-core/debian/gosa-dev.dirs new file mode 100644 index 000000000..415f082dd --- /dev/null +++ b/gosa-core/debian/gosa-dev.dirs @@ -0,0 +1 @@ +/usr/bin diff --git a/gosa-core/debian/gosa-dev.install b/gosa-core/debian/gosa-dev.install new file mode 100644 index 000000000..9dc0b8689 --- /dev/null +++ b/gosa-core/debian/gosa-dev.install @@ -0,0 +1,3 @@ +update-locale /usr/bin +update-online-help /usr/bin +update-pdf-help /usr/bin diff --git a/gosa-core/debian/gosa-help-en.dirs b/gosa-core/debian/gosa-help-en.dirs new file mode 100644 index 000000000..30369bb26 --- /dev/null +++ b/gosa-core/debian/gosa-help-en.dirs @@ -0,0 +1 @@ +usr/share/gosa/doc/core/en diff --git a/gosa-core/debian/gosa-help-en.install b/gosa-core/debian/gosa-help-en.install new file mode 100644 index 000000000..1a9031263 --- /dev/null +++ b/gosa-core/debian/gosa-help-en.install @@ -0,0 +1 @@ +doc/core/en/html /usr/share/gosa/doc/core/en diff --git a/gosa-core/debian/gosa-schema.dirs b/gosa-core/debian/gosa-schema.dirs new file mode 100644 index 000000000..44eb13d0c --- /dev/null +++ b/gosa-core/debian/gosa-schema.dirs @@ -0,0 +1 @@ +etc/ldap/schema/gosa diff --git a/gosa-core/debian/gosa-schema.install b/gosa-core/debian/gosa-schema.install new file mode 100644 index 000000000..690b76905 --- /dev/null +++ b/gosa-core/debian/gosa-schema.install @@ -0,0 +1,6 @@ +contrib/openldap/gosa-with-samba3.schema /etc/ldap/schema/gosa +contrib/openldap/gosa-with-samba2.schema /etc/ldap/schema/gosa +contrib/openldap/rfc2307bis.schema /etc/ldap/schema/gosa +contrib/openldap/samba3.schema /etc/ldap/schema/gosa +contrib/openldap/samba.schema /etc/ldap/schema/gosa +contrib/openldap/trust.schema /etc/ldap/schema/gosa diff --git a/gosa-core/debian/gosa.1 b/gosa-core/debian/gosa.1 new file mode 100644 index 000000000..73f383efe --- /dev/null +++ b/gosa-core/debian/gosa.1 @@ -0,0 +1,41 @@ +.TH gosa 1 +.SH NAME +gosa \- start script for the GOsa web interface +.SH SYNOPSIS +.PP +.B gosa +[ +URL +] +.SH DESCRIPTION +Start the +.B GOsa +web interface using a gecko based browser and generate +a special browser profile for +.B GOsa +usage. This profile will disable +normal style browser navigation and URL fields. +.SH OPTIONS +.TP +.BR URL +Open this URL when launching the browser with the GOsa profile. This +option is optional and may be preset by the +.B configuration +files. +.SH "RETURN VALUE" +The script return zero values on success. +.SH EXAMPLES +.B gosa +https://admin.example.net +.SH FILES +Presetting the URL works by placing something like +.B URL="http://admin.example.net" +inside one of these files: +.br +.nf +.\" set tabstop to longest possible filename, plus a wee bit +.ta \w'/usr/lib/perl/getopts.pl 'u +\fI/etc/gosa/desktoprc\fR system wide setting +\fI$HOME/.gosa-desktop\fR user specific setting +.SH AUTHOR +Cajus Pollmeier diff --git a/gosa-core/debian/gosa.postinst b/gosa-core/debian/gosa.postinst new file mode 100644 index 000000000..622d1c220 --- /dev/null +++ b/gosa-core/debian/gosa.postinst @@ -0,0 +1,69 @@ +#!/bin/sh +# postinst script for gosa +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +# Set ID's +WEBUSER="www-data" +WEBGROUP="www-data" + +# Create empty inclusion file for apache +if [ ! -f /etc/gosa/gosa.secrets ]; then + touch /etc/gosa/gosa.secrets + chown root.root /etc/gosa/gosa.secrets + chmod 600 /etc/gosa/gosa.secrets +fi + +# Copy GOsa configuration to conf.d directories +if [ ! -f /etc/apache2/conf.d/gosa.conf ]; then + echo "Making /gosa available in /etc/apache2/conf.d" + + # Add GOsa include file + ln -s /etc/gosa/apache-gosa.conf /etc/apache2/conf.d/gosa.conf +fi + +# Add links for safe mode +[ ! -d /usr/share/gosa/bin ] && mkdir -p /usr/share/gosa/bin +for source in /usr/bin/convert /usr/bin/lpstat; do + if [ -e $source ]; then + target=/usr/share/gosa/bin/${source##*/} + [ ! -L $target ] && ln -sf $source $target + fi +done + +# Fix permission in /var/spool/gosa +chown root.$WEBGROUP -R /var/spool/gosa +chmod 770 -R /var/spool/gosa + +# Add support for RequestHeader +a2enmod headers + +# Update gosa +/usr/sbin/update-gosa + +# Finally restart servers +if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d apache2 reload +else + /etc/init.d/apache2 reload +fi + +exit 0 + diff --git a/gosa-core/debian/gosa.postrm b/gosa-core/debian/gosa.postrm new file mode 100644 index 000000000..12252fa91 --- /dev/null +++ b/gosa-core/debian/gosa.postrm @@ -0,0 +1,42 @@ +#! /bin/sh +# postrm script for GOsa +# + +set -e + +case "$1" in + purge|remove) + + # Pure here + if [ "$1" = "purge" ] ; then + if [ -d /var/spool/gosa ] ; then + echo "Removing /var/spool/gosa as requested." + rm -Rf /var/spool/gosa + fi + fi + + # Remove GOsa include + [ -L /etc/apache2/conf.d/gosa.conf ] && rm -f /etc/apache2/conf.d/gosa.conf + + + # Restart servers + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d apache2 restart + else + /etc/init.d/apache2 restart + fi + + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/gosa-core/debian/gosa.xpm b/gosa-core/debian/gosa.xpm new file mode 100644 index 000000000..b27a7ae0d --- /dev/null +++ b/gosa-core/debian/gosa.xpm @@ -0,0 +1,490 @@ +/* XPM */ +static char * gosa_xpm[] = { +"32 32 455 2", +" c None", +". c #8585A9", +"+ c #9E9EC5", +"@ c #A8A8CF", +"# c #ACADD2", +"$ c #B5B7D9", +"% c #C1C2E2", +"& c #D8DAF2", +"* c #C0C2E2", +"= c #7B7BA6", +"- c #AFAFCE", +"; c #B5B6D6", +"> c #BBBDDE", +", c #C1C3E5", +"' c #CBCDEB", +") c #D8DAF3", +"! c #E7E9FB", +"~ c #EDEFFD", +"{ c #E9EFFE", +"] c #DCECFE", +"^ c #DDEEFF", +"/ c #F6F9FE", +"( c #9696BD", +"_ c #BDBCD6", +": c #C0C1DC", +"< c #BEBFDD", +"[ c #C3C5E4", +"} c #C9CDED", +"| c #D1D7F5", +"1 c #D6DCF8", +"2 c #DCDEFA", +"3 c #DFE0F9", +"4 c #DBE2F8", +"5 c #D0E0F7", +"6 c #BBD9F7", +"7 c #9FCFF9", +"8 c #6AB8FD", +"9 c #4AA7FE", +"0 c #4DA6FF", +"a c #CCE6FF", +"b c #ABAAC9", +"c c #C8C8E0", +"d c #D8DBF2", +"e c #CED5F8", +"f c #CCD5FB", +"g c #CBD2F7", +"h c #CAD2F6", +"i c #C8D3F6", +"j c #BCD1F2", +"k c #B1CEED", +"l c #9BCDF0", +"m c #80CBF5", +"n c #5DC3FC", +"o c #4BBAFF", +"p c #40B1FF", +"q c #39AAFF", +"r c #36A3FF", +"s c #319DFF", +"t c #2490FF", +"u c #7DBCFE", +"v c #C7C3D7", +"w c #C9C9DC", +"x c #D5DDFE", +"y c #C9D4FF", +"z c #B4BBE3", +"A c #ADC0E3", +"B c #A2D0EF", +"C c #91D8F7", +"D c #7BD9FA", +"E c #6CD7FC", +"F c #60D1FF", +"G c #58CBFF", +"H c #51C2FF", +"I c #4CBBFF", +"J c #44B2FF", +"K c #3FACFF", +"L c #37A3FF", +"M c #2490FD", +"N c #5FA6F7", +"O c #D6D4E1", +"P c #C4C4DB", +"Q c #D5DDFD", +"R c #C5CDF9", +"S c #A8C1E3", +"T c #A9EAFE", +"U c #92E4FF", +"V c #83DFFF", +"W c #71DBFF", +"X c #67D8FF", +"Y c #5ED0FF", +"Z c #59CAFF", +"` c #51C1FF", +" . c #3EABFF", +".. c #37A2FF", +"+. c #319CFF", +"@. c #238BF8", +"#. c #4592EF", +"$. c #DEDEEA", +"%. c #B8B8D2", +"&. c #DBDFF8", +"*. c #C9D1FC", +"=. c #A6C3E6", +"-. c #9FE5FE", +";. c #8BE1FF", +">. c #7DDEFF", +",. c #6EDAFF", +"'. c #65D6FF", +"). c #5DCFFF", +"!. c #58C8FF", +"~. c #50BFFF", +"{. c #4AB8FF", +"]. c #43B0FF", +"^. c #3EAAFF", +"/. c #36A2FF", +"(. c #309CFF", +"_. c #2083F2", +":. c #3788EC", +"<. c #DFE1EF", +"[. c #737291", +"}. c #D5D6F0", +"|. c #CFD8FE", +"1. c #A5B5DF", +"2. c #8FDAF7", +"3. c #80DFFF", +"4. c #74DBFF", +"5. c #68D8FF", +"6. c #62D3FF", +"7. c #5BCBFF", +"8. c #56C6FF", +"9. c #4EBDFF", +"0. c #48B6FF", +"a. c #41AFFF", +"b. c #3CA8FF", +"c. c #34A0FF", +"d. c #2B91F8", +"e. c #1D7AEB", +"f. c #247CEB", +"g. c #DBE2F5", +"h. c #7F7E9F", +"i. c #C7C8E6", +"j. c #D0D8FB", +"k. c #ADB6E2", +"l. c #86CDF1", +"m. c #76DCFF", +"n. c #6CD9FF", +"o. c #63D5FF", +"p. c #5FD0FF", +"q. c #53C2FF", +"r. c #4CBAFF", +"s. c #46B4FF", +"t. c #3AA7FF", +"u. c #2F97FA", +"v. c #2485F0", +"w. c #1D79EB", +"x. c #1773E9", +"y. c #CFDCF7", +"z. c #8988AB", +"A. c #B6B6D4", +"B. c #CED4F7", +"C. c #BDC3EE", +"D. c #84C0E9", +"E. c #68DAFF", +"F. c #64D6FF", +"G. c #60D0FF", +"H. c #54C4FF", +"I. c #50BEFF", +"J. c #49B7FF", +"K. c #44B1FF", +"L. c #3BA7FE", +"M. c #3199F9", +"N. c #2685F0", +"O. c #2280EE", +"P. c #1C78EB", +"Q. c #0F6DE9", +"R. c #A8C7F6", +"S. c #A6A4C6", +"T. c #A5A4C0", +"U. c #D2D6F4", +"V. c #C5CCF6", +"W. c #8ABDE8", +"X. c #62D7FF", +"Y. c #5FD1FF", +"Z. c #51C0FF", +"`. c #45B2FF", +" + c #3DA9FD", +".+ c #3096F7", +"++ c #298BF3", +"@+ c #2483F0", +"#+ c #207EEE", +"$+ c #1A76EB", +"%+ c #0E6BE9", +"&+ c #88B4F4", +"*+ c #B6B5D5", +"=+ c #CBCCE6", +"-+ c #CED5FC", +";+ c #9DBCEA", +">+ c #5ACEFF", +",+ c #55C5FF", +"'+ c #4BB9FF", +")+ c #42AFFE", +"!+ c #369EFA", +"~+ c #2F94F7", +"{+ c #2A8DF5", +"]+ c #2687F3", +"^+ c #2180F0", +"/+ c #1D7AEE", +"(+ c #1773EB", +"_+ c #106BE9", +":+ c #609AF0", +"<+ c #CCCDE6", +"[+ c #B5B5D4", +"}+ c #D1D9FE", +"|+ c #AEBAE7", +"1+ c #58C3FA", +"2+ c #3EA9FE", +"3+ c #359EFC", +"4+ c #2F96F9", +"5+ c #2C91F7", +"6+ c #278AF5", +"7+ c #2384F3", +"8+ c #1E7CF0", +"9+ c #1A77EE", +"0+ c #1570EB", +"a+ c #0F69E9", +"b+ c #4D8DEF", +"c+ c #D9DDF2", +"d+ c #A2A1C6", +"e+ c #CFD6F8", +"f+ c #BEC0EA", +"g+ c #61B2EC", +"h+ c #4BBDFF", +"i+ c #3DA9FF", +"j+ c #339CFD", +"k+ c #3098FB", +"l+ c #2C91F9", +"m+ c #288CF7", +"n+ c #2486F5", +"o+ c #2080F3", +"p+ c #1B79F0", +"q+ c #1774EE", +"r+ c #126CEB", +"s+ c #0E66E9", +"t+ c #3B7FEC", +"u+ c #E3EBFC", +"v+ c #9898BD", +"w+ c #CED3F2", +"x+ c #CACEF5", +"y+ c #6AAAE7", +"z+ c #46B6FF", +"A+ c #349FFF", +"B+ c #2F97FD", +"C+ c #2C93FB", +"D+ c #288DF9", +"E+ c #2588F7", +"F+ c #2182F4", +"G+ c #1D7CF2", +"H+ c #1876F0", +"I+ c #1570EE", +"J+ c #0E68EB", +"K+ c #0660E9", +"L+ c #4D88ED", +"M+ c #E9F0FD", +"N+ c #C5C6E8", +"O+ c #D3DAFE", +"P+ c #80AFEA", +"Q+ c #3FACFD", +"R+ c #339DFF", +"S+ c #2F97FF", +"T+ c #2A91FD", +"U+ c #288DFB", +"V+ c #2387F9", +"W+ c #2182F7", +"X+ c #1D7DF4", +"Y+ c #1977F2", +"Z+ c #116EF0", +"`+ c #176EED", +" @ c #3E83ED", +".@ c #7DA9F1", +"+@ c #EDF0FA", +"@@ c #E0E0F1", +"#@ c #B0B0D6", +"$@ c #D4DAFA", +"%@ c #95B4EB", +"&@ c #3DA3F9", +"*@ c #2E97FF", +"=@ c #2B92FF", +"-@ c #268CFD", +";@ c #2488FB", +">@ c #2082F9", +",@ c #1D7EF7", +"'@ c #1576F5", +")@ c #1874F1", +"!@ c #488BEF", +"~@ c #96B8F3", +"{@ c #E0E9FB", +"]@ c #E5E7F8", +"^@ c #B4B5D6", +"/@ c #6C6C98", +"(@ c #9090B6", +"_@ c #CACFF2", +":@ c #AEBBEB", +"<@ c #4498F2", +"[@ c #288FFF", +"}@ c #248BFF", +"|@ c #2185FD", +"1@ c #1C80FB", +"2@ c #1D7CF7", +"3@ c #3284F4", +"4@ c #70A3F2", +"5@ c #C5D3F3", +"6@ c #E7E8F8", +"7@ c #D4D5EC", +"8@ c #9797C1", +"9@ c #5F5F95", +"0@ c #8181A7", +"a@ c #BFC3EA", +"b@ c #BEC6F0", +"c@ c #5894E8", +"d@ c #2189FF", +"e@ c #1E84FF", +"f@ c #1B7EFC", +"g@ c #3285F6", +"h@ c #80AAF1", +"i@ c #C4D2F7", +"j@ c #DBE0F8", +"k@ c #C9CCEB", +"l@ c #8586B1", +"m@ c #5F6089", +"n@ c #B4B5DB", +"o@ c #D0D7F9", +"p@ c #94A7E0", +"q@ c #388AF5", +"r@ c #4D94F7", +"s@ c #A6BDF0", +"t@ c #D4D9F5", +"u@ c #CFD1EE", +"v@ c #B9BEE4", +"w@ c #7C7EB5", +"x@ c #3A3A5E", +"y@ c #A09FC9", +"z@ c #D3DAFB", +"A@ c #CAD2F8", +"B@ c #BCC7F2", +"C@ c #CCD5FA", +"D@ c #C5C9EC", +"E@ c #AFB1DB", +"F@ c #AAAEDD", +"G@ c #8D91CA", +"H@ c #9094C7", +"I@ c #8B8FC7", +"J@ c #A6A9D8", +"K@ c #BEC5EE", +"L@ c #B8BEE7", +"M@ c #ACAED7", +"N@ c #C5C7E6", +"O@ c #DBE1FA", +"P@ c #D7DFFF", +"Q@ c #CED8FF", +"R@ c #9BA0D8", +"S@ c #A8AFDC", +"T@ c #ACB5E3", +"U@ c #ADB6E7", +"V@ c #B9C2F6", +"W@ c #9DA4DB", +"X@ c #767BAE", +"Y@ c #BFC0E1", +"Z@ c #B7B9DD", +"`@ c #9D9ECC", +" # c #DBDBEC", +".# c #ECF0FF", +"+# c #E1E7FF", +"@# c #D5DEFF", +"## c #CBD5FE", +"$# c #969BD4", +"%# c #A1A7D7", +"&# c #A8B1DF", +"*# c #A2ABDC", +"=# c #BCC7F7", +"-# c #C6D1FF", +";# c #BAC4F6", +"># c #8387C9", +",# c #E6E8F4", +"'# c #F2F5FD", +")# c #F3F6FE", +"!# c #C8C9E2", +"~# c #D7DCF6", +"{# c #B2B7E4", +"]# c #9194CC", +"^# c #9296CB", +"/# c #ADB4E1", +"(# c #B1B9E6", +"_# c #BBC5F4", +":# c #B7C1F3", +"<# c #A0A8E2", +"[# c #6668A9", +"}# c #474685", +"|# c #CBCBDE", +"1# c #F5F7FC", +"2# c #EBECF8", +"3# c #E9ECF9", +"4# c #D1D4EE", +"5# c #B2B4DA", +"6# c #9798CB", +"7# c #9EA2D1", +"8# c #B4BAE2", +"9# c #BDC4EC", +"0# c #C2CBF4", +"a# c #BDC6F5", +"b# c #A1A8E2", +"c# c #6668A8", +"d# c #48497F", +"e# c #E4E5F6", +"f# c #F8F9FE", +"g# c #EFF1FC", +"h# c #EDF0FD", +"i# c #EAEEFE", +"j# c #E5EAFC", +"k# c #C3C8E8", +"l# c #D5DAF6", +"m# c #DAE1FD", +"n# c #D4DCFD", +"o# c #BCC3EE", +"p# c #989CD4", +"q# c #5B5C9C", +"r# c #3F3E73", +"s# c #DCDCF1", +"t# c #FAFBFF", +"u# c #F3F6FF", +"v# c #EFF2FF", +"w# c #EBEFFF", +"x# c #E8ECFF", +"y# c #E5EBFF", +"z# c #E2E8FF", +"A# c #C7CCF0", +"B# c #9EA1D6", +"C# c #61629B", +"D# c #444374", +"E# c #9F9FC5", +"F# c #EEF0F9", +"G# c #F4F6FF", +"H# c #EFF3FF", +"I# c #EDF1FF", +"J# c #E1E6F9", +"K# c #C3C7EA", +"L# c #9293C6", +"M# c #5A5996", +"N# c #B5B6D7", +"O# c #F5F8FE", +"P# c #EEF2FC", +"Q# c #CACDEA", +"R# c #9496C7", +"S# c #5F5F92", +"T# c #9696C4", +"U# c #8585B7", +"V# c #585890", +" . ", +" + @ # $ % & * = ", +" - ; > , ' ) ! ~ { ] ^ / ( ", +" _ : < [ } | 1 2 3 4 5 6 7 8 9 0 a b ", +" c d e f g h i j k l m n o p q r s t u v ", +" w x y z A B C D E F G H I J K L s M N O ", +" P Q R S T U V W X Y Z ` o J ...+.@.#.$. ", +" %.&.*.=.-.;.>.,.'.).!.~.{.].^./.(._.:.<.[. ", +" }.|.1.2.3.4.5.6.7.8.9.0.a.b.c.d.e.f.g.h. ", +" i.j.k.l.m.n.o.p.!.q.r.s.K t.u.v.w.x.y.z. ", +" A.B.C.D.E.F.G.7.H.I.J.K.L.M.N.O.P.Q.R.S. ", +" T.U.V.W.X.Y.7.8.Z.I `. +.+++@+#+$+%+&+*+ ", +" =+-+;+>+Z ,+Z.'+)+!+~+{+]+^+/+(+_+:+<+ ", +" [+}+|+1+H.Z.I 2+3+4+5+6+7+8+9+0+a+b+c+ ", +" d+e+f+g+h+J.i+j+k+l+m+n+o+p+q+r+s+t+u+ ", +" v+w+x+y+z+K A+B+C+D+E+F+G+H+I+J+K+L+M+ ", +" N+O+P+Q+R+S+T+U+V+W+X+Y+Z+`+ @.@+@@@ ", +" #@$@%@&@*@=@-@;@>@,@'@)@!@~@{@]@^@/@ ", +" (@_@:@<@[@}@|@1@2@3@4@5@6@7@8@9@ ", +" 0@a@b@c@d@e@f@g@h@i@j@k@l@m@ ", +" n@o@p@q@r@s@t@u@v@w@x@ ", +" y@z@A@B@C@D@E@F@b@G@H@I@ ", +" J@K@L@M@N@O@P@Q@R@S@T@U@V@W@X@ ", +" Y@Z@`@ #.#+#@###$#%#&#*#=#-#;#># ", +" ,#'#)#Z@!#.#~#{#]#^#/#(#_#:#<#[#}# ", +" |#1#2#3#4#`@5#6#7#8#9#0#a#b#c#d# ", +" e#f#g#h#i#j#k#l#m#n#o#p#q#r# ", +" s#t#u#v#w#x#y#z#A#B#C#D# ", +" E#F#G#H#I#J#K#L#M# ", +" N#O#P#Q#R#S# ", +" T#U#V# ", +" "}; diff --git a/gosa-core/debian/install b/gosa-core/debian/install new file mode 100644 index 000000000..a78162a64 --- /dev/null +++ b/gosa-core/debian/install @@ -0,0 +1,7 @@ +update-gosa /usr/sbin +html /usr/share/gosa +ihtml /usr/share/gosa +include /usr/share/gosa +locale /usr/share/gosa +plugins /usr/share/gosa +setup /usr/share/gosa diff --git a/gosa-core/debian/rules b/gosa-core/debian/rules new file mode 100755 index 000000000..1a7621c96 --- /dev/null +++ b/gosa-core/debian/rules @@ -0,0 +1,116 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +#Architecture +build: patch build-arch build-indep + #************************************************* + #* Building GOsa into a Debian/GNU Linux Package * + #* please stand by * + #************************************************* + +build-arch: build-arch-stamp +build-arch-stamp: configure-stamp + + # Add here commands to compile the arch part of the package. + #$(MAKE) + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: configure-stamp + + touch $@ + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp configure-stamp + + dh_clean + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +install: install-indep install-arch +install-indep: + dh_testdir + dh_testroot + dh_clean -k -i + dh_installdirs -i + + # Add here commands to install the indep part of the package into + # debian/-doc. + #INSTALLDOC# + + dh_install -i + +install-arch: + dh_testdir + dh_testroot + dh_clean -k -s + dh_installdirs -s + + dh_install -s + +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs Changelog + dh_installdocs + dh_installexamples + dh_installmenu + dh_installdebconf + dh_installman -pgosa-desktop gosa.1 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +# Build architecture independant packages using the common target. +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: build-arch install-arch + $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure diff --git a/gosa-core/debian/smarty-acl-render.dirs b/gosa-core/debian/smarty-acl-render.dirs new file mode 100644 index 000000000..baad34c2b --- /dev/null +++ b/gosa-core/debian/smarty-acl-render.dirs @@ -0,0 +1 @@ +usr/share/php/smarty/libs/plugins diff --git a/gosa-core/debian/smarty-acl-render.install b/gosa-core/debian/smarty-acl-render.install new file mode 100644 index 000000000..3132482d7 --- /dev/null +++ b/gosa-core/debian/smarty-acl-render.install @@ -0,0 +1,2 @@ +include/smarty/plugins/block.render.php /usr/share/php/smarty/libs/plugins +include/smarty/plugins/function.msgPool.php /usr/share/php/smarty/libs/plugins diff --git a/gosa-core/debian/watch b/gosa-core/debian/watch new file mode 100644 index 000000000..63c5ddd00 --- /dev/null +++ b/gosa-core/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://oss.gonicus.de/pub/gosa/gosa-(.*)\.tar\.gz -- 2.30.2