diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-util/uglygs | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-util/uglygs')
-rw-r--r-- | games-util/uglygs/Manifest | 1 | ||||
-rw-r--r-- | games-util/uglygs/files/0_rc11-uglygs.conf.patch | 31 | ||||
-rw-r--r-- | games-util/uglygs/files/0_rc11-uglygs.pl.patch | 131 | ||||
-rw-r--r-- | games-util/uglygs/metadata.xml | 5 | ||||
-rw-r--r-- | games-util/uglygs/uglygs-0_rc11.ebuild | 63 |
5 files changed, 231 insertions, 0 deletions
diff --git a/games-util/uglygs/Manifest b/games-util/uglygs/Manifest new file mode 100644 index 000000000000..2d3c1abff16b --- /dev/null +++ b/games-util/uglygs/Manifest @@ -0,0 +1 @@ +DIST uglygs-rc11.tar.gz 9066873 SHA256 a304e01e0a570ba5dcac3ac3f9d4ade23b7fbe3e40222f9d9510df14ae8e09f0 SHA512 2a57eb7a4562525c00c69a7874d32fa52d5f12cb2926dffcf4bc8ad74e5847a962c464426b476412bff369963ee40120c3dfc9c0b506606f8a4668bca88d1970 WHIRLPOOL 84cb1923886425dd35366370102660e6bca80c685dcd2ea9bbe94c25c83f9f6da30ea64972a3b35bff92c15b3d42cf418fe0579bbf0615d9a1a7f30b9058aabc 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/metadata.xml b/games-util/uglygs/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-util/uglygs/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-util/uglygs/uglygs-0_rc11.ebuild b/games-util/uglygs/uglygs-0_rc11.ebuild new file mode 100644 index 000000000000..e9b18b4c5c5a --- /dev/null +++ b/games-util/uglygs/uglygs-0_rc11.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +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="alpha hppa ppc sparc x86" +IUSE="" + +DEPEND="net-analyzer/rrdtool[graph] + dev-lang/perl" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-uglygs.conf.patch + sed -i \ + -e "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" uglygs.conf || die + epatch "${FILESDIR}"/${PV}-uglygs.pl.patch + sed -i \ + -e "s:GENTOO_DIR:${GAMES_SYSCONFDIR}:" uglygs.pl || die + sed -i \ + -e "s/strndup/${PN}_strndup/" qstat/qstat.c || die +} + +src_compile() { + emake -C qstat CFLAGS="${CFLAGS}" +} + +src_install() { + insinto "${GAMES_SYSCONFDIR}" + doins uglygs.conf qstat/qstat.cfg + + dogamesbin uglygs.pl + + insinto "$(games_get_libdir)"/${PN} + doins -r data templates tmp + insinto "$(games_get_libdir)"/${PN}/images + doins -r images/{avp2,bds,default.gif,hls,j2s,mhs,q3s,rws,sf2s,uns,vcs} + dosym bds "$(games_get_libdir)"/${PN}/images/bdl + keepdir "$(games_get_libdir)"/${PN}/tmp + + exeinto "$(games_get_libdir)"/${PN} + doexe qstat/qstat + + dodoc CHANGES README + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Dont forget to setup ${GAMES_SYSCONFDIR}/uglygs.conf and ${GAMES_SYSCONFDIR}/qstat.cfg" +} |