# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit eutils games DESCRIPTION="dedicated server for Battlefield 2" HOMEPAGE="http://games.ea.com/official/battlefield/battlefield2/us/home.jsp" SRC_URI="http://largedownloads.ea.com/pub/patches/BF2/bf2-linuxded-${PV}-installer.sh" # http://bf2.files-share.com/downloads/bf2-linuxded-${PV}-installer.sh # http://ufa.clanmars.com/bf2-linuxded-${PV}-installer.sh # ftp://donik.org/pub/games/BF2/server/bf2-linuxded-${PV}-installer.sh LICENSE="as-is" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RESTRICT="mirror strip" RDEPEND="sys-libs/glibc" S=${WORKDIR} GAMES_CHECK_LICENSE="yes" dir=${GAMES_PREFIX_OPT}/${PN} src_unpack() { unpack_makeself } src_install() { dodir "${dir}" dodoc readmes/readme-linux.txt mv * "${D}/${dir}" || die "Copying game data" prepgamesdirs } pkg_postinst() { games_pkg_postinst ewarn "" ewarn "Modify ${dir}/mods/bf2/settings/serversettings.con" ewarn " and ${dir}/mods/bf2/settings/maplist.con to your taste" ewarn "" ewarn "Then you can run the server under 'games' user (try use su)" ewarn " from ${dir} by typing" ewarn "# ./start.sh [arguments]" ewarn "Example (use screen):" ewarn "# screen -d -m -S bf2 su - games -c \"cd ${dir} && ./start.sh\"" }