diff options
author | Andres Löh <mail@andres-loeh.de> | 2007-08-07 22:22:31 +0000 |
---|---|---|
committer | Andres Löh <mail@andres-loeh.de> | 2007-08-07 22:22:31 +0000 |
commit | 7f30b40e653bab3969e774df3c6e068210fdec2e (patch) | |
tree | 65708674a2b2d70614d6ec844775bb11593a5652 /pkgs/tools/networking/ssmtp | |
parent | 61656532dd6b7dbe9de9e135f95bd95eb7a242ac (diff) | |
download | nixlib-7f30b40e653bab3969e774df3c6e068210fdec2e.tar nixlib-7f30b40e653bab3969e774df3c6e068210fdec2e.tar.gz nixlib-7f30b40e653bab3969e774df3c6e068210fdec2e.tar.bz2 nixlib-7f30b40e653bab3969e774df3c6e068210fdec2e.tar.lz nixlib-7f30b40e653bab3969e774df3c6e068210fdec2e.tar.xz nixlib-7f30b40e653bab3969e774df3c6e068210fdec2e.tar.zst nixlib-7f30b40e653bab3969e774df3c6e068210fdec2e.zip |
* add ssmtp
still rather rough around the edges: - example config files are installed to $out/etc/ssmtp - the binary expects config files in /etc/ssmtp - it's the user's responsibility to add the global config files svn path=/nixpkgs/trunk/; revision=9064
Diffstat (limited to 'pkgs/tools/networking/ssmtp')
-rw-r--r-- | pkgs/tools/networking/ssmtp/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/networking/ssmtp/default.nix b/pkgs/tools/networking/ssmtp/default.nix new file mode 100644 index 000000000000..8ebdf88c262b --- /dev/null +++ b/pkgs/tools/networking/ssmtp/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation { + name = "ssmtp-2.61-12"; + src = fetchurl { + url = http://ftp.debian.org/debian/pool/main/s/ssmtp/ssmtp_2.61.orig.tar.gz; + sha256 = "2151ad18cb73f9a254f796dde2b48be7318b45410b59fedbb258db5a41044fb5"; + }; + patches = [ + (fetchurl { + url = http://ftp.debian.org/debian/pool/main/s/ssmtp/ssmtp_2.61-12.diff.gz; + sha256 = "2eb5b2af76d220f14e5133ec4078bab531209fb2f9f8f4e780a0ab8de4818d39"; + }) + ]; + postConfigure = [ + "sed -e '/INSTALLED_CONFIGURATION_FILE/d' " + " -e 's|\\(DSSMTPCONFDIR.*\\).(.*)\\(.*$\\)|\\1/etc/ssmtp\\2|'" + " -e 's|\\(DCONFIGURATION_FILE.*\\).(.*)\\(.*$\\)|\\1/etc/ssmtp/ssmtp.conf\\2|'" + " -e 's|\\(DREVALIASES_FILE.*\\).(.*)\\(.*$\\)|\\1/etc/ssmtp/revaliases\\2|'" + " -e \"s| /lib| $out/lib|\" -i Makefile" + ]; + preInstall = "ensureDir $out/lib"; + installTargets = [ "install" "install-sendmail" ]; + postInstall = "install ssmtp.conf $out/etc/ssmtp "; +} |