Commit 464306fc authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1084 Introducing z-push-kopano-gab2contacts.

Released under the Affero GNU General Public License (AGPL) version 3.
parent c339fd44
......@@ -66,6 +66,12 @@ Depends: ${misc:Depends}, php5-mapi | php7-mapi
Description: GAB sync for Kopano
Synchronizes a the global address book for the Kopano Outlook Extension
Package: z-push-kopano-gab2contacts
Architecture: all
Depends: ${misc:Depends}, php5-mapi | php7-mapi
Description: GAB sync into a contacts folder for Kopano
Synchronizes a the global address book into a contacts folder
Package: z-push-ipc-sharedmemory
Architecture: all
Depends: ${misc:Depends}, z-push-common (= ${binary:Version})
......
......@@ -37,6 +37,7 @@ override_dh_install:
mv "backend/searchldap/config.php" "conftmp/galsearch-ldap.conf.php";
mv "backend/sqlstatemachine/config.php" "conftmp/state-sql.conf.php";
mv "tools/gab-sync/config.php" "conftmp/gabsync.conf.php";
mv "tools/gab2contacts/config.php" "conftmp/gab2contacts.conf.php";
mv "autodiscover/config.php" "conftmp/autodiscover.conf.php";
dh_install
......
conftmp/gab2contacts.conf.php /etc/z-push/
tools/gab2contacts /usr/share/z-push/tools/
etc/z-push/gab2contacts.conf.php usr/share/z-push/tools/gab2contacts/config.php
usr/share/z-push/tools/gab2contacts/gab2contacts.php /usr/local/sbin/z-push-gab2contacts
......@@ -134,6 +134,14 @@ Requires: php-mapi
%description -n %name-kopano-gabsync
Synchronizes a Kopano global address book
%package -n %name-kopano-gab2contacts
Summary: GAB sync into a contacts folder for Kopano
Group: Productivity/Networking/Email/Utilities
Requires: php-mapi
%description -n %name-kopano-gab2contacts
Synchronizes a Kopano global address book into a contacts folder
# IPC SHARED MEMORY
%package -n %name-ipc-sharedmemory
Summary: Z-Push ipc shared memory provider
......@@ -299,6 +307,10 @@ cp -a tools/gab-sync "$b/%zpush_dir/tools/"
mv "$b/%zpush_dir/tools/gab-sync/config.php" "$cdir/gabsync.conf.php";
ln -s "%_sysconfdir/z-push/gabsync.conf.php" "$b/%zpush_dir/tools/gab-sync/config.php";
cp -a tools/gab2contacts "$b/%zpush_dir/tools/"
mv "$b/%zpush_dir/tools/gab2contacts/config.php" "$cdir/gab2contacts.conf.php";
ln -s "%_sysconfdir/z-push/gab2contacts.conf.php" "$b/%zpush_dir/tools/gab2contacts/config.php";
# MEMCACHED
mv "$bdir/ipcmemcached/config.php" "$cdir/memcached.conf.php";
ln -s "%_sysconfdir/z-push/memcached.conf.php" "$bdir/ipcmemcached/config.php";
......@@ -476,6 +488,18 @@ install -Dpm 644 config/apache2/z-push-autodiscover.conf \
%config(noreplace) %attr(0640,root,apache) %_sysconfdir/z-push/gabsync.conf.php
%endif
%files -n %name-kopano-gab2contacts
%defattr(-, root, root)
%dir %zpush_dir/tools
%dir %zpush_dir/tools/gab2contacts
%zpush_dir/tools/gab2contacts/
%dir %_sysconfdir/z-push
%if 0%{?suse_version}
%config(noreplace) %attr(0640,root,www) %_sysconfdir/z-push/gab2contacts.conf.php
%else
%config(noreplace) %attr(0640,root,apache) %_sysconfdir/z-push/gab2contacts.conf.php
%endif
%files -n %name-kopano
# IPC-SHAREDMEMORY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment