[Kolab-devel] Kolab Horde Integration

Adriaan Putter a.putter at codefusion.co.za
Fri Jun 6 09:10:52 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Stephan,

Just remember, we are currently working on the CVS HEAD of Horde and
modules.

Stephan Buys wrote:
| Hi,
|
| I would like to add a directory to Kolab cvs called horde that will
host the
| Kolab web interface.
|
| The layout will be as follows:
|
| server
| 	/horde
| 		/Makefile
| 		/horde.spec
|                 /horde_horde.php
|                 /horde_mime_drivers.php
|                 /horde_mime_mapping.php
| 		/horde_html.php
|                 /horde_registry.php
|                 /turba_attributes.php
|                 /turba_conf.php
|                 /turba_html.php
|                 /turba_prefs.php
|                 /turba_sources.php
|                 /imp_conf.php
|                 /imp_html.php
|                 /imp_mime_drivers.php
|                 /imp_prefs.php
|                 /imp_servers.php
|                 /mnemo_conf.php
|                 /mnemo_menu.php
|                 /mnemo_prefs.php
|                 /nag_conf.php
|                 /nag_html.php
|                 /nag_prefs.php
|
| Configurations are managed through the PHP files.
|
| Ok to add to CVS?
| .spec file attached.
|
| Regards,
|
|
| ------------------------------------------------------------------------
|
| ##
| ##  horde.spec -- OpenPKG RPM Specification
| ##  Copyright (c) 2003 Code Fusion cc South Africa
| ##
| ##  Permission to use, copy, modify, and distribute this software for
| ##  any purpose with or without fee is hereby granted, provided that
| ##  the above copyright notice and this permission notice appear in all
| ##  copies.
| ##
| ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR
| ##  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.
| ##
|
| #   package versions
| %define       V_horde         2.2.3
| %define       V_pear          1.1
| %define       V_imp           3.2.1
| %define       V_turba         1.2
| %define       V_kronolith     1.1
| %define       V_mnemo         1.1
| %define       V_nag           1.1
|
| #   package information
| Name:         horde
| Summary:      Horde Webmail Framework
| URL:          http://www.horde.org/horde/
| Vendor:       Horde
| Packager:     Stephan Buys - Code Fusion
| Distribution: Kolab
| Group:        core
| License:      LGPL
| Version:      %{V_horde}
| Release:      20030424
|
| #   package options
| #%option       with_beta  yes
|
| #   list of sources
| Source0:      ftp://ftp.horde.org/pub/horde/horde-%{V_horde}.tar.gz
| Source1:      ftp://ftp.horde.org/pub/pear/pear-%{V_pear}.tar.gz
| Source2:      ftp://ftp.horde.org/pub/imp/imp-%{V_imp}.tar.gz
| Source3:      ftp://ftp.horde.org/pub/turba/turba-%{V_turba}.tar.gz
| Source4:
ftp://ftp.horde.org/pub/kronolith/kronolith-%{V_kronolith}.tar.gz
| Source5:      ftp://ftp.horde.org/pub/mnemo/mnemo-%{V_mnemo}.tar.gz
| Source6:      ftp://ftp.horde.org/pub/nag-%{V_nag}.tar.gz
| Source7:      horde_horde.php
| Source8:      horde_html.php
| Source9:      horde_mime_drivers.php
| Source10:     horde_mime_mapping.php
| Source11:     horde_registry.php
| Source12:     imp_conf.php
| Source13:     imp_html.php
| Source14:     imp_prefs.php
| Source15:     imp_mime_drivers.php
| Source16:     imp_servers.php
| Source17:     turba_conf.php
| Source18:     turba_html.php
| Source19:     turba_prefs.php
| Source20:     turba_sources.php
| Source21:     turba_attributes.php
| Source22:     kronolith_conf.php
| Source23:     kronolith_html.php
| Source24:     kronolith_prefs.php
| Source25:     mnemo_conf.php
| Source26:     mnemo_prefs.php
| Source27:     nag_conf.php
| Source28:     nag_prefs.php
| Source29:     nag_html.php
|
| #   build information
| Prefix:       %{l_prefix}
| BuildRoot:    %{l_buildroot}
| BuildPreReq:  OpenPKG, openpkg >= 20030103, apache
| PreReq:       OpenPKG, openpkg >= 20030103
| AutoReq:      no
| AutoReqProv:  no
|
| %description
|     Horde is the framework component for such webmail components as IMP,
|     Kronolith, Mnemo and Turba by the Horde projects.
|
| %prep
|     %setup0 -q -c
|     %setup1  -q -T -D -a 1
|     %setup2  -q -T -D -a 2
|     %setup3  -q -T -D -a 3
|     %setup4  -q -T -D -a 4
|     %setup5  -q -T -D -a 5
|     %setup6  -q -T -D -a 6
|
| %build
|     #Done
|
| %install
|     rm -rf $RPM_BUILD_ROOT
|
|     %{l_shtool} mkdir -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/
|     %{l_shtool} mkdir -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib/php
|
|     ( %{l_shtool} move horde-%{V_horde} horde
|       cp -r horde/ $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/
|       cp -r pear/ $RPM_BUILD_ROOT%{l_prefix}/lib/php/
|       %{l_shtool} move imp-%{V_imp} imp
|       cp -r imp/ $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/
|       %{l_shtool} move turba-%{V_turba} turba
|       cp -r turba/ $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/
|       %{l_shtool} move kronolith-%{V_kronolith} kronolith
|       cp -r kronolith/ $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/
|       %{l_shtool} move mnemo-%{V_mnemo} mnemo
|       cp -r mnemo/ $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/
|        %{l_shtool} move nag-%{V_nag} nag
|       cp -r nag/ $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/
|    )
|
|     #Handle Horde configuration files
|     %{l_shtool} install -c -m 755 %{SOURCE horde_horde.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/config/horde.php
|     %{l_shtool} install -c -m 755 %{SOURCE horde_html.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/config/html.php
|     %{l_shtool} install -c -m 755 %{SOURCE horde_mime_drivers.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/config/mime_drivers.php
|     %{l_shtool} install -c -m 755 %{SOURCE horde_mime_mapping.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/config/mime_mapping.php
|     %{l_shtool} install -c -m 755 %{SOURCE horde_registry.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/config/registry.php
|     # Handle IMP configuration files
|     %{l_shtool} install -c -m 755 %{SOURCE imp_conf.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/imp/config/conf.php
|     %{l_shtool} install -c -m 755 %{SOURCE imp_html.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/imp/config/html.php
|     %{l_shtool} install -c -m 755 %{SOURCE imp_prefs.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/imp/config/prefs.php
|     %{l_shtool} install -c -m 755 %{SOURCE imp_mime_drivers.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/imp/config/mime_drivers.php
|     %{l_shtool} install -c -m 755 %{SOURCE imp_servers.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/imp/config/servers.php
|      # Handle Turba configuration files
|     %{l_shtool} install -c -m 755 %{SOURCE turba_conf.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/turba/config/conf.php
|     %{l_shtool} install -c -m 755 %{SOURCE turba_html.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/turba/config/html.php
|     %{l_shtool} install -c -m 755 %{SOURCE turba_prefs.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/turba/config/prefs.php
|     %{l_shtool} install -c -m 755 %{SOURCE turba_sources.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/turba/config/sources.php
|     %{l_shtool} install -c -m 755 %{SOURCE turba_attributes.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/turba/config/attributes.php
|       # Handle Kronolith configuration files
|     %{l_shtool} install -c -m 755 %{SOURCE kronolith_conf.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/kronolith/config/conf.php
|     %{l_shtool} install -c -m 755 %{SOURCE kronolith_html.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/kronolith/config/html.php
|     %{l_shtool} install -c -m 755 %{SOURCE kronolith_prefs.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/kronolith/config/prefs.php
|        # Handle Mnemo configuration files
|     %{l_shtool} install -c -m 755 %{SOURCE mnemo_conf.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/mnemo/config/conf.php
|     %{l_shtool} install -c -m 755 %{SOURCE mnemo_prefs.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/mnemo/config/prefs.php
|         # Handle Nag configuration files
|     %{l_shtool} install -c -m 755 %{SOURCE nag_conf.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/nag/config/conf.php
|     %{l_shtool} install -c -m 755 %{SOURCE nag_prefs.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/nag/config/prefs.php
|     %{l_shtool} install -c -m 755 %{SOURCE nag_html.php}
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/nag/config/html.php
|
|     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
| %files -f files
|
| %clean
|     rm -rf $RPM_BUILD_ROOT
|

- --
Adriaan Putter
Code Fusion cc

GPG Key:
http://www.mandrakesecure.net/cks/search.cgi?stype=keyid_4b&keyid_4b=8B90E6FD
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6-2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAj7gPnwACgkQj20UkouQ5v3wpgCfTu1ZxdICthf6BXgqHttnu5Nk
wXcAoIe0PxkgA7Ycvs07zq7ScXi9Dv3d
=P3mL
-----END PGP SIGNATURE-----





More information about the devel mailing list