From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-util/uglygs/Manifest | 7 ++ games-util/uglygs/files/0_rc11-uglygs.conf.patch | 31 ++++++ games-util/uglygs/files/0_rc11-uglygs.pl.patch | 131 +++++++++++++++++++++++ games-util/uglygs/metadata.xml | 8 ++ games-util/uglygs/uglygs-0_rc11.ebuild | 62 +++++++++++ 5 files changed, 239 insertions(+) create mode 100644 games-util/uglygs/Manifest create mode 100644 games-util/uglygs/files/0_rc11-uglygs.conf.patch create mode 100644 games-util/uglygs/files/0_rc11-uglygs.pl.patch create mode 100644 games-util/uglygs/metadata.xml create mode 100644 games-util/uglygs/uglygs-0_rc11.ebuild (limited to 'games-util/uglygs') 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 = ; + $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 = ; +@@ -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 = ; + $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 = ; + $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 = ; + $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 = ; + $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 = ; + $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 = ; + $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 = ){ + my @totaldata = split(/ /,$totalline); + if ($totaldata[0] eq "