diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-06-24 03:08:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-06-24 03:08:27 +0000 |
commit | a48a67cce48eaae9879c8ffbf2b0f34941ae9894 (patch) | |
tree | afe2f533c0ab314666649e300244a6de95878399 /games-server | |
parent | webapp seems to be stable now (diff) | |
download | historical-a48a67cce48eaae9879c8ffbf2b0f34941ae9894.tar.gz historical-a48a67cce48eaae9879c8ffbf2b0f34941ae9894.tar.bz2 historical-a48a67cce48eaae9879c8ffbf2b0f34941ae9894.zip |
support webapp stuff #27805
Diffstat (limited to 'games-server')
-rw-r--r-- | games-server/hlstats/ChangeLog | 8 | ||||
-rw-r--r-- | games-server/hlstats/Manifest | 16 | ||||
-rw-r--r-- | games-server/hlstats/files/digest-hlstats-1.20-r1 (renamed from games-server/hlstats/files/digest-hlstats-1.20) | 0 | ||||
-rw-r--r-- | games-server/hlstats/hlstats-1.20-r1.ebuild (renamed from games-server/hlstats/hlstats-1.20.ebuild) | 27 |
4 files changed, 37 insertions, 14 deletions
diff --git a/games-server/hlstats/ChangeLog b/games-server/hlstats/ChangeLog index a61a4d47e6b8..8a0e3bdd6e2a 100644 --- a/games-server/hlstats/ChangeLog +++ b/games-server/hlstats/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-server/hlstats # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/hlstats/ChangeLog,v 1.4 2004/06/21 17:24:38 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/hlstats/ChangeLog,v 1.5 2004/06/24 03:08:27 vapier Exp $ + +*hlstats-1.20-r1 (23 Jun 2004) + + 23 Jun 2004; Mike Frysinger <vapier@gentoo.org> +hlstats-1.20-r1.ebuild, + -hlstats-1.20.ebuild: + Use webapps #27805 21 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> hlstats-1.02.ebuild: clean older ebuild diff --git a/games-server/hlstats/Manifest b/games-server/hlstats/Manifest index 088d88c1c314..8372eebc01ff 100644 --- a/games-server/hlstats/Manifest +++ b/games-server/hlstats/Manifest @@ -1,6 +1,16 @@ -MD5 3023fab00fec0d8cf3a755ba5584e792 ChangeLog 551 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 eb91833a2524ddd9df673c5ea956b45e ChangeLog 701 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 -MD5 f42c8307c5b89a1f5f3bb7d7305211dc hlstats-1.20.ebuild 2332 +MD5 83d8f29b1ad498ce55e3b2757f4bb7f8 hlstats-1.20-r1.ebuild 2477 +MD5 2db304e98fb5a2fcd9ac87831a987b47 files/digest-hlstats-1.20-r1 65 MD5 819787fd7ea1413af32af58c51ede1a5 files/hlstats 120 MD5 1365bcb4c00f04cecaffe201f56e0e8d files/hlstats.rc 509 -MD5 2db304e98fb5a2fcd9ac87831a987b47 files/digest-hlstats-1.20 65 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.9.8 (GNU/Linux) + +iD8DBQFA2kW3HTu7gpaalycRAse7AKDYLXKx2l3UjTfr0N4VRgPAIRkLbgCg6YuW +JMu6TOO3KLlrrLp3ROirwwM= +=JCWw +-----END PGP SIGNATURE----- diff --git a/games-server/hlstats/files/digest-hlstats-1.20 b/games-server/hlstats/files/digest-hlstats-1.20-r1 index 9f103b801f60..9f103b801f60 100644 --- a/games-server/hlstats/files/digest-hlstats-1.20 +++ b/games-server/hlstats/files/digest-hlstats-1.20-r1 diff --git a/games-server/hlstats/hlstats-1.20.ebuild b/games-server/hlstats/hlstats-1.20-r1.ebuild index e4d9dbcebb66..d3a36a3431e5 100644 --- a/games-server/hlstats/hlstats-1.20.ebuild +++ b/games-server/hlstats/hlstats-1.20-r1.ebuild @@ -1,15 +1,14 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/hlstats/hlstats-1.20.ebuild,v 1.3 2004/05/27 04:46:02 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/hlstats/hlstats-1.20-r1.ebuild,v 1.1 2004/06/24 03:08:27 vapier Exp $ -inherit games +inherit games webapp DESCRIPTION="real-time player rankings/statistics for half-life" HOMEPAGE="http://www.hlstats.org/" SRC_URI="mirror://sourceforge/hlstats/${P}.tar.gz" LICENSE="GPL-2" -SLOT="0" KEYWORDS="x86" IUSE="" @@ -19,20 +18,26 @@ RDEPEND="dev-lang/perl net-www/apache dev-php/mod_php" +pkg_setup() { + webapp_pkg_setup + games_pkg_setup +} + src_install() { + webapp_src_preinst + dodoc ChangeLog insinto ${GAMES_LIBDIR}/${PN} doins *.{pm,plib} - insinto ${GAMES_DATADIR}/${PN} doins *.sql sed -i \ -e "s:\./hlstats\.conf:${GAMES_SYSCONFDIR}/hlstats.conf:" \ -e "/^\$opt_libdir =/s:=.*:=\"${GAMES_LIBDIR}/${PN}/\";:" \ - *.pl - dogamesbin *.pl + *.pl || die "sed pl failed" + dogamesbin *.pl || die "dogamesbin failed" dobin ${FILESDIR}/hlstats dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /usr/bin/hlstats exeinto /etc/init.d @@ -41,10 +46,11 @@ src_install() { insinto ${GAMES_SYSCONFDIR} doins hlstats.conf - dodir /home/httpd/htdocs - cp -r hlstats.php hlstatsimg hlstatsinc ${D}/home/httpd/htdocs/ + dodir ${MY_HTDOCSDIR} + cp -r hlstats.php hlstatsimg hlstatsinc ${D}/${MY_HTDOCSDIR}/ + webapp_serverowned ${MY_HTDOCSDIR} - #prepgamesdirs # let apache own the files + webapp_src_install } pkg_postinst() { @@ -54,7 +60,7 @@ pkg_postinst() { einfo " 3. \`mysql hlstats < ${GAMES_DATADIR}/${PN}/gamesupport_GAME.sql\`" einfo " so if you want cstrike support, replace 'GAME' with 'cstrike'" einfo " 4. Edit ${GAMES_SYSCONFDIR}/hlstats.conf" - einfo " 5. Edit /home/httpd/htdocs/hlstats.php" + einfo " 5. Edit ${MY_HTDOCSDIR}/hlstats.php" einfo " 6. \`rc-update add hlstats default\`" einfo " 7. \`/etc/init.d/hlstats start\`" einfo " 8. Edit the cfg files of the game servers you want to track ..." @@ -68,4 +74,5 @@ pkg_postinst() { einfo " 10. Finally ! Start up the server and after a while goto" einfo " http://1.2.3.4/hlstats.php" einfo " (replace 1.2.3.4 with the IP of the server hlstats is running on)" + webapp_pkg_postinst } |