summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Shepherd <masterdriverz@gentoo.org>2006-11-01 19:39:18 +0000
committerCharlie Shepherd <masterdriverz@gentoo.org>2006-11-01 19:39:18 +0000
commit06b04f22ebe12684aa1a7bec425a1592384c8ae8 (patch)
treeb2a559a10e5d53432e482f742f23237c6b9895c4
parentmedia-gfx/a2png: Adding a2png (diff)
downloadgenstef-06b04f22ebe12684aa1a7bec425a1592384c8ae8.tar.gz
genstef-06b04f22ebe12684aa1a7bec425a1592384c8ae8.tar.bz2
genstef-06b04f22ebe12684aa1a7bec425a1592384c8ae8.zip
genstef/net-irc: Adding xstat
svn path=/; revision=49
-rw-r--r--net-irc/xstat/ChangeLog17
-rw-r--r--net-irc/xstat/Manifest24
-rw-r--r--net-irc/xstat/files/1.1-compile-fix.patch45
-rw-r--r--net-irc/xstat/files/digest-xstat-1.13
-rw-r--r--net-irc/xstat/files/digest-xstat-1.1-r13
-rw-r--r--net-irc/xstat/files/makefile198
-rw-r--r--net-irc/xstat/metadata.xml8
-rw-r--r--net-irc/xstat/xstat-1.1.ebuild38
-rw-r--r--net-irc/xstat/xstat-1.2_beta1.ebuild32
9 files changed, 368 insertions, 0 deletions
diff --git a/net-irc/xstat/ChangeLog b/net-irc/xstat/ChangeLog
new file mode 100644
index 0000000..1062820
--- /dev/null
+++ b/net-irc/xstat/ChangeLog
@@ -0,0 +1,17 @@
+# ChangeLog for net-irc/xstat
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*xstat-1.1-r1 (01 Nov 2006)
+
+ 01 Nov 2006; <> xstat-1.1-r1.ebuild files/digest-xstat-1.1-r1
+ # INSERT ENTRY HERE
+
+*xstat-1.1-r1 (01 Nov 2006)
+
+ 01 Nov 2006; <> xstat-1.1-r1.ebuild files/digest-xstat-1.1-r1
+ # INSERT ENTRY HERE
+
+ 22 Oct 2006; Chaza <chaza@gentoo.org> ChangeLog:
+ -m Initial package commit
+
diff --git a/net-irc/xstat/Manifest b/net-irc/xstat/Manifest
new file mode 100644
index 0000000..8095a1f
--- /dev/null
+++ b/net-irc/xstat/Manifest
@@ -0,0 +1,24 @@
+AUX 1.1-compile-fix.patch 2200 RMD160 a8880e4fd9d32ced96d709d660e346ff34125783 SHA1 ee82d35644d6c7849358f997c15de722d5dbf8f9 SHA256 3be24ca4977d9ac2f4e9c1802afde2d2acacf5405b824f17819bac625f4f728d
+MD5 562cf827c646db05924ac157392ef5ab files/1.1-compile-fix.patch 2200
+RMD160 a8880e4fd9d32ced96d709d660e346ff34125783 files/1.1-compile-fix.patch 2200
+SHA256 3be24ca4977d9ac2f4e9c1802afde2d2acacf5405b824f17819bac625f4f728d files/1.1-compile-fix.patch 2200
+AUX makefile 8358 RMD160 1e6fadd2385089a348ab51e6ef10799cb3497b60 SHA1 968b6fd3fd94a4277f9e3e1a941a477b2a18db6c SHA256 476b8fb80c65d8a15c347d8abab9a329411a67c660dfa01052775598f1832974
+MD5 6f8787d970c13e71375b858a1dd0e6ec files/makefile 8358
+RMD160 1e6fadd2385089a348ab51e6ef10799cb3497b60 files/makefile 8358
+SHA256 476b8fb80c65d8a15c347d8abab9a329411a67c660dfa01052775598f1832974 files/makefile 8358
+DIST xstat-1.1.tar.gz 158940 RMD160 9b20a09f5fe53980c95bcddafdda6471c8ae1552 SHA1 76f8eaeab2fb6e4ccc2ba0c29c956bbb2e6fad29 SHA256 cb2068bd0a6990acc3e8053b65020b49398eff8650ee8a36edc12fb56d247971
+EBUILD xstat-1.1.ebuild 756 RMD160 e82c354773c8a4cb1db6a4dd64892a616e841a0d SHA1 8013e186205031b0ac7ce0592a2eda4ff4ab73de SHA256 c822b04009e66dbced52560d9867cbc88209fc7a4d3b270cf40d7496b8a729ab
+MD5 e14ae4752f5979d134b26c9c6024b3ce xstat-1.1.ebuild 756
+RMD160 e82c354773c8a4cb1db6a4dd64892a616e841a0d xstat-1.1.ebuild 756
+SHA256 c822b04009e66dbced52560d9867cbc88209fc7a4d3b270cf40d7496b8a729ab xstat-1.1.ebuild 756
+MISC ChangeLog 194 RMD160 06acb764ce1f2adb956bca523193ca6928bb5368 SHA1 388377a053ca8eec7ab96b3a00474ebc073d8526 SHA256 1df9c87c01eefb96024764453e29dff499bfd7e1da4d378fe74cde2866482252
+MD5 4307092f79370d4e33e1a743f9818f34 ChangeLog 194
+RMD160 06acb764ce1f2adb956bca523193ca6928bb5368 ChangeLog 194
+SHA256 1df9c87c01eefb96024764453e29dff499bfd7e1da4d378fe74cde2866482252 ChangeLog 194
+MISC metadata.xml 235 RMD160 72def4f482a4125ef4c7108059a8c540b1b51a5d SHA1 7341a853fb3d7f2f7b684afbab34965b03f0bb43 SHA256 e88afc5e5c63bf6461fd54bbcda6bb9b56e9ea2e055529a64218d0af07518194
+MD5 ec83afed67fc8cd151d5bd24b80cdc91 metadata.xml 235
+RMD160 72def4f482a4125ef4c7108059a8c540b1b51a5d metadata.xml 235
+SHA256 e88afc5e5c63bf6461fd54bbcda6bb9b56e9ea2e055529a64218d0af07518194 metadata.xml 235
+MD5 82add2be6b865a48e4a7946792dbc0ae files/digest-xstat-1.1 229
+RMD160 f3b022fb0d7e3e1dd2c290127e3a30bcfe5bee0b files/digest-xstat-1.1 229
+SHA256 d609d80301c86880fa3c671f1da9e10825415dc463a360d2ceb40d70b7b67865 files/digest-xstat-1.1 229
diff --git a/net-irc/xstat/files/1.1-compile-fix.patch b/net-irc/xstat/files/1.1-compile-fix.patch
new file mode 100644
index 0000000..0df622d
--- /dev/null
+++ b/net-irc/xstat/files/1.1-compile-fix.patch
@@ -0,0 +1,45 @@
+--- xstat-1.1/src/Config.cc.orig 2006-10-21 17:58:39.689754166 +0100
++++ xstat-1.1/src/Config.cc 2006-10-21 20:02:33.728644924 +0100
+@@ -73,27 +73,27 @@
+ */
+ Config::Config()
+ {
+- char *tmp[12];
++ char **tmp[12];
+ char *l; // current language
+ l = setlocale(LC_ALL, "");
+- if (*l == 'f' && *(++l) == 'r') tmp = STATFR;
+- else tmp = STAT;
++ if (*l == 'f' && *(++l) == 'r') strcpy(**tmp, *STATFR);
++ else strcpy(**tmp, *STAT);
+
+ strcpy(logName, "\0");
+ strcpy(fileName, "\0");
+ page = new Page("#FFFFFF", "Statistics of #channel");
+- stat[0] = new LinesChart("images/", "vbar.gif", tmp[0]);
+- stat[1] = new UsersChart("images/", "vbar.gif", tmp[1], 12);
+- stat[2] = new DailyLinesChart("images/", "vbar.gif", tmp[2], 1);
+- stat[3] = new DailyUsersChart("images/", "vbar.gif", tmp[3], 1);
+- stat[4] = new LineTable("images/", "hbar.gif", tmp[4], 20, 1);
+- stat[5] = new ActionTable("images/", "hbar.gif", tmp[5], 10, 1);
+- stat[6] = new DurationTable("images/", "hbar.gif", tmp[6], 10, 1);
+- stat[7] = new NickTable("images/", "hbar.gif", tmp[7], 5, 1);
+- stat[8] = new KickTable("images/", "hbar.gif", tmp[8], 10, 1);
+- stat[9] = new KickedTable("images/", "hbar.gif", tmp[9], 10, 1);
+- stat[10] = new TopicTable("images/", "hbar.gif", tmp[10], 5, 1);
+- stat[11] = new SessionTable("images/", "hbar.gif", tmp[11], 10, 1);
++ stat[0] = new LinesChart("images/", "vbar.gif", *tmp[0]);
++ stat[1] = new UsersChart("images/", "vbar.gif", *tmp[1], 12);
++ stat[2] = new DailyLinesChart("images/", "vbar.gif", *tmp[2], 1);
++ stat[3] = new DailyUsersChart("images/", "vbar.gif", *tmp[3], 1);
++ stat[4] = new LineTable("images/", "hbar.gif", *tmp[4], 20, 1);
++ stat[5] = new ActionTable("images/", "hbar.gif", *tmp[5], 10, 1);
++ stat[6] = new DurationTable("images/", "hbar.gif", *tmp[6], 10, 1);
++ stat[7] = new NickTable("images/", "hbar.gif", *tmp[7], 5, 1);
++ stat[8] = new KickTable("images/", "hbar.gif", *tmp[8], 10, 1);
++ stat[9] = new KickedTable("images/", "hbar.gif", *tmp[9], 10, 1);
++ stat[10] = new TopicTable("images/", "hbar.gif", *tmp[10], 5, 1);
++ stat[11] = new SessionTable("images/", "hbar.gif", *tmp[11], 10, 1);
+ removeAll();
+ }
+
diff --git a/net-irc/xstat/files/digest-xstat-1.1 b/net-irc/xstat/files/digest-xstat-1.1
new file mode 100644
index 0000000..737e17f
--- /dev/null
+++ b/net-irc/xstat/files/digest-xstat-1.1
@@ -0,0 +1,3 @@
+MD5 a15a3e5df1ff7e93b8ad91859ba6093e xstat-1.1.tar.gz 158940
+RMD160 9b20a09f5fe53980c95bcddafdda6471c8ae1552 xstat-1.1.tar.gz 158940
+SHA256 cb2068bd0a6990acc3e8053b65020b49398eff8650ee8a36edc12fb56d247971 xstat-1.1.tar.gz 158940
diff --git a/net-irc/xstat/files/digest-xstat-1.1-r1 b/net-irc/xstat/files/digest-xstat-1.1-r1
new file mode 100644
index 0000000..737e17f
--- /dev/null
+++ b/net-irc/xstat/files/digest-xstat-1.1-r1
@@ -0,0 +1,3 @@
+MD5 a15a3e5df1ff7e93b8ad91859ba6093e xstat-1.1.tar.gz 158940
+RMD160 9b20a09f5fe53980c95bcddafdda6471c8ae1552 xstat-1.1.tar.gz 158940
+SHA256 cb2068bd0a6990acc3e8053b65020b49398eff8650ee8a36edc12fb56d247971 xstat-1.1.tar.gz 158940
diff --git a/net-irc/xstat/files/makefile b/net-irc/xstat/files/makefile
new file mode 100644
index 0000000..243468e
--- /dev/null
+++ b/net-irc/xstat/files/makefile
@@ -0,0 +1,198 @@
+CC = g++
+CXXFLAGS ?= -O2 -pipe
+CXXFLAGS += -Wall
+LDFLAGS ?= -Wl,-O1
+
+BINDIR = $(DESTDIR)/usr/bin
+
+SRC = src/
+
+COMMON_TARGETS = $(SRC)Period.o $(SRC)Session.o $(SRC)User.o $(SRC)Log.o\
+ $(SRC)Page.o $(SRC)Stat.o $(SRC)Table.o $(SRC)LineTable.o $(SRC)ActionTable.o\
+ $(SRC)DurationTable.o $(SRC)NickTable.o $(SRC)TopicTable.o $(SRC)KickTable.o\
+ $(SRC)KickedTable.o $(SRC)SessionTable.o $(SRC)Chart.o $(SRC)UsersChart.o\
+ $(SRC)LinesChart.o $(SRC)DailyChart.o $(SRC)DailyUsersChart.o\
+ $(SRC)DailyLinesChart.o
+
+CONFIG_TARGETS = $(COMMON_TARGETS) $(SRC)Config.o
+
+XSTAT_TARGETS = $(CONFIG_TARGETS) $(SRC)Generate.o $(SRC)Popup.o $(SRC)Choose.o\
+ $(SRC)Browse.o $(SRC)BrowseImage.o $(SRC)Dialog.o $(SRC)Window.o $(SRC)xmain.o
+
+STATISTIC_TARGETS = $(CONFIG_TARGETS) $(SRC)Generate.o $(SRC)main.o
+
+TESTPAGE_TARGETS = $(COMMON_TARGETS) $(SRC)TestPage.o
+
+TESTCONFIG_TARGETS = $(CONFIG_TARGETS) $(SRC)TestConfig.o
+
+REMNANTS = $(SRC)Generate.o $(SRC)Popup.o $(SRC)Choose.o\
+ $(SRC)Browse.o $(SRC)BrowseImage.o $(SRC)Dialog.o $(SRC)Window.o\
+ $(SRC)xmain.o $(SRC)main.o $(SRC)TestPage.o $(SRC)TestConfig.o
+
+all : xstat statistic
+
+install : install-xstat install-statistic
+
+install-xstat : install-base xstat
+ install -m 755 xstat $(BINDIR)
+
+install-statistic : install-base statistic
+ install -m 755 statistic $(BINDIR)
+
+install-base :
+ mkdir -p $(BINDIR)
+
+uninstall :
+ if [[ -f $(BINDIR)/xstat ]]; then
+ rm -f $(BINDIR)/xstat
+ fi
+ if [[ -f $(BINDIR)/statistic ]]; then
+ rm -f [[ -f $(BINDIR)/statistic
+ fi
+
+clean :
+ rm -f $(CONFIG_TARGETS) $(REMNANTS) xstat statistic
+
+xstat : $(XSTAT_TARGETS)
+ $(CC) $(LDFLAGS) $(XSTAT_TARGETS) -o xstat `gtk-config --libs`
+
+statistic : $(STATISTIC_TARGETS)
+ $(CC) $(LDFLAGS) $(STATISTIC_TARGETS) -o statistic
+
+$(SRC)xmain.o : $(SRC)xmain.cc $(SRC)Window.h $(SRC)Config.h
+ $(CC) $(CXXFLAGS) `gtk-config --cflags` -c $(SRC)xmain.cc -o $(SRC)xmain.o
+
+$(SRC)main.o : $(SRC)main.cc $(SRC)Config.h $(SRC)Generate.h
+ $(CC) $(CXXFLAGS) -c $(SRC)main.cc -o $(SRC)main.o
+
+$(SRC)Window.o : $(SRC)Window.cc $(SRC)Window.h $(SRC)Dialog.h $(SRC)Browse.h\
+ $(SRC)BrowseImage.h $(SRC)Choose.h $(SRC)Popup.h $(SRC)Config.h $(SRC)Generate.h
+ $(CC) $(CXXFLAGS) `gtk-config --cflags` -c $(SRC)Window.cc -o $(SRC)Window.o
+
+$(SRC)Dialog.o : $(SRC)Dialog.cc $(SRC)Dialog.h $(SRC)BrowseImage.h $(SRC)Config.h
+ $(CC) $(CXXFLAGS) `gtk-config --cflags` -c $(SRC)Dialog.cc -o $(SRC)Dialog.o
+
+$(SRC)Browse.o : $(SRC)Browse.cc $(SRC)Browse.h
+ $(CC) $(CXXFLAGS) `gtk-config --cflags` -c $(SRC)Browse.cc -o $(SRC)Browse.o
+
+$(SRC)BrowseImage.o : $(SRC)BrowseImage.cc $(SRC)BrowseImage.h
+ $(CC) $(CXXFLAGS) `gtk-config --cflags` -c $(SRC)BrowseImage.cc -o $(SRC)BrowseImage.o
+
+$(SRC)Choose.o : $(SRC)Choose.cc $(SRC)Choose.h
+ $(CC) $(CXXFLAGS) `gtk-config --cflags` -c $(SRC)Choose.cc -o $(SRC)Choose.o
+
+$(SRC)Popup.o : $(SRC)Popup.cc $(SRC)Popup.h
+ $(CC) $(CXXFLAGS) `gtk-config --cflags` -c $(SRC)Popup.cc -o $(SRC)Popup.o
+
+$(SRC)Generate.o : $(SRC)Generate.cc $(SRC)Generate.h $(SRC)Config.h $(SRC)Log.h\
+ $(SRC)Page.h $(SRC)Stat.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Generate.cc -o $(SRC)Generate.o
+
+$(SRC)Config.o : $(SRC)Config.cc $(SRC)Config.h $(SRC)Page.h\
+ $(SRC)Stat.h $(SRC)Table.h $(SRC)Chart.h $(SRC)DailyChart.h\
+ $(SRC)LineTable.h $(SRC)ActionTable.h $(SRC)TopicTable.h $(SRC)NickTable.h\
+ $(SRC)KickTable.h $(SRC)KickedTable.h $(SRC)DurationTable.h $(SRC)SessionTable.h\
+ $(SRC)UsersChart.h $(SRC)LinesChart.h $(SRC)DailyUsersChart.h $(SRC)DailyLinesChart.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Config.cc -o $(SRC)Config.o
+
+$(SRC)Page.o : $(SRC)Page.cc $(SRC)Page.h $(SRC)Log.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Page.cc -o $(SRC)Page.o
+
+$(SRC)Stat.o : $(SRC)Stat.cc $(SRC)Stat.h $(SRC)Log.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Stat.cc -o $(SRC)Stat.o
+
+$(SRC)Table.o : $(SRC)Table.cc $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Table.cc -o $(SRC)Table.o
+
+$(SRC)LineTable.o : $(SRC)LineTable.cc $(SRC)LineTable.h $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)LineTable.cc -o $(SRC)LineTable.o
+
+$(SRC)ActionTable.o : $(SRC)ActionTable.cc $(SRC)ActionTable.h $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)ActionTable.cc -o $(SRC)ActionTable.o
+
+$(SRC)DurationTable.o : $(SRC)DurationTable.cc $(SRC)DurationTable.h $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)DurationTable.cc -o $(SRC)DurationTable.o
+
+$(SRC)NickTable.o : $(SRC)NickTable.cc $(SRC)NickTable.h $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)NickTable.cc -o $(SRC)NickTable.o
+
+$(SRC)TopicTable.o : $(SRC)TopicTable.cc $(SRC)TopicTable.h $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)TopicTable.cc -o $(SRC)TopicTable.o
+
+$(SRC)KickTable.o : $(SRC)KickTable.cc $(SRC)KickTable.h $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)KickTable.cc -o $(SRC)KickTable.o
+
+$(SRC)KickedTable.o : $(SRC)KickedTable.cc $(SRC)KickedTable.h $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)KickedTable.cc -o $(SRC)KickedTable.o
+
+$(SRC)SessionTable.o : $(SRC)SessionTable.cc $(SRC)SessionTable.h $(SRC)Table.h $(SRC)Stat.h $(SRC)Log.h $(SRC)User.h
+ $(CC) $(CXXFLAGS) -c $(SRC)SessionTable.cc -o $(SRC)SessionTable.o
+
+$(SRC)Chart.o : $(SRC)Chart.cc $(SRC)Chart.h $(SRC)Stat.h $(SRC)Log.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Chart.cc -o $(SRC)Chart.o
+
+$(SRC)UsersChart.o : $(SRC)UsersChart.cc $(SRC)UsersChart.h $(SRC)Chart.h $(SRC)Stat.h $(SRC)Log.h
+ $(CC) $(CXXFLAGS) -c $(SRC)UsersChart.cc -o $(SRC)UsersChart.o
+
+$(SRC)LinesChart.o : $(SRC)LinesChart.cc $(SRC)LinesChart.h $(SRC)Chart.h $(SRC)Stat.h $(SRC)Log.h
+ $(CC) $(CXXFLAGS) -c $(SRC)LinesChart.cc -o $(SRC)LinesChart.o
+
+$(SRC)DailyChart.o : $(SRC)DailyChart.cc $(SRC)DailyChart.h $(SRC)Stat.h $(SRC)Log.h
+ $(CC) $(CXXFLAGS) -c $(SRC)DailyChart.cc -o $(SRC)DailyChart.o
+
+$(SRC)DailyUsersChart.o : $(SRC)DailyUsersChart.cc $(SRC)DailyUsersChart.h\
+ $(SRC)DailyChart.h $(SRC)Stat.h $(SRC)Log.h
+ $(CC) $(CXXFLAGS) -c $(SRC)DailyUsersChart.cc -o $(SRC)DailyUsersChart.o
+
+$(SRC)DailyLinesChart.o : $(SRC)DailyLinesChart.cc $(SRC)DailyLinesChart.h\
+ $(SRC)DailyChart.h $(SRC)Stat.h $(SRC)Log.h
+ $(CC) $(CXXFLAGS) -c $(SRC)DailyLinesChart.cc -o $(SRC)DailyLinesChart.o
+
+$(SRC)Log.o : $(SRC)Log.cc $(SRC)Log.h $(SRC)User.h $(SRC)Period.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Log.cc -o $(SRC)Log.o
+
+$(SRC)User.o : $(SRC)User.cc $(SRC)User.h $(SRC)Session.h
+ $(CC) $(CXXFLAGS) -c $(SRC)User.cc -o $(SRC)User.o
+
+$(SRC)Session.o : $(SRC)Session.cc $(SRC)Session.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Session.cc -o $(SRC)Session.o
+
+$(SRC)Period.o : $(SRC)Period.cc $(SRC)Period.h
+ $(CC) $(CXXFLAGS) -c $(SRC)Period.cc -o $(SRC)Period.o
+
+$(SRC)TestConfig.o : $(SRC)TestConfig.cc $(SRC)Config.h $(SRC)Page.h\
+ $(SRC)Log.h $(SRC)Period.h $(SRC)User.h $(SRC)Session.h
+ $(CC) $(CXXFLAGS) -c $(SRC)TestConfig.cc -o $(SRC)TestConfig.o
+
+TestConfig : $(TESTCONFIG_TARGETS)
+ $(CC) $(CXXFLAGS) $(TESTCONFIG_TARGETS) -o TestConfig
+
+$(SRC)TestPage.o : $(SRC)TestPage.cc $(SRC)Page.h $(SRC)Log.h $(SRC)Period.h $(SRC)User.h $(SRC)Session.h
+ $(CC) $(CXXFLAGS) -c $(SRC)TestPage.cc -o $(SRC)TestPage.o
+
+TestPage : $(TESTPAGE_TARGETS)
+ $(CC) $(CXXFLAGS) $(TESTPAGE_TARGETS) -o TestPage
+
+$(SRC)TestLog.o : $(SRC)TestLog.cc $(SRC)Log.h $(SRC)Period.h $(SRC)User.h $(SRC)Session.h
+ $(CC) $(CXXFLAGS) -c $(SRC)TestLog.cc -o $(SRC)TestLog.o
+
+TestLog : $(SRC)Period.o $(SRC)Session.o $(SRC)User.o $(SRC)Log.o $(SRC)TestLog.o
+ $(CC) $(CXXFLAGS) $(SRC)Period.o $(SRC)Session.o $(SRC)User.o $(SRC)Log.o $(SRC)TestLog.o -o TestLog
+
+$(SRC)TestUser.o : $(SRC)TestUser.cc $(SRC)User.h $(SRC)Session.h
+ $(CC) $(CXXFLAGS) -c $(SRC)TestUser.cc -o $(SRC)TestUser.o
+
+TestUser : $(SRC)User.o $(SRC)Session.o $(SRC)TestUser.o
+ $(CC) $(CXXFLAGS) $(SRC)TestUser.o $(SRC)User.o $(SRC)Session.o -o TestUser
+
+$(SRC)TestSession.o : $(SRC)TestSession.cc $(SRC)Session.h
+ $(CC) $(CXXFLAGS) -c $(SRC)TestSession.cc -o $(SRC)TestSession.o
+
+TestSession : $(SRC)Session.o $(SRC)TestSession.o
+ $(CC) $(CXXFLAGS) $(SRC)TestSession.o $(SRC)Session.o -o TestSession
+
+$(SRC)TestPeriod.o : $(SRC)TestPeriod.cc $(SRC)Period.h
+ $(CC) $(CXXFLAGS) -c $(SRC)TestPeriod.cc -o $(SRC)TestPeriod.o
+
+TestPeriod : $(SRC)Period.o $(SRC)TestPeriod.o
+ $(CC) $(CXXFLAGS) $(SRC)TestPeriod.o $(SRC)Period.o -o TestPeriod
diff --git a/net-irc/xstat/metadata.xml b/net-irc/xstat/metadata.xml
new file mode 100644
index 0000000..dff8f6f
--- /dev/null
+++ b/net-irc/xstat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>masterdriverz@gmail.org</email>
+<name>Charlie Shepherd</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-irc/xstat/xstat-1.1.ebuild b/net-irc/xstat/xstat-1.1.ebuild
new file mode 100644
index 0000000..68425d3
--- /dev/null
+++ b/net-irc/xstat/xstat-1.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="A GTK IRC stats generator"
+HOMEPAGE="http://upsilon.free.fr/xstat/"
+SRC_URI="http://upsilon.free.fr/xstat/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="gtk"
+
+DEPEND="gtk? ( x11-libs/gtk+ )"
+RDEPEND="$DEPEND"
+
+src_unpack() {
+ unpack "${A}"
+ cp "${FILESDIR}"/makefile "${S}"/makefile
+ epatch "${FILESDIR}"/${PV}-compile-fix.patch
+}
+
+src_compile() {
+ local target
+ if ! use gtk; then
+ target=statistics
+ else
+ target=all
+ fi
+ emake ${target} || die "emake failed"
+}
+
+src_install() {
+ use gtk || target=-statistics
+ emake install${target} DESTDIR="$D" || die "emake install failed"
+}
diff --git a/net-irc/xstat/xstat-1.2_beta1.ebuild b/net-irc/xstat/xstat-1.2_beta1.ebuild
new file mode 100644
index 0000000..dda7286
--- /dev/null
+++ b/net-irc/xstat/xstat-1.2_beta1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="A GTK IRC stats generator"
+HOMEPAGE="http://upsilon.free.fr/xstat/"
+SRC_URI="http://masterdriverz.250free.com/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="gtk"
+
+DEPEND="gtk? ( x11-libs/gtk+ )"
+RDEPEND="$DEPEND"
+
+src_compile() {
+ local target
+ if ! use gtk; then
+ target=statistics
+ else
+ target=all
+ fi
+ emake ${target} || die "emake failed"
+}
+
+src_install() {
+ use gtk || target=-statistics
+ emake install${target} DESTDIR="$D" || die "emake install failed"
+}