From f67ddb72b4bf2b69b50fd3d4e0cdc39e37ca6782 Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Mon, 11 Feb 2019 11:17:44 -0500 Subject: games-server/pvpgn: Revbump for dependency change Non-maintainer commit Closes: https://bugs.gentoo.org/665896 Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Brian Evans --- games-server/pvpgn/pvpgn-1.8.5-r1.ebuild | 90 -------------------------------- games-server/pvpgn/pvpgn-1.8.5-r2.ebuild | 90 ++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 90 deletions(-) delete mode 100644 games-server/pvpgn/pvpgn-1.8.5-r1.ebuild create mode 100644 games-server/pvpgn/pvpgn-1.8.5-r2.ebuild (limited to 'games-server') diff --git a/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild b/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild deleted file mode 100644 index 2ec880c5c21c..000000000000 --- a/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils games - -SUPPORTP="${PN}-support-1.3" -DESCRIPTION="A gaming server for Battle.Net compatible clients" -HOMEPAGE="https://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 ~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 -} diff --git a/games-server/pvpgn/pvpgn-1.8.5-r2.ebuild b/games-server/pvpgn/pvpgn-1.8.5-r2.ebuild new file mode 100644 index 000000000000..67ba4ceed177 --- /dev/null +++ b/games-server/pvpgn/pvpgn-1.8.5-r2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit epatch games + +SUPPORTP="${PN}-support-1.3" +DESCRIPTION="A gaming server for Battle.Net compatible clients" +HOMEPAGE="https://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 ~x86" +IUSE="mysql postgres" + +DEPEND="mysql? ( dev-db/mysql-connector-c:0= ) + 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 +} -- cgit v1.2.3