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:
Michael Raskin
2009-08-26 11:13:36 +00:00
parent e8931adcf3
commit fbea8a558a
12 changed files with 142 additions and 19 deletions

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

View 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";
}

View 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";
}