sogo: add optional (off by default) EAS/ActiveSync support
This commit is contained in:
parent
18a5275c3d
commit
7bd91bca24
@ -1,6 +1,8 @@
|
|||||||
{ gnustep, lib, fetchFromGitHub, fetchpatch, makeWrapper, python3, lndir
|
{ gnustep, lib, fetchFromGitHub, fetchpatch, makeWrapper, python3, lndir
|
||||||
, openssl, openldap, sope, libmemcached, curl, libsodium, libytnef, libzip, pkg-config, nixosTests
|
, openssl, openldap, sope, libmemcached, curl, libsodium, libytnef, libzip, pkg-config, nixosTests
|
||||||
, oath-toolkit }:
|
, oath-toolkit
|
||||||
|
, enableActiveSync ? false
|
||||||
|
, libwbxml }:
|
||||||
gnustep.stdenv.mkDerivation rec {
|
gnustep.stdenv.mkDerivation rec {
|
||||||
pname = "SOGo";
|
pname = "SOGo";
|
||||||
version = "5.7.0";
|
version = "5.7.0";
|
||||||
@ -13,7 +15,10 @@ gnustep.stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gnustep.make makeWrapper python3 ];
|
nativeBuildInputs = [ gnustep.make makeWrapper python3 ];
|
||||||
buildInputs = [ gnustep.base sope openssl libmemcached curl libsodium libytnef libzip pkg-config openldap oath-toolkit ];
|
buildInputs = [ gnustep.base sope openssl libmemcached curl libsodium libytnef libzip pkg-config openldap oath-toolkit ]
|
||||||
|
++ lib.optional enableActiveSync libwbxml;
|
||||||
|
|
||||||
|
patches = lib.optional enableActiveSync ./enable-activesync.patch;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Exclude NIX_ variables
|
# Exclude NIX_ variables
|
||||||
@ -60,6 +65,8 @@ gnustep.stdenv.mkDerivation rec {
|
|||||||
for bin in $out/bin/*; do
|
for bin in $out/bin/*; do
|
||||||
wrapProgram $bin --prefix LD_LIBRARY_PATH : $out/lib/sogo --prefix GNUSTEP_CONFIG_FILE : $out/share/GNUstep/GNUstep.conf
|
wrapProgram $bin --prefix LD_LIBRARY_PATH : $out/lib/sogo --prefix GNUSTEP_CONFIG_FILE : $out/share/GNUstep/GNUstep.conf
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rmdir $out/nix
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests.sogo = nixosTests.sogo;
|
passthru.tests.sogo = nixosTests.sogo;
|
||||||
|
21
pkgs/servers/web-apps/sogo/enable-activesync.patch
Normal file
21
pkgs/servers/web-apps/sogo/enable-activesync.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
--- a/ActiveSync/NSData+ActiveSync.m
|
||||||
|
+++ b/ActiveSync/NSData+ActiveSync.m
|
||||||
|
@@ -36,7 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#import <NGExtensions/NGBase64Coding.h>
|
||||||
|
#import <NGExtensions/NSObject+Logs.h>
|
||||||
|
|
||||||
|
-#include <wbxml/wbxml.h>
|
||||||
|
+#include <libwbxml-1.0/wbxml/wbxml.h>
|
||||||
|
|
||||||
|
#define WBXMLDEBUG 0
|
||||||
|
|
||||||
|
--- a/GNUmakefile
|
||||||
|
+++ b/GNUmakefile
|
||||||
|
@@ -11,6 +11,7 @@ SUBPROJECTS = \
|
||||||
|
UI \
|
||||||
|
Tools \
|
||||||
|
Tests/Unit \
|
||||||
|
+ ActiveSync \
|
||||||
|
|
||||||
|
|
||||||
|
include $(GNUSTEP_MAKEFILES)/aggregate.make
|
Loading…
Reference in New Issue
Block a user