diff options
author | Christian Parpart <trapni@gentoo.org> | 2009-02-14 14:14:25 +0000 |
---|---|---|
committer | Christian Parpart <trapni@gentoo.org> | 2009-02-14 14:14:25 +0000 |
commit | e4bf66f2577317b0a1588c28c98daf46bd728a2a (patch) | |
tree | de1f783f87c273a5daa744480c8204556f7ccf3a /games-rpg/mangos | |
parent | Dropping ebuild, fixes bug #258961 (diff) | |
download | gentoo-2-e4bf66f2577317b0a1588c28c98daf46bd728a2a.tar.gz gentoo-2-e4bf66f2577317b0a1588c28c98daf46bd728a2a.tar.bz2 gentoo-2-e4bf66f2577317b0a1588c28c98daf46bd728a2a.zip |
made ebuild more admin-friendly, include ad tool to distribution, and other minor (typo) fixes
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'games-rpg/mangos')
-rw-r--r-- | games-rpg/mangos/ChangeLog | 7 | ||||
-rwxr-xr-x | games-rpg/mangos/files/9999/mangos-realmd | 10 | ||||
-rwxr-xr-x | games-rpg/mangos/files/9999/mangos-worldd | 10 | ||||
-rw-r--r-- | games-rpg/mangos/mangos-9999.1.ebuild | 47 |
4 files changed, 47 insertions, 27 deletions
diff --git a/games-rpg/mangos/ChangeLog b/games-rpg/mangos/ChangeLog index f81b2729852b..e8591d6410c6 100644 --- a/games-rpg/mangos/ChangeLog +++ b/games-rpg/mangos/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-rpg/mangos # 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 $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/ChangeLog,v 1.3 2009/02/14 14:14:25 trapni Exp $ + + 14 Feb 2009; Christian Parpart <trapni@gentoo.org> + files/9999/mangos-realmd, files/9999/mangos-worldd, mangos-9999.1.ebuild: + made ebuild more admin-friendly, include ad tool to distribution, and + other minor (typo) fixes *mangos-9999.1 (14 Feb 2009) diff --git a/games-rpg/mangos/files/9999/mangos-realmd b/games-rpg/mangos/files/9999/mangos-realmd index cb1dc11deffb..157a549b7749 100755 --- a/games-rpg/mangos/files/9999/mangos-realmd +++ b/games-rpg/mangos/files/9999/mangos-realmd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/files/9999/mangos-realmd,v 1.1 2008/10/04 07:38:26 trapni Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/files/9999/mangos-realmd,v 1.2 2009/02/14 14:14:25 trapni Exp $ depend() { need net @@ -10,14 +10,14 @@ depend() { start() { ebegin "Starting MaNGOS Login Server (realmd)" - start-stop-daemon --start --background -c mangos --exec /usr/share/mangos/bin/mangos-realmd \ - --make-pidfile --pidfile /var/run/mangos/realm.pid -- -c /etc/mangos/realmd.conf + start-stop-daemon --start --background -c mangos --exec /opt/mangos/bin/mangos-realmd \ + --make-pidfile --pidfile /var/run/mangos-realmd.pid -- -c /opt/mangos/realmd.conf eend $? } stop() { ebegin "Stopping MaNGOS Login Server (realmd)" - start-stop-daemon --stop -c mangos --exec /usr/share/mangos/bin/mangos-realmd \ - --pidfile /var/run/mangos/realm.pid + start-stop-daemon --stop -c mangos --exec /opt/mangos/bin/mangos-realmd \ + --pidfile /var/run/mangos-realmd.pid eend $? } diff --git a/games-rpg/mangos/files/9999/mangos-worldd b/games-rpg/mangos/files/9999/mangos-worldd index d7e6143a7d96..accc0bcfb3f6 100755 --- a/games-rpg/mangos/files/9999/mangos-worldd +++ b/games-rpg/mangos/files/9999/mangos-worldd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/files/9999/mangos-worldd,v 1.1 2008/10/04 07:38:26 trapni Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/files/9999/mangos-worldd,v 1.2 2009/02/14 14:14:25 trapni Exp $ depend() { need net @@ -10,14 +10,14 @@ depend() { start() { ebegin "Starting MaNGOS server" - start-stop-daemon --start --background -c mangos --pidfile /var/run/mangos/world.pid \ - --make-pidfile --exec /usr/bin/mangos-worldd -- -c /etc/mangos/mangosd.conf + start-stop-daemon --start --background -c mangos --pidfile /var/run/mangos-world.pid \ + --make-pidfile --exec /opt/mangos/bin/mangos-worldd -- -c /opt/mangos/etc/mangosd.conf eend $? } stop() { ebegin "Stopping MaNGOS server" - start-stop-daemon --stop -c mangos --exec /usr/share/mangos/bin/mangos-worldd \ - --pidfile /var/run/mangos/world.pid + start-stop-daemon --stop -c mangos --exec /opt/mangos/bin/mangos-worldd \ + --pidfile /var/run/mangos-world.pid eend $? } diff --git a/games-rpg/mangos/mangos-9999.1.ebuild b/games-rpg/mangos/mangos-9999.1.ebuild index 5c42c4c21463..003728855202 100644 --- a/games-rpg/mangos/mangos-9999.1.ebuild +++ b/games-rpg/mangos/mangos-9999.1.ebuild @@ -1,6 +1,6 @@ # 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 $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/mangos-9999.1.ebuild,v 1.2 2009/02/14 14:14:25 trapni Exp $ # TODO: # - make use of system's zlib/zthread ebuilds instead of mangos' packaged @@ -102,6 +102,10 @@ src_compile() { || die "econf failed" emake || die "emake with current options failed" + + cd "${S}/contrib/extractor" || die + cmake . || die + emake || die "failed to run emake for extractor" } src_install() { @@ -111,28 +115,33 @@ src_install() { emake DESTDIR="${D}" install || die "emake install failed" + dodir "${PREFIX}/share" + mv "${D}/usr/share/mangos" "${D}${PREFIX}/share/mangos" || die 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 + exeinto "${PREFIX}/bin" + doexe "${S}/contrib/extractor/ad" || die + + keepdir ${PREFIX}/share/mangos/dbc + keepdir ${PREFIX}/share/mangos/maps + keepdir ${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 + dodir "${PREFIX}/share/sd2/${dir}" || die + cp -r "../src/bindings/ScriptDev2/${dir}/*.sql" "${D}${PREFIX}/share/sd2/${dir}" || die done fi - dodir ${LOGDIR} + keepdir ${LOGDIR} - fowners root.mangos /etc/mangos - fowners mangos.mangos /var/log/mangos + fowners root.mangos ${SYSCONFDIR} + fowners mangos.mangos ${LOGDIR} } pkg_postinst() { @@ -140,16 +149,22 @@ pkg_postinst() { 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 "Remember to move your 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 "\t- MaNGOS databases: ${PREFIX}/share/mangos/sql" + useq sd2 && ewarn "\t- ScriptDev2 database: ${PREFIX}/share/sd2/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 "If you want Mangos to start automatically on boot execute:" + einfo "\trc-update add mangos-realmd default" + einfo "\trc-update add mangos-worldd default" einfo + + ewarn + einfo "Next steps for you may be as the following example:" + einfo "\t${PREFIX}/bin/ad -i/path/to/wow/client -o${PREFIX}/share/mangos" + # TODO replace these points with actual commands, and provide helpful URLs + einfo "\t- initialize database schema" + einfo "\t- populate database" } |