From dd80c7c6b549ad04ee014bfc8f2589f7a5e439b6 2017-01-26 07:26:16 From: Richard H Date: 2017-01-26 07:26:16 Subject: [PATCH] add piwik www-apps/piwik to repository --- diff --git a/www-apps/piwik/Manifest b/www-apps/piwik/Manifest new file mode 100644 index 0000000000000000000000000000000000000000..9de6c82b03e4a6e4a9de64b5dacff3d105b4405e --- /dev/null +++ b/www-apps/piwik/Manifest @@ -0,0 +1,3 @@ +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 diff --git a/www-apps/piwik/files/installdoc.txt b/www-apps/piwik/files/installdoc.txt new file mode 100644 index 0000000000000000000000000000000000000000..8f3eb594d6624fd6822cb766b70de2c6b5d84785 --- /dev/null +++ b/www-apps/piwik/files/installdoc.txt @@ -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. diff --git a/www-apps/piwik/piwik-3.0.1.ebuild b/www-apps/piwik/piwik-3.0.1.ebuild new file mode 100644 index 0000000000000000000000000000000000000000..cb4a9381f8f4161f96fc18f6f3af313a8eb43025 --- /dev/null +++ b/www-apps/piwik/piwik-3.0.1.ebuild @@ -0,0 +1,44 @@ +# 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 )" + +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 +}