mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
exim: add SPF support
This commit is contained in:
parent
43a5bab9a5
commit
f1ef419be3
@ -3,6 +3,7 @@
|
||||
, enableMySQL ? false, mysql, zlib
|
||||
, enableAuthDovecot ? false, dovecot
|
||||
, enablePAM ? false, pam
|
||||
, enableSPF ? true, libspf2
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -18,7 +19,8 @@ stdenv.mkDerivation rec {
|
||||
++ stdenv.lib.optional enableLDAP openldap
|
||||
++ stdenv.lib.optionals enableMySQL [ mysql.connector-c zlib ]
|
||||
++ stdenv.lib.optional enableAuthDovecot dovecot
|
||||
++ stdenv.lib.optional enablePAM pam;
|
||||
++ stdenv.lib.optional enablePAM pam
|
||||
++ stdenv.lib.optional enableSPF libspf2;
|
||||
|
||||
preBuild = ''
|
||||
sed '
|
||||
@ -64,6 +66,10 @@ stdenv.mkDerivation rec {
|
||||
s:^\(EXTRALIBS_EXIM\)=\(.*\):\1=\2 -lpam:
|
||||
s:^# \(EXTRALIBS_EXIM\)=.*:\1=-lpam:
|
||||
''}
|
||||
${stdenv.lib.optionalString enableSPF ''
|
||||
s:^# \(SUPPORT_SPF\)=.*:\1=yes:
|
||||
s:^# \(LDFLAGS += -lspf2\):\1:
|
||||
''}
|
||||
#/^\s*#.*/d
|
||||
#/^\s*$/d
|
||||
' < src/EDITME > Local/Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user