summary refs log tree commit diff
path: root/pkgs/servers/mail/dovecot/plugins
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-01-06 00:19:42 +0300
committerNikolay Amiantov <ab@fmap.me>2016-01-21 12:53:24 +0300
commitec15cea84f185846702ed366ac82e2f068eb74ea (patch)
tree44d007a8e46514984876061681d43642b6ac9f4a /pkgs/servers/mail/dovecot/plugins
parentc956bc774b77d9e60ed50e6d28329f71afe5bc7b (diff)
downloadnixpkgs-ec15cea84f185846702ed366ac82e2f068eb74ea.tar
nixpkgs-ec15cea84f185846702ed366ac82e2f068eb74ea.tar.gz
nixpkgs-ec15cea84f185846702ed366ac82e2f068eb74ea.tar.bz2
nixpkgs-ec15cea84f185846702ed366ac82e2f068eb74ea.tar.lz
nixpkgs-ec15cea84f185846702ed366ac82e2f068eb74ea.tar.xz
nixpkgs-ec15cea84f185846702ed366ac82e2f068eb74ea.tar.zst
nixpkgs-ec15cea84f185846702ed366ac82e2f068eb74ea.zip
dovecot_antispam: init at 20130429
Diffstat (limited to 'pkgs/servers/mail/dovecot/plugins')
-rw-r--r--pkgs/servers/mail/dovecot/plugins/antispam/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/servers/mail/dovecot/plugins/antispam/default.nix b/pkgs/servers/mail/dovecot/plugins/antispam/default.nix
new file mode 100644
index 00000000000..1a1ba1ad448
--- /dev/null
+++ b/pkgs/servers/mail/dovecot/plugins/antispam/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchhg, autoconf, automake, dovecot, openssl }:
+
+stdenv.mkDerivation {
+  name = "dovecot-antispam-20130429";
+
+  src = fetchhg {
+    url = "http://hg.dovecot.org/dovecot-antispam-plugin/";
+    rev = "5ebc6aae4d7c";
+    sha256 = "181i79c9sf3a80mgmycfq1f77z7fpn3j2s0qiddrj16h3yklf4gv";
+  };
+
+  buildInputs = [ dovecot openssl ];
+  nativeBuildInputs = [ autoconf automake ];
+
+  preConfigure = ''
+    ./autogen.sh
+    # Ugly hack; any ideas?
+    sed "s,^dovecot_moduledir=.*,dovecot_moduledir=$out/lib/dovecot," ${dovecot}/lib/dovecot/dovecot-config > dovecot-config
+  '';
+
+  configureFlags = [
+    "--with-dovecot=."
+  ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    homepage = http://wiki2.dovecot.org/Plugins/Antispam;
+    description = "An antispam plugin for the Dovecot IMAP server";
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ abbradar ];
+    platforms = platforms.linux;
+  };
+}