summaryrefslogtreecommitdiff
path: root/games-util/uglygs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-util/uglygs
reinit the tree, so we can have metadata
Diffstat (limited to 'games-util/uglygs')
-rw-r--r--games-util/uglygs/Manifest7
-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/metadata.xml8
-rw-r--r--games-util/uglygs/uglygs-0_rc11.ebuild62
5 files changed, 239 insertions, 0 deletions
diff --git a/games-util/uglygs/Manifest b/games-util/uglygs/Manifest
new file mode 100644
index 000000000000..aea7eb664476
--- /dev/null
+++ b/games-util/uglygs/Manifest
@@ -0,0 +1,7 @@
+AUX 0_rc11-uglygs.conf.patch 2213 SHA256 83f8f2e2a4f617834b8c28082f5b3fbbd008cb8ef454ab715e9ff00b58f8d679 SHA512 e19ea449992afdf6f5a46352244c97a183a4869e2b018b458e01f02499d48ca95341e94b9704583c8c34a6cda02703de376cf83eb12a406cf145eb98ce7ac88f WHIRLPOOL d78fe459c7904795242a39aebc4dfa062b7aa25ace07c45f3ec22527fe86d575ae76feb2f31f7175f569d3180b7ef5419f41536d7110418393ccb9772c548647
+AUX 0_rc11-uglygs.pl.patch 7040 SHA256 577144eb6062b3652a6d91c5a6f282bf32f039db4e0c0220ca7c9f94287a73b2 SHA512 afaee5a46fe17bddc497e4cbdafda3b461e0f1710368dce8057d276c523eae674c3069ec2a86d4386da7d9412a551debebea9c9fe32eae7eb58cebdc06c73db9 WHIRLPOOL 759aed54fbb3068d2cb817063b442e045cb08fc699052007b61a8b548cbcb1553ffb28694c8bc59117831ccac47245625a0e0012b4aabcddef1a2c774d788eca
+DIST uglygs-rc11.tar.gz 9066873 SHA256 a304e01e0a570ba5dcac3ac3f9d4ade23b7fbe3e40222f9d9510df14ae8e09f0 SHA512 2a57eb7a4562525c00c69a7874d32fa52d5f12cb2926dffcf4bc8ad74e5847a962c464426b476412bff369963ee40120c3dfc9c0b506606f8a4668bca88d1970 WHIRLPOOL 84cb1923886425dd35366370102660e6bca80c685dcd2ea9bbe94c25c83f9f6da30ea64972a3b35bff92c15b3d42cf418fe0579bbf0615d9a1a7f30b9058aabc
+EBUILD uglygs-0_rc11.ebuild 1450 SHA256 3e0a222f0b727feebd980dcce9ed84056af8f53ea761e436f8b7670c51d82c34 SHA512 89694f72c70ce4b6962456719a5d45163ae766c75423efc7ce35a2b08a6edf7d46d14281870c90b8d9fb5a390a86c6013e9c1294a1e7d641306c0240bcee9574 WHIRLPOOL 3e1587775527c789d62296309da4b7b008a5f74b118ea038faf2589c2eaceafcd7e1709f89ce54a72eedc98a9342d14cfd0220d2e37a1e9575b1ed76698c1d6b
+MISC ChangeLog 2494 SHA256 50bcec5b5ed2bb4faeb0fc7ed011b44e6068207095856d11ab46fc08ba547699 SHA512 e5b65ed41c944919ec991ad18c48e68e8718977ac02f5702deb06c4d5098b6e900bb2543368f2ef542c8c827e0449ba7d76c275363a34c04b8b08280b2b26750 WHIRLPOOL b942bb2ce71c104f929af10a759e75b9a22bf1ed9ad219828e91e92b73707a56f9be2541a97b50ec1e81a6fff947a5dbb76f05dd0dcfc6f8cbd408051180ce12
+MISC ChangeLog-2015 1823 SHA256 0f6c2030656e75b234b9356a6ca96c2e0f8600d968131011efac8835d48dd123 SHA512 e320a8e490cb1d9595356dcb5b733a805f41505826d54f2764c2c541d4bf94fcbf279ed48bd8551065181f62883c70f498f5dab56400c7b66de3d85dac6fae05 WHIRLPOOL f5d99a64ee64f19d6408e37de5792a74b1228f76e0f7a97dddb374d270fd7eb3fc2dde5723bddd74f57fa7c2c7d39863531f22754ffffefbb54a053a79227736
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
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..78274e0fa550
--- /dev/null
+++ b/games-util/uglygs/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</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..80ef89b4d64e
--- /dev/null
+++ b/games-util/uglygs/uglygs-0_rc11.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 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"
+}