From 72d7b5ef1a002846613b81ac4a77df963e483b74 Mon Sep 17 00:00:00 2001 From: Antoine Jacquet Date: Sun, 6 Feb 2005 00:00:00 +0100 Subject: [PATCH] version 0.70 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * Makefile was improved to easily build packages * Windows binaries are now available * patch to make parsing more robust and dutch translation updated (thank you Wouter Horré) * added an option to display pictures for the users * added the irssistats logo with an option to hide it * expand the "~" character in configuration file to the home directory * added 3 themes : biseau, damier and niflheim * gcc optimization to speed up irssistats --- CHANGELOG | 10 +++ Makefile | 24 ++++- README | 12 ++- data/biseau.css | 137 +++++++++++++++++++++++++++++ data/biseau_corner1.gif | Bin 0 -> 255 bytes data/biseau_corner2.gif | Bin 0 -> 255 bytes data/biseau_corner3.gif | Bin 0 -> 255 bytes data/biseau_corner4.gif | Bin 0 -> 255 bytes data/blue.css | 72 ++++++++------- data/damier.css | 138 +++++++++++++++++++++++++++++ data/damier_background.gif | Bin 0 -> 78 bytes data/damier_title.png | Bin 0 -> 2716 bytes data/dark.css | 76 +++++++++------- data/default.css | 76 +++++++++------- data/grayscale.css | 58 ++++++------ data/namour.css | 68 +++++++------- data/niflheim.css | 149 +++++++++++++++++++++++++++++++ data/pisg.css | 54 +++++++----- data/zeduel.css | 72 ++++++++------- data/zerezo.css | 76 +++++++++------- debian/changelog | 24 +++++ debian/compat | 1 + debian/control | 15 ++++ debian/copyright | 16 ++++ debian/docs | 1 + debian/rules | 99 +++++++++++++++++++++ irssistats.1 | 88 +++++++------------ irssistats.c | 175 ++++++++++++++++++++++++++++++++----- irssistats.sgml | 47 +++++++++- rpm/irssistats.spec | 31 +++++++ sample.configfile | 17 +++- sample.photofile | 4 + 32 files changed, 1221 insertions(+), 319 deletions(-) create mode 100644 data/biseau.css create mode 100644 data/biseau_corner1.gif create mode 100644 data/biseau_corner2.gif create mode 100644 data/biseau_corner3.gif create mode 100644 data/biseau_corner4.gif create mode 100644 data/damier.css create mode 100644 data/damier_background.gif create mode 100644 data/damier_title.png create mode 100644 data/niflheim.css create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100755 debian/rules create mode 100644 rpm/irssistats.spec create mode 100644 sample.photofile diff --git a/CHANGELOG b/CHANGELOG index 7720b67..6a5c7ad 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,15 @@ Change log file for irssistats +version 0.70 (2005-06-01) + * Makefile was improved to easily build packages + * Windows binaries are now available + * patch to make parsing more robust and dutch translation updated (thank you Wouter Horré) + * added an option to display pictures for the users + * added the irssistats logo with an option to hide it + * expand the "~" character in configuration file to the home directory + * added 3 themes : biseau, damier and niflheim + * gcc optimization to speed up irssistats + version 0.62 (2004-05-03) * estonian support (thank you Martin Vool) diff --git a/Makefile b/Makefile index 954a34d..e9e6f92 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +VER = 0.70 PRE = /usr/local BIN = $(PRE)/bin DAT = $(PRE)/share/irssistats/data @@ -5,10 +6,12 @@ DOC = $(PRE)/share/doc/irssistats MAN = $(PRE)/share/man/man1 irssistats:irssistats.c - gcc -o irssistats irssistats.c + gcc -O2 -o irssistats irssistats.c clean: - rm -f irssistats + rm -f irssistats irssistats.exe + rm -f build-stamp configure-stamp debian/irssistats.substvars debian/files + rm -rf debian/irssistats rpm/BUILD rpm/SPECS rpm/SOURCES rpm/SRPMS rpm/RPMS install:irssistats mkdir -p $(BIN) $(DAT) $(DOC) $(MAN) @@ -21,3 +24,20 @@ uninstall: rm -f $(BIN)/irssistats rm -rf $(DAT) $(DOC) rm -f $(MAN)/irssistats.1 + +tar: clean + cd .. && tar zcvf irssistats-$(VER).tar.gz irssistats-$(VER) + +rpm: tar + mkdir -p rpm/BUILD rpm/SPECS rpm/SOURCES rpm/SRPMS rpm/RPMS + rpm -ta ../irssistats-$(VER).tar.gz --define "_topdir `pwd`/rpm" + cp rpm/*/*.rpm rpm/*/*/*.rpm .. + +deb: clean + dpkg-buildpackage -us -uc -rfakeroot + +win: irssistats.c + i586-mingw32msvc-gcc -O2 -o irssistats.exe irssistats.c + cd .. && zip -r irssistats-$(VER).zip irssistats-$(VER)/{irssistats.exe,README,CHANGELOG,COPYING,irssistats.sgml,sample.configfile,sample.nickfile,data} + +dist: tar rpm deb win \ No newline at end of file diff --git a/README b/README index eda71da..ec98bd5 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -irssistats 0.62 +irssistats 0.70 site: http://royale.zerezo.com/irssistats/ mail: royale@zerezo.com @@ -26,8 +26,14 @@ The nickfile must not contain any comments. The final nick will remove matching nicks from all statistics, except from "Some URLs" and "Some topics"... You can also take a look at the "sample.nickfile" in this package. +photofile: +Since version 0.70 of irssistats, you can use a photofile to display pictures for users. +Each line of the photofile contains the final nick and an URL for the image. +Examples : + royale http://royale.zerezo.com/chat/faces/happy40.png (a full address) + sektor ../chat/faces/happy40.png (a relative address) + links: -http://torus.lnet.lut.fi/ircstats/ +http://tnsp.org/fisg.php http://pisg.sourceforge.net/ -http://users.pandora.be/becquart/cisg/ http://netti.nic.fi/~mauvinen/mircstats/ diff --git a/data/biseau.css b/data/biseau.css new file mode 100644 index 0000000..e0f8333 --- /dev/null +++ b/data/biseau.css @@ -0,0 +1,137 @@ +/* "biseau" theme from Pronostiks.com */ + +body { + background: #ddddee; + text-align: center; +} + +#irssistats * { + font-family: tahoma; + font-size: 9pt; +} + +#irssistats { + width: 89%; + margin: auto; +} + +#irssistats h1, #irssistats h2 { + font-weight: bold; + padding-left: 5px; + margin: 0; +} + +#irssistats h1 { + color: #6b78a4; + font-size: 18pt; +} + +#irssistats h2 { + color: #ffffff; + font-size: 10pt; + height: 18px; + background: #6b78a4 url('biseau_corner1.gif'); + background-repeat: no-repeat; + background-position: top right; + padding-right: 8px; +} + +#irssistats_legend td { + text-align: left; +} + +#irssistats_legend, #irssistats_lastdays, #irssistats_tophours, #irssistats_topusers, #irssistats_topuserstime, #irssistats_randtopics, #irssistats_randurls, #irssistats_topwords, #irssistats_bignumbers { + background: #ffffff; + margin: 10px; + text-align: center; + border-bottom: 2px #6b78a4 solid; +} + +#irssistats table { + width: 100%; + border-left: 6px #6b78a4 double; + border-right: 2px #6b78a4 solid; + margin: 0; + padding: 15px; +} + +#irssistats_topusers td, #irssistats_topuserstime td, #irssistats_randtopics td, #irssistats_randurls td, #irssistats_topwords td, #irssistats_bignumbers td { + border: 1px #6b78a4 solid; + text-align: center; +} + +#irssistats th { + height: 18px; + background: #ddddee url('biseau_corner4.gif'); + background-repeat: no-repeat; + background-position: top right; + padding-right: 8px; + border: 0; +} + +#irssistats_legend p, #irssistats_lastdays p, #irssistats_tophours p, #irssistats_topusers p, #irssistats_topuserstime p, #irssistats_randtopics p, #irssistats_randurls p, #irssistats_topwords p, #irssistats_bignumbers p { + border-left: 6px #6b78a4 double; + border-right: 2px #6b78a4 solid; + margin: 0; + padding: 15px; +} + +#irssistats div.h1, #irssistats div.h2, #irssistats div.h3, #irssistats div.h4, #irssistats div.hm { + float: left; + height: 15px; + margin: 0; + padding: 0; + border: 0; + font-size: 0; +} + +#irssistats div.v1, #irssistats div.v2, #irssistats div.v3, #irssistats div.v4, #irssistats div.vm { + width: 15px; + margin: 0; + padding: 0; + border: 0; + font-size: 0; +} + +#irssistats div.h1, #irssistats div.v1 { + background: #6b78a4; +} + +#irssistats div.h2, #irssistats div.v2 { + background: #8899cc; +} + +#irssistats div.h3, #irssistats div.v3 { + background: #aabbdd; +} + +#irssistats div.h4, #irssistats div.v4 { + background: #ddddee; +} + +#irssistats div.hm, #irssistats div.vm { + background: #888888 url('biseau_corner4.gif'); + background-repeat: no-repeat; + background-position: top right; +} + +#irssistats A { + color: #5a658a; + text-decoration: none; +} + +#irssistats A:hover { + text-decoration: underline; +} + +#irssistats img { + border: 0; +} + +#irssistats small { + font-size: 7pt; +} + +#irssistats .tdphoto { + text-align: center; +} \ No newline at end of file diff --git a/data/biseau_corner1.gif b/data/biseau_corner1.gif new file mode 100644 index 0000000000000000000000000000000000000000..8daef2b6ec6d23246ad3584863fe2d395f2a80ea GIT binary patch literal 255 zcmZ?wbhEHb6k-r!_{abPckjLf(+r9~Sr{1^m>3lQi8>dhCYGe8D3oWGWGIAWq$;?3 z`UWuQfYgCBGB9lqnPHH4sD)El%}2u!%9s(b2qH4WV4+JVND8RNsZ&T4%sA8{r0N9{ z0jg2;nz90--D`?QU=mmtkg>?66>K1o(J2Jd9spvfY5{ct4FqbR0x=NC&n01y(G|U=08#8%%cq literal 0 HcmV?d00001 diff --git a/data/biseau_corner2.gif b/data/biseau_corner2.gif new file mode 100644 index 0000000000000000000000000000000000000000..e17fb105bb5285c2a619cd5aad4b66507bef84dc GIT binary patch literal 255 zcmZ?wbhEHb6k-r!_{abPckjLf(+r9~Sr{1^m>3lQi8>dhCYGe8D3oWGWGIAWq$;?3 z`UWuQfYgCBGB9oTnPHH4sD)Eltp~>N(J+LF_(%jMfu($A1S~oNQUg@H$fXm)Sm@Fz z1QtmIGE_lQiB3R<7udiKAY%&HKoA3Lpdg3=HW17J8K?{r0UHQq2noAEM1Tgu7+yVK OHDGf3lQi8>dhCYGe8D3oWGWGIAWq$;?3 z`UWuQfYgCBGB9oTnPHH4sD)Eltp~>N(J+LF_(%jMfu($A1S~oNQUg@H$fXm)Sm@Fz z1QtmIGE_lQiB3R<7udiKAY%&HKoA3Lpdg3=HW17J8K?{r0UHQq2noAEM1Tgu7+yVK OHDGf3lQi8>dhCYGe8D3oWGWGIAWq$;?3 z`UWuQfYgCBGB9lqnPHH4sD)El%}2u!%9s(b2qH4WV4+JVND8RNsZ&T4%sA8{r0N9{ z0jg2;nz90--D`?QU=mmtkg>?66>K1o(J2Jd9spvfY5{ct4FqbR0x=NC&n01y(G|U=09vGEB?> literal 0 HcmV?d00001 diff --git a/data/blue.css b/data/blue.css index 8d5ff28..89bb80d 100644 --- a/data/blue.css +++ b/data/blue.css @@ -5,9 +5,9 @@ body { } #irssistats * { - font-family: Verdana, Arial, Helvetica, sans-serif; + font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; - margin: 0; + margin: 0; } #irssistats A { @@ -19,32 +19,32 @@ body { } #irssistats img { - border: 0; + border: 0; } #irssistats h1 { - font-size: 20pt; + font-size: 20pt; margin-bottom: 10px; color: #8888FF; } #irssistats h2 { - font-size: 15pt; + font-size: 15pt; margin-bottom: 5px; color: #AAAAFF; } #irssitats p { - font-size: 10pt; + font-size: 10pt; } #irssistats th { - font-size: 9pt; + font-size: 9pt; background: #CCCCFF; } #irssistats td { - font-size: 9pt; + font-size: 9pt; background: #EEEEFF; } @@ -53,7 +53,7 @@ body { } #irssistats small { - font-size: 7pt; + font-size: 7pt; } #irssistats table { @@ -62,74 +62,86 @@ body { } #irssistats div { - padding: 10px; - margin: 10px; - text-align: center; + padding: 10px; + margin: 10px; + text-align: center; } #irssistats div.h1, #irssistats div.h2, #irssistats div.h3, #irssistats div.h4, #irssistats div.hm { - float: left; - height: 15px; - margin: 0; - padding: 0; + float: left; + height: 15px; + margin: 0; + padding: 0; border: 0; font-size: 0; } #irssistats div.v1, #irssistats div.v2, #irssistats div.v3, #irssistats div.v4, #irssistats div.vm { - width: 15px; - margin: 0; - padding: 0; - border: 0; + width: 15px; + margin: 0; + padding: 0; + border: 0; font-size: 0; } #irssistats div.h1 { - background: #0000ff; + background: #0000ff; background: url('h1.png'); } #irssistats div.h2 { - background: #00ff00; + background: #00ff00; background: url('h2.png'); } #irssistats div.h3 { - background: #ffff00; + background: #ffff00; background: url('h3.png'); } #irssistats div.h4 { - background: #ff0000; + background: #ff0000; background: url('h4.png'); } #irssistats div.hm { - background: #ff00ff; + background: #ff00ff; background: url('hm.png'); } #irssistats div.v1 { - background: #0000ff; + background: #0000ff; background: url('v1.png'); } #irssistats div.v2 { - background: #00ff00; + background: #00ff00; background: url('v2.png'); } #irssistats div.v3 { - background: #ffff00; + background: #ffff00; background: url('v3.png'); } #irssistats div.v4 { - background: #ff0000; + background: #ff0000; background: url('v4.png'); } #irssistats div.vm { - background: #ff00ff; + background: #ff00ff; background: url('vm.png'); +} + +#irssistats div.logo { + background: url('irssistats_white.png'); + width: 364px; + height: 44px; + margin: auto; + padding: 0; +} + +#irssistats .tdphoto { + text-align: center; } \ No newline at end of file diff --git a/data/damier.css b/data/damier.css new file mode 100644 index 0000000..393678d --- /dev/null +++ b/data/damier.css @@ -0,0 +1,138 @@ +/* "damier" theme from Pronostiks.com */ + +body { + background: url('damier_background.gif'); + text-align: center; +} + +#irssistats * { + font-family: verdana; + font-size: 9pt; +} + +#irssistats { + width: 860px; + margin: auto; +} + +#irssistats h1 { + font-size: 20pt; +} + +#irssistats h2 { + font-weight: bold; + background: url('damier_title.png'); + background-repeat: no-repeat; + border-bottom: 1px black solid; + padding-left: 5px; + margin: 0; +} + +#irssistats_legend td { + text-align: left; +} + +#irssistats_legend, #irssistats_lastdays, #irssistats_tophours, #irssistats_topusers, #irssistats_topuserstime, #irssistats_randtopics, #irssistats_randurls, #irssistats_topwords, #irssistats_bignumbers { + background: #ffffff; + border: 1px black solid; + -moz-border-radius-topright: 20px; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; + margin-bottom: 20px; +} + +#irssistats A { + color: #a35800; + text-decoration: none; +} + +#irssistats A:hover { + text-decoration: underline; +} + +.box_content { + padding: 10px; + text-align: center; +} + +#irssistats table { + width: 800px; + margin: auto; + margin-top: 10px; + margin-bottom: 10px; +} + +#irssistats_topusers td, #irssistats_topuserstime td, #irssistats_randtopics td, #irssistats_randurls td, #irssistats_topwords td, #irssistats_bignumbers td { + border: 1px #aaaaaa solid; + text-align: center; + -moz-border-radius: 4px; +} + +#irssistats th { + border: 1px black solid; + background: url('damier_title.png'); + background-repeat: no-repeat; +} + +#irssistats img { + border: 0; +} + +#irssistats div.h1, #irssistats div.h2, #irssistats div.h3, #irssistats div.h4, #irssistats div.hm { + float: left; + height: 15px; + margin: 0; + padding: 0; + border: 0; + font-size: 0; +} + +#irssistats div.v1, #irssistats div.v2, #irssistats div.v3, #irssistats div.v4, #irssistats div.vm { + width: 15px; + margin: 0; + padding: 0; + border: 0; + font-size: 0; +} + +#irssistats div.h1, #irssistats div.v1 { + background: #fbc282; +} + +#irssistats div.h2, #irssistats div.v2 { + background: #fbcf9b; +} + +#irssistats div.h3, #irssistats div.v3 { + background: #fddbb3; +} + +#irssistats div.h4, #irssistats div.v4 { + background: #fde7ce; +} + +#irssistats div.hm, #irssistats div.vm { + background: #dddddd; +} + +#irssistats small { + font-size: 5.5pt; +} + +#irssistats .logo { + padding: 10px; + background: #ffffff url('irssistats_white.png'); + background-repeat: no-repeat; + background-position: center; + width: 364px; + height: 44px; + margin: auto; + margin-top: 10px; + margin-bottom: 10px; + border: 3px black double; + -moz-border-radius: 20px; +} + +#irssistats .tdphoto { + text-align: center; +} \ No newline at end of file diff --git a/data/damier_background.gif b/data/damier_background.gif new file mode 100644 index 0000000000000000000000000000000000000000..85b669651498620d7aacfc949d919f82ebe07fcf GIT binary patch literal 78 zcmZ?wbhEHb6krfwn8*ME|NsC0`0*o@Q(qj11NQ7qlDi literal 0 HcmV?d00001 diff --git a/data/damier_title.png b/data/damier_title.png new file mode 100644 index 0000000000000000000000000000000000000000..851b1595048ddd66995834a318d2f471bafeec4e GIT binary patch literal 2716 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 W@Q1b+P6a>!0000 Sat, 5 Feb 2005 23:44:14 +0100 + +irssistats (0.62-1) unstable; urgency=low + + * New upstream version. + + -- Antoine Jacquet Wed, 3 May 2004 22:10:45 +0100 + +irssistats (0.61-1) unstable; urgency=low + + * New upstream version. + + -- Antoine Jacquet Wed, 5 Apr 2004 02:11:20 +0100 + +irssistats (0.6-1) unstable; urgency=low + + * Initial Release. + + -- Antoine Jacquet Wed, 24 Mar 2004 16:44:17 +0100 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f0b9a7f --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: irssistats +Section: net +Priority: optional +Maintainer: Antoine Jacquet +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: irssistats +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: irssi-text +Description: This tool generates HTML IRC stats based on irssi logs + irssistats is a tool that make HTML stats from irssi logfiles. + The statistics generated display many useful and funny informations about + the channel. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..83cb943 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +This package was debianized by Antoine Jacquet on +Wed, 24 Mar 2004 16:44:17 +0100. + +It was downloaded from: http://royale.zerezo.com/irssistats/ + +Upstream Author: Antoine Jacquet + +Copyright (C) 2002-2004 Antoine Jacquet + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e6bf5c3 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README sample.nickfile sample.configfile diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7b26878 --- /dev/null +++ b/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/irssistats.sgml > irssistats.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/irssistats. + $(MAKE) install PRE=$(CURDIR)/debian/irssistats/usr + rm $(CURDIR)/debian/irssistats/usr/share/doc/irssistats/COPYING + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGELOG + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/irssistats.1 b/irssistats.1 index 62c138b..4416cbd 100644 --- a/irssistats.1 +++ b/irssistats.1 @@ -1,56 +1,3 @@ -.\" $Header: /aolnet/dev/src/CVS/sgml/docbook-to-man/cmd/docbook-to-man.sh,v 1.1.1.1 1998/11/13 21:31:59 db3l Exp $ -.\" -.\" transcript compatibility for postscript use. -.\" -.\" synopsis: .P! -.\" -.de P! -.fl -\!!1 setgray -.fl -\\&.\" -.fl -\!!0 setgray -.fl \" force out current output buffer -\!!save /psv exch def currentpoint translate 0 0 moveto -\!!/showpage{}def -.fl \" prolog -.sy sed -e 's/^/!/' \\$1\" bring in postscript file -\!!psv restore -. -.de pF -.ie \\*(f1 .ds f1 \\n(.f -.el .ie \\*(f2 .ds f2 \\n(.f -.el .ie \\*(f3 .ds f3 \\n(.f -.el .ie \\*(f4 .ds f4 \\n(.f -.el .tm ? font overflow -.ft \\$1 -.. -.de fP -.ie !\\*(f4 \{\ -. ft \\*(f4 -. ds f4\" -' br \} -.el .ie !\\*(f3 \{\ -. ft \\*(f3 -. ds f3\" -' br \} -.el .ie !\\*(f2 \{\ -. ft \\*(f2 -. ds f2\" -' br \} -.el .ie !\\*(f1 \{\ -. ft \\*(f1 -. ds f1\" -' br \} -.el .tm ? font underflow -.. -.ds f1\" -.ds f2\" -.ds f3\" -.ds f4\" -'\" t -.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n .TH "IRSSISTATS" "1" .SH "NAME" irssistats \(em A tool to generate HTML IRC stats based on irssi logs. @@ -83,7 +30,7 @@ The path to the configuration file can be given on the command line : \fBirssist .PP If no configuration file is given, irssistats looks for files ~/.irssistats.conf or then /etc/irssistats.conf .PP -Lines starting by ; # -- or // are ignored (comments). +Lines starting by ; # \-\- or // are ignored (comments). .PP This file is read sequencially, so it acts like a script. .PP @@ -93,7 +40,7 @@ Blank lines must not contain any spaces ! .PP Each option keeps its value until erased by another value. .PP -IMPORTANT : the order of options to parse a channel must allways be "input" THEN "nickfile" THEN "output". +IMPORTANT : the order of options to parse a channel must allways be "input" THEN "nickfile" THEN "photofile" THEN "output". .PP Available options are : .IP "debug" 10 @@ -140,10 +87,22 @@ Specifies the refresh time in seconds (0 to disable) This option has no effect if you use a custom header : you'll have to include the refresh code yourself. .IP "" 10 Default : 3600 +.IP "photo_size" 10 +Specifies the size in pixels of the thumbnails for users +.IP "" 10 +This option has an effect only if there is a photofile (see below) +.IP "" 10 +Set to 0 to disable (display pictures with their real size) +.IP "" 10 +Default : 60 .IP "w3c_link" 10 Set this to "no" if you don't want the W3C logo. .IP "" 10 Default : yes +.IP "logo" 10 +Set this to "no" if you don't want the irssistats logo. +.IP "" 10 +Default : yes .IP "header" 10 Use your custom header file (HTML code between included) .IP "footer" 10 @@ -156,6 +115,8 @@ Note that irssistats will really parse the file as soon as it reads this option. This allow you to group nick using a nickfile. .IP "" 10 Note that irssistats will really merge the nicks as soon as it reads this option. +.IP "photofile" 10 +This allow you to display pictures for users. .IP "output" 10 This allow you to generate the HTML file. .IP "" 10 @@ -181,6 +142,21 @@ The nickfile must not contain any comments. The final nick will remove matching nicks from all statistics, except from "Some URLs" and "Some topics"... .PP You can also take a look at the "sample.nickfile" in this package (in "/usr/share/doc/irssistats/"). +.SH "PHOTOFILE" +.PP +Since version 0.70 of \fBirssistats\fR, you can use a photofile to display pictures for users. +.PP +Each line of the photofile contains the final nick and an URL for the image. +.PP +Examples : +.IP "royale http://royale.zerezo.com/chat/faces/happy40.png" 10 +(a full address) +.IP "sektor ../chat/faces/happy40.png" 10 +(a relative address) +.PP +The photofile must not contain any comments. +.PP +You can also take a look at the "sample.photofile" in this package (in "/usr/share/doc/irssistats/"). .SH "SEE ALSO" .PP \fBirssi\fR (1). @@ -192,4 +168,4 @@ Report bugs to royale@zerezo.com. .SH "AUTHOR" .PP Antoine Jacquet royale@zerezo.com -.\" created by instant / docbook-to-man, Mon 03 May 2004, 21:30 +.\" created by instant / docbook-to-man, Sun 06 Feb 2005, 06:38 diff --git a/irssistats.c b/irssistats.c index d7e974d..4e637a5 100644 --- a/irssistats.c +++ b/irssistats.c @@ -1,5 +1,5 @@ /* - * irssistats version 0.62 + * irssistats version 0.70 * * This tool generates IRC stats based on irssi logs. * Usage: irssistats [/path/to/file.conf] @@ -20,7 +20,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ + */ #include @@ -28,7 +28,12 @@ #include #include #include +#ifdef __WIN32__ +#define GLOBALCONF "irssistats.conf" +#else +#define GLOBALCONF "/etc/irssistats.conf" #include +#endif /* Config */ #define BASEUSERS 1000 @@ -43,7 +48,7 @@ #define MINWORDLENGTH 5 /* irssistats */ -#define VERSION "0.62" +#define VERSION "0.70" #define URL "http://royale.zerezo.com/irssistats/" /* Counters */ @@ -412,6 +417,7 @@ char *keys[NBLANGUAGES][NBKEYS+1][2]= /* first key used for language name and ab }, { /* Dutch language */ /* contributed by Jeroen Ubbink */ + /* updated by Wouter Horré */ { "Dutch", "nl" }, { "CHARSET", "ISO-8859-1" }, { "HEADER", "Statistieken voor %s door %s" }, @@ -419,7 +425,7 @@ char *keys[NBLANGUAGES][NBKEYS+1][2]= /* first key used for language name and ab { "LASTDAYS", "Statistieken van de laatste dagen" }, { "TOPHOURS", "Statistieken per uur" }, { "TOPUSERS", "Meest actieve mensen" }, - { "OTHERS", "Er zijn nog %d niet in de top..." }, + { "OTHERS", "Er zijn nog %d mensen die de top niet haalden..." }, { "NBLINES", "regels" }, { "NICK", "nick" }, { "AVGLETTERS", "letters/lijn" }, @@ -438,7 +444,7 @@ char *keys[NBLANGUAGES][NBKEYS+1][2]= /* first key used for language name and ab { "BIGNUMBERS", "Enkele grote aantallen..." }, { "NUMBERS", "numbers" }, { "TIME", "%d regels (%d dagen) verwerkt in %d seconden" }, - { "FOOTER", "Statistieken gegenereert door" }, + { "FOOTER", "Statistieken gegenereerd door" }, { "C_SMILE", "is vaak vrolijk :)" }, { "C_FROWN", "is vaak droevig :(" }, { "C_EXCLAM", "schreeuwt veel !" }, @@ -556,9 +562,10 @@ char *L(char *key) int debug=1; /* 0 = none ; 1 = normal ; 2 = verbose */ char channel[MAXLINELENGTH]="set_channel_in_config_file"; char maintainer[MAXLINELENGTH]="set_maintainer_in_config_file"; -char theme[MAXLINELENGTH]="default,blue,dark,grayscale,namour,pisg,zeduel,zerezo"; +char theme[MAXLINELENGTH]="default,biseau,blue,dark,damier,grayscale,namour,niflheim,pisg,zeduel,zerezo"; int refresh_time=0; /* 0 = disabled */ int w3c_link=1; /* 0 = disabled */ +int logo=1; /* 0 = disabled */ char header[MAXLINELENGTH]="none"; char footer[MAXLINELENGTH]="none"; int totallines=0; @@ -566,6 +573,7 @@ time_t debut; int top_words=1; /* 0 = disabled */ int ranking=0; /* 0 = lines ; 1 = words ; 2 = letters */ int quarter=0; /* 1 = enabled */ +int photo_size=60; struct user { @@ -576,6 +584,7 @@ struct user int hours[4]; char quote[MAXQUOTELENGTH+1]; int counters[NBCOUNTERS]; + char *photo; int temp; } *users; int nbusers=0; @@ -729,6 +738,7 @@ int dichotomic(char *nick) strcpy(users[i].quote,users[i-1].quote); for (j=0;j=MAXLINELENGTH-1) { fprintf(stderr,"line %d is too long\n",totallines); exit(1); } + for (i=0;line[i]!=0 && i=MAXLINELENGTH-1) { + if(debug){ + fprintf(stderr,"line %d is too long, skipping\n",totallines+1); + } + continue; + } + if (i<8) { + if(debug) { + fprintf(stderr, "line %d is too short to be valid, skipping\n",totallines+1); + } + continue; + } line[i-1]='\0'; pos=0; totallines++; @@ -783,7 +805,13 @@ void parse_log(char *logfile) } else if (strncmp("-!-",&line[6],3)==0) /* 00:00 -!- Nick something... */ { - for (i=10;line[i]!=' ';i++); + for (i=10;line[i]!=' ' && i <= 10 + MAXNICKLENGTH;i++); + if(i > 10 + MAXNICKLENGTH) { + if(debug) { + fprintf(stderr,"nick on line %d is too long, skipping line\n",totallines); + } + continue; + } line[i]='\0'; nick=&line[10]; message=&line[i+1]; @@ -828,14 +856,26 @@ void parse_log(char *logfile) hour=atoi(line); if (line[7]=='*') /* 00:00 * Nick the message */ { - for (i=9;line[i]!=' ';i++); + for (i=9;line[i]!=' ' && i <= 9 + MAXNICKLENGTH;i++); + if(i > 9 + MAXNICKLENGTH) { + if(debug) { + fprintf(stderr,"nick on line %d is too long, skipping line\n",totallines); + } + continue; + } nick=&line[9]; message=&line[i+1]; } else if (line[7]=='>') /* 00:00 <>>>?Nick<<<> the personal message */ /* 00:00 <>>?Nick<<> the personal message */ { - for (i=10;line[i]!='<';i++); + for (i=10;line[i]!='<' && i <= 10 + MAXNICKLENGTH;i++); + if(i > 10 + MAXNICKLENGTH) { + if(debug) { + fprintf(stderr,"nick on line %d is too long, skipping line\n",totallines); + } + continue; + } nick=&line[10]; if (line[9]=='>') nick++; message=&line[i+5]; @@ -853,7 +893,13 @@ void parse_log(char *logfile) nickstart = 7; } - for (i=nickstart;line[i]!='>';i++); + for (i=nickstart;line[i]!='>' && i <= nickstart + MAXNICKLENGTH;i++); + if(i > nickstart + MAXNICKLENGTH) { + if(debug) { + fprintf(stderr,"nick on line %d is too long, skipping line\n",totallines); + } + continue; + } nick=&line[nickstart]; message=&line[i+2]; } @@ -913,6 +959,7 @@ void parse_log(char *logfile) if (debug) printf(" done\n"); } +#ifndef __WIN32__ void parse_nick(char *nickfile) { FILE *fic; @@ -958,6 +1005,24 @@ void parse_nick(char *nickfile) for (j=0;j<4;j++) users[i].hours[j]=-1; for (j=0;j\n%s%s%s%s%s\n",L("NICK"),L("NBLINES"),L("HOURS"),L("AVGLETTERS"),L("QUOTE")); + fprintf(fic,"\n\n",L("NICK"),L("NBLINES"),L("HOURS"),L("AVGLETTERS"),L("QUOTE")); break; default: /* "letters" and "words" ranking are not yet translated so we use the generic word "rank" ... */ - fprintf(fic,"
%s%s%s%s%s
\n\n",L("NICK"),"rank",L("HOURS"),L("AVGLETTERS"),L("QUOTE")); + fprintf(fic,"
%s%s%s%s%s
\n\n",L("NICK"),"rank",L("HOURS"),L("AVGLETTERS"),L("QUOTE")); break; } + if (photos) fprintf(fic,""); + fprintf(fic,""); for (i=1;i<=NBUSERS;i++) { user=-1; @@ -1084,7 +1154,15 @@ void gen_xhtml(char *xhtmlfile) for (j=0;j<4;j++) if (users[user].hours[j]!=0) fprintf(fic,"
",j+1,100*users[user].hours[j]/users[user].lines); fprintf(fic,"\n"); + fprintf(fic,"\""); + if (photos && users[user].photo!=NULL) + { + if (photo_size) + fprintf(fic,"",users[user].photo,users[user].photo,photo_size,photo_size); + else + fprintf(fic,"",users[user].photo,users[user].photo); + } + fprintf(fic,"\n"); users[user].lines=-1; users[user].words=-1; users[user].letters=-1; @@ -1180,10 +1258,15 @@ void gen_xhtml(char *xhtmlfile) fprintf(fic,"

\n\"Valid\n"); fprintf(fic,"\"Valid\n

\n"); } - fprintf(fic,"\n\n"); - if (strcmp("none",header)==0) + fprintf(fic,"\n\n"); + + /* logo*/ + if (logo) fprintf(fic,"
\n\n"); + + /* end */ + if (strcmp("none",footer)==0) { - fprintf(fic,"\n\n\n\n\n"); + fprintf(fic,"\n\n\n\n\n"); } else { @@ -1197,6 +1280,17 @@ void gen_xhtml(char *xhtmlfile) void parse_config(char *configfile) { + void expand(char *path) + { + char temp[MAXLINELENGTH]; + if (*path=='~') + { + snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1); + temp[MAXLINELENGTH-1]='\0'; + strcpy(path,temp); + } + } + FILE *fic; char line[MAXLINELENGTH]; char keyword[MAXLINELENGTH]; @@ -1214,11 +1308,12 @@ void parse_config(char *configfile) } else { - sprintf(line,"%s/.irssistats",getenv("HOME")); + snprintf(line,MAXLINELENGTH-1,"%s/.irssistats",getenv("HOME")); + line[MAXLINELENGTH-1]='\0'; if ((fic=fopen(line,"rt"))==NULL) - if ((fic=fopen("/etc/irssistats.conf","rt"))==NULL) + if ((fic=fopen(GLOBALCONF,"rt"))==NULL) { - fprintf(stderr,"can't find config file : \"%s\" nor \"/etc/irssistats.conf\"\n",line); + fprintf(stderr,"can't find config file : \"%s\" nor \"" GLOBALCONF "\"\n",line); fprintf(stderr,"please give the path to the config file in argument\n"); exit(1); } @@ -1284,6 +1379,13 @@ void parse_config(char *configfile) } else + if (strcmp("photo_size",keyword)==0) + { + photo_size=atoi(value); + if (debug==2) fprintf(stderr,"setting photo_size to \"%d\"\n",photo_size); + } + else + if (strcmp("w3c_link",keyword)==0) { if (debug==2) fprintf(stderr,"setting w3c_link to \"%s\"\n",value); @@ -1293,8 +1395,18 @@ void parse_config(char *configfile) } else + if (strcmp("logo",keyword)==0) + { + if (debug==2) fprintf(stderr,"setting logo to \"%s\"\n",value); + if (strcmp("no",value)==0) logo=0; + else if (strcmp("yes",value)==0) logo=1; + else { fprintf(stderr,"unknown value for \"logo\" option, must be \"yes\" or \"no\"\n"); exit(1); } + } + else + if (strcmp("header",keyword)==0) { + expand(value); if (debug==2) fprintf(stderr,"setting header to \"%s\"\n",value); strcpy(header,value); } @@ -1302,6 +1414,7 @@ void parse_config(char *configfile) if (strcmp("footer",keyword)==0) { + expand(value); if (debug==2) fprintf(stderr,"setting footer to \"%s\"\n",value); strcpy(footer,value); } @@ -1309,6 +1422,7 @@ void parse_config(char *configfile) if (strcmp("input",keyword)==0) { + expand(value); if (debug==2) fprintf(stderr,"parsing log file \"%s\"\n",value); parse_log(value); } @@ -1316,13 +1430,27 @@ void parse_config(char *configfile) if (strcmp("nickfile",keyword)==0) { + expand(value); if (debug==2) fprintf(stderr,"nick alias using file \"%s\"\n",value); +#ifdef __WIN32__ + fprintf(stderr,"no support for nickfile in WIN32 version\n"); +#else parse_nick(value); +#endif + } + else + + if (strcmp("photofile",keyword)==0) + { + expand(value); + if (debug==2) fprintf(stderr,"parsing photo file \"%s\"\n",value); + parse_photo(value); } else if (strcmp("output",keyword)==0) { + expand(value); if (debug==2) fprintf(stderr,"generating xhtml file \"%s\"\n",value); bestwords(words,0); gen_xhtml(value); @@ -1338,6 +1466,11 @@ void parse_config(char *configfile) for (i=0;iEach option keyword is case sensitive, and you must put separators around the ':' character. Blank lines must not contain any spaces ! Each option keeps its value until erased by another value. - IMPORTANT : the order of options to parse a channel must allways be "input" THEN "nickfile" THEN "output". + IMPORTANT : the order of options to parse a channel must allways be "input" THEN "nickfile" THEN "photofile" THEN "output". Available options are : @@ -156,6 +156,16 @@ + + photo_size + + Specifies the size in pixels of the thumbnails for users + This option has an effect only if there is a photofile (see below) + Set to 0 to disable (display pictures with their real size) + Default : 60 + + + w3c_link @@ -164,6 +174,14 @@ + + logo + + Set this to "no" if you don't want the irssistats logo. + Default : yes + + + header Use your custom header file (HTML code between <!DOCTYPE... and <body> included) @@ -191,6 +209,13 @@ + + photofile + + This allow you to display pictures for users. + + + output @@ -233,6 +258,26 @@ + + PHOTOFILE + Since version 0.70 of irssistats, you can use a photofile to display pictures for users. + Each line of the photofile contains the final nick and an URL for the image. + Examples : + + + royale http://royale.zerezo.com/chat/faces/happy40.png + (a full address) + + + sektor ../chat/faces/happy40.png + (a relative address) + + + The photofile must not contain any comments. + You can also take a look at the "sample.photofile" in this package (in "/usr/share/doc/irssistats/"). + + + SEE ALSO irssi (1). diff --git a/rpm/irssistats.spec b/rpm/irssistats.spec new file mode 100644 index 0000000..a5ab832 --- /dev/null +++ b/rpm/irssistats.spec @@ -0,0 +1,31 @@ +Name: irssistats +Summary: This tool generates HTML IRC stats based on irssi logs +Version: 0.70 +Release: 1 +Source: http://royale.zerezo.com/%{name}/%{name}-%{version}.tar.gz +Group: Applications/Multimedia +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +irssistats is a tool that make HTML stats from irssi logfiles. +The statistics generated display many useful and funny informations about +the channel. + +%prep +%setup -q + +%build +make + +%install +make install PRE=$RPM_BUILD_ROOT/usr + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,0755) +%doc COPYING README +%{_bindir}/irssistats +%{_mandir}/man1/irssistats.1.gz diff --git a/sample.configfile b/sample.configfile index 10786db..d738852 100644 --- a/sample.configfile +++ b/sample.configfile @@ -6,7 +6,7 @@ # Each option keyword is case sensitive, and you must put separators around the ':' character. # Blank lines must not contain any spaces ! # Each option keeps its value until erased by another value. -# IMPORTANT : the order of options to parse a channel must allways be "input" THEN "nickfile" THEN "output". +# IMPORTANT : the order of options to parse a channel must allways be "input" THEN "nickfile" THEN "photofile" THEN "output". # Allows you to display debugging informations. # Values : normal / verbose / none @@ -28,7 +28,7 @@ language : fr # In fact this is the name of the CSS file to include. # This option has no effect if you use a custom header : you'll have to include the CSS yourself. # The first theme is the primary stylesheet, and the others are alternate themes -theme : default,blue,dark,grayscale,namour,pisg,zeduel,zerezo +theme : default,biseau,blue,dark,damier,grayscale,namour,niflheim,pisg,zeduel,zerezo # Allows you to disable top words list which is using a lot of memory # Default : yes @@ -48,10 +48,20 @@ quarter : yes # Default : 3600 refresh_time : 0 +# Specifies the size in pixels of the thumbnails for users +# This option has an effect only if there is a photofile (see below) +# Set to 0 to disable (display pictures with their real size) +# Default : 60 +photo_size : 0 + # Set this to "no" if you don't want the W3C logo. # Default : yes w3c_link : no +# Set this to "no" if you don't want the irssistats logo. +# Default : yes +logo : no + # Use your custom header file (HTML code between included) header : /path/to/header.html @@ -71,6 +81,9 @@ input : /path/to/#newchannel1.log # Note that irssistats will really merge the nicks as soon as it reads this option. nickfile : /path/to/nickfile1.txt +# This allow you to display pictures for users. +photofile: /path/to/photofile1.txt + # This allow you to generate the HTML file. # Note that irssistats will really generate the HTML file as soon as it reads this option. output : /path/to/channel1.html diff --git a/sample.photofile b/sample.photofile new file mode 100644 index 0000000..0d30a31 --- /dev/null +++ b/sample.photofile @@ -0,0 +1,4 @@ +royale http://royale.zerezo.com/chat/faces/happy40.png +sektor ../chat/faces/sektor.jpg +Clak wgfa2.png +Jo faces/FLCL.gif -- 2.20.1
%s%s%s%s%s
%d
\"",users[user].lines!=0?users[user].letters/users[user].lines:0,users[user].lines!=0?users[user].letters/users[user].lines:0); printhtml(fic,users[user].quote); - fprintf(fic,"\"
\"\"\"\"