summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-09-27 10:43:56 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-09-27 10:43:56 +0000
commit2d56c05a84f8e79e6e35158c9424975f9a1c949b (patch)
tree6b050e3fef915c64247d123206ad613db37d2ad2 /games-server
parentpatch was already included (Manifest recommit) (diff)
downloadgentoo-2-2d56c05a84f8e79e6e35158c9424975f9a1c949b.tar.gz
gentoo-2-2d56c05a84f8e79e6e35158c9424975f9a1c949b.tar.bz2
gentoo-2-2d56c05a84f8e79e6e35158c9424975f9a1c949b.zip
fix call to fperms; everything in GAMES_BINDIR (bug #63071); use GAMES_USER_DED instead of GAMES_USER for services (bug #65423)
Diffstat (limited to 'games-server')
-rw-r--r--games-server/pvpgn/ChangeLog8
-rw-r--r--games-server/pvpgn/Manifest2
-rw-r--r--games-server/pvpgn/files/digest-pvpgn-1.6.5-r12
-rw-r--r--games-server/pvpgn/pvpgn-1.6.5-r1.ebuild92
4 files changed, 103 insertions, 1 deletions
diff --git a/games-server/pvpgn/ChangeLog b/games-server/pvpgn/ChangeLog
index dac87005c646..3b487c3f9a1f 100644
--- a/games-server/pvpgn/ChangeLog
+++ b/games-server/pvpgn/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-server/pvpgn
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/ChangeLog,v 1.3 2004/09/04 23:12:55 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/ChangeLog,v 1.4 2004/09/27 10:43:56 mr_bones_ Exp $
+
+*pvpgn-1.6.5-r1 (27 Sep 2004)
+
+ 27 Sep 2004; Michael Sterrett <mr_bones_@gentoo.org> +pvpgn-1.6.5-r1.ebuild:
+ fix call to fperms; everything in GAMES_BINDIR (bug #63071); use
+ GAMES_USER_DED instead of GAMES_USER for services (bug #65423)
05 Sep 2004; David Holm <dholm@gentoo.org> pvpgn-1.6.5.ebuild:
Added to ~ppc.
diff --git a/games-server/pvpgn/Manifest b/games-server/pvpgn/Manifest
index 0467952a12c1..8f7f76e0016a 100644
--- a/games-server/pvpgn/Manifest
+++ b/games-server/pvpgn/Manifest
@@ -1,6 +1,8 @@
MD5 3fcdde44b2e520d98df3c4d65b730ee2 ChangeLog 586
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 afb09bc97c9febba4b04edbed3b5aaa7 pvpgn-1.6.5-r1.ebuild 2587
MD5 6284978a67b8a0cf4b916400d344cdc0 pvpgn-1.6.5.ebuild 2447
MD5 778be818c35e7df1e022398198427172 files/1.6.5-fhs.patch 10322
MD5 ba5db7daf3b6cfeb5c463b3d8f7ee32b files/digest-pvpgn-1.6.5 134
MD5 0dea305044e123e1b1ee007331906727 files/init.d.rc 785
+MD5 ba5db7daf3b6cfeb5c463b3d8f7ee32b files/digest-pvpgn-1.6.5-r1 134
diff --git a/games-server/pvpgn/files/digest-pvpgn-1.6.5-r1 b/games-server/pvpgn/files/digest-pvpgn-1.6.5-r1
new file mode 100644
index 000000000000..3d25d5d4a976
--- /dev/null
+++ b/games-server/pvpgn/files/digest-pvpgn-1.6.5-r1
@@ -0,0 +1,2 @@
+MD5 89d10957b44fb60cd112c588cf644da1 pvpgn-1.6.5.tar.bz2 1024406
+MD5 8ba36144ea3a7efe200536c142bb7886 pvpgn-support-1.0.tar.gz 126047
diff --git a/games-server/pvpgn/pvpgn-1.6.5-r1.ebuild b/games-server/pvpgn/pvpgn-1.6.5-r1.ebuild
new file mode 100644
index 000000000000..21386d6b47d3
--- /dev/null
+++ b/games-server/pvpgn/pvpgn-1.6.5-r1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/pvpgn-1.6.5-r1.ebuild,v 1.1 2004/09/27 10:43:56 mr_bones_ Exp $
+
+inherit eutils games
+
+SUPPORTP="pvpgn-support-1.0"
+DESCRIPTION="A gaming server for Battle.Net compatible clients"
+HOMEPAGE="http://www.pvpgn.org/"
+SRC_URI="mirror://sourceforge/pvpgn/${P}.tar.bz2
+ mirror://sourceforge/pvpgn/${SUPPORTP}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE="mysql postgres"
+
+DEPEND="virtual/libc
+ sys-libs/zlib
+ mysql? ( >=dev-db/mysql-3.23 )
+ postgres? ( >=dev-db/postgresql-7 )"
+
+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
+ make DESTDIR="${D}" install || die "make install failed"
+
+ insinto "${GAMES_DATADIR}/pvpgn"
+ doins "${WORKDIR}/${SUPPORTP}/"* || die "doins failed"
+
+ exeinto /etc/init.d
+ # GAMES_USER_DED here instead of GAMES_USER (bug #65423)
+ for f in bnetd d2cs d2dbs ; do
+ newexe "${FILESDIR}/init.d.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/init.d/${f}" \
+ || die "sed ${D}/etc/init.d/${f} failed"
+ done
+
+ prepgamesdirs
+ keepdir "${GAMES_STATEDIR}/pvpgn/log"
+ chown -R ${GAMES_USER}:${GAMES_GROUP} "${D}${GAMES_STATEDIR}/pvpgn"
+ fperms 0755 "${GAMES_STATEDIR}/pvpgn/log"
+ fperms 0750 "${GAMES_STATEDIR}/pvpgn"
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ einfo " If this is a first installation you have to configure package by"
+ einfo "editing the configuration files provided in \"${GAMES_SYSCONFDIR}/pvpgn\". Also you"
+ einfo "should read the documentation from /usr/share/docs/${P}/"
+ einfo
+ einfo " If you are upgrading you MUST read /usr/share/docs/${P}/UPDATE.gz"
+ einfo "and update your configuration acordingly."
+ if use mysql ; then
+ echo
+ einfo " You have enabled MySQL storage support. You will need to edit "
+ einfo "bnetd.conf to use it. Read README.storage from the docs dir."
+ fi
+ if use postgres ; then
+ echo
+ einfo " You have enabled PostgreSQL storage support. You will need to edit "
+ einfo "bnetd.conf to use it. Read README.storage from the docs dir."
+ fi
+}