diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 05:51:11 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 05:51:11 +0000 |
commit | e23e456240d49ba90351822151464d24267b1f73 (patch) | |
tree | 74aa9daa269ed368e7da9d3fa5ced6ad80bd1aff /games-server/halflife-statsme | |
parent | games-server (diff) | |
download | historical-e23e456240d49ba90351822151464d24267b1f73.tar.gz historical-e23e456240d49ba90351822151464d24267b1f73.tar.bz2 historical-e23e456240d49ba90351822151464d24267b1f73.zip |
games-servers !
Diffstat (limited to 'games-server/halflife-statsme')
8 files changed, 212 insertions, 0 deletions
diff --git a/games-server/halflife-statsme/ChangeLog b/games-server/halflife-statsme/ChangeLog new file mode 100644 index 000000000000..b6477eb84927 --- /dev/null +++ b/games-server/halflife-statsme/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-games/halflife-statsme +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-statsme/ChangeLog,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +*halflife-statsme-2.7.1 (10 Aug 2003) + + 10 Aug 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/games-server/halflife-statsme/Manifest b/games-server/halflife-statsme/Manifest new file mode 100644 index 000000000000..4a9025d5487e --- /dev/null +++ b/games-server/halflife-statsme/Manifest @@ -0,0 +1,7 @@ +MD5 aceace1c6cd2d9bfb16fb9a6b4e143d1 files/2.7.1-cstrike-gentoo.patch 1546 +MD5 7a993e740e1fc1663a01586d6fab08e1 files/2.7.1-dod-gentoo.patch 1352 +MD5 7a993e740e1fc1663a01586d6fab08e1 files/2.7.1-tfc-gentoo.patch 1352 +MD5 e32b27a9e2015eed8a9b57bac39d641f files/digest-halflife-statsme-2.7.1 437 +MD5 29d1dd74400175067ab9d347a79705d3 files/modsetup 1484 +MD5 afc98f5edcfb6495f41b230ab6390c5c ChangeLog 368 +MD5 1a4922c44016fa97f45e73c54d37f05a halflife-statsme-2.7.1.ebuild 1871 diff --git a/games-server/halflife-statsme/files/2.7.1-cstrike-gentoo.patch b/games-server/halflife-statsme/files/2.7.1-cstrike-gentoo.patch new file mode 100644 index 000000000000..d0e7f53baddc --- /dev/null +++ b/games-server/halflife-statsme/files/2.7.1-cstrike-gentoo.patch @@ -0,0 +1,30 @@ +--- motd.cfg.orig 2003-08-10 14:35:31.000000000 -0400 ++++ motd.cfg 2003-08-10 14:53:09.000000000 -0400 +@@ -7,0 +8 @@ ++sm_motd " This server is powered by Gentoo Linux" +@@ -10,0 +12 @@ ++sm_motd " Larry the Cow is: on the prowl" +--- statsme.cfg.orig 2003-08-10 14:35:37.000000000 -0400 ++++ statsme.cfg 2003-08-10 14:54:42.000000000 -0400 +@@ -21 +21 @@ +-sm_menupassword "root" // To display public menu type as player in the console: statsme_menu root ++//sm_menupassword "gentoostat" // To display public menu type as player in the console: statsme_menu root +@@ -69 +69 @@ +-sm_ranktitle "Top 15" ++sm_ranktitle "Larry the Cow's Top 15" +@@ -90 +90 @@ +-sm_menu "Top15 Rank\y\R{sm_mode&c?ON:OFF}" "sm_rankcmd {sm_mode&c?\'\':top15};sm_mode {sm_mode&c?remove:set} c" ++sm_menu "Larry the Cow's Top15 Rank\y\R{sm_mode&c?ON:OFF}" "sm_rankcmd {sm_mode&c?\'\':top15};sm_mode {sm_mode&c?remove:set} c" +--- scripts/gresuc.cfg.org 2003-08-10 14:44:34.000000000 -0400 ++++ scripts/gresuc.cfg 2003-08-10 14:45:07.000000000 -0400 +@@ -7 +7 @@ +-sm_do "{#.gs0=Ha! Ha! Ha! {k.name} good job!}" ++sm_do "{#.gs0=HAHA {k.name} blew up like Larry the Cow !}" +--- scripts/headshot.cfg.org 2003-08-10 14:44:34.000000000 -0400 ++++ scripts/headshot.cfg 2003-08-10 14:45:58.000000000 -0400 +@@ -18,0 +19 @@ ++sm_do "{#.txths7={v.name}'s head just got tipped over by Larry the Cow!}" +--- scripts/lastman.cfg.org 2003-08-10 14:44:34.000000000 -0400 ++++ scripts/lastman.cfg 2003-08-10 14:47:39.000000000 -0400 +@@ -15,0 +16 @@ ++sm_do "{%.txtlm4=Larry the Cow sez 'j00 can do it'}" diff --git a/games-server/halflife-statsme/files/2.7.1-dod-gentoo.patch b/games-server/halflife-statsme/files/2.7.1-dod-gentoo.patch new file mode 100644 index 000000000000..4e3ce3a9bfbd --- /dev/null +++ b/games-server/halflife-statsme/files/2.7.1-dod-gentoo.patch @@ -0,0 +1,26 @@ +--- motd.cfg.orig 2003-08-10 14:35:31.000000000 -0400 ++++ motd.cfg 2003-08-10 14:53:09.000000000 -0400 +@@ -7,0 +8 @@ ++sm_motd " This server is powered by Gentoo Linux" +@@ -10,0 +12 @@ ++sm_motd " Larry the Cow is: on the prowl" +--- statsme.cfg.orig 2003-08-10 14:35:37.000000000 -0400 ++++ statsme.cfg 2003-08-10 14:54:42.000000000 -0400 +@@ -20 +20 @@ +-sm_menupassword "root" // To display public menu type as player in the console: statsme_menu root ++//sm_menupassword "gentoostat" // To display public menu type as player in the console: statsme_menu root +@@ -68 +68 @@ +-sm_ranktitle "Top 15" ++sm_ranktitle "Larry the Cow's Top 15" +@@ -88 +88 @@ +-sm_menu "Top15 Rank\y\R{sm_mode&c?ON:OFF}" "sm_rankcmd {sm_mode&c?\'\':top15};sm_mode {sm_mode&c?remove:set} c" ++sm_menu "Larry the Cow's Top15 Rank\y\R{sm_mode&c?ON:OFF}" "sm_rankcmd {sm_mode&c?\'\':top15};sm_mode {sm_mode&c?remove:set} c" +--- scripts/gresuc.cfg.org 2003-08-10 14:44:34.000000000 -0400 ++++ scripts/gresuc.cfg 2003-08-10 14:45:07.000000000 -0400 +@@ -7 +7 @@ +-sm_do "{#.gs0=Ha! Ha! Ha! {k.name} good job!}" ++sm_do "{#.gs0=HAHA {k.name} blew up like Larry the Cow !}" +--- scripts/headshot.cfg.org 2003-08-10 14:44:34.000000000 -0400 ++++ scripts/headshot.cfg 2003-08-10 14:45:58.000000000 -0400 +@@ -17,0 +18 @@ ++sm_do "{#.txths7={v.name}'s head just got tipped over by Larry the Cow!}" diff --git a/games-server/halflife-statsme/files/2.7.1-tfc-gentoo.patch b/games-server/halflife-statsme/files/2.7.1-tfc-gentoo.patch new file mode 100644 index 000000000000..4e3ce3a9bfbd --- /dev/null +++ b/games-server/halflife-statsme/files/2.7.1-tfc-gentoo.patch @@ -0,0 +1,26 @@ +--- motd.cfg.orig 2003-08-10 14:35:31.000000000 -0400 ++++ motd.cfg 2003-08-10 14:53:09.000000000 -0400 +@@ -7,0 +8 @@ ++sm_motd " This server is powered by Gentoo Linux" +@@ -10,0 +12 @@ ++sm_motd " Larry the Cow is: on the prowl" +--- statsme.cfg.orig 2003-08-10 14:35:37.000000000 -0400 ++++ statsme.cfg 2003-08-10 14:54:42.000000000 -0400 +@@ -20 +20 @@ +-sm_menupassword "root" // To display public menu type as player in the console: statsme_menu root ++//sm_menupassword "gentoostat" // To display public menu type as player in the console: statsme_menu root +@@ -68 +68 @@ +-sm_ranktitle "Top 15" ++sm_ranktitle "Larry the Cow's Top 15" +@@ -88 +88 @@ +-sm_menu "Top15 Rank\y\R{sm_mode&c?ON:OFF}" "sm_rankcmd {sm_mode&c?\'\':top15};sm_mode {sm_mode&c?remove:set} c" ++sm_menu "Larry the Cow's Top15 Rank\y\R{sm_mode&c?ON:OFF}" "sm_rankcmd {sm_mode&c?\'\':top15};sm_mode {sm_mode&c?remove:set} c" +--- scripts/gresuc.cfg.org 2003-08-10 14:44:34.000000000 -0400 ++++ scripts/gresuc.cfg 2003-08-10 14:45:07.000000000 -0400 +@@ -7 +7 @@ +-sm_do "{#.gs0=Ha! Ha! Ha! {k.name} good job!}" ++sm_do "{#.gs0=HAHA {k.name} blew up like Larry the Cow !}" +--- scripts/headshot.cfg.org 2003-08-10 14:44:34.000000000 -0400 ++++ scripts/headshot.cfg 2003-08-10 14:45:58.000000000 -0400 +@@ -17,0 +18 @@ ++sm_do "{#.txths7={v.name}'s head just got tipped over by Larry the Cow!}" diff --git a/games-server/halflife-statsme/files/digest-halflife-statsme-2.7.1 b/games-server/halflife-statsme/files/digest-halflife-statsme-2.7.1 new file mode 100644 index 000000000000..193da7b1cdd4 --- /dev/null +++ b/games-server/halflife-statsme/files/digest-halflife-statsme-2.7.1 @@ -0,0 +1,6 @@ +MD5 cb15175d3b45ca2cebad823410a6ecf3 statsme-2.7.1-cstrike.zip 120233 +MD5 c47af04ea7ff44cb3e580b4a8b2aa507 statsme-2.7.1-cstrike-scriptpacks.zip 16366 +MD5 4597630ae4f25383aef4d1442ea60eea statsme-2.7.1-dod.zip 114564 +MD5 d2fa7610ce6fb35fec8d75794d63d332 statsme-2.7.1-dod-scriptpacks.zip 12350 +MD5 dcc82c12e9aa3b1a688e18c5d4d0a3bb statsme-2.7.1-tfc.zip 112659 +MD5 ee15461af3b37640ea349ff85796efad statsme-2.7.1-tfc-scriptpacks.zip 12508 diff --git a/games-server/halflife-statsme/files/modsetup b/games-server/halflife-statsme/files/modsetup new file mode 100644 index 000000000000..c0763e716e69 --- /dev/null +++ b/games-server/halflife-statsme/files/modsetup @@ -0,0 +1,53 @@ +#!/bin/bash +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-statsme/files/modsetup,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +source GENTOO_CFGDIR/modsetup.conf || { echo "Could not find config file!" ; exit 1 ; } + +moddir=${PWD} +plugindir=${moddir}/../addons/statsme-HLMODDIR/ + +gen_default_cfgs() { + mkdir ${moddir}/addons + ln -s ../../addons/statsme-`basename ${moddir}` addons/statsme + #local m=${moddir} + #local c=${plugindir}/ + #for f in statsme.cfg ; do + # [ ! -e ${m}/${f} ] \ + # && cp ${c}/${f} ${m}/ + #done +} + +while :; do +case $1 in + help) + file=`dialog --title "Statsme help" \ + --menu "Select Help File:" 16 80 10 \ + sm_readme.txt.gz 'Basic readme' \ + sm_changelog.txt.gz 'Changelog file' \ + http://docs.unitedadmins.com/statsme/en/index.htm 'Online Docs' \ + http://docs.unitedadmins.com/statsme/en/config.htm 'Configuration Docs' \ + http://docs.unitedadmins.com/statsme/en/commands.htm 'Commands' 2>&1` + [ $? -eq 0 ] || exit 0 + [ "${file:0:4}" != "http" ] && file=/usr/share/doc/halflife-statsme-*/${file} + [ "${file:${#file}-3}" == "htm" ] \ + && ${BROWSER} ${file} \ + || less ${file} + ;; + config) + gen_default_cfgs + file=`dialog --title "Statsme config files" \ + --help-button \ + --menu "Select file to Edit:" 16 80 10 \ + statsme.cfg 'Main configuration file' 2>&1` + if [ "${file:0:4}" == "HELP" ] ; then + $0 help + else + [ -z "${file}" ] && exit 0 + ${EDITOR} ${moddir}/addons/statsme/${file} + fi + ;; + *) + exit 0 + ;; +esac +done diff --git a/games-server/halflife-statsme/halflife-statsme-2.7.1.ebuild b/games-server/halflife-statsme/halflife-statsme-2.7.1.ebuild new file mode 100644 index 000000000000..3246c33af694 --- /dev/null +++ b/games-server/halflife-statsme/halflife-statsme-2.7.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-statsme/halflife-statsme-2.7.1.ebuild,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +inherit games eutils + +DESCRIPTION="plugin for metamod to track in game statistics in real time" +HOMEPAGE="http://www.unitedadmins.com/statsme.php" +SRC_URI="!nocstrike? ( mirror://sourceforge/statsme/statsme-${PV}-cstrike.zip ) + !nocstrike? ( mirror://sourceforge/statsme/statsme-${PV}-cstrike-scriptpacks.zip ) + !nodod? ( mirror://sourceforge/statsme/statsme-${PV}-dod.zip ) + !nodod? ( mirror://sourceforge/statsme/statsme-${PV}-dod-scriptpacks.zip ) + !notfc? ( mirror://sourceforge/statsme/statsme-${PV}-tfc.zip ) + !notfc? ( mirror://sourceforge/statsme/statsme-${PV}-tfc-scriptpacks.zip )" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="-* x86" +IUSE="nocstrike nodod notfc" + +RDEPEND="app-games/halflife-metamod" + +S=${WORKDIR} + +src_unpack() { + for m in cstrike dod tfc ; do + [ `use no${m}` ] && continue + mkdir ${S}/${m} + cd ${S}/${m} + unpack statsme-${PV}-${m}.zip + cd addons/statsme/scriptpacks + unpack statsme-${PV}-${m}-scriptpacks.zip + cd .. + edos2unix `find -name '*.txt' -o -name '*.cfg' -o -name 'README.*'` + epatch ${FILESDIR}/${PV}-${m}-gentoo.patch + done + cd ${S} +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/halflife/addons/statsme + for m in cstrike dod tfc ; do + [ `use no${m}` ] && continue + dodir ${dir}-${m} + cd ${S}/${m}/addons/statsme + #sed -i "s:addons/statsme/:../addons/statsme-${m}/:g" \ + # statsme.cfg scriptpacks.cfg scriptpacks/*/README.* + mv * ${D}/${dir}-${m}/ + exeinto ${dir}-${m} + doexe ${FILESDIR}/modsetup + dosed "s:GENTOO_CFGDIR:${GAMES_SYSCONFDIR}/halflife:" ${dir}-${m}/modsetup + dosed "s:HLMODDIR:${m}:" ${dir}-${m}/modsetup + done + dodoc ${WORKDIR}/*/*.txt + prepgamesdirs +} |