Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-server/pvpgn: ChangeLog pvpgn-1.8.5.ebuild
Date: Tue, 30 Jun 2009 02:01:25
Message-Id: E1MLSex-0006aX-AL@stork.gentoo.org
1 mr_bones_ 09/06/30 02:01:23
2
3 Modified: ChangeLog
4 Added: pvpgn-1.8.5.ebuild
5 Log:
6 version bump (bug #197911)
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.17 games-server/pvpgn/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/pvpgn/ChangeLog?rev=1.17&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/pvpgn/ChangeLog?rev=1.17&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/pvpgn/ChangeLog?r1=1.16&r2=1.17
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-server/pvpgn/ChangeLog,v
19 retrieving revision 1.16
20 retrieving revision 1.17
21 diff -u -r1.16 -r1.17
22 --- ChangeLog 21 May 2008 16:02:11 -0000 1.16
23 +++ ChangeLog 30 Jun 2009 02:01:23 -0000 1.17
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-server/pvpgn
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/ChangeLog,v 1.16 2008/05/21 16:02:11 dev-zero Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/ChangeLog,v 1.17 2009/06/30 02:01:23 mr_bones_ Exp $
30 +
31 +*pvpgn-1.8.5 (30 Jun 2009)
32 +
33 + 30 Jun 2009; Michael Sterrett <mr_bones_@g.o>
34 + +files/pvpgn-1.8.5-fhs.patch, +pvpgn-1.8.5.ebuild:
35 + version bump (bug #197911)
36
37 21 May 2008; Tiziano Müller <dev-zero@g.o> pvpgn-1.8.0.ebuild:
38 Changed dependency for postgresql from dev-db/postgresql to
39
40
41
42 1.1 games-server/pvpgn/pvpgn-1.8.5.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/pvpgn/pvpgn-1.8.5.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/pvpgn/pvpgn-1.8.5.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pvpgn-1.8.5.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-server/pvpgn/pvpgn-1.8.5.ebuild,v 1.1 2009/06/30 02:01:23 mr_bones_ Exp $
52
53 EAPI=2
54 inherit eutils games
55
56 SUPPORTP="${PN}-support-1.2"
57 DESCRIPTION="A gaming server for Battle.Net compatible clients"
58 HOMEPAGE="http://pvpgn.berlios.de/"
59 SRC_URI="mirror://berlios/${PN}/${PN}-${PV/_/}.tar.bz2
60 mirror://berlios/${PN}/${SUPPORTP}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~ppc ~x86"
65 IUSE="mysql postgres"
66
67 DEPEND="mysql? ( virtual/mysql )
68 postgres? ( >=virtual/postgresql-server-7 )"
69
70 PATCHES=( "${FILESDIR}/${P}-fhs.patch" )
71
72 src_configure() {
73 cd src
74 # everything in GAMES_BINDIR (bug #63071)
75 egamesconf \
76 --sbindir="${GAMES_BINDIR}" \
77 $(use_with mysql) \
78 $(use_with postgres pgsql)
79 }
80
81 src_compile() {
82 emake -C src || die "emake failed"
83 }
84
85 src_install() {
86 local f
87
88 dodoc README README.DEV CREDITS BUGS TODO UPDATE version-history.txt
89 docinto docs
90 dodoc docs/*
91
92 cd src
93 emake DESTDIR="${D}" install || die "emake install failed"
94
95 insinto "${GAMES_DATADIR}/${PN}"
96 doins "${WORKDIR}/${SUPPORTP}/"* || die "doins failed"
97
98 # GAMES_USER_DED here instead of GAMES_USER (bug #65423)
99 for f in bnetd d2cs d2dbs ; do
100 newinitd "${FILESDIR}/${PN}.rc" ${f}
101 sed -i \
102 -e "s:NAME:${f}:g" \
103 -e "s:GAMES_BINDIR:${GAMES_BINDIR}:g" \
104 -e "s:GAMES_USER:${GAMES_USER_DED}:g" \
105 -e "s:GAMES_GROUP:${GAMES_GROUP}:g" \
106 "${D}/etc/games/${PN}/${f}.conf" \
107 "${D}/etc/init.d/${f}" \
108 || die "sed failed"
109 done
110
111 keepdir $(find "${D}${GAMES_STATEDIR}"/${PN} -type d -printf "${GAMES_STATEDIR}/${PN}/%P ") "${GAMES_STATEDIR}"/${PN}/log
112 prepgamesdirs
113
114 chown -R ${GAMES_USER_DED}:${GAMES_GROUP} "${D}${GAMES_STATEDIR}/${PN}"
115 fperms 0775 "${GAMES_STATEDIR}/${PN}/log"
116 fperms 0770 "${GAMES_STATEDIR}/${PN}"
117 }
118
119 pkg_postinst() {
120 games_pkg_postinst
121
122 elog "If this is a first installation you need to configure the package by"
123 elog "editing the configuration files provided in ${GAMES_SYSCONFDIR}/${PN}"
124 elog "Also you should read the documentation in /usr/share/docs/${PF}"
125 elog
126 elog "If you are upgrading you MUST read UPDATE in /usr/share/docs/${PF}"
127 elog "and update your configuration accordingly."
128 if use mysql ; then
129 elog
130 elog "You have enabled MySQL storage support. You will need to edit"
131 elog "bnetd.conf to use it. Read README.storage from the docs directory."
132 fi
133 if use postgres ; then
134 elog
135 elog "You have enabled PostgreSQL storage support. You will need to edit"
136 elog "bnetd.conf to use it. Read README.storage from the docs directory."
137 fi
138 }