exim: add redis lookup support
This commit is contained in:
parent
d75b67bfa4
commit
9fd1126cd4
@ -5,6 +5,7 @@
|
||||
, enablePAM ? false, pam
|
||||
, enableSPF ? true, libspf2
|
||||
, enableDMARC ? true, opendmarc
|
||||
, enableRedis ? false, hiredis
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -23,7 +24,8 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional enableAuthDovecot dovecot
|
||||
++ lib.optional enablePAM pam
|
||||
++ lib.optional enableSPF libspf2
|
||||
++ lib.optional enableDMARC opendmarc;
|
||||
++ lib.optional enableDMARC opendmarc
|
||||
++ lib.optional enableRedis hiredis;
|
||||
|
||||
preBuild = ''
|
||||
sed '
|
||||
@ -78,6 +80,13 @@ stdenv.mkDerivation rec {
|
||||
s:^# \(SUPPORT_DMARC\)=.*:\1=yes:
|
||||
s:^# \(LDFLAGS += -lopendmarc\):\1:
|
||||
''}
|
||||
${lib.optionalString enableRedis ''
|
||||
s:^# \(LOOKUP_REDIS=yes\)$:\1:
|
||||
s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lhiredis -L${hiredis}/lib/hiredis:
|
||||
s:^# \(LOOKUP_LIBS\)=.*:\1=-lhiredis -L${hiredis}/lib/hiredis:
|
||||
s:^\(LOOKUP_INCLUDE\)=\(.*\):\1=\2 -I${hiredis}/include/hiredis/:
|
||||
s:^# \(LOOKUP_INCLUDE\)=.*:\1=-I${hiredis}/include/hiredis/:
|
||||
''}
|
||||
#/^\s*#.*/d
|
||||
#/^\s*$/d
|
||||
' < src/EDITME > Local/Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user