Adding WebDruid log analyzer. In the same time, reworking source autoupdate system a bit
svn path=/nixpkgs/trunk/; revision=16859
This commit is contained in:
30
pkgs/tools/admin/webdruid/default.nix
Normal file
30
pkgs/tools/admin/webdruid/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
a :
|
||||
let
|
||||
s = import ./src-for-default.nix;
|
||||
buildInputs = with a; [
|
||||
zlib libpng freetype gd which libxml2
|
||||
geoip
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = a.fetchUrlFromSrcInfo s;
|
||||
|
||||
inherit (s) name;
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["doConfigure" "doMakeInstall" "doLinks"];
|
||||
|
||||
doLinks = a.fullDepEntry (''
|
||||
ln -s shared_en.xsl $out/share/webdruid/classic/shared.xsl
|
||||
'') ["minInit"];
|
||||
|
||||
meta = {
|
||||
description = "A web log analyzer";
|
||||
maintainers = [
|
||||
a.lib.maintainers.raskin
|
||||
];
|
||||
platforms = a.lib.platforms.all;
|
||||
};
|
||||
}
|
||||
8
pkgs/tools/admin/webdruid/src-for-default.nix
Normal file
8
pkgs/tools/admin/webdruid/src-for-default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
rec {
|
||||
advertisedUrl="http://downloads.sourceforge.net/webdruid/files/webdruid/0.6.0-alpha5/webdruid-0.6.0-alpha5.tar.gz";
|
||||
version = "0.6.0-alpha5";
|
||||
url="http://downloads.sourceforge.net/webdruid/files/webdruid/${version}/webdruid-${version}.tar.gz";
|
||||
hash = "1aiqffccayvf02snl9la62zqb1674cp4rv19af6xyxgvw4334hw0";
|
||||
name = "webdruid-0.6.0-alpha5";
|
||||
|
||||
}
|
||||
7
pkgs/tools/admin/webdruid/src-info-for-default.nix
Normal file
7
pkgs/tools/admin/webdruid/src-info-for-default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
downloadPage = "http://sourceforge.net/projects/webdruid/files/";
|
||||
choiceCommand = ''head -1 | sed -re "$skipRedirectSF"'';
|
||||
versionExtractorSedScript = ''$extractReleaseSF'';
|
||||
versionReferenceCreator = ''s@$version@\''${version}@g'';
|
||||
baseName = "webdruid";
|
||||
}
|
||||
Reference in New Issue
Block a user