summary refs log tree commit diff
path: root/pkgs/servers/mail/postfix/pflogsumm.nix
blob: 8f85bc5f6d6d9b5050f32b5209ae4a0fd5610622 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchurl, perlPackages }:

perlPackages.buildPerlPackage rec {
  pname = "pflogsumm";
  version = "1.1.3";

  src = fetchurl {
    url = "https://jimsun.linxnet.com/downloads/${pname}-${version}.tar.gz";
    sha256 = "0hkim9s5f1yg5sfs5048jydhy3sbxafls496wcjk0cggxb113py4";
  };

  outputs = [ "out" "man" ];
  buildInputs = [ perlPackages.DateCalc ];

  preConfigure = ''
    touch Makefile.PL
  '';
  doCheck = false;

  installPhase = ''
    mkdir -p "$out/bin"
    mv "pflogsumm.pl" "$out/bin/pflogsumm"

    mkdir -p "$out/share/man/man1"
    mv "pflogsumm.1" "$out/share/man/man1"
  '';

  meta = {
    homepage = http://jimsun.linxnet.com/postfix_contrib.html;
    maintainers = with stdenv.lib.maintainers; [ schneefux ];
    description = "Postfix activity overview";
    license = stdenv.lib.licenses.gpl2Plus;
  };
}