mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 04:47:14 +00:00
feat(core): initial Google Authenticator support for 2FA
This commit is contained in:
1 parent
33d3154d15
commit
f78300a12e
17 files changed
+263
-27
No files matched your search
@@ -7,12 +7,28 @@ DESTDIR=$(CURDIR)/debian/tmp
|
||||
|
||||
SAML2_CONFIG=--enable-saml2
|
||||
|
||||
#ifeq ($(DIST_CODENAME), stretch)
|
||||
MFA_CONFIG=--enable-mfa
|
||||
#endif
|
||||
|
||||
#ifeq ($(DIST_CODENAME), buster)
|
||||
MFA_CONFIG=--enable-mfa
|
||||
#endif
|
||||
|
||||
#ifeq ($(DIST_CODENAME), xenial)
|
||||
MFA_CONFIG=--enable-mfa
|
||||
#endif
|
||||
|
||||
#ifeq ($(DIST_CODENAME), bionic)
|
||||
MFA_CONFIG=--enable-mfa
|
||||
#endif
|
||||
|
||||
include /etc/GNUstep/GNUstep.conf
|
||||
include /usr/share/GNUstep/Makefiles/common.make
|
||||
|
||||
config.make: configure
|
||||
dh_testdir
|
||||
./configure $(SAML2_CONFIG)
|
||||
./configure $(SAML2_CONFIG) $(MFA_CONFIG)
|
||||
|
||||
#Architecture
|
||||
build: build-arch
|
||||
|
||||
@@ -34,11 +34,17 @@ BuildRequires: gcc-objc gnustep-base gnustep-make sope%{sope_major_version}%{so
|
||||
|
||||
# saml is enabled everywhere except on el5 since its glib2 is prehistoric
|
||||
%define saml2_cfg_opts "--enable-saml2"
|
||||
%define mfa_cfg_opts "--enable-mfa"
|
||||
%{?el5:%define saml2_cfg_opts ""}
|
||||
%{?el5:%define mfa_cfg_opts ""}
|
||||
%{?el6:%define mfa_cfg_opts ""}
|
||||
%{?el6:Requires: lasso}
|
||||
%{?el6:BuildRequires: lasso-devel}
|
||||
%{?el7:Requires: lasso}
|
||||
%{?el7:BuildRequires: lasso-devel}
|
||||
%{?el7:Requires: liboath}
|
||||
%{?el7:BuildRequires: liboath-devel}
|
||||
|
||||
|
||||
%description
|
||||
SOGo is a groupware server built around OpenGroupware.org (OGo) and
|
||||
@@ -155,7 +161,7 @@ rm -fr ${RPM_BUILD_ROOT}
|
||||
%else
|
||||
. /usr/share/GNUstep/Makefiles/GNUstep.sh
|
||||
%endif
|
||||
./configure %saml2_cfg_opts
|
||||
./configure %saml2_cfg_opts %mfa_cfg_opts
|
||||
|
||||
case %{_target_platform} in
|
||||
ppc64-*)
|
||||
@@ -376,6 +382,9 @@ fi
|
||||
|
||||
# ********************************* changelog *************************
|
||||
%changelog
|
||||
* Thu Apr 30 2020 Inverse inc. <support@inverse.ca>
|
||||
- added liboath requirements for RHELv7
|
||||
|
||||
* Thu Mar 31 2015 Inverse inc. <support@inverse.ca>
|
||||
- Change script start sogod for systemd
|
||||
|
||||
|
||||
Reference in new issue
Block a user