Changeset - dd80c7c6b549
[Not reviewed]
0 0 3
Chel Sea (chain) - 7 years ago 2017-01-26 07:26:16
chain@rpgfiction.net
add piwik www-apps/piwik to repository
3 files changed with 69 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www-apps/piwik/Manifest
Show inline comments
 
new file 100644
 
AUX installdoc.txt 710 SHA256 3f2845e7ffc353d3530943ccbb873249e4e1b8d0e8d4d8caf828477cd04108df SHA512 11bfaf0b3beb813b02142bef65a5a1735f01b39c080eae67c6fd553661eba64b386d54cffb7a091babf37177370a2f3c12cde9d5fde00ad754f23c701fba5baa WHIRLPOOL 75bea37dfa5a55b71116e03f28bc2a5bb79c70812fd6876594026ef7af22ce2f3ac5c3ae9f82f46033e8e5bef299afb5a862eb353871ab0985c4d7897f0df0d9
 
DIST piwik-3.0.1.zip 17893724 SHA256 400ca3cc48299092448b55b68c762e168c0ef872aef9b0a8af9fa3e5c6022248 SHA512 7a4c267b8c9b68c6012b1cd0ed6d866e3b691ebb7ca0ea47f6933f6526b33380da0a2841f6af1821bc9fa9844f74cceefbbefb4148a215831906c9e55079d0e1 WHIRLPOOL cce154d4602a2bf4f45363dbdfd175d08e5ddce4f399ba342a5942d1f32e708f198d8004ab38354bae5593d8a067401c0b77ecfe296306dd327a4bc4edbc607b
 
EBUILD piwik-3.0.1.ebuild 1103 SHA256 722fa45e96a3e7767dcddd1d53dab45597486eccba83ffd4a99cc9f491904375 SHA512 7f261c1f32cd347d9c2749869274bac8edbfc01e43e18417605c6ce572a36c3651fbfe30c26843f94f06633416bd91dd4f4bf08eedf862ae924dc796699fd897 WHIRLPOOL d0d7d2a514f555ef3a3e976cb838fddb1442572ea1a28eb6c3f3eab7828b40dca257cc4b1854195a9db11ccf2a89e8dab4a36c479f0192476b223b4e6dcc3183
www-apps/piwik/files/installdoc.txt
Show inline comments
 
new file 100644
 
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.
www-apps/piwik/piwik-3.0.1.ebuild
Show inline comments
 
new file 100644
 
# 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}.zip"
 

	
 
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 (0 inline, 0 general)