# (#648582). Removal in a month.
app-doc/mkdoxy
-# Pacho Ramos <pacho@gentoo.org> (17 Jun 2018)
-# Not compatible with recent PHP, upstream dead for ages (#650870, #650934)
-#, removal in a month.
-www-apps/openwebstats
-
# Pacho Ramos <pacho@gentoo.org> (17 Jun 2018)
# Upstream dead, security vulnerable (#650936). Removal in a month.
www-apps/phprojekt
+++ /dev/null
-DIST openwebstats-1.1.tar.gz 163477 BLAKE2B 1fde6928746e6e43b9713eae02078d50567753040966403e736936131ab1c4f1eaa7827848d873bc17cf346080365689a02559f95a3d35f6ac9541c597ecc6af SHA512 882a8aa672703e978282550437ea9944bc44c424c3a157acd10f35a42681721de4bd5dde60aa9e57e15d3b986b1b4d1c9f0e4adf0360a0d569aa46720b4e2eec
+++ /dev/null
-<?php
-################################################################################
-## OpenWebStats Version 1.0 ##
-## ##
-## (c)2005 mathews_dm - <Davidmathews@open-creations.com> ##
-## ##
-################################################################################
-## Please read the README! ##
-################################################################################
-
-##########################################
-## Define Globals for OpenWebStats ##
-##########################################
-global $openstats_web_dir, $databasename;
-
-if (!defined("logformat_combined"))
-{
- define("logformat_combined", "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"", TRUE);
- define("logformat_combined_vhost", "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"", TRUE);
- define("logformat_common" , "%h %l %u %t \"%r\" %>s %b", TRUE);
- define("logformat_referer" , "%{Referer}i -> %U", TRUE);
- define("logformat_agent" , "%{User-agent}i", TRUE);
-}
-
-##########################################
-## Database information below here ##
-##########################################
-$databaselocation = 'localhost';
-$databaseport = '3306';
-$databasename = 'ows';
-$databaseuser = 'ows';
-$databasepass = 'pass';
-$db_connect = mysql_connect($databaselocation, $databaseuser, $databasepass);
-mysql_select_db($databasename, $db_connect);
-
-##########################################
-## Logfile and Logformat are for the db ##
-## import in the class_apache file. ##
-## $openstatsdir is the install dir on ##
-## your system. ##
-##########################################
-$openstats_web_dir = '/openwebstats'; // Remember to include the stats dir
-$logfile = "/var/log/apache2/access_log";
-$logformat = logformat_combined; //example: $logformat = logformat_combined_vhost;
-
-?>
+++ /dev/null
-------------------------------------------------------------------------
-INSTALLATION
-
-The ebuild installs most parts of openwebstats automatically, but
-you will have to create a database for the apache log records.
-
-You can do this using the following commands as the mysql root user:
-
-> mysql -u root -p -e "CREATE DATABASE ows;
- GRANT CREATE, SELECT, INSERT, UPDATE, DELETE ON ows.* TO 'ows'@'localhost'
- IDENTIFIED BY 'pass';
- FLUSH PRIVILEGES;"
-
-Please do not forget to choose a password that is more sensible than
-'pass' ;)
-
-Now as user "ows":
-
-> mysql -u ows -ppass ows < ${MY_SQLSCRIPTSDIR}/mysql/${PV}_create.sql
-
-You also need to set the MySQL passwords for the ows user in
-the ${MY_INSTALLDIR}/config.php file
-so that openwebstats can access the database.
-
-If you use a special logfile format for your web server you should
-also modify the log format in the config.php file.
-
-Make sure your access_log is readable if you want to use the update
-function of the web frontend.
-
-> chmod 644 /var/log/apache2/access_log
-
-Now you can go to http://${VHOST_HOSTNAME}/${VHOST_APPDIR} and use the
-application.
-
-------------------------------------------------------------------------
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>web-apps@gentoo.org</email>
- <name>Gentoo Webapps</name>
- </maintainer>
- <upstream>
- <remote-id type="sourceforge">openwebstats</remote-id>
- </upstream>
-</pkgmetadata>
+++ /dev/null
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit webapp
-
-DESCRIPTION="PHP stats app that reads Apache logs and imports the data into a MySQL database"
-HOMEPAGE="http://openwebstats.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-KEYWORDS="~x86"
-IUSE=""
-
-DEPEND="dev-lang/php"
-
-S=${WORKDIR}/${PN}
-
-src_install() {
- webapp_src_preinst
-
- dodoc README
-
- ## Main application
- cp -r . "${D}${MY_HTDOCSDIR}"
- cp "${FILESDIR}/config.php" "${D}${MY_HTDOCSDIR}/"
-
- ## Docs installed, remove unnecessary files
- rm -f "${D}${MY_HTDOCSDIR}/README"
- rm -f "${D}${MY_HTDOCSDIR}/CHANGELOG"
-
- # Database creation
- webapp_sqlscript mysql "${D}${MY_HTDOCSDIR}/openwebstats.sql"
-
- # Postinstall instructions
- webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
-
- webapp_src_install
-}