diff options
author | Jakub Moc <jakub@gentoo.org> | 2008-02-19 11:36:20 +0000 |
---|---|---|
committer | Jakub Moc <jakub@gentoo.org> | 2008-02-19 11:36:20 +0000 |
commit | ffb885a3ffd4d9e51b7f4ac3293ae846e07020bc (patch) | |
tree | 26643effeafc33362210c78155e86283aaf53e4d /www-apps/phpusertrack/phpusertrack-0.7.0.ebuild | |
parent | www-apps/prado: Fix versioning scheme (diff) | |
download | webapps-experimental-ffb885a3ffd4d9e51b7f4ac3293ae846e07020bc.tar.gz webapps-experimental-ffb885a3ffd4d9e51b7f4ac3293ae846e07020bc.tar.bz2 webapps-experimental-ffb885a3ffd4d9e51b7f4ac3293ae846e07020bc.zip |
www-apps/phpusertrack: New ebuild, bug Bug 196870
svn path=/experimental/; revision=811
Diffstat (limited to 'www-apps/phpusertrack/phpusertrack-0.7.0.ebuild')
-rw-r--r-- | www-apps/phpusertrack/phpusertrack-0.7.0.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/www-apps/phpusertrack/phpusertrack-0.7.0.ebuild b/www-apps/phpusertrack/phpusertrack-0.7.0.ebuild new file mode 100644 index 0000000..b63a9f6 --- /dev/null +++ b/www-apps/phpusertrack/phpusertrack-0.7.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit webapp depend.php + +PHPUSERTRACK_PHP_FEATURES="session mysqli" + +MY_PN="phpUserTrack" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="A site statistic collection and analyzation program written in PHP." +SRC_URI="http://phpusertrack.com/downloads/${MY_P}.tar.gz" +HOMEPAGE="http://www.phpusertrack.com/" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc sparc ~x86" +IUSE="geoip" + +DEPEND="" +RDEPEND="virtual/httpd-cgi + dev-php/PEAR-MDB2_Driver_mysqli" + # geoip? ( dev-php/PEAR-Net_GeoIP ) + +need_php_httpd + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + local flags="session" # mysqli already checked for by dev-php/PEAR-MDB2_Driver_mysqli + if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ + ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then + die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" + fi + webapp_pkg_setup +} + +src_install () { + webapp_src_preinst + + dodoc ChangeLog + rm -f ChangeLog INSTALL + + mv conf/conf.php.dist conf/conf.php + cp -r . "${D}/${MY_HTDOCSDIR}" + + webapp_serverowned "${MY_HTDOCSDIR}"/templates_c + webapp_serverowned "${MY_HTDOCSDIR}"/cache + webapp_configfile "${MY_HTDOCSDIR}"/conf/conf.php + webapp_sqlscript mysql scripts/mysql/create_database.sql + + webapp_src_install +} |