This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

New package: www-apps/piwik, Gentoo #359301

  • Loading branch information...
11mariom committed Feb 17, 2012
1 parent e33b048 commit 181010e27f06bdcee21eb13f95bcb5111ee0a9b1
Showing with 71 additions and 0 deletions.
  1. +3 −0 www-apps/piwik/Manifest
  2. +22 −0 www-apps/piwik/files/installdoc.txt
  3. +46 −0 www-apps/piwik/piwik-1.7.ebuild
View
@@ -0,0 +1,3 @@
+AUX installdoc.txt 710 RMD160 a7e823075754f41b67ef0b1191ff5a8175a2f0a0 SHA1 4ea70e5fc82afba1831eb314fd49be5854ed0d80 SHA256 3f2845e7ffc353d3530943ccbb873249e4e1b8d0e8d4d8caf828477cd04108df
+DIST piwik-1.7.tar.gz 4598025 RMD160 9a2294e620d8ae71c382a2e8e8bcc3db1800557e SHA1 c0205f7d018d8dc33c01e511da3b743a8a0e414c SHA256 221e04df4d26bf0881b06242ba179d7ce01b91bbc5f75b2b48d87388e9dfcb93
+EBUILD piwik-1.7.ebuild 1125 RMD160 a2f5fe4d08f78c888bec14f8ff1dc743e4e9490c SHA1 cf37a4a1c2541b55106cf725c764bc7f9e57a3db SHA256 99065bcdbf9d64747b760224a1c53eda72dd8a6c490994a5c7ed0ae7f4455e3b
@@ -0,0 +1,22 @@
+To setup Piwik navigate to:
+http://${VHOST_HOSTNAME}/
+
+Install and upgrade instructions can be found here:
+http://piwik.org/docs/installation-optimization/
+
+For general information please read:
+http://piwik.org/docs/
+
+To setup a MySQL database modify the following SQL:
+CREATE USER 'piwik'@'%' IDENTIFIED BY 'very_secret_password';
+
+GRANT USAGE ON * . * TO 'piwik'@'%' IDENTIFIED BY 'very_secret_password' WITH
+MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0
+MAX_USER_CONNECTIONS 0 ;
+
+CREATE DATABASE IF NOT EXISTS `piwik` ;
+
+GRANT ALL PRIVILEGES ON `piwik` . * TO 'piwik'@'%';
+
+You might want to retighten permissions on the config/ directory once you have
+completed the setup.
@@ -0,0 +1,46 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+EAPI=2
+
+inherit webapp depend.php
+
+DESCRIPTION="Piwik is a downloadable, open source (GPL licensed) real time web analytics software program."
+HOMEPAGE="http://www.piwik.org/"
+SRC_URI="http://builds.piwik.org/piwik-${PV}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/php[pdo,ctype,xml] || ( <dev-lang/php-5.3[spl,reflection] >=dev-lang/php-5.3 )"
+
+need_httpd_cgi
+need_php_httpd
+
+pkg_setup() {
+ webapp_pkg_setup
+}
+
+src_install() {
+ webapp_src_preinst
+
+ insinto "${MY_HTDOCSDIR}"
+ dodir "${MY_HTDOCSDIR}/"{tmp,config}
+ doins -r piwik/*
+
+ webapp_serverowned -R "${MY_HTDOCSDIR}/"{tmp,config}
+ webapp_postinst_txt en "${FILESDIR}"/installdoc.txt
+ webapp_configfile "${MY_HTDOCSDIR}/config/"{global.ini.php,manifest.inc.php}
+ webapp_src_install
+ fperms -R 0660 "${MY_HTDOCSDIR}/"{tmp,config}
+}
+
+pkg_postinst() {
+ elog "Install and upgrade instructions can be found here:"
+ elog " http://piwik.org/docs/installation-optimization/"
+ webapp_pkg_postinst
+}

0 comments on commit 181010e

Please sign in to comment.