summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 18:53:23 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 18:53:23 +0000
commitf832b6aa8af70160dd49b2f91631e66e941b9dbe (patch)
treee28495f9d6e402f2d221775fbef168a3e40e3457 /games-util/uglygs
parentAdd local dv USE flag for mjpegtools. (diff)
downloadgentoo-2-f832b6aa8af70160dd49b2f91631e66e941b9dbe.tar.gz
gentoo-2-f832b6aa8af70160dd49b2f91631e66e941b9dbe.tar.bz2
gentoo-2-f832b6aa8af70160dd49b2f91631e66e941b9dbe.zip
welcome to games-util
Diffstat (limited to 'games-util/uglygs')
-rw-r--r--games-util/uglygs/ChangeLog29
-rw-r--r--games-util/uglygs/Manifest5
-rw-r--r--games-util/uglygs/files/0_rc11-uglygs.conf.patch31
-rw-r--r--games-util/uglygs/files/0_rc11-uglygs.pl.patch131
-rw-r--r--games-util/uglygs/files/digest-uglygs-0_rc111
-rw-r--r--games-util/uglygs/uglygs-0_rc11.ebuild59
6 files changed, 256 insertions, 0 deletions
diff --git a/games-util/uglygs/ChangeLog b/games-util/uglygs/ChangeLog
new file mode 100644
index 000000000000..61733dc48e6d
--- /dev/null
+++ b/games-util/uglygs/ChangeLog
@@ -0,0 +1,29 @@
+# ChangeLog for app-games/uglygs
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/uglygs/ChangeLog,v 1.1 2003/09/10 18:53:23 vapier Exp $
+
+*uglygs-0_rc11 (08 Sep 2003)
+
+ 08 Sep 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump.
+
+*uglygs-0_rc10 (30 Jun 2003)
+
+ 30 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump + move sed's to paches + games.eclass support.
+
+*uglygs-0_rc7 (17 Dec 2002)
+
+ 29 Jun 2003; <msterret@gentoo.org> uglygs-0_rc7.ebuild:
+ use sed -i, emake, fix up things in unpack instead of compile
+
+ 17 Dec 2002; Mike Frysinger <vapier@gentoo.org> :
+ Version bump
+
+*uglygs-0rc5 (23 Oct 2002)
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> :
+ changed sparc ~sparc keywords
+
+ 23 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/games-util/uglygs/Manifest b/games-util/uglygs/Manifest
new file mode 100644
index 000000000000..6a78a11d41e2
--- /dev/null
+++ b/games-util/uglygs/Manifest
@@ -0,0 +1,5 @@
+MD5 0d53d8d838ecf93c19ae6366a5997159 uglygs-0_rc11.ebuild 1350
+MD5 47fb887656b74fb149e80e56c258b346 files/0_rc11-uglygs.conf.patch 2213
+MD5 9740370abf89112b4187b9b4708ed76d files/0_rc11-uglygs.pl.patch 7040
+MD5 ad1f2dd96cca12e3d914aac377d331f1 files/digest-uglygs-0_rc11 64
+MD5 74701ffac0c4de7fb9479234ce5e2fe9 ChangeLog 883
diff --git a/games-util/uglygs/files/0_rc11-uglygs.conf.patch b/games-util/uglygs/files/0_rc11-uglygs.conf.patch
new file mode 100644
index 000000000000..6ee918c70088
--- /dev/null
+++ b/games-util/uglygs/files/0_rc11-uglygs.conf.patch
@@ -0,0 +1,31 @@
+--- uglygs.conf.orig 2003-06-30 11:16:57.000000000 -0400
++++ uglygs.conf 2003-06-30 11:22:50.000000000 -0400
+@@ -12,22 +12,23 @@
+ $runmode = "loop"; # Run mode, Run as a loop or as a cron Executable
+
+ $configfile = "servers.cfg"; # The Result file to be passed to other programs
+-$qstat = "qstat/qstat"; # The modified qstat file
++$qstat = "GENTOO_DIR/qstat"; # The modified qstat file
+ $cat = "/bin/cat"; # The cat file location
+-$data = "./data"; # Data Directory
+-$tmp = "./tmp"; # Temp Directory
++$data = "GENTOO_DIR/data"; # Data Directory
++$tmp = "GENTOO_DIR/tmp"; # Temp Directory
+ $template = "default"; # Template Directory
++$templates = "GENTOO_DIR/templates"; # Template base directory
+ $staticcfgfile = "$data/servers.static"; # A Static output file to append to final output
+
+ $refresh = "180"; # # If loop is on what is your update rate in sec
+
+ $serverquery = "n"; # Do u want Server Query output y or n
+-$serverqueryfile = "/var/www/html/servers.cfg"; # The output file for server query
++$serverqueryfile = "/home/httpd/htdocs/servers.cfg"; # The output file for server query
+
+ $html = "n"; # Do you want HTML output
+ $htmlgame="l"; # Game List Sort Order p=by-ping, g=by-game, i=by-IP-address, h=by-hostname, n=by-#-players, l=by-list-order
+ $htmlplayer="F"; # Player List Sort Order P=by-ping, F=by-frags, T=by-team
+-$htmldir = "/var/www/html/uglygs"; # The html output Directory
++$htmldir = "/home/httpd/htdocs/uglygs"; # The html output Directory
+ $htmlfile = "servers"; # The html output file
+ $htmlext = "html"; # THe file Ext eg. html, php, pl, asp
+ $htmlalias = "/uglygs"; # The html Directory Alias
diff --git a/games-util/uglygs/files/0_rc11-uglygs.pl.patch b/games-util/uglygs/files/0_rc11-uglygs.pl.patch
new file mode 100644
index 000000000000..8c7f7943c978
--- /dev/null
+++ b/games-util/uglygs/files/0_rc11-uglygs.pl.patch
@@ -0,0 +1,131 @@
+--- uglygs.pl.orig 2003-06-30 11:37:59.000000000 -0400
++++ uglygs.pl 2003-06-30 11:38:30.000000000 -0400
+@@ -8,7 +8,8 @@
+ ########## Contact uglygs@uglypunk.com ##########
+ #########################################################################################################################
+ #########################################################################################################################
+-require 'uglygs.conf';
++$qstatcfg = 'GENTOO_DIR/qstat.cfg';
++require 'GENTOO_DIR/uglygs.conf';
+
+ $VERSION = "rc10";
+
+@@ -23,7 +24,7 @@
+ if (!-f $qstat) { die "Sorry the Qstat file doesn't exist, you may no have compiled it yet"};
+ if (!-d $data) { die "Sorry the data directory doesn't exist, it should be located here: $data"};
+ if (!-d $tmp) { die "Sorry the temp directory doesn't exist, it should be located here: $tmp"};
+-if (!-d "./templates/$template") { die "Sorry the templates/template directory doesnt exist, it should be located here: templates/$template"};
++if (!-d "$templates/$template") { die "Sorry the templates/template directory doesnt exist, it should be located here: $templates/$template"};
+
+ if ($html eq "y"){
+ if (!-f $rrdtool) { die "Sorry the rrdtool file doesn't exist, Please install RRDTOOL"};
+@@ -88,7 +89,7 @@
+ $timemonth = $time - 2592000;
+ $timeyear = $time - 31536000;
+ system(`rm $tmp/*.tmp`);
+-require "templates/$template/graphs.conf";
++require "$templates/$template/graphs.conf";
+
+
+ ################################# Seach everything VERY MESSY #########################
+@@ -96,7 +97,7 @@
+ if ($doscan eq "y"){
+
+
+- open(QSTAT, "|$qstat -cfg qstat/qstat.cfg -maxsim 60 -timeout 8 -Ts ./templates/qstat $qstatcom $addports >> $tmp/serversannounce.tmp" );
++ open(QSTAT, "|$qstat -cfg $qstatcfg -maxsim 60 -timeout 8 -Ts $templates/qstat $qstatcom $addports >> $tmp/serversannounce.tmp" );
+ close(QSTAT);
+
+ if (-s "$tmp/serversannounce.tmp"){
+@@ -121,7 +122,7 @@
+ $defport = $tabledata[2];
+ $defport =~ s/\n//;
+ if ($tabledata[0] eq "Q3S") {
+- open (QSTAT, "$qstat -cfg qstat/qstat.cfg -nh -R -q3s $tabledata[1]:$defport|");
++ open (QSTAT, "$qstat -cfg $qstatcfg -nh -R -q3s $tabledata[1]:$defport|");
+ @qstatoutput = <QSTAT>;
+ $qstatoutput = $qstatoutput[1];
+ if ($qstatoutput =~m/version=Wolf /) {
+@@ -172,7 +173,7 @@
+
+ ############################# SERVER QUERY PROCESSING ###############################
+
+-system( "$qstat -cfg qstat/qstat.cfg -maxsim 60 -timeout 8 -Ts ./templates/sqdata -of $tmp/sqservers.tmp -f $configfile" );
++system( "$qstat -cfg $qstatcfg -maxsim 60 -timeout 8 -Ts $templates/sqdata -of $tmp/sqservers.tmp -f $configfile" );
+
+ open (PROCESS, "< $tmp/sqservers.tmp");
+ @name = <PROCESS>;
+@@ -194,7 +195,7 @@
+ $defport = $tabledata[2];
+ $defport =~ s/\n//;
+ if ($tabledata[0] eq "GPS") {
+- open (QSTAT, "$qstat -cfg qstat/qstat.cfg -nh -R -gps $tabledata[1]:$defport|");
++ open (QSTAT, "$qstat -cfg $qstatcfg -nh -R -gps $tabledata[1]:$defport|");
+ @qstatoutput = <QSTAT>;
+ $qstatoutput = $qstatoutput[1];
+
+@@ -206,7 +207,7 @@
+ close(QSTAT);
+
+ } elsif ($tabledata[0] eq "RWS") {
+- open (QSTAT, "$qstat -cfg qstat/qstat.cfg -nh -R -rws $tabledata[1]:$defport|");
++ open (QSTAT, "$qstat -cfg $qstatcfg -nh -R -rws $tabledata[1]:$defport|");
+ @qstatoutput = <QSTAT>;
+ $qstatoutput = $qstatoutput[1];
+ if ($qstatoutput =~m/protocol=17,/) {
+@@ -218,7 +219,7 @@
+
+
+ } elsif ($tabledata[0] eq "RGS") {
+- open (QSTAT, "$qstat -cfg qstat/qstat.cfg -nh -R -rgs $tabledata[1]:$defport|");
++ open (QSTAT, "$qstat -cfg $qstatcfg -nh -R -rgs $tabledata[1]:$defport|");
+ @qstatoutput = <QSTAT>;
+ $qstatoutput = $qstatoutput[1];
+
+@@ -231,7 +232,7 @@
+ close(QSTAT);
+
+ } elsif ($tabledata[0] eq "SMS") {
+- open (QSTAT, "$qstat -cfg qstat/qstat.cfg -nh -R -sms $tabledata[1]:$defport|");
++ open (QSTAT, "$qstat -cfg $qstatcfg -nh -R -sms $tabledata[1]:$defport|");
+ @qstatoutput = <QSTAT>;
+ $qstatoutput = $qstatoutput[1];
+
+@@ -247,7 +248,7 @@
+
+
+ } elsif ($tabledata[0] eq "GOS") {
+- open (QSTAT, "$qstat -cfg qstat/qstat.cfg -nh -R -gos $tabledata[1]:$defport|");
++ open (QSTAT, "$qstat -cfg $qstatcfg -nh -R -gos $tabledata[1]:$defport|");
+ @qstatoutput = <QSTAT>;
+ $qstatoutput = $qstatoutput[1];
+
+@@ -261,7 +262,7 @@
+
+
+ } elsif ($tabledata[0] eq "SF2S") {
+- open (QSTAT, "$qstat -cfg qstat/qstat.cfg -nh -R -sf2s $tabledata[1]:$defport|");
++ open (QSTAT, "$qstat -cfg $qstatcfg -nh -R -sf2s $tabledata[1]:$defport|");
+ @qstatoutput = <QSTAT>;
+ $qstatoutput = $qstatoutput[1];
+ if ($qstatoutput =~m/version=SOF2MP V1.02t/) {
+@@ -301,7 +302,7 @@
+
+
+ if ($html eq "y"){
+- open(TOTALOUT, "$qstat -cfg qstat/qstat.cfg -R -sort $htmlgame -maxsim 60 -timeout 4 -Th ./templates/$template/header.html -Tt ./templates/$template/footer.html -Ts ./templates/$template/data.html -f $configfile 2> /dev/null |");
++ open(TOTALOUT, "$qstat -cfg $qstatcfg -R -sort $htmlgame -maxsim 60 -timeout 4 -Th $templates/$template/header.html -Tt $templates/$template/footer.html -Ts $templates/$template/data.html -f $configfile 2> /dev/null |");
+ while( $totalline = <TOTALOUT> ){
+ my @totaldata = split(/ /,$totalline);
+ if ($totaldata[0] eq "<!--" and $totaldata[1] eq "gamedetails"){
+@@ -372,7 +373,7 @@
+ $graph = "$tabledata[0]$tabledata[1]$port";
+
+
+- open(QSTAT, "$qstat -cfg qstat/qstat.cfg -R -P -sort $htmlplayer -maxsim 60 -timeout 4 -Th ./templates/$template/gameheader.html -Tt ./templates/$template/gamefooter.html -Ts ./templates/$template/gamedata.html -Tp ./templates/$template/gameplayer.html -$gametype $tabledata[1]:$port | ");
++ open(QSTAT, "$qstat -cfg $qstatcfg -R -P -sort $htmlplayer -maxsim 60 -timeout 4 -Th $templates/$template/gameheader.html -Tt $templates/$template/gamefooter.html -Ts $templates/$template/gamedata.html -Tp $templates/$template/gameplayer.html -$gametype $tabledata[1]:$port | ");
+ while($serverline = <QSTAT>){
+ my @data = split(/ /,$serverline);
+ if ($data[0] eq "<!--" and $data[1] eq "gamedetails"){
+--- uglygs.pl.orig 2003-06-30 13:56:01.000000000 -0400
++++ uglygs.pl 2003-06-30 13:59:17.000000000 -0400
diff --git a/games-util/uglygs/files/digest-uglygs-0_rc11 b/games-util/uglygs/files/digest-uglygs-0_rc11
new file mode 100644
index 000000000000..d9e6f3557d9f
--- /dev/null
+++ b/games-util/uglygs/files/digest-uglygs-0_rc11
@@ -0,0 +1 @@
+MD5 4bf467890e505a1b92ae49a8e17afdcf uglygs-rc11.tar.gz 9066873
diff --git a/games-util/uglygs/uglygs-0_rc11.ebuild b/games-util/uglygs/uglygs-0_rc11.ebuild
new file mode 100644
index 000000000000..4ceafe679072
--- /dev/null
+++ b/games-util/uglygs/uglygs-0_rc11.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/uglygs/uglygs-0_rc11.ebuild,v 1.1 2003/09/10 18:53:23 vapier Exp $
+
+inherit games eutils
+
+MY_P=${P/0_/}
+DESCRIPTION="quickly searches the network for game servers"
+HOMEPAGE="http://uglygs.uglypunk.com/"
+SRC_URI="ftp://ftp.uglypunk.com/uglygs/current/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc sparc alpha"
+
+DEPEND=">=sys-apps/sed-4"
+RDEPEND="net-analyzer/rrdtool
+ dev-lang/perl"
+
+S=${WORKDIR}/${MY_P}
+
+UGLY_BASEDIR=${GAMES_LIBDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-uglygs.conf.patch
+ sed -i "s:GENTOO_DIR:${UGLY_BASEDIR}:" uglygs.conf
+ epatch ${FILESDIR}/${PV}-uglygs.pl.patch
+ sed -i "s:GENTOO_DIR:${GAMES_SYSCONFDIR}:" uglygs.pl
+}
+
+src_compile() {
+ cd qstat
+ make CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ insinto ${GAMES_SYSCONFDIR}
+ doins uglygs.conf qstat/qstat.cfg
+
+ dogamesbin uglygs.pl
+
+ dodir ${UGLY_BASEDIR}
+ cp -rf data images templates tmp ${D}/${UGLY_BASEDIR}
+ keepdir ${UGLY_BASEDIR}/tmp
+
+ exeinto ${UGLY_BASEDIR}
+ doexe qstat/qstat
+
+ dodoc CHANGES INSTALL README
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ einfo "Dont forget to setup ${GAMES_SYSCONFDIR}/uglygs.conf and ${GAMES_SYSCONFDIR}/qstat.cfg"
+ games_pkg_postinst
+}