From 74c0850efd49681a9eac8fac5430a1ce688c95b3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 27 Sep 2012 15:28:14 +0200 Subject: [PATCH] spamassassin: site-wide rules are in $out/share/spamassassin; user-rules in /etc/spamassassin --- pkgs/servers/mail/spamassassin/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/mail/spamassassin/default.nix b/pkgs/servers/mail/spamassassin/default.nix index 0f5cefb84c25..7c1c3bc5f9cb 100644 --- a/pkgs/servers/mail/spamassassin/default.nix +++ b/pkgs/servers/mail/spamassassin/default.nix @@ -27,9 +27,13 @@ buildPerlPackage rec { # for the PERL5LIB environment variable. Needs further investigation. makeFlags = "PERL_BIN=${perl}/bin/perl PERL_TAINT=no"; + makeMakerFlags = "CONFDIR=/etc/spamassassin LOCALSTATEDIR=/var/lib/spamassassin"; + doCheck = false; postInstall = '' + mv "rules/"* $out/share/spamassassin/ + for n in "$out/bin/"*; do wrapProgram "$n" --prefix PERL5LIB : "$PERL5LIB" done