mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-30 14:25:42 +00:00
chore(oc): remove unused code of OpenChange
This commit is contained in:
1 parent
9703cfdfd5
commit
c5d74f5f32
167 files changed
-36757
No files matched your search
@@ -6,9 +6,7 @@ export DH_VERBOSE=1
|
||||
DESTDIR=$(CURDIR)/debian/tmp
|
||||
DIST_CODENAME=$(shell lsb_release -cs)
|
||||
|
||||
#ifeq ($(DIST_CODENAME), squeeze)
|
||||
SAML2_CONFIG=--enable-saml2
|
||||
#endif
|
||||
|
||||
include /etc/GNUstep/GNUstep.conf
|
||||
include /usr/share/GNUstep/Makefiles/common.make
|
||||
@@ -24,9 +22,6 @@ 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
|
||||
(cd ActiveSync && $(MAKE))
|
||||
touch $@
|
||||
|
||||
@@ -39,14 +34,9 @@ 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; \
|
||||
(cd ActiveSync; $(MAKE) clean); \
|
||||
make clean; \
|
||||
fi
|
||||
-rm -f OpenChange/MAPIStorePropertySelectors.*
|
||||
-rm -f config.make
|
||||
dh_clean
|
||||
|
||||
|
||||
@@ -1,17 +1,4 @@
|
||||
# We disable OpenChange builds on el5 since it's prehistoric
|
||||
%define enable_openchange 0
|
||||
%{?el5:%define enable_openchange 0}
|
||||
%{?el6:%define enable_openchange 0}
|
||||
%{?el7:%define enable_openchange 0}
|
||||
|
||||
%ifarch %ix86
|
||||
%define enable_openchange 0
|
||||
%endif
|
||||
|
||||
%{!?sogo_major_version: %global sogo_major_version %(/bin/echo %{sogo_version} | /bin/cut -f 1 -d .)}
|
||||
%if %enable_openchange
|
||||
%global oc_build_depends samba4 openchange
|
||||
%endif
|
||||
|
||||
%{!?python_sys_pyver: %global python_sys_pyver %(/usr/bin/python -c "import sys; print sys.hexversion")}
|
||||
|
||||
@@ -138,29 +125,11 @@ AutoReqProv: off
|
||||
%description -n sope%{sope_major_version}%{sope_minor_version}-cards-devel
|
||||
SOPE versit parsing library for iCal and VCard formats
|
||||
|
||||
%if %enable_openchange
|
||||
%package openchange-backend
|
||||
Summary: SOGo backend for OpenChange
|
||||
Group: Productivity/Groupware
|
||||
AutoReqProv: off
|
||||
|
||||
%description openchange-backend
|
||||
SOGo backend for OpenChange
|
||||
%endif
|
||||
|
||||
########################################
|
||||
%prep
|
||||
rm -fr ${RPM_BUILD_ROOT}
|
||||
%setup -q -n SOGo-%{sogo_version}
|
||||
|
||||
|
||||
# small tweak to the python script for RHEL5
|
||||
# if hex(sys.hexversion) < 0x02060000
|
||||
#%if %{python_sys_pyver} < 33947648
|
||||
# sed -i 's!/usr/bin/env python!/usr/bin/env python2.6!' Scripts/openchange_user_cleanup
|
||||
#%endif
|
||||
|
||||
|
||||
# ****************************** build ********************************
|
||||
%build
|
||||
. /usr/lib64/GNUstep/Makefiles/GNUstep.sh
|
||||
@@ -177,13 +146,6 @@ esac
|
||||
|
||||
make CC="$cc" LDFLAGS="$ldflags" messages=yes
|
||||
|
||||
# OpenChange
|
||||
%if %enable_openchange
|
||||
(cd OpenChange; \
|
||||
LD_LIBRARY_PATH=../SOPE/NGCards/obj:../SOPE/GDLContentStore/obj \
|
||||
make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM )
|
||||
%endif
|
||||
|
||||
# ****************************** install ******************************
|
||||
%install
|
||||
QA_SKIP_BUILD_ROOT=1
|
||||
@@ -216,7 +178,6 @@ install -d ${RPM_BUILD_ROOT}/var/run/sogo
|
||||
install -d ${RPM_BUILD_ROOT}/var/spool/sogo
|
||||
install -d -m 750 -o %sogo_user -g %sogo_user ${RPM_BUILD_ROOT}/etc/sogo
|
||||
install -m 640 -o %sogo_user -g %sogo_user Scripts/sogo.conf ${RPM_BUILD_ROOT}/etc/sogo/
|
||||
#install -m 755 Scripts/openchange_user_cleanup ${RPM_BUILD_ROOT}/%{_sbindir}
|
||||
cat Apache/SOGo.conf | sed -e "s@/lib/@/%{_lib}/@g" > ${RPM_BUILD_ROOT}/etc/httpd/conf.d/SOGo.conf
|
||||
install -m 600 Scripts/sogo.cron ${RPM_BUILD_ROOT}/etc/cron.d/sogo
|
||||
cp Scripts/tmpwatch ${RPM_BUILD_ROOT}/etc/cron.daily/sogo-tmpwatch
|
||||
@@ -230,16 +191,6 @@ chmod 644 ${RPM_BUILD_ROOT}/etc/tmpfiles.d/sogo.conf
|
||||
cp Scripts/sogo-default ${RPM_BUILD_ROOT}/etc/sysconfig/sogo
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_bindir}/test_quick_extract
|
||||
|
||||
# OpenChange
|
||||
%if %enable_openchange
|
||||
(cd OpenChange; \
|
||||
LD_LIBRARY_PATH=${RPM_BUILD_ROOT}%{_libdir} \
|
||||
make DESTDIR=${RPM_BUILD_ROOT} \
|
||||
GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \
|
||||
CC="$cc" LDFLAGS="$ldflags" \
|
||||
install)
|
||||
%endif
|
||||
|
||||
# ActiveSync
|
||||
(cd ActiveSync; \
|
||||
LD_LIBRARY_PATH=${RPM_BUILD_ROOT}%{_libdir} \
|
||||
@@ -265,7 +216,6 @@ rm -fr ${RPM_BUILD_ROOT}
|
||||
%dir %attr(0700, %sogo_user, %sogo_user) %{_var}/spool/sogo
|
||||
%dir %attr(0750, root, %sogo_user) %{_sysconfdir}/sogo
|
||||
%{_sbindir}/sogod
|
||||
#%{_sbindir}/openchange_user_cleanup
|
||||
%{_libdir}/sogo/libSOGo.so*
|
||||
%{_libdir}/sogo/libSOGoUI.so*
|
||||
%{_libdir}/GNUstep/SOGo/AdministrationUI.SOGo
|
||||
@@ -339,13 +289,6 @@ rm -fr ${RPM_BUILD_ROOT}
|
||||
%{_includedir}/NGCards
|
||||
%{_libdir}/sogo/libNGCards.so*
|
||||
|
||||
%if %enable_openchange
|
||||
%files openchange-backend
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/GNUstep/SOGo/*.MAPIStore
|
||||
%{_libdir}/mapistore_backends/*
|
||||
%endif
|
||||
|
||||
# **************************** pkgscripts *****************************
|
||||
%pre
|
||||
if ! getent group %sogo_user >& /dev/null; then
|
||||
|
||||
Reference in new issue
Block a user