diff options
author | Christian Parpart <trapni@gentoo.org> | 2009-02-14 07:51:02 +0000 |
---|---|---|
committer | Christian Parpart <trapni@gentoo.org> | 2009-02-14 07:51:02 +0000 |
commit | eea3e5f3933f6f2b5813c4dbc79b134b8c7fb5ab (patch) | |
tree | beb3deb7e2412ebcacbb5624f4102895d2258411 /games-rpg | |
parent | Fix implicit strsep() prototype in x509 code #258795 by orlin. (diff) | |
download | historical-eea3e5f3933f6f2b5813c4dbc79b134b8c7fb5ab.tar.gz historical-eea3e5f3933f6f2b5813c4dbc79b134b8c7fb5ab.tar.bz2 historical-eea3e5f3933f6f2b5813c4dbc79b134b8c7fb5ab.zip |
adapted to changes in built management; and updated project uri.
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'games-rpg')
-rw-r--r-- | games-rpg/mangos/ChangeLog | 9 | ||||
-rw-r--r-- | games-rpg/mangos/Manifest | 3 | ||||
-rw-r--r-- | games-rpg/mangos/mangos-9999.1.ebuild | 155 |
3 files changed, 164 insertions, 3 deletions
diff --git a/games-rpg/mangos/ChangeLog b/games-rpg/mangos/ChangeLog index 1eebd2f6b5a1..f81b2729852b 100644 --- a/games-rpg/mangos/ChangeLog +++ b/games-rpg/mangos/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-rpg/mangos -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/ChangeLog,v 1.1 2008/10/04 07:38:26 trapni Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/ChangeLog,v 1.2 2009/02/14 07:51:02 trapni Exp $ + +*mangos-9999.1 (14 Feb 2009) + + 14 Feb 2009; Christian Parpart <trapni@gentoo.org> +mangos-9999.1.ebuild: + adapted to changes in built management; and updated project uri. *mangos-9999 (04 Oct 2008) diff --git a/games-rpg/mangos/Manifest b/games-rpg/mangos/Manifest index ac38669c596c..1a88f8e3dc9e 100644 --- a/games-rpg/mangos/Manifest +++ b/games-rpg/mangos/Manifest @@ -1,5 +1,6 @@ AUX 9999/mangos-realmd 712 RMD160 8f9d0d272943a6da1376d20c2bb1d36391743e69 SHA1 cb76996097c7f07b6112a74775c3f7af2bc72a7a SHA256 4b1bbbe59d70484ebd755239ae8ca470255d93e9c42c1a0ea1edae894c16f25a AUX 9999/mangos-worldd 668 RMD160 74d288b03e08d0adeebcb6c8fc04d1c85689b754 SHA1 3ff2537fcf83652508acba86f9b7ed9ee67011f4 SHA256 7b8426670786f6837cbfafef2d3559b407b5f7025eab70307c70cdf6136efd62 +EBUILD mangos-9999.1.ebuild 4112 RMD160 0c9c6e09407aa723d7f565a1f35a6f44a9574809 SHA1 18e9853f25e401875b85ca6ba0f64ae6e6dbe668 SHA256 8cedcffb15c7a676cce426a226cfc6a2d049b1fcf6291946013e49dfbe894a3c EBUILD mangos-9999.ebuild 3380 RMD160 8adc78797f017f8dff4ebecc9273956d9483bd16 SHA1 d56c3c547fe6ecdd61e8671a4e929799c4d7241e SHA256 927e25b5dc7c374322f7e5cec557f5c1b41b92b59ae8d17b1e54541233393275 -MISC ChangeLog 398 RMD160 bb3be8b3875b8489a425e3b0ce9ea6be3afcec16 SHA1 5e53d1aed25e617905af741de8f52c10019a2e7a SHA256 1f08de6f2976f079dddbcb6be574172e8570268f6b74be5e6e86ec263eb12d63 +MISC ChangeLog 572 RMD160 91417e9b822b53f4f65067d4956dedc3041b87bd SHA1 f83063d8282db96641c0290454492efaf8c1d855 SHA256 4927929b455e25146fe85b8789715f6e4da7369b5a4e0de77312ce14bc8bf8b1 MISC metadata.xml 440 RMD160 2e77620a7a39f4a262407214d7b2dc3257c66793 SHA1 3ffff8c13dab3a413af8afe1f07b52b378d15c14 SHA256 3c844f9168d52e2281e8a197769d937640e3b87b58d3ead9d9723b0b78a33172 diff --git a/games-rpg/mangos/mangos-9999.1.ebuild b/games-rpg/mangos/mangos-9999.1.ebuild new file mode 100644 index 000000000000..5c42c4c21463 --- /dev/null +++ b/games-rpg/mangos/mangos-9999.1.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/mangos-9999.1.ebuild,v 1.1 2009/02/14 07:51:02 trapni Exp $ + +# TODO: +# - make use of system's zlib/zthread ebuilds instead of mangos' packaged +# - create ebuilds for specific releases (and related patchsets, if desired) + +inherit eutils git subversion autotools + +MANGOS_REPO_URI="git://github.com/mangos/mangos.git" +SD2_REPO_URI="https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2" + +EGIT_REPO_URI="${MANGOS_REPO_URI}" +ESVN_REPO_URI="${SD2_REPO_URI}" + +DESCRIPTION="Massive Network Game Object Server" +HOMEPAGE="http://getmangos.com/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cli ra sd2 debug mysql postgres" + +RDEPEND="postgres? ( virtual/postgresql-server ) + mysql? ( >=virtual/mysql-4.1 ) + !mysql? ( !postgres? ( >=virtual/mysql-4.1 ) )" + +DEPEND="${RDEPEND} + >=sys-devel/gcc-3.2 + sys-devel/make + sys-devel/automake + sys-devel/autoconf + dev-libs/glib + dev-libs/openssl" + +## setup some env vars we use everywhere (but might change from ebuild to ebuild) +setup_env() { +# export PREFIX='/usr' +# export SYSCONFDIR='/etc/mangos' +# export LOGDIR='/var/log/mangos' + + export PREFIX='/opt/mangos' + export SYSCONFDIR='/opt/mangos/etc' + export LOGDIR='/opt/mangos/log' + + export PV_FILES='9999' +} + +pkg_setup() { + if useq mysql && useq postgres; then + eerror "Please decide with database you want to use for this ebuild by" + eerror "explicitely enabling/disabling the mysql and postgres USE-flags!" + die "Both useflags - mysql and postgres - has been specified. Choose one of them only!" + fi + enewgroup mangos + enewuser mangos +} + +## unpacks SD2 (ScriptDev2) into mangos workdir +sd2_src_unpack() { + S="${S}/src/bindings/ScriptDev2" ESVN_REPO_URI="${SD2_REPO_URI}" subversion_src_unpack || die + + local PATCHES_DIR="${S}/src/bindings/ScriptDev2/patches" + local FILE=$(ls ${PATCHES_DIR} | sort -f -r | awk "NR == 1") + + EPATCH_OPTS="-d ${S}" EPATCH_FORCE="yes" epatch "${PATCHES_DIR}/${FILE}" || die +} + +src_unpack() { + git_src_unpack + + useq sd2 && sd2_src_unpack + + cd "${S}" || die + eautoreconf --force --install || die "eautoreconf failed" +} + +src_compile() { + setup_env + local myconf + + if ! useq mysql && ! useq postgres; then + # defaulth to mysql in case nothing has been specified. + myconf="${myconf} --with-mysql" + fi + + mkdir obj || die + cd obj + + ECONF_SOURCE=.. econf \ + --with-gnu-ld \ + ${myconf} \ + --prefix=${PREFIX} \ + --sysconfdir=${SYSCONFDIR} \ + $(use_with mysql) \ + $(use_with postgres postgresql) \ + $(use_enable cli) \ + $(use_enable ra) \ + $(use_enable doc doxygen) \ + $(use_enable debug debug-info) \ + || die "econf failed" + + emake || die "emake with current options failed" +} + +src_install() { + setup_env + + cd obj + + emake DESTDIR="${D}" install || die "emake install failed" + + rm -f "${D}${PREFIX}/bin/genrevision" # not really part of mangos dist + + doinitd "${FILESDIR}/${PV_FILES}/mangos-realmd" || die + doinitd "${FILESDIR}/${PV_FILES}/mangos-worldd" || die + + dodir ${PREFIX}/share/mangos/dbc + dodir ${PREFIX}/share/mangos/maps + dodir ${PREFIX}/share/mangos/vmaps + + if useq sd2; then + local DIRS=(sql sql/Updates sql/Updates/0.0.1 sql/Updates/0.0.2) + + for dir in ${DIRS[*]}; do + dodir ${PREFIX}/share/sd2/${dir} || die + cp -r ../src/bindings/ScriptDev2/${dir}/*.sql ${D}${PREFIX}/share/sd2/${dir} || die + done + fi + + dodir ${LOGDIR} + + fowners root.mangos /etc/mangos + fowners mangos.mangos /var/log/mangos +} + +pkg_postinst() { + setup_env + + ewarn "You need to manually configure MaNGOS." + ewarn "See /etc/mangos/ for config files." + ewarn "Remember to move you maps, DBC and vmaps files to your data folder - ${PREFIX}/share/mangos/" + ewarn + ewarn "Don't forget to run SQL scripts for:" + ewarn "\t- MaNGOS databases : ${PREFIX}/share/mangos/sql" + + useq sd2 && ewarn "\t- ScriptDev2 database: /usr/share/scriptdev2/sql" + + ewarn + einfo "If you want Mangos to start automatically on boot execute :" + einfo "\t- rc-update add mangos-realmd default" + einfo "\t- rc-update add mangos-worldd default" + einfo +} |