2016-08-21 19:18:28 +00:00
|
|
|
{ stdenv, fetchurl, buildPerlPackage, perlPackages
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPerlPackage rec {
|
|
|
|
name = "pflogsumm-${version}";
|
|
|
|
version = "1.1.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://jimsun.linxnet.com/downloads/${name}.tar.gz";
|
2016-08-21 19:18:28 +00:00
|
|
|
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 = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://jimsun.linxnet.com/postfix_contrib.html;
|
2016-09-21 16:03:14 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ schneefux ];
|
2016-08-21 19:18:28 +00:00
|
|
|
description = "Postfix activity overview";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|