ChangeLog

# ChangeLog for games-server/pvpgn
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/ChangeLog,v 1.16 2008/05/21 16:02:11 dev-zero Exp $

21 May 2008; Tiziano Müller pvpgn-1.8.0.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server

29 Jan 2008; Tristan Heaven pvpgn-1.8.0.ebuild:
Don't specify compression type in doc elog, bug #169772

12 Mar 2007; Marius Mauch pvpgn-1.8.0.ebuild:
Replacing einfo with elog

12 Mar 2007; Michael Sterrett -pvpgn-1.6.6.ebuild,
pvpgn-1.8.0.ebuild:
stable for x86; whack old version

11 Mar 2007; Michael Sterrett pvpgn-1.8.0.ebuild:
fix sed with patch from Nikolay Shley (bug #170170)

07 Mar 2007; Chris Gianelloni -files/init.d.rc,
+files/pvpgn.rc, pvpgn-1.6.6.ebuild, pvpgn-1.8.0.ebuild:
Changed all instances of [ to [[ and renamed init.d.rc to pvpgn.rc.

07 Feb 2007; Tristan Heaven pvpgn-1.8.0.ebuild:
Use mirror://berlios

23 Nov 2006; Francesco Riosa pvpgn-1.6.5-r1.ebuild,
pvpgn-1.6.6.ebuild, pvpgn-1.8.0.ebuild:
dev-db/mysql => virtual/mysql

*pvpgn-1.8.0 (15 Nov 2006)

15 Nov 2006; Chris Gianelloni
+files/1.8.0-fhs.patch, +pvpgn-1.8.0.ebuild:
Version bump. Original ebuild and patch by Anatoly Shipitsin
and updated by Wai Ling and
myself. Closing bug #107761.

Manifest

AUX 1.6.6-fhs.patch 10322 RMD160 a5463e9b8a17980256d5fe67ae550687610486c1 SHA1 1a94b482869af69498a74f27e6b3f7b91fb43b94 SHA256 926262b969c018fd39ae4f7ca42d247a11e7c52643955b02a48f77e5847786a5
AUX 1.8.0-fhs.patch 11549 RMD160 4045f4ae46d516b9de04aff30942eb2f62022e92 SHA1 236da3a9e6affd2b42ed4e70fc488756201b32f7 SHA256 ec54d02676a29ed0d1ffbd1c590425a6a371e34ebb99abbaeeaf4465b73c66ef
AUX pvpgn.rc 789 RMD160 2d3c6fe4caf1d62e6abe047ad5d1841275e7bf5f SHA1 cf6e991c28c71534be3590203c411b71982235af SHA256 dcd619a74c10f7a3cc6d8432beed76f8e357bab5cbef7e9723e393578f0ff87a
DIST pvpgn-1.8.0.tar.bz2 999543 RMD160 0921e584732589b069f5e03678c41c309c040f22 SHA1 b3aae4244051f4ae248cc3c6c6784bbb650d920c SHA256 9eb713c8f9ccb297674ab1497f9768c1e623fccce4dbd9758b7aed2f35ffd42d
DIST pvpgn-support-1.0.tar.gz 126047 RMD160 2a6cf95e925596a36fdd5e57e744752a4d828acc SHA1 9c73ad8f8d4eadacabb7f1fd57b349c5d2a35114 SHA256 f2f832fd6265ae20239fdaa70498ee6bf922020172f47389520e656a3babff2d
EBUILD pvpgn-1.8.0.ebuild 2581 RMD160 0464de16e334bb2667bc3f28fe2ccec061e897e9 SHA1 4cde2b74b708f60b3f3026014d0c70f4cde726d4 SHA256 e1e7b28a475a247d9613c40eaf38745846d599b9e736193b47c954cc10abe420
MISC ChangeLog 1602 RMD160 46d18b41497d2ecad5e5eb73557bb15de87f96d5 SHA1 6734594237a6589c6cbaca972a466b865ddaa485 SHA256 7bd70547abf4629a47c8a5eb7ff6918c724a4f9bda140c65dc618e58a6a66a7b
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3

files

metadata.xml




games

pvpgn-1.8.0.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/pvpgn-1.8.0.ebuild,v 1.9 2008/05/21 16:02:11 dev-zero Exp $

inherit eutils games

SUPPORTP="pvpgn-support-1.0"
DESCRIPTION="A gaming server for Battle.Net compatible clients"
HOMEPAGE="http://pvpgn.berlios.de/"
SRC_URI="mirror://berlios/${PN}/${PN}-${PV/_/}.tar.bz2
mirror://berlios/${PN}/${SUPPORTP}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE="mysql postgres"

DEPEND="mysql? ( virtual/mysql )
postgres? ( >=virtual/postgresql-server-7 )"

S=${WORKDIR}/${PN}-${PV/_/}

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/${PV}-fhs.patch"
}

src_compile() {
cd src
# everything in GAMES_BINDIR (bug #63071)
egamesconf \
--sbindir="${GAMES_BINDIR}" \
$(use_with mysql) \
$(use_with postgres pgsql) \
|| die
emake || die "emake failed"
}

src_install() {
local f

dodoc README README.DEV CREDITS BUGS TODO UPDATE version-history.txt
docinto docs
dodoc docs/*

cd src
emake DESTDIR="${D}" install || die "emake install failed"

insinto "${GAMES_DATADIR}/pvpgn"
doins "${WORKDIR}/${SUPPORTP}/"* || die "doins failed"

# GAMES_USER_DED here instead of GAMES_USER (bug #65423)
for f in bnetd d2cs d2dbs ; do
newinitd "${FILESDIR}/${PN}.rc" ${f}
sed -i \
-e "s:NAME:${f}:g" \
-e "s:GAMES_BINDIR:${GAMES_BINDIR}:g" \
-e "s:GAMES_USER:${GAMES_USER_DED}:g" \
-e "s:GAMES_GROUP:${GAMES_GROUP}:g" \
"${D}/etc/games/${PN}/${f}.conf" \
"${D}/etc/init.d/${f}" \
|| die "sed failed"
done

prepgamesdirs
keepdir "${GAMES_STATEDIR}/pvpgn/log"
chown -R ${GAMES_USER_DED}:${GAMES_GROUP} "${D}${GAMES_STATEDIR}/pvpgn"
fperms 0775 "${GAMES_STATEDIR}/pvpgn/log"
fperms 0770 "${GAMES_STATEDIR}/pvpgn"
}

pkg_postinst() {
games_pkg_postinst

elog "If this is a first installation you need to configure the package by"
elog "editing the configuration files provided in ${GAMES_SYSCONFDIR}/pvpgn"
elog "Also you should read the documentation in /usr/share/docs/${PF}"
elog
elog "If you are upgrading you MUST read UPDATE in /usr/share/docs/${PF}"
elog "and update your configuration acordingly."
if use mysql ; then
elog
elog "You have enabled MySQL storage support. You will need to edit"
elog "bnetd.conf to use it. Read README.storage from the docs dir."
fi
if use postgres ; then
elog
elog "You have enabled PostgreSQL storage support. You will need to edit"
elog "bnetd.conf to use it. Read README.storage from the docs dir."
fi
}