depot/third_party/nixpkgs/pkgs/servers/mail/postfix/pflogsumm.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
839 B
Nix

{ 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;
};
}