Merge pull request #196591 from helsinki-systems/feat/exim-pkg-changes
exim: various changes
This commit is contained in:
commit
52593f7a50
1 changed files with 11 additions and 1 deletions
|
@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-KZpWknsus0d9qv08W9oCvGflxOWJinrq8nQIdSeM8aM=";
|
hash = "sha256-KZpWknsus0d9qv08W9oCvGflxOWJinrq8nQIdSeM8aM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ coreutils db openssl perl pcre2 ]
|
buildInputs = [ coreutils db openssl perl pcre2 ]
|
||||||
++ lib.optional enableLDAP openldap
|
++ lib.optional enableLDAP openldap
|
||||||
|
@ -27,7 +29,9 @@ stdenv.mkDerivation rec {
|
||||||
++ lib.optional enableDMARC opendmarc
|
++ lib.optional enableDMARC opendmarc
|
||||||
++ lib.optional enableRedis hiredis;
|
++ lib.optional enableRedis hiredis;
|
||||||
|
|
||||||
preBuild = ''
|
configurePhase = ''
|
||||||
|
runHook preConfigure
|
||||||
|
|
||||||
sed '
|
sed '
|
||||||
s:^\(BIN_DIRECTORY\)=.*:\1='"$out"'/bin:
|
s:^\(BIN_DIRECTORY\)=.*:\1='"$out"'/bin:
|
||||||
s:^\(CONFIGURE_FILE\)=.*:\1=/etc/exim.conf:
|
s:^\(CONFIGURE_FILE\)=.*:\1=/etc/exim.conf:
|
||||||
|
@ -90,9 +94,13 @@ stdenv.mkDerivation rec {
|
||||||
#/^\s*#.*/d
|
#/^\s*#.*/d
|
||||||
#/^\s*$/d
|
#/^\s*$/d
|
||||||
' < src/EDITME > Local/Makefile
|
' < src/EDITME > Local/Makefile
|
||||||
|
|
||||||
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/bin $out/share/man/man8
|
mkdir -p $out/bin $out/share/man/man8
|
||||||
cp doc/exim.8 $out/share/man/man8
|
cp doc/exim.8 $out/share/man/man8
|
||||||
|
|
||||||
|
@ -106,6 +114,8 @@ stdenv.mkDerivation rec {
|
||||||
for i in mailq newaliases rmail rsmtp runq sendmail; do
|
for i in mailq newaliases rmail rsmtp runq sendmail; do
|
||||||
ln -s exim $i
|
ln -s exim $i
|
||||||
done )
|
done )
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue