From 1152b7a96356d54b53e47f22e4400333b81f9a18 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 25 Oct 2005 00:38:03 +0000 Subject: [PATCH] move binary quake3 to quake3-bin --- games-fps/{quake3 => quake3-bin}/ChangeLog | 2 +- games-fps/{quake3 => quake3-bin}/Manifest | 0 .../files/digest-quake3-bin-1.31} | 0 .../files/digest-quake3-bin-1.32b-r3} | 0 .../files/digest-quake3-bin-1.32b-r4 | 1 + .../{quake3 => quake3-bin}/files/q3ded.conf.d | 2 +- .../{quake3 => quake3-bin}/files/q3ded.rc | 14 +-- games-fps/{quake3 => quake3-bin}/metadata.xml | 0 .../quake3-bin-1.31.ebuild} | 18 ++-- .../quake3-bin-1.32b-r3.ebuild} | 14 +-- .../quake3-bin/quake3-bin-1.32b-r4.ebuild | 97 ++++++++++++++++++ games-fps/quake3/files/quake3.png | Bin 2170 -> 0 bytes 12 files changed, 123 insertions(+), 25 deletions(-) rename games-fps/{quake3 => quake3-bin}/ChangeLog (97%) rename games-fps/{quake3 => quake3-bin}/Manifest (100%) rename games-fps/{quake3/files/digest-quake3-1.31 => quake3-bin/files/digest-quake3-bin-1.31} (100%) rename games-fps/{quake3/files/digest-quake3-1.32b-r3 => quake3-bin/files/digest-quake3-bin-1.32b-r3} (100%) create mode 100644 games-fps/quake3-bin/files/digest-quake3-bin-1.32b-r4 rename games-fps/{quake3 => quake3-bin}/files/q3ded.conf.d (62%) rename games-fps/{quake3 => quake3-bin}/files/q3ded.rc (50%) rename games-fps/{quake3 => quake3-bin}/metadata.xml (100%) rename games-fps/{quake3/quake3-1.31.ebuild => quake3-bin/quake3-bin-1.31.ebuild} (77%) rename games-fps/{quake3/quake3-1.32b-r3.ebuild => quake3-bin/quake3-bin-1.32b-r3.ebuild} (83%) create mode 100644 games-fps/quake3-bin/quake3-bin-1.32b-r4.ebuild delete mode 100644 games-fps/quake3/files/quake3.png diff --git a/games-fps/quake3/ChangeLog b/games-fps/quake3-bin/ChangeLog similarity index 97% rename from games-fps/quake3/ChangeLog rename to games-fps/quake3-bin/ChangeLog index 44d6360dc2e6..c117e57a9e67 100644 --- a/games-fps/quake3/ChangeLog +++ b/games-fps/quake3-bin/ChangeLog @@ -1,6 +1,6 @@ # ChangeLog for games-fps/quake3 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/ChangeLog,v 1.22 2005/10/21 17:37:43 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/ChangeLog,v 1.1 2005/10/25 00:38:03 vapier Exp $ 21 Oct 2005; Chris Gianelloni quake3-1.31.ebuild, quake3-1.32b-r3.ebuild: diff --git a/games-fps/quake3/Manifest b/games-fps/quake3-bin/Manifest similarity index 100% rename from games-fps/quake3/Manifest rename to games-fps/quake3-bin/Manifest diff --git a/games-fps/quake3/files/digest-quake3-1.31 b/games-fps/quake3-bin/files/digest-quake3-bin-1.31 similarity index 100% rename from games-fps/quake3/files/digest-quake3-1.31 rename to games-fps/quake3-bin/files/digest-quake3-bin-1.31 diff --git a/games-fps/quake3/files/digest-quake3-1.32b-r3 b/games-fps/quake3-bin/files/digest-quake3-bin-1.32b-r3 similarity index 100% rename from games-fps/quake3/files/digest-quake3-1.32b-r3 rename to games-fps/quake3-bin/files/digest-quake3-bin-1.32b-r3 diff --git a/games-fps/quake3-bin/files/digest-quake3-bin-1.32b-r4 b/games-fps/quake3-bin/files/digest-quake3-bin-1.32b-r4 new file mode 100644 index 000000000000..9a97af6bbece --- /dev/null +++ b/games-fps/quake3-bin/files/digest-quake3-bin-1.32b-r4 @@ -0,0 +1 @@ +MD5 c71fdddccb20e8fc393d846e9c61d685 linuxq3apoint-1.32b-3.x86.run 30923961 diff --git a/games-fps/quake3/files/q3ded.conf.d b/games-fps/quake3-bin/files/q3ded.conf.d similarity index 62% rename from games-fps/quake3/files/q3ded.conf.d rename to games-fps/quake3-bin/files/q3ded.conf.d index 94be1e562fb4..14301a14e9fa 100644 --- a/games-fps/quake3/files/q3ded.conf.d +++ b/games-fps/quake3-bin/files/q3ded.conf.d @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/files/q3ded.conf.d,v 1.3 2004/07/14 22:15:46 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/files/q3ded.conf.d,v 1.1 2005/10/25 00:38:03 vapier Exp $ q3_OPTS="+set com_hunkmegs 24 +set dedicated 1 +set net_port 27960 +map q3tourney2" diff --git a/games-fps/quake3/files/q3ded.rc b/games-fps/quake3-bin/files/q3ded.rc similarity index 50% rename from games-fps/quake3/files/q3ded.rc rename to games-fps/quake3-bin/files/q3ded.rc index 614fe662d60c..ee02531f6aa4 100644 --- a/games-fps/quake3/files/q3ded.rc +++ b/games-fps/quake3-bin/files/q3ded.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/files/q3ded.rc,v 1.8 2004/09/01 20:31:51 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/files/q3ded.rc,v 1.1 2005/10/25 00:38:03 vapier Exp $ depend() { need net @@ -9,27 +9,27 @@ depend() { start() { ebegin "Starting Quake3 dedicated server" - screen -A -m -d -S q3ded su - games -c "q3ded ${q3_OPTS}" + screen -A -m -d -S q3ded-bin su - games -c "q3ded-bin ${q3_OPTS}" eend $? } stop() { ebegin "Stopping Quake3 dedicated server" - local pid=`screen -list | grep q3ded | awk -F . '{print $1}' | sed -e s/.//` + local pid=`screen -list | grep q3ded-bin | awk -F . '{print $1}' | sed -e s/.//` if [ -z "${pid}" ] ; then eend 1 "Lost screen session" else - pid=`pstree -p ${pid} | sed -e 's:^.*q3ded::'` + pid=`pstree -p ${pid} | sed -e 's:^.*q3ded-bin::'` pid=${pid:1:${#pid}-2} if [ -z "${pid}" ] ; then - eend 1 "Lost q3ded session" + eend 1 "Lost q3ded-bin session" else kill ${pid} - eend $? "Could not kill q3ded" + eend $? "Could not kill q3ded-bin" fi fi } status() { - screen -list | grep q3ded + screen -list | grep q3ded-bin } diff --git a/games-fps/quake3/metadata.xml b/games-fps/quake3-bin/metadata.xml similarity index 100% rename from games-fps/quake3/metadata.xml rename to games-fps/quake3-bin/metadata.xml diff --git a/games-fps/quake3/quake3-1.31.ebuild b/games-fps/quake3-bin/quake3-bin-1.31.ebuild similarity index 77% rename from games-fps/quake3/quake3-1.31.ebuild rename to games-fps/quake3-bin/quake3-bin-1.31.ebuild index 7e49cc17a5ef..1352a81c4113 100644 --- a/games-fps/quake3/quake3-1.31.ebuild +++ b/games-fps/quake3-bin/quake3-bin-1.31.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/quake3-1.31.ebuild,v 1.21 2005/10/21 17:37:43 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/quake3-bin-1.31.ebuild,v 1.1 2005/10/25 00:38:03 vapier Exp $ inherit eutils games @@ -14,7 +14,7 @@ KEYWORDS="-* amd64 x86" IUSE="dedicated opengl" RESTRICT="nostrip" -RDEPEND="virtual/libc +RDEPEND="sys-libs/glibc opengl? ( virtual/opengl virtual/x11 ) dedicated? ( app-misc/screen ) @@ -26,7 +26,7 @@ RDEPEND="virtual/libc >=media-video/ati-drivers-8.8.25-r1 ) ) )" S=${WORKDIR} -dir=${GAMES_PREFIX_OPT}/${PN} +dir=${GAMES_PREFIX_OPT}/quake3 Ddir=${D}/${dir} pkg_setup() { @@ -47,17 +47,17 @@ src_install() { exeinto ${dir} insinto ${dir} - doexe bin/x86/{quake3.x86,q3ded} + doexe bin/x86/{quake3.x86,q3ded} || die "doexe" doins quake3.xpm README* Q3A_EULA.txt - games_make_wrapper quake3 ./quake3.x86 "${dir}" "${dir}" - games_make_wrapper q3ded ./q3ded "${dir}" "${dir}" + games_make_wrapper quake3-bin ./quake3.x86 "${dir}" "${dir}" + games_make_wrapper q3ded-bin ./q3ded "${dir}" "${dir}" - newinitd ${FILESDIR}/q3ded.rc q3ded - newconfd ${FILESDIR}/q3ded.conf.d q3ded + newinitd "${FILESDIR}"/q3ded.rc q3ded + newconfd "${FILESDIR}"/q3ded.conf.d q3ded doicon quake3.xpm prepgamesdirs - make_desktop_entry quake3 "Quake III Arena" quake3.xpm + make_desktop_entry quake3-bin "Quake III Arena (binary)" quake3.xpm } pkg_postinst() { diff --git a/games-fps/quake3/quake3-1.32b-r3.ebuild b/games-fps/quake3-bin/quake3-bin-1.32b-r3.ebuild similarity index 83% rename from games-fps/quake3/quake3-1.32b-r3.ebuild rename to games-fps/quake3-bin/quake3-bin-1.32b-r3.ebuild index 24026698d4dc..f5c66625faa2 100644 --- a/games-fps/quake3/quake3-1.32b-r3.ebuild +++ b/games-fps/quake3-bin/quake3-bin-1.32b-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/quake3-1.32b-r3.ebuild,v 1.22 2005/10/21 17:37:43 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/quake3-bin-1.32b-r3.ebuild,v 1.1 2005/10/25 00:38:03 vapier Exp $ inherit eutils games @@ -10,11 +10,11 @@ SRC_URI="ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3apoint-${PV}-3.x86 LICENSE="Q3AEULA" SLOT="0" -KEYWORDS="-* x86 amd64" +KEYWORDS="-* amd64 x86" IUSE="dedicated opengl" RESTRICT="nostrip" -RDEPEND="virtual/libc +RDEPEND="sys-libs/glibc opengl? ( virtual/opengl virtual/x11 ) dedicated? ( app-misc/screen ) @@ -26,7 +26,7 @@ RDEPEND="virtual/libc >=media-video/ati-drivers-8.8.25-r1 ) ) )" S=${WORKDIR} -dir=${GAMES_PREFIX_OPT}/${PN} +dir=${GAMES_PREFIX_OPT}/quake3 Ddir=${D}/${dir} pkg_setup() { @@ -50,15 +50,15 @@ src_install() { insinto ${dir} doexe bin/Linux/x86/{quake3.x86,q3ded} doins quake3.xpm README* Q3A_EULA.txt - games_make_wrapper quake3 ./quake3.x86 "${dir}" "${dir}" - games_make_wrapper q3ded ./q3ded "${dir}" "${dir}" + games_make_wrapper quake3-bin ./quake3.x86 "${dir}" "${dir}" + games_make_wrapper q3ded-bin ./q3ded "${dir}" "${dir}" newinitd ${FILESDIR}/q3ded.rc q3ded newconfd ${FILESDIR}/q3ded.conf.d q3ded doicon quake3.xpm prepgamesdirs - make_desktop_entry quake3 "Quake III Arena" quake3.xpm + make_desktop_entry quake3-bin "Quake III Arena (binary)" quake3.xpm } pkg_postinst() { diff --git a/games-fps/quake3-bin/quake3-bin-1.32b-r4.ebuild b/games-fps/quake3-bin/quake3-bin-1.32b-r4.ebuild new file mode 100644 index 000000000000..33b6212f7863 --- /dev/null +++ b/games-fps/quake3-bin/quake3-bin-1.32b-r4.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/quake3-bin-1.32b-r4.ebuild,v 1.1 2005/10/25 00:38:03 vapier Exp $ + +inherit eutils games + +DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter" +HOMEPAGE="http://www.idsoftware.com/" +SRC_URI="ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3apoint-${PV}-3.x86.run" + +LICENSE="Q3AEULA" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="cdinstall dedicated opengl" +RESTRICT="nostrip" + +RDEPEND="sys-libs/glibc + opengl? ( virtual/opengl + virtual/x11 ) + dedicated? ( app-misc/screen ) + amd64? ( + app-emulation/emul-linux-x86-baselibs + opengl? ( + app-emulation/emul-linux-x86-xlibs + || ( >=media-video/nvidia-glx-1.0.6629-r3 + >=media-video/ati-drivers-8.8.25-r1 ) ) ) + cdinstall? ( games-fps/quake3-data )" + +S=${WORKDIR} +dir=${GAMES_PREFIX_OPT}/quake3 +Ddir=${D}/${dir} + +pkg_setup() { + check_license Q3AEULA + games_pkg_setup +} + +src_unpack() { + unpack_makeself +} + +src_install() { + if use cdinstall ; then + dodir ${dir}/{baseq3,missionpack} + for pk3 in baseq3/*.pk3 missionpack/*.pk3 ; do + dosym ${GAMES_DATADIR}/quake3/${pk3} ${dir}/${pk3} + done + else + insinto ${dir}/baseq3 + doins baseq3/*.pk3 || die "ins baseq3" + insinto ${dir}/missionpack + doins missionpack/*.pk3 || die "ins missionpack" + fi + + insinto ${dir} + doins -r Docs pb || die "ins docs/pb" + + exeinto ${dir} + insinto ${dir} + doexe bin/Linux/x86/{quake3.x86,q3ded} || die "doexe" + doins quake3.xpm README* Q3A_EULA.txt + games_make_wrapper quake3-bin ./quake3.x86 "${dir}" "${dir}" + games_make_wrapper q3ded-bin ./q3ded "${dir}" "${dir}" + + newinitd "${FILESDIR}"/q3ded.rc q3ded + newconfd "${FILESDIR}"/q3ded.conf.d q3ded + newicon quake3.xpm quake3-bin.xpm + + prepgamesdirs + make_desktop_entry quake3-bin "Quake III Arena (binary)" quake3-bin.xpm +} + +pkg_postinst() { + games_pkg_postinst + echo + ewarn "There are two possible security bugs in this package, both causing a denial" + ewarn "of service. One affects the game when running a server, the other when running" + ewarn "as a client. For more information, see bug #82149." + if ! use cdinstall ; then + echo + einfo "You need to copy pak0.pk3 from your Quake3 CD into ${dir}/baseq3." + einfo "Or if you have got a Window installation of Q3 make a symlink to save space." + fi + if use dedicated; then + echo + einfo "To start a dedicated server, run" + einfo " /etc/init.d/q3ded start" + echo + einfo "The dedicated server is started under the ${GAMES_USER_DED} user account." + fi + + # IA32 Emulation required for amd64 + if use amd64 ; then + echo + ewarn "NOTE: IA32 Emulation must be compiled into your kernel for Quake3 to run." + fi +} diff --git a/games-fps/quake3/files/quake3.png b/games-fps/quake3/files/quake3.png deleted file mode 100644 index cb3d824e84888e2b765d57ceaf9b9caad0007d08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2170 zcmV-=2!;2FP)7&XxtObib( z;RD}{#3&z)UyKG#Odx7wj3gqZijS5@p-u<-V9Io!cRF*Q=e^I~%MbIg0ZJU_Tw@de z$<4`G=Vtx)@0@+sejMQcdUxGvTVLsAe$mV10Iaf-b9n;ffhtFFu3yJ?uRMARFqq3! z;wZ``vAR5;z(_t*5t4IP6*HIT6DTISl6MMD9|@;d9=$E2n){>>P9G!JE03N6IEgAN z&lOD-mwM&V+b+by?sPnaVN&Up$2$USsMd;C4h>x^*ExbFwisY#U^A@)fKaKHt}oiw zHbIbYy=nnKxm2QC4jvrYwQ0jA!vwd^&&;}~y6Q($v$L=L=f;2z;~F^m45P%GvhBsv103y2Oqj(&)z+c+Q40tlhaTB{l!G&qoT?j0^ye}2bTzkH~jnD1J*eBj`roj2~i z{>k4w{qg%Bdf>=98-1~?JaIW8AVZ=CUf=yN#_(LLTc2xnACC*g-`>1+%P(&oxn`fJ zx0<_7oILr9?|l0ke@dz0OCs0>CsW8uLXk}^&D5vHUO&r`{#j>n@h17oD=&X&_xrB? z$k)E~#Z7yLx6g=N!JU|#jEz~}9g~@C{==p0eM6zDol!jYJaA||`EogjZoX+>@&0@6 z8M*7DcRtvv*B}1=kDr((DaFpdQt{dAhu<@B+f|#B&9(9wCh>e!t~~R^(U-+X*g zcWmBrRlbl%tx&|m*;6t<@n-(YTDe-ZGR5)nH~QGl4h$CZo1#eVjO!*u*4F zx&azO!0xL;RV!y3iXR+1^TwgoI=^rKf$T<$?x0rV0nFEL5?#MYu>vu$Sr7~}Yyf>( z8>OrbHkxa>OyXEl7eG-imji_4d8NeHTjA~Od9C}59^1$4jAq13kA`~hBfEBd=2Nxe zPra6h*bmSQBhhHLWkkY?G>KTnXsQG*fY>lR03aZ;B;*wpWe;sWmmePf_4s1*@#hX7 zsRPU7006vj>}Ukw=~AWi%>L_kzPFZypNP*-ewKsyMiB=Th6;*-Bvc4P1ppMeksUK^ z0vw4Z901*=pT7lgYB`zZh>-*30mxv!sivl<3KI<o z2%!)NZ4050$|HHfm6&k0Z5iv|ec;G*$BrEtKXZCAnV8~By(jOw&@ftayWKhW>~n|D z0eC8#&kM4x?6uoR3Rm|J7NWT~`-@UmBuw89i|*brJ@t9F;cFNQGPbP?r3^CKh3&`? zp-~N;cwS_52N1v8xbc~6sWO_$ITPpWGZV&fPDN2%Z+AQ0aP+m9PmH}=)BZhxw<_{| z10Xm)`f6|-SO74wa_x~DcWIK=y^v5a9K=r6vr6SKA4d*BHko79HsmKDt-<#3di_40 zn>)1@|94Vqv(eef=>@mrX`_38Gu2camK~23pkO4qQ@D0Il!iDpi1XF@M1j+AHTx zLPHr2ny#-_V!lBu5Hhtgnkqmm(hV?HN+vo6^M=`Pt7H|x1veLA{`Uql0Py0l4MD4u zGy`-Ek?RRs1<)j#txP7hGMZ`?T9Ednup|&H-CzPd1+;udvhtr;e3QFy}anC-!t*9yJJj}n= wuvk(X)D99Jz%oeK9{Zj39>l^djz@AApigX07*qoM6N<$f(e`kjsO4v -- 2.26.2