From db3d0b56981903383f1167626b23c1d5ce0dc6b5 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 25 Jul 2012 20:25:35 +0000 Subject: [PATCH] Restored debian builds of sogo-openchange Monotone-Parent: cacefec02204aa8b679c093b97728a347f35d630 Monotone-Revision: 36bc18c04836a73e009f9b01d9fde7dfad557dbe Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-07-25T20:25:35 Monotone-Branch: ca.inverse.sogo --- debian-multiarch/control | 14 ++++++++++++++ debian-multiarch/rules | 22 ++++++++++++++++++++++ debian/control | 12 ++++++++++++ debian/rules | 22 ++++++++++++++++++++++ debian/sogo-openchange.install | 2 ++ 5 files changed, 72 insertions(+) create mode 100644 debian/sogo-openchange.install diff --git a/debian-multiarch/control b/debian-multiarch/control index 0f1790b3e..1f861a83f 100644 --- a/debian-multiarch/control +++ b/debian-multiarch/control @@ -35,6 +35,20 @@ Description: a modern and scalable groupware - development files . This package contains the development files for developing SOGo modules. +Package: sogo-openchange +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same +Section: net +Priority: extra +Architecture: any +Depends: sogo (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: a modern and scalable groupware - OpenChange backend + SOGo is a groupware server built around OpenGroupware.org (OGo) and + the SOPE application server with focus on scalability. + . + This package contains the backend plugin for using SOGo as a backend + to OpenChange. + Package: sogo-dbg Section: debug Priority: extra diff --git a/debian-multiarch/rules b/debian-multiarch/rules index edfc67f6f..6f06fb1ac 100755 --- a/debian-multiarch/rules +++ b/debian-multiarch/rules @@ -20,6 +20,9 @@ build-arch: build-arch-stamp build-arch-stamp: config.make # Add here commands to compile the arch part of the package. $(MAKE) + if pkg-config --atleast-version=1.0 libmapi; \ + then (cd OpenChange; $(MAKE)); \ + fi touch $@ clean: @@ -31,8 +34,15 @@ clean: -find Tests -name "*.pyc" -exec rm -f {} \; if [ -f config.make ]; \ then \ + if pkg-config --atleast-version=1.0 libmapi; \ + then \ + (cd OpenChange; make clean); \ + fi; \ make clean; \ fi + -rm -f OpenChange/MAPIStorePropertySelectors.* + -find OpenChange -type d -name "unrtf-*" -exec rm -rf {} \; + -rm -f OpenChange/unrtf*-stamp -rm -f config.make dh_clean @@ -50,6 +60,18 @@ install-arch: build-arch # dh_installdirs -s $(MAKE) DESTDIR=$(DESTDIR) GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install + if pkg-config --atleast-version=1.0 libmapi; \ + then \ + (cd OpenChange; \ + $(MAKE) \ + DESTDIR=$(DESTDIR) \ + GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ + install); \ + rm -f $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/mapistore_backends/libMAPIStoreSOGo.so.1; \ + rm -f $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/mapistore_backends/libMAPIStoreSOGo.so; \ + mv -f $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/mapistore_backends/libMAPIStoreSOGo.so.1.0.0 \ + $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/mapistore_backends/SOGo.so; \ + fi mkdir -p debian/tmp/etc/default cp Scripts/sogo-default debian/tmp/etc/default/sogo diff --git a/debian/control b/debian/control index 6642d7fb3..b7d3e1890 100644 --- a/debian/control +++ b/debian/control @@ -33,6 +33,18 @@ Description: a modern and scalable groupware - development files . This package contains the development files for developing SOGo modules. +Package: sogo-openchange +Section: net +Priority: extra +Architecture: any +Depends: sogo (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: a modern and scalable groupware - OpenChange backend + SOGo is a groupware server built around OpenGroupware.org (OGo) and + the SOPE application server with focus on scalability. + . + This package contains the backend plugin for using SOGo as a backend + to OpenChange. + Package: sogo-dbg Section: debug Priority: extra diff --git a/debian/rules b/debian/rules index 4f2ffd513..b3b41ce65 100755 --- a/debian/rules +++ b/debian/rules @@ -19,6 +19,9 @@ build-arch: build-arch-stamp build-arch-stamp: config.make # Add here commands to compile the arch part of the package. $(MAKE) + if pkg-config --atleast-version=1.0 libmapi; \ + then (cd OpenChange; $(MAKE)); \ + fi touch $@ clean: @@ -30,8 +33,15 @@ clean: -find Tests -name "*.pyc" -exec rm -f {} \; if [ -f config.make ]; \ then \ + if pkg-config --atleast-version=1.0 libmapi; \ + then \ + (cd OpenChange; make clean); \ + fi; \ make clean; \ fi + -rm -f OpenChange/MAPIStorePropertySelectors.* + -find OpenChange -type d -name "unrtf-*" -exec rm -rf {} \; + -rm -f OpenChange/unrtf*-stamp -rm -f config.make dh_clean @@ -49,6 +59,18 @@ install-arch: build-arch # dh_installdirs -s $(MAKE) DESTDIR=$(DESTDIR) GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install + if pkg-config --atleast-version=1.0 libmapi; \ + then \ + (cd OpenChange; \ + $(MAKE) \ + DESTDIR=$(DESTDIR) \ + GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ + install); \ + rm -f $(DESTDIR)/usr/lib/mapistore_backends/libMAPIStoreSOGo.so.1; \ + rm -f $(DESTDIR)/usr/lib/mapistore_backends/libMAPIStoreSOGo.so; \ + mv -f $(DESTDIR)/usr/lib/mapistore_backends/libMAPIStoreSOGo.so.1.0.0 \ + $(DESTDIR)/usr/lib/mapistore_backends/SOGo.so; \ + fi mkdir -p debian/tmp/etc/default cp Scripts/sogo-default debian/tmp/etc/default/sogo diff --git a/debian/sogo-openchange.install b/debian/sogo-openchange.install new file mode 100644 index 000000000..dcae5f4e2 --- /dev/null +++ b/debian/sogo-openchange.install @@ -0,0 +1,2 @@ +usr/lib/mapistore_backends/* +usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore