summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-server/pvpgn
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-server/pvpgn')
-rw-r--r--games-server/pvpgn/Manifest2
-rw-r--r--games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch233
-rwxr-xr-xgames-server/pvpgn/files/pvpgn.rc41
-rw-r--r--games-server/pvpgn/metadata.xml8
-rw-r--r--games-server/pvpgn/pvpgn-1.8.5-r1.ebuild91
5 files changed, 375 insertions, 0 deletions
diff --git a/games-server/pvpgn/Manifest b/games-server/pvpgn/Manifest
new file mode 100644
index 000000000000..817850b354fa
--- /dev/null
+++ b/games-server/pvpgn/Manifest
@@ -0,0 +1,2 @@
+DIST pvpgn-1.8.5.tar.bz2 982931 SHA256 229607bb52a0c8bdc01e310ff7e0ca23c91d63d2a2ed2f7decaa3ddac40e57d5 SHA512 7cbe141efe03efa4ce0fc1cc3b4e15afe2e85e3c83a27afdf36fec9e2dadf1c7b9aca1773e6a3e6566b62f5a7999cc040c9517786ca70eeb70f86eea84e9218e WHIRLPOOL 37880b5d160be67666f4bfbf7d7fae281c2c4be5f5b01552f43a11ce4980c4a563976763e426a5b6ee5d49599e0c0b095ad87f3a348628170d7322a826f2667d
+DIST pvpgn-support-1.3.tar.gz 123805 SHA256 bb51db26198691063e0b1065a21ddec823dc27b9560cd3975ef232ee272d2d07 SHA512 9002fcdb7da92e84af97319b9f1e38f5cf97466aef88549b1fe81b9070643f321011adf674424e2c4acc22f847c7fc61ca2cbf2da0223842e9b9e6c8f1427d76 WHIRLPOOL 2ac194d0b9655b9bb1b7ba10a40d0dac75368dcca2b87cf82ce72d69eec2c2dca0c59d37a1723d6a611b873f50016a92d6eaa331e513f1650ea13afabec33fbe
diff --git a/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch b/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch
new file mode 100644
index 000000000000..d1450b3ad178
--- /dev/null
+++ b/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch
@@ -0,0 +1,233 @@
+diff -ruN pvpgn-1.8.0rc2.orig/conf/bnetd.conf.in pvpgn-1.8.0rc2/conf/bnetd.conf.in
+--- pvpgn-1.8.0rc2.orig/conf/bnetd.conf.in 2005-09-19 08:17:50.000000000 -0400
++++ pvpgn-1.8.0rc2/conf/bnetd.conf.in 2006-08-16 23:34:10.000000000 -0400
+@@ -50,22 +50,22 @@
+ # - "prefix" : prefix to use for all pvpgn tables (default "") #
+ # #
+ # Examples: #
+-# storage_path = file:mode=plain;dir=/usr/local/var/users;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.plain
+-# storage_path = file:mode=cdb;dir=/usr/local/var/userscdb;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.cdb
++# storage_path = file:mode=plain;dir=%statedir%/users;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.plain
++# storage_path = file:mode=cdb;dir=%statedir%/userscdb;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.cdb
+ # storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
+ # storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
+-# storage_path = sql:mode=sqlite3;name=/usr/local/var/users.db;default=0;prefix=pvpgn_
++# storage_path = sql:mode=sqlite3;name=%statedir%/users.db;default=0;prefix=pvpgn_
+ # storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_
+ #
+ # WARNING!! you MUST change "DBlayoutfile" bellow configuration directive to
+ # sql_DB_layout2.conf to be able to use "sql2" !!!
+ # storage_path = sql2:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn2_
+ # storage_path = sql2:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn2_
+-# storage_path = sql2:mode=sqlite3;name=/usr/local/var/users.db;default=0;prefix=pvpgn2_
++# storage_path = sql2:mode=sqlite3;name=%statedir%/users.db;default=0;prefix=pvpgn2_
+ # storage_path = sql2:mode=odbc;name=PVPGN;prefix=pvpgn2_
+ #----------------------------------------------------------------------------#
+
+-storage_path = file:mode=plain;dir=/usr/local/var/users;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.plain
++storage_path = file:mode=plain;dir=%statedir%/users;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.plain
+
+ # #
+ ##############################################################################
+@@ -76,35 +76,35 @@
+ # Use absolute paths in these lines to avoid problems! #
+ #----------------------------------------------------------------------------#
+
+-filedir = /usr/local/var/files
+-reportdir = /usr/local/var/reports
+-chanlogdir = /usr/local/var/chanlogs
+-motdfile = /usr/local/etc/bnmotd.txt
+-issuefile = /usr/local/etc/bnissue.txt
+-channelfile = /usr/local/etc/channel.conf
+-newsfile = /usr/local/etc/news.txt
+-adfile = /usr/local/etc/ad.conf
+-topicfile = /usr/local/etc/topics.conf
+-ipbanfile = /usr/local/etc/bnban.conf
+-helpfile = /usr/local/etc/bnhelp.conf
+-mpqfile = /usr/local/etc/autoupdate.conf
+-logfile = /usr/local/var/bnetd.log
+-realmfile = /usr/local/etc/realm.conf
+-maildir = /usr/local/var/bnmail
+-versioncheck_file = /usr/local/etc/versioncheck.conf
+-mapsfile = /usr/local/etc/bnmaps.conf
+-xplevelfile = /usr/local/etc/bnxplevel.conf
+-xpcalcfile = /usr/local/etc/bnxpcalc.conf
+-#pidfile = /usr/local/var/bnetd.pid
+-ladderdir = /usr/local/var/ladders
+-command_groups_file = /usr/local/etc/command_groups.conf
+-tournament_file = /usr/local/etc/tournament.conf
+-statusdir = /usr/local/var/status
+-aliasfile = /usr/local/etc/bnalias.conf
+-anongame_infos_file = /usr/local/etc/anongame_infos.conf
+-DBlayoutfile = /usr/local/etc/sql_DB_layout.conf
+-supportfile = /usr/local/etc/supportfile.conf
+-transfile = /usr/local/etc/address_translation.conf
++filedir = %datadir%
++reportdir = %statedir%/reports
++chanlogdir = %statedir%/chanlogs
++motdfile = %confdir%/bnmotd.txt
++issuefile = %confdir%/bnissue.txt
++channelfile = %confdir%/channel.conf
++newsfile = %confdir%/news.txt
++adfile = %confdir%/ad.conf
++topicfile = %confdir%/topics.conf
++ipbanfile = %confdir%/bnban.conf
++helpfile = %confdir%/bnhelp.conf
++mpqfile = %confdir%/autoupdate.conf
++logfile = %logdir%/bnetd.log
++realmfile = %confdir%/realm.conf
++maildir = %statedir%/bnmail
++versioncheck_file = %confdir%/versioncheck.conf
++mapsfile = %confdir%/bnmaps.conf
++xplevelfile = %confdir%/bnxplevel.conf
++xpcalcfile = %confdir%/bnxpcalc.conf
++#pidfile = /var/run/bnetd/bnetd.pid
++ladderdir = %confdir%/ladders
++command_groups_file = %confdir%/command_groups.conf
++tournament_file = %confdir%/tournament.conf
++statusdir = %statedir%/status
++aliasfile = %confdir%/bnalias.conf
++anongame_infos_file = %confdir%/anongame_infos.conf
++DBlayoutfile = %confdir%/sql_DB_layout.conf
++supportfile = %confdir%/supportfile.conf
++transfile = %confdir%/address_translation.conf
+
+ fortunecmd = /usr/games/fortune
+
+diff -ruN pvpgn-1.8.0rc2.orig/conf/d2cs.conf.in pvpgn-1.8.0rc2/conf/d2cs.conf.in
+--- pvpgn-1.8.0rc2.orig/conf/d2cs.conf.in 2005-09-29 01:37:33.000000000 -0400
++++ pvpgn-1.8.0rc2/conf/d2cs.conf.in 2006-08-16 23:35:43.000000000 -0400
+@@ -86,16 +86,16 @@
+ # Use absolute paths in these lines to avoid problems! #
+ #-------------------------------------------------------------------------------#
+ # #
+-logfile = /usr/local/var/d2cs.log
+-charsavedir = /usr/local/var/charsave
+-charinfodir = /usr/local/var/charinfo
+-bak_charsavedir = /usr/local/var/bak/charsave
+-bak_charinfodir = /usr/local/var/bak/charinfo
+-ladderdir = /usr/local/var/ladders
+-newbiefile = /usr/local/var/files/newbie.save
+-transfile = /usr/local/etc/address_translation.conf
+-d2gsconffile = /usr/local/etc/d2server.ini
+-#pidfile = /usr/local/var/d2cs.pid
++logfile = %logdir%/d2cs.log
++charsavedir = %statedir%/charsave
++charinfodir = %statedir%/charinfo
++bak_charsavedir = %statedir%/bak/charsave
++bak_charinfodir = %statedir%/bak/charinfo
++ladderdir = %statedir%/ladders
++newbiefile = %statedir%/files/newbie.save
++transfile = %confdir%/address_translation.conf
++d2gsconffile = %confdir%/d2server.ini
++#pidfile = /var/run/bnetd/d2cs.pid
+
+ # #
+ #################################################################################
+diff -ruN pvpgn-1.8.0rc2.orig/conf/d2dbs.conf.in pvpgn-1.8.0rc2/conf/d2dbs.conf.in
+--- pvpgn-1.8.0rc2.orig/conf/d2dbs.conf.in 2005-08-24 23:58:18.000000000 -0400
++++ pvpgn-1.8.0rc2/conf/d2dbs.conf.in 2006-08-16 23:36:58.000000000 -0400
+@@ -49,14 +49,14 @@
+ # File and Path section #
+ # Use absolute paths in these lines to avoid problems! #
+ #-------------------------------------------------------------------------------#
+-logfile = /usr/local/var/d2dbs.log
+-logfile-gs = /usr/local/var/d2dbs-gs.log
+-charsavedir = /usr/local/var/charsave
+-charinfodir = /usr/local/var/charinfo
+-ladderdir = /usr/local/var/ladders
+-bak_charsavedir = /usr/local/var/bak/charsave
+-bak_charinfodir = /usr/local/var/bak/charinfo
+-#pidfile = /usr/local/var/d2dbs.pid
++logfile = %logdir%/d2dbs.log
++logfile-gs = %logdir%/d2dbs-gs.log
++charsavedir = %statedir%/charsave
++charinfodir = %statedir%/charinfo
++ladderdir = %statedir%/ladders
++bak_charsavedir = %statedir%/bak/charsave
++bak_charinfodir = %statedir%/bak/charinfo
++#pidfile = /var/run/bnetd/d2dbs.pid
+
+ # #
+ #################################################################################
+
+diff -ruN pvpgn-1.8.0rc2.orig/src/Makefile.in pvpgn-1.8.0rc2/src/Makefile.in
+--- pvpgn-1.8.0rc2.orig/src/Makefile.in 2005-07-29 02:11:38.000000000 +0600
++++ pvpgn-1.8.0rc2/src/Makefile.in 2005-09-23 15:10:02.968342144 +0600
+@@ -23,22 +23,23 @@
+ bindir = @bindir@
+ sbindir = @sbindir@
+ mandir = @mandir@
+-confdir = @sysconfdir@
+-sharedir = @localstatedir@
+-filesdir = @localstatedir@/files
+-usersdir = @localstatedir@/users
+-userscdbdir = @localstatedir@/userscdb
+-clandir = @localstatedir@/clans
+-teamdir = @localstatedir@/teams
+-bnmaildir = @localstatedir@/bnmail
+-reportsdir = @localstatedir@/reports
+-chanlogsdir = @localstatedir@/chanlogs
+-charinfodir = @localstatedir@/charinfo
+-charsavedir = @localstatedir@/charsave
+-ladderdir = @localstatedir@/ladders
+-statusdir = @localstatedir@/status
+-bak_charsavedir = @localstatedir@/bak/charsave
+-bak_charinfodir = @localstatedir@/bak/charinfo
++confdir = @sysconfdir@/pvpgn
++statedir = @localstatedir@/pvpgn
++filesdir = @datadir@/pvpgn
++usersdir = @localstatedir@/pvpgn/users
++userscdbdir = @localstatedir@/pvpgn/userscdb
++clandir = @localstatedir@/pvpgn/clans
++bnmaildir = @localstatedir@/pvpgn/bnmail
++reportsdir = @localstatedir@/pvpgn/reports
++chanlogsdir = @localstatedir@/pvpgn/chanlogs
++charinfodir = @localstatedir@/pvpgn/charinfo
++charsavedir = @localstatedir@/pvpgn/charsave
++ladderdir = @localstatedir@/pvpgn/ladders
++statusdir = @localstatedir@/pvpgn/status
++bak_charsavedir = @localstatedir@/pvpgn/bak/charsave
++bak_charinfodir = @localstatedir@/pvpgn/bak/charinfo
++logdir = @localstatedir@/pvpgn/log
++
+
+ SRC_SRCDIR = @srcdir@
+ SRC_BINDIR = @srcdir@/../bin
+@@ -677,7 +678,8 @@
+
+ .PHONY: install-share
+ install-share:
+- ${INSTALL_DIRS} ${DESTDIR}/${sharedir} ${DESTDIR}/${filesdir} ${DESTDIR}/${usersdir} ${DESTDIR}/${userscdbdir} ${DESTDIR}/${bnmaildir} ${DESTDIR}/${reportsdir} \
++ ${INSTALL_DIRS} ${DESTDIR}/${datadir} ${DESTDIR}/${statedir} \
++ ${DESTDIR}/${filesdir} ${DESTDIR}/${usersdir} ${DESTDIR}/${userscdbdir} ${DESTDIR}/${bnmaildir} ${DESTDIR}/${reportsdir} \
+ ${DESTDIR}/${chanlogsdir} ${DESTDIR}/${charinfodir} ${DESTDIR}/${charsavedir} ${DESTDIR}/${bak_charsavedir} \
+ ${DESTDIR}/${bak_charinfodir} ${DESTDIR}/${ladderdir} ${DESTDIR}/${statusdir} \
+ ${DESTDIR}/${clandir} ${DESTDIR}/${teamdir}
+@@ -728,21 +730,21 @@
+ .PHONY: uninstall-share
+ uninstall-share:
+ @list='${SHARES}'; for p in $$list; do \
+- ${ECHO} " ${RMF} ${sharedir}/$$p"; \
+- ${RMF} ${sharedir}/$$p; \
++ ${ECHO} " ${RMF} ${filesdir}/$$p"; \
++ ${RMF} ${filesdir}/$$p; \
+ done
+
+ ${SRC_CONFDIR}/bnetd.conf: ${SRC_CONFDIR}/bnetd.conf.in ${SRC_SRCDIR}/config.status
+ @${RMF} $@
+- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/bnetd.conf.in > $@
++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/bnetd.conf.in > $@
+
+ ${SRC_CONFDIR}/d2cs.conf: ${SRC_CONFDIR}/d2cs.conf.in ${SRC_SRCDIR}/config.status
+ @${RMF} $@
+- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/d2cs.conf.in > $@
++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/d2cs.conf.in > $@
+
+ ${SRC_CONFDIR}/d2dbs.conf: ${SRC_CONFDIR}/d2dbs.conf.in ${SRC_SRCDIR}/config.status
+ @${RMF} $@
+- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/d2dbs.conf.in > $@
++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/d2dbs.conf.in > $@
+
+ ${SRC_ACDIR}/ansi2knr: ${SRC_ACDIR}/ansi2knr.o
+ @${RMF} $@
diff --git a/games-server/pvpgn/files/pvpgn.rc b/games-server/pvpgn/files/pvpgn.rc
new file mode 100755
index 000000000000..3fd782a7f708
--- /dev/null
+++ b/games-server/pvpgn/files/pvpgn.rc
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+extra_started_commands="reload"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [[ ! -f /etc/games/pvpgn/NAME.conf ]] ; then
+ eerror "You must have a NAME.conf configuration file to start NAME"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting PvPGN NAME"
+ start-stop-daemon --background --start --quiet \
+ --make-pidfile \
+ --pidfile /var/run/NAME.pid \
+ --exec GAMES_BINDIR/NAME -c GAMES_USER:GAMES_GROUP -- -f
+ eend $? "Failed to start NAME"
+}
+
+stop() {
+ ebegin "Stopping PvPGN NAME"
+ start-stop-daemon --stop --quiet --retry 20 \
+ --pidfile /var/run/NAME.pid
+ eend $?
+}
+
+reload() {
+ ebegin "Rehashing configuration for PvPGN NAME"
+ start-stop-daemon --stop --signal HUP --oknodo \
+ --pidfile /var/run/NAME.pid
+ eend $?
+}
diff --git a/games-server/pvpgn/metadata.xml b/games-server/pvpgn/metadata.xml
new file mode 100644
index 000000000000..36d3c90c042a
--- /dev/null
+++ b/games-server/pvpgn/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">pvpgn.berlios</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild b/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild
new file mode 100644
index 000000000000..07fbf10d5621
--- /dev/null
+++ b/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+SUPPORTP="${PN}-support-1.3"
+DESCRIPTION="A gaming server for Battle.Net compatible clients"
+HOMEPAGE="http://sourceforge.net/projects/pvpgn.berlios/"
+SRC_URI="mirror://sourceforge/pvpgn.berlios/${PN}-${PV/_/}.tar.bz2
+ mirror://sourceforge/pvpgn.berlios/${SUPPORTP}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="mysql postgres"
+
+DEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql[server] )"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-fhs.patch"
+}
+
+src_configure() {
+ cd src
+ # everything in GAMES_BINDIR (bug #63071)
+ egamesconf \
+ --sbindir="${GAMES_BINDIR}" \
+ $(use_with mysql) \
+ $(use_with postgres pgsql)
+}
+
+src_compile() {
+ emake -C src
+}
+
+src_install() {
+ local f
+
+ dodoc README README.DEV CREDITS BUGS TODO UPDATE version-history.txt
+ docinto docs
+ dodoc docs/*
+
+ emake -C src DESTDIR="${D}" install
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins "${WORKDIR}/${SUPPORTP}/"*
+
+ # 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
+ done
+
+ keepdir $(find "${D}${GAMES_STATEDIR}"/${PN} -type d -printf "${GAMES_STATEDIR}/${PN}/%P ") "${GAMES_STATEDIR}"/${PN}/log
+ prepgamesdirs
+
+ chown -R ${GAMES_USER_DED}:${GAMES_GROUP} "${D}${GAMES_STATEDIR}/${PN}"
+ fperms 0775 "${GAMES_STATEDIR}/${PN}/log"
+ fperms 0770 "${GAMES_STATEDIR}/${PN}"
+}
+
+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}/${PN}"
+ 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 accordingly."
+ 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 directory."
+ 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 directory."
+ fi
+}