7 perlPackages.buildPerlPackage rec {
12 url = "mirror://sourceforge/awstats/${pname}-${version}.tar.gz";
13 sha256 = "sha256-YVF47TE9NDFfFaUi2xpdEsqcOV43hbsGKAq/+V2aBUY=";
17 substituteInPlace wwwroot/cgi-bin/awstats.pl \
18 --replace /usr/share/awstats/ "$out/wwwroot/cgi-bin/"
21 outputs = [ "bin" "out" "doc" ]; # bin just links the user-run executable
23 propagatedBuildOutputs = [ ]; # otherwise out propagates bin -> cycle
25 buildInputs = with perlPackages; [ ]; # plugins will need some
35 cd wwwroot/classes/src
37 PATH="${jdk}/bin" "$(type -P perl)" Makefile.pl
46 mv wwwroot "$out/wwwroot"
47 rm -r "$out/wwwroot/classes/src/"
49 mkdir -p "$out/share/awstats"
50 mv tools "$out/share/awstats/tools"
53 ln -s "$out/wwwroot/cgi-bin/awstats.pl" "$bin/bin/awstats"
55 mkdir -p "$doc/share/doc"
57 mv docs "$doc/share/doc/awstats"
61 changelog = "https://www.awstats.org/docs/awstats_changelog.txt";
62 description = "Real-time logfile analyzer to get advanced statistics";
63 homepage = "https://awstats.org";
64 license = licenses.gpl3Plus;
65 platforms = platforms.unix;
66 mainProgram = "awstats";