2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchurl, perlPackages }:
|
2016-08-21 20:18:28 +01:00
|
|
|
|
2018-10-13 00:10:38 +01:00
|
|
|
perlPackages.buildPerlPackage rec {
|
2019-06-20 14:07:56 +01:00
|
|
|
pname = "pflogsumm";
|
2016-08-21 20:18:28 +01:00
|
|
|
version = "1.1.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-06-20 14:07:56 +01:00
|
|
|
url = "https://jimsun.linxnet.com/downloads/${pname}-${version}.tar.gz";
|
2016-08-21 20:18:28 +01: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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://jimsun.linxnet.com/postfix_contrib.html";
|
2021-01-15 07:07:56 +00:00
|
|
|
maintainers = with lib.maintainers; [ schneefux ];
|
2016-08-21 20:18:28 +01:00
|
|
|
description = "Postfix activity overview";
|
2021-01-15 07:07:56 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2016-08-21 20:18:28 +01:00
|
|
|
};
|
|
|
|
}
|