atd: use /var/setuid-wrappers/sendmail by default instead of ssmtp
This commit is contained in:
parent
d54fd845bc
commit
0d35711412
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, stdenv, bison, flex, pam, ssmtp }:
|
{ fetchurl, stdenv, bison, flex, pam, sendmailPath ? "/var/setuid-wrappers/sendmail" }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "at-3.1.15";
|
name = "at-3.1.15";
|
||||||
@ -12,15 +12,11 @@ stdenv.mkDerivation {
|
|||||||
patches = [ ./install.patch ];
|
patches = [ ./install.patch ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ bison flex pam
|
[ bison flex pam ];
|
||||||
# `configure' and `atd' want the `sendmail' command.
|
|
||||||
ssmtp
|
|
||||||
];
|
|
||||||
|
|
||||||
preConfigure =
|
preConfigure =
|
||||||
''
|
''
|
||||||
export PATH="${ssmtp}/sbin:$PATH"
|
export SENDMAIL=${sendmailPath}
|
||||||
|
|
||||||
# Purity: force atd.pid to be placed in /var/run regardless of
|
# Purity: force atd.pid to be placed in /var/run regardless of
|
||||||
# whether it exists now.
|
# whether it exists now.
|
||||||
substituteInPlace ./configure --replace "test -d /var/run" "true"
|
substituteInPlace ./configure --replace "test -d /var/run" "true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user