[mirrorbrain-commits] [mod_stats] r49 - /trunk/tools/go-oo.conf

From: <poeml_at_mirrorbrain.org>
Date: Thu, 26 Nov 2009 23:25:49 -0000
Author: poeml
Date: Fri Nov 27 00:25:48 2009
New Revision: 49

URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=49&view=rev
Log:
add parsing rules for the Go-oo file tree (which seem to work reasonably, to
the naked eye, but I didn't check whether they actually make sense).

Added:
    trunk/tools/go-oo.conf

Added: trunk/tools/go-oo.conf
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/tools/go-oo.conf?rev=49&view=auto
==============================================================================
--- trunk/tools/go-oo.conf (added)
+++ trunk/tools/go-oo.conf Fri Nov 27 00:25:48 2009
_at_@ -1,0 +1,65 @@
+# parses most of the files in the Go-oo tree
+# (don't know if everything makes sense, but it's a start...)
+
+
+# ignore all requests that come with query string
+StatsIgnoreMask ".*\?.*"
+# 
+# ignore files with these endings, with or without .metalink
+StatsIgnoreMask "^.*\.(md5|xml|xml\.gz)(\.metalink)?$"
+
+# strip prefixed protocol (normally only sent to proxies, but can occur in the wild)
+# (the filter is applied to the requested url.)
+StatsPrefilter "^http://[^/]+/" ""
+
+# remove duplicated slashes
+StatsPrefilter "/+" "/"
+
+# strip leading base path
+StatsPrefilter "^/" ""
+
+# strip appended .metalink suffix
+StatsPrefilter "\.metalink$" ""
+
+
+# stable/linux-x86_64/3.1/ooobasis3.1-pt-impress-3.1.0-9399.x86_64.rpm
+# stable/linux-x86/3.1/openoffice.org3-calc-3.1.0-9399.i586.rpm
+# stable/linux-i586/3.1.1/openoffice.org3-ru-3.1.1-9420.i586.rpm
+# stable/win32/3.1.1/GoOo-langpack-brx-3.1.1-5.exe
+StatsCount "^stable/([^/]+)/([^/]+)/(openoffice.org3|ooobasis3.1-pt-impress|OpenOffice.org-langpack|openoffice.org3|GoOo-langpack)-(?P<lang>([a-zA-Z]{2}(-[a-zA-Z]{2})?|binfilter|core|l10n|extensions|system|testautomation|brx|dgo|kok|mai|mni|sat))-\2(-[0-9]+)?\.(exe|rpm|dmg)$"  "prod: \3  os: \1  version: \2  lang: \g<lang>"
+
+# stable/mac/3.1.1/OpenOffice.org-langpack-3.1.1_ga.dmg
+# stable/mac/3.1.1/OpenOffice.org-langpack-3.1.1_mn.dmg
+#            stable/mac    /3.1.1   /OpenOffice.org-langpack -3.1.1_mn.dmg
+#            stable/mac    /3.1     /OpenOffice.org-langpack -3.1.0_as-IN.dmg                            -
+StatsCount "^stable/([^/]+)/([^/]+)/(OpenOffice.org-langpack)-\2\.?0?_(.*)\.(exe|rpm|dmg)$"  "prod: \3  os: \1  version: \2  lang: \4"
+
+
+# stable/mac/3.1/OOo_3.1.0_090527_MacOSXIntel_install.dmg                           -
+# stable/mac/3.1/OOo_3.1.0_rc6_MacOSXIntel_install.dmg                              -
+StatsCount "^stable/([^/]+)/([^/]+)/(OOo)_.*MacOSXIntel_install\.dmg$"     "prod: \3  os: \1  version: \2  lang: all"
+
+# stable/win32/3.1.1/GoOo-3.1.1-5.exe
+# stable/win32/3.1/GoOo-3.1-10.exe
+StatsCount "^stable/([^/]+)/([^/]+)/(GoOo)-\2(-[0-9]+)?\.exe$"     "prod: \3  os: \1  version: \2  lang: all"
+
+#            stable/linux-x86_64/3.1/ooobasis3.1-mr-IN-base-3.1.0-9399.x86_64.rpm
+#            stable/linux-x86_64/3.1.1/ooobasis3.1-ru-base-3.1.1-9420.x86_64.rpm
+#            stable/linux-x86/3.1/ooobasis3.1-bn-base-3.1.0-9399.i586.rpm
+StatsCount "^stable/([^/]+)/([^/]+)/(ooobasis|ooobasis3.1|openoffice.org3)-(.*)-base-\2(?:\.0)?-[0-9]+\.(x86_64|i586)\.rpm"  "prod: \3  os: \1  version: \2  lang: \4"
+
+#            stable/linux-x86_64/3.1.1/openoffice.org3-base-3.1.1-9420.x86_64.rpm
+#            stable/linux-x86_64/3.1/openoffice.org3-base-3.1.0-9399.x86_64.rpm
+#            stable/linux-i586/3.1.1/openoffice.org3-base-3.1.1-9420.i586.rpm
+#            stable/linux-i586/3.1.1/ooobasis3.1-base-3.1.1-9420.i586.rpm
+StatsCount "^stable/([^/]+)/([^/]+)/(ooobasis|ooobasis3.1|openoffice.org3)-base-\2(?:\.0)?-[0-9]+\.(x86_64|i586)\.rpm"  "prod: \3  os: \1  version: \2  lang: all"
+
+
+# stable/linux-i586/3.1.1/openoffice.org3-3.1.1-9420.i586.rpm                       -
+# stable/linux-x86/3.1.1/openoffice.org3-3.1.1-9420.i586.rpm                        -
+# stable/linux-x86_64/3.1.1/openoffice.org3-3.1.1-9420.x86_64.rpm                   -
+StatsCount "^stable/([^/]+)/([^/]+)/(openoffice.org3)-\2(-[0-9]+)?\.(i586|x86_64)\.rpm$"     "prod: \3  os: \1  version: \2  lang: all"
+
+
+
+# vim: ft=apache ai ts=4 sw=4 smarttab expandtab smarttab




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Thu Nov 26 2009 - 23:25:51 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT