diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-06-30 21:11:07 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-06-30 21:11:07 +0000 |
commit | cd9f816c08fcc8e277b02ffe8c2ae404be6d9dfe (patch) | |
tree | 99fe84e3166a4dede22e7cad4018f06c1eb84995 /pkgs/servers | |
parent | 5df5717181b932b288aa1b0dc471a4527b1430c6 (diff) |
Some security options added to mail-related servers..
svn path=/nixpkgs/trunk/; revision=12222
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/mail/dovecot/default.nix | 8 | ||||
-rw-r--r-- | pkgs/servers/mail/postfix/default.nix | 19 |
2 files changed, 23 insertions, 4 deletions
diff --git a/pkgs/servers/mail/dovecot/default.nix b/pkgs/servers/mail/dovecot/default.nix index e93926b2f378d..70e84fa51b035 100644 --- a/pkgs/servers/mail/dovecot/default.nix +++ b/pkgs/servers/mail/dovecot/default.nix @@ -1,7 +1,13 @@ -{stdenv, fetchurl}: +{stdenv, fetchurl + , openssl + , pam +}: stdenv.mkDerivation { name = "dovecot-1.0.3"; + + buildInputs = [openssl pam]; + src = fetchurl { url = http://dovecot.org/releases/1.0/dovecot-1.0.3.tar.gz; sha256 = "14b3sbvj9xpm5mjwfavwrcwmzfdgian51ncspl8j83cd8j01jdjz"; diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix index 6a0ac22602d53..03fd33150e32d 100644 --- a/pkgs/servers/mail/postfix/default.nix +++ b/pkgs/servers/mail/postfix/default.nix @@ -1,4 +1,7 @@ -{stdenv, fetchurl, db4, glibc}: +{stdenv, fetchurl, db4, glibc + , openssl + , cyrus_sasl +}: assert stdenv.isLinux; @@ -11,10 +14,18 @@ stdenv.mkDerivation { installTargets = ["non-interactive-package"]; installFlags = [" install_root=$out "]; - preInstall = "sed -e '/^PATH=/d' -i postfix-install"; + preInstall = " + sed -e '/^PATH=/d' -i postfix-install + "; postInstall = '' ensureDir $out mv ut/$out/* $out/ + + mkdir $out/share/postfix/conf + cp conf/* $out/share/postfix/conf + sed -e 's@PATH=.*@PATH=${stdenv.coreutils}/bin:${stdenv.findutils}/bin:${stdenv.gnused}/bin:${stdenv.gnugrep}/bin:$out/sbin@' -i $out/share/postfix/conf/post-install + sed -e '2aPATH=${stdenv.coreutils}/bin:${stdenv.findutils}/bin:${stdenv.gnused}/bin:${stdenv.gnugrep}/bin:$out/sbin' -i $out/share/postfix/conf/postfix-script + chmod a+x $out/share/postfix/conf/{postfix-script,post-install} ''; preBuild = '' @@ -28,9 +39,11 @@ stdenv.mkDerivation { export manpage_directory=$out/share/man export sample_directory=$out/share/postfix/doc/samples export readme_directory=$out/share/postfix/doc + + make makefiles CCARGS='-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DHAS_DB -I${cyrus_sasl}/include/sasl' AUXLIBS='-lssl -lcrypto -lsasl2 -ldb' ''; - buildinputs = [db4]; + buildinputs = [db4 openssl cyrus_sasl]; patches = [./postfix-2.2.9-db.patch ./postfix-2.2.9-lib.patch]; inherit glibc; } |