summaryrefslogtreecommitdiff
path: root/kolab-webclient/ingo
diff options
context:
space:
mode:
Diffstat (limited to 'kolab-webclient/ingo')
-rw-r--r--kolab-webclient/ingo/.cvsignore4
-rw-r--r--kolab-webclient/ingo/Makefile19
-rw-r--r--kolab-webclient/ingo/configuration/ingo-1.2.3/10-kolab_backends_base.php27
-rw-r--r--kolab-webclient/ingo/configuration/ingo-1.2.3/10-kolab_conf_base.php3
-rw-r--r--kolab-webclient/ingo/ingo.spec110
-rw-r--r--kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_backends.php.template11
-rw-r--r--kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_conf.php.template11
-rw-r--r--kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_fields.php.template11
-rw-r--r--kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_hooks.php.template11
-rw-r--r--kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_prefs.php.template11
10 files changed, 218 insertions, 0 deletions
diff --git a/kolab-webclient/ingo/.cvsignore b/kolab-webclient/ingo/.cvsignore
new file mode 100644
index 0000000..bdb1347
--- /dev/null
+++ b/kolab-webclient/ingo/.cvsignore
@@ -0,0 +1,4 @@
+*.src.rpm
+*.tar.gz
+package.patch
+tmp
diff --git a/kolab-webclient/ingo/Makefile b/kolab-webclient/ingo/Makefile
new file mode 100644
index 0000000..defab32
--- /dev/null
+++ b/kolab-webclient/ingo/Makefile
@@ -0,0 +1,19 @@
+STAGING = ../../stage
+
+include ../../make-helper/kolab.mk
+
+SOURCE_URL=http://ftp.horde.org/pub/$(PACKAGE)
+SOURCE_0 ?= $(PACKAGE)-h3-$(VERSION).$(SOURCE_FORMAT)
+
+include ../../make-helper/package.mk
+include ../../make-helper/patch-series.mk
+
+# Get the list of templates if there are any in the template directory
+TEMPLATES = $(shell ls templates/$(PACKAGE)-$(VERSION)/*.template 2> /dev/null)
+
+# Get the list of configuration files if there are any in the configuration directory
+CONFIGURATION = $(shell ls configuration/$(PACKAGE)-$(VERSION)/*.php 2> /dev/null)
+
+EXTRA = package.patch $(TEMPLATES) $(CONFIGURATION)
+
+include ../../make-helper/package-new.mk
diff --git a/kolab-webclient/ingo/configuration/ingo-1.2.3/10-kolab_backends_base.php b/kolab-webclient/ingo/configuration/ingo-1.2.3/10-kolab_backends_base.php
new file mode 100644
index 0000000..4acb4ba
--- /dev/null
+++ b/kolab-webclient/ingo/configuration/ingo-1.2.3/10-kolab_backends_base.php
@@ -0,0 +1,27 @@
+<?php
+
+$backends = array();
+
+require_once 'Horde/Kolab.php';
+
+if (!is_callable('Kolab', 'getServer')) {
+ $server = $GLOBALS['conf']['kolab']['imap']['server'];
+ } else {
+ $server = Kolab::getServer('imap');
+ }
+
+$backends['kolab'] = array(
+ 'driver' => 'timsieved',
+ 'preferred' => '',
+ 'hordeauth' => 'full',
+ 'params' => array(
+ 'hostspec' => $server,
+ 'logintype' => 'PLAIN',
+ 'usetls' => false,
+ 'port' => $GLOBALS['conf']['kolab']['imap']['sieveport'],
+ 'scriptname' => 'kmail-vacation.siv'
+ ),
+ 'script' => 'sieve',
+ 'scriptparams' => array(),
+ 'shares' => false
+);
diff --git a/kolab-webclient/ingo/configuration/ingo-1.2.3/10-kolab_conf_base.php b/kolab-webclient/ingo/configuration/ingo-1.2.3/10-kolab_conf_base.php
new file mode 100644
index 0000000..4977c22
--- /dev/null
+++ b/kolab-webclient/ingo/configuration/ingo-1.2.3/10-kolab_conf_base.php
@@ -0,0 +1,3 @@
+<?php
+
+$conf['storage']['driver'] = 'prefs'; \ No newline at end of file
diff --git a/kolab-webclient/ingo/ingo.spec b/kolab-webclient/ingo/ingo.spec
new file mode 100644
index 0000000..a0d1d42
--- /dev/null
+++ b/kolab-webclient/ingo/ingo.spec
@@ -0,0 +1,110 @@
+# Macros
+%define V_package ingo
+%define V_version 1.2.3
+%define V_release 20100118
+
+# Package Information
+Name: %{V_package}
+Summary: Ingo, the Email Filter Rules Manager
+URL: http://www.horde.org/
+Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
+Version: %{V_version}
+Release: %{V_release}
+License: GPL
+Group: MAIL
+Distribution: OpenPKG
+
+# List of Sources
+Source0: http://ftp.horde.org/pub/%{V_package}/%{V_package}-h3-%{V_version}.tar.gz
+Source1: webclient-ingo_backends.php.template
+Source2: webclient-ingo_conf.php.template
+Source3: webclient-ingo_fields.php.template
+Source4: webclient-ingo_hooks.php.template
+Source5: webclient-ingo_prefs.php.template
+Source6: 10-kolab_backends_base.php
+Source7: 10-kolab_conf_base.php
+
+# List of Patches
+Patch0: package.patch
+
+# Build Info
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+
+#Pre requisites
+BuildPreReq: OpenPKG, openpkg >= 20070603
+BuildPreReq: php, php::with_pear = yes
+PreReq: horde-3.3.6
+PreReq: imp-4.3.6
+PreReq: PEAR-Net_Sieve
+
+AutoReq: no
+AutoReqProv: no
+
+%description
+Ingo, the "Email Filter Rules Manager", started as a frontend for the
+Sieve filter language, and is now a generic and complete filter rule
+frontend that currently is able to create Sieve, procmail, maildrop,
+and IMAP filter rules. The IMAP filter driver translates the filter
+rules on demand to IMAP commands, executed via PHP's IMAP extension
+and has replaced INGO's internal filtering code. It is now the default
+filtering agent in INGO H3 (4.x).
+
+%prep
+ %setup -q -c %{V_package}-h3-%{V_version}
+
+ cd %{V_package}-h3-%{V_version}
+ %patch -p1 -P 0
+ cd ..
+
+%build
+
+%install
+
+ %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo
+ %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates
+
+ cd %{V_package}-h3-%{V_version}
+
+ cd config
+ for CONFIG in *.dist; \
+ do \
+ cp $CONFIG `basename $CONFIG .dist`; \
+ mkdir -p `basename $CONFIG .php.dist`.d; \
+ done
+ cd ..
+
+ rm test.php
+
+ #find . -type f | grep '\.orig$' | xargs rm -f
+
+ cp -r * $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo
+
+ cd ..
+
+ %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo/config/backends.d
+ %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo/config/conf.d
+ %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo/config/fields.d
+ %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo/config/hooks.d
+ %{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo/config/prefs.d
+
+ %{l_shtool} install -c -m 644 %{l_value -s -a} %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates
+
+ %{l_shtool} install -c -m 644 %{l_value -s -a} %{S:6} $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo/config/backends.d/
+ %{l_shtool} install -c -m 644 %{l_value -s -a} %{S:7} $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/ingo/config/conf.d/
+
+ sed -i -e 's#@@@horde_confdir@@@#%{l_prefix}/var/kolab/www/client/ingo/config#' $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates/*.php.template
+
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
+ '%config %{l_prefix}/etc/kolab/templates/webclient-ingo_backends.php.template' \
+ '%config %{l_prefix}/etc/kolab/templates/webclient-ingo_conf.php.template' \
+ '%config %{l_prefix}/etc/kolab/templates/webclient-ingo_fields.php.template' \
+ '%config %{l_prefix}/etc/kolab/templates/webclient-ingo_hooks.php.template' \
+ '%config %{l_prefix}/etc/kolab/templates/webclient-ingo_prefs.php.template' \
+# '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/www/client/ingo/config/conf.php
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
+%files -f files
diff --git a/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_backends.php.template b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_backends.php.template
new file mode 100644
index 0000000..b234226
--- /dev/null
+++ b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_backends.php.template
@@ -0,0 +1,11 @@
+KOLAB_META_START
+TARGET=@@@ingo_confdir@@@/backends.local.php
+PERMISSIONS=0400
+OWNERSHIP=@@@webserver_usr@@@:@@@webserver_grp@@@
+KOLAB_META_END
+<?php
+/* This file can be used to customize your kolab-webclient installation. */
+/* Anything you add to this configuration file will override settings */
+/* from @@@ingo_confdir@@@/backends.php
+ Please refer to that file to see which settings you can influence via */
+/* this template. */
diff --git a/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_conf.php.template b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_conf.php.template
new file mode 100644
index 0000000..86922b7
--- /dev/null
+++ b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_conf.php.template
@@ -0,0 +1,11 @@
+KOLAB_META_START
+TARGET=@@@ingo_confdir@@@/conf.local.php
+PERMISSIONS=0400
+OWNERSHIP=@@@webserver_usr@@@:@@@webserver_grp@@@
+KOLAB_META_END
+<?php
+/* This file can be used to customize your kolab-webclient installation. */
+/* Anything you add to this configuration file will override settings */
+/* from @@@ingo_confdir@@@/conf.php
+ Please refer to that file to see which settings you can influence via */
+/* this template. */
diff --git a/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_fields.php.template b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_fields.php.template
new file mode 100644
index 0000000..d2af783
--- /dev/null
+++ b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_fields.php.template
@@ -0,0 +1,11 @@
+KOLAB_META_START
+TARGET=@@@ingo_confdir@@@/fields.local.php
+PERMISSIONS=0400
+OWNERSHIP=@@@webserver_usr@@@:@@@webserver_grp@@@
+KOLAB_META_END
+<?php
+/* This file can be used to customize your kolab-webclient installation. */
+/* Anything you add to this configuration file will override settings */
+/* from @@@ingo_confdir@@@/fields.php
+ Please refer to that file to see which settings you can influence via */
+/* this template. */
diff --git a/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_hooks.php.template b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_hooks.php.template
new file mode 100644
index 0000000..dbbd7bb
--- /dev/null
+++ b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_hooks.php.template
@@ -0,0 +1,11 @@
+KOLAB_META_START
+TARGET=@@@ingo_confdir@@@/hooks.local.php
+PERMISSIONS=0400
+OWNERSHIP=@@@webserver_usr@@@:@@@webserver_grp@@@
+KOLAB_META_END
+<?php
+/* This file can be used to customize your kolab-webclient installation. */
+/* Anything you add to this configuration file will override settings */
+/* from @@@ingo_confdir@@@/hooks.php
+ Please refer to that file to see which settings you can influence via */
+/* this template. */
diff --git a/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_prefs.php.template b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_prefs.php.template
new file mode 100644
index 0000000..6a1cbd7
--- /dev/null
+++ b/kolab-webclient/ingo/templates/ingo-1.2.3/webclient-ingo_prefs.php.template
@@ -0,0 +1,11 @@
+KOLAB_META_START
+TARGET=@@@ingo_confdir@@@/prefs.local.php
+PERMISSIONS=0400
+OWNERSHIP=@@@webserver_usr@@@:@@@webserver_grp@@@
+KOLAB_META_END
+<?php
+/* This file can be used to customize your kolab-webclient installation. */
+/* Anything you add to this configuration file will override settings */
+/* from @@@ingo_confdir@@@/prefs.php
+ Please refer to that file to see which settings you can influence via */
+/* this template. */