summaryrefslogtreecommitdiff
blob: baa52345fba3f5d8021982da1121f2f73f994c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-modsetup/halflife-modsetup-0.1.1.ebuild,v 1.3 2004/06/01 20:12:51 mr_bones_ Exp $

inherit games

DESCRIPTION="script to assist in setting up your server"
HOMEPAGE="http://wh0rd.org/"
SRC_URI="mirror://gentoo/${P}.tbz2"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="x86"
IUSE=""

RDEPEND="dev-util/dialog"

src_unpack() {
	unpack ${A}
	sed -i \
		-e "s:GENTOO_HLDIR:${GAMES_PREFIX_OPT}/halflife:" \
		-e "s:GENTOO_CFGDIR:${GAMES_SYSCONFDIR}/halflife:" \
		${S}/halflife-modsetup
}

src_install() {
	dogamesbin halflife-modsetup
	insinto ${GAMES_SYSCONFDIR}/halflife
	doins modsetup.conf
	prepgamesdirs
}