summaryrefslogtreecommitdiff
path: root/app-admin/yaala
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/yaala')
-rw-r--r--app-admin/yaala/Manifest7
-rw-r--r--app-admin/yaala/files/yaala-0.7.3-r1-correct-paths.patch31
-rw-r--r--app-admin/yaala/metadata.xml11
-rw-r--r--app-admin/yaala/yaala-0.7.3-r1.ebuild70
-rw-r--r--app-admin/yaala/yaala-0.7.3-r2.ebuild72
5 files changed, 191 insertions, 0 deletions
diff --git a/app-admin/yaala/Manifest b/app-admin/yaala/Manifest
new file mode 100644
index 000000000000..305284bc07e1
--- /dev/null
+++ b/app-admin/yaala/Manifest
@@ -0,0 +1,7 @@
+AUX yaala-0.7.3-r1-correct-paths.patch 1095 SHA256 b7ef7b26c1949e066088402a320786c7035759e566f7e57969203052a47ccc13 SHA512 c44bad33bf23ed089a4ddc2497cc5507c3c1927053c09ed64e39dad95400b0f0d1170da499c504240919262391f6424c5a830298e7c5a49542dd3424fabed8a7 WHIRLPOOL 4da98c2685be166fcc6a58952137c664570635662fc962778ef81c2306f496aafd2d5d847d374de0580ac21666e1a628a9fd6d2bcf20c13c98fc55166db124f4
+DIST yaala-0.7.3.tar.bz2 41528 SHA256 a2c3a2173ed2f09aae7992ed11c8257ffce631fbe1dc99c286a911f1743ff936 SHA512 30ad37c2c612f47472a840ea40aa924ffa59828455e7268dc29eb3d0276aab835b54396a29eabce88ef0e357523086b182ca1ec366b50851ecb8d2530f4eac01 WHIRLPOOL 949159522a230ce9892bd64537afc8c826dff0496f68e2dd30660ebe099d9dbd59e83cda9acbbd8501026532bd9eb02fe3da3fce3b98a7242eb269c04469d2da
+EBUILD yaala-0.7.3-r1.ebuild 1681 SHA256 0b55a150e6453714d479065aed1b0f3e7b0e7fb0641fb8bc7f06090d814a61d2 SHA512 babadaca079b88ab4a0f8c97b7dbacd36f716c3978fb81fdd8da3f0c441ed5bd05e03602d71f9dc4da2e4b7a4bdc2a3d397acd089d869627a9e6f44138841118 WHIRLPOOL 479b4b211bca1fe2dc24f33c2ec47165fd43d9d9943312daf68659e78e26a369b1669d4344796e81fa1922dafe3cfc34fff2f96332ef821bee25ed8cab84c01f
+EBUILD yaala-0.7.3-r2.ebuild 1629 SHA256 84e3faf6ac4c58a75d7410fab5198a133929927514dce57ba80a0382a84e96af SHA512 776f8319d1ff37d5f64a9b64e8a181716260c8cd8cc69391eac41ac676c59b2e53da093de45d5fcb9f0af2693565c3905d7aefbf687df81497894a7242ec300a WHIRLPOOL a54d8ced2459c74dca735c47ec847e41947240e3f58648e665e43a7da01f8786387f45f3a8b48e0a1d9a0a411700d1094d54f4c73ba843fd5b50084d6d9ac09f
+MISC ChangeLog 3432 SHA256 b384e321425da625f98ad35f834008cc7cac4cc119f3f1658927990b7adfea69 SHA512 e01e5199c20d23cee570a4b3172ad5d39cc9753e7d69062fe2a688965637ab9e2678ca9ca4cca3ccfb3e7327515edd7c978ed7474ada6a6580d3c29559b37565 WHIRLPOOL b343690761a01a649c44380658fb210b8cd5575d86246aba489392c14e89ab3a7c48c62f827946ee1f078c134220738362a0ad772820650ea585f429eeab2eb6
+MISC ChangeLog-2015 3092 SHA256 6b5fc12e2585eddc30cd3364b9c330af13ee24f5292c0b59c0bba537d14cd604 SHA512 3747f10a723b20a11698b265d08ffc58317d67e1afaed04b562af030519e0e0b3f34867d74bfefaf3e9f023eb06ed8c53b854562dd5dc0b696aad7f671523cca WHIRLPOOL 0bc1ac485ed3a454500cf3c3315b006f1f2ee2f854dde4ee4d56d8f6cb92801d797aab40037362cdb7b30de07133efd59654d1fab253e0bde8ad6d41d57030e9
+MISC metadata.xml 337 SHA256 d69e0f2a43f0943a96d59adeb12a921e769c21378982b91f686597b177b02237 SHA512 a24db5faa68733175428ecdfc9c333e5209cfdbaee9e40a23af29d188068d5400d14d60c7239d890d7e66f640c4a2023cabf9b6d131d2abe58f0e90b221119c6 WHIRLPOOL 081d787ae57dad565b17266df8b3635cd4a4d354cce3d1877f421b91227984f43c46b9ab67e69d20204760aa0bd5a31b3585b38356ac2a2d6fce44f00cb21cd7
diff --git a/app-admin/yaala/files/yaala-0.7.3-r1-correct-paths.patch b/app-admin/yaala/files/yaala-0.7.3-r1-correct-paths.patch
new file mode 100644
index 000000000000..e938abf4b802
--- /dev/null
+++ b/app-admin/yaala/files/yaala-0.7.3-r1-correct-paths.patch
@@ -0,0 +1,31 @@
+--- a/yaala 2013-04-03 15:50:03.909024254 +0200
++++ b/yaala 2013-04-03 15:49:46.545691028 +0200
+@@ -58,6 +58,6 @@
+
+ parse_argv (@ARGV);
+-read_config (get_config ('config') ? get_config ('config') : 'config');
++read_config (get_config ('config') ? get_config ('config') : '/etc/yaala/config');
+
+ unless (get_config ('input'))
+ {
+--- a/lib/Yaala/Parser/WebserverTools.pm 2013-04-03 16:04:02.665685730 +0200
++++ b/lib/Yaala/Parser/WebserverTools.pm 2013-04-03 16:04:36.729018853 +0200
+@@ -11,7 +11,7 @@
+ detect_browser detect_os extract_data);
+ @Yaala::Parser::WebserverTools::ISA = ('Exporter');
+
+-read_config ('webserver.config');
++read_config ('/etc/yaala/webserver.config');
+
+ our $referer_format = get_config ('referer_format');
+ our $localhost_name = '';
+--- a/lib/Yaala/Data/Persistent.pm 2013-04-03 16:08:06.935684219 +0200
++++ b/lib/Yaala/Data/Persistent.pm 2013-04-03 16:07:54.229017631 +0200
+@@ -18,5 +18,5 @@
+ our $HAVE_STORABLE = 0;
+ our $WANT_PERSISTENCY = 1;
+ our $DATA_STRUCTURE = {};
+-our $FILENAME = 'persistency.data';
++our $FILENAME = '/var/lib/yaala/persistency.data';
+
+
diff --git a/app-admin/yaala/metadata.xml b/app-admin/yaala/metadata.xml
new file mode 100644
index 000000000000..893290974a28
--- /dev/null
+++ b/app-admin/yaala/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+ Yet Another Log Analyzer
+ </longdescription>
+ <use>
+ <flag name="storable">Support for persistence of Perl data structures.</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-admin/yaala/yaala-0.7.3-r1.ebuild b/app-admin/yaala/yaala-0.7.3-r1.ebuild
new file mode 100644
index 000000000000..e974cd81bf30
--- /dev/null
+++ b/app-admin/yaala/yaala-0.7.3-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Yet Another Log Analyzer"
+HOMEPAGE="http://www.yaala.org/"
+SRC_URI="http://www.${PN}.org/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="gd storable"
+
+RDEPEND="dev-lang/perl
+ gd? ( dev-perl/GDGraph )
+ storable? ( virtual/perl-Storable )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PF}-correct-paths.patch
+
+ sed -i "s:/var/lib/${PN}:/usr/bin:g" packaging/${PN}.cron || die 'Failed to correct path in cron file.'
+}
+
+src_install() {
+ dobin ${PN}
+
+ # Switch to ^y when we switch to EAPI=6.
+ local mod="Y${PN:1}"
+
+ exeinto /usr/lib64/perl5/vendor_perl/${mod}/
+ doexe lib/${mod}/*.pm
+
+ exeinto /usr/lib64/perl5/vendor_perl/${mod}/Data/
+ doexe lib/${mod}/Data/*.pm
+
+ exeinto /usr/lib64/perl5/vendor_perl/${mod}/Parser/
+ doexe lib/${mod}/Parser/*.pm
+
+ exeinto /usr/lib64/perl5/vendor_perl/${mod}/Report/
+ doexe lib/${mod}/Report/*.pm
+
+ dodoc AUTHORS CHANGELOG README{,.persistency,.selections}
+
+ insinto /usr/share/${PN}
+ doins -r reports
+ doins -r sample_configs
+
+ insinto /etc/${PN}
+ doins {,webserver.}config
+
+ insinto /etc/logrotate.d
+ doins packaging/${PN}.cron
+
+ if use storable ; then
+ dodir /var/lib/${PN}
+ keepdir /var/lib/${PN}
+ chmod 777 /var/lib/${PN}
+ fi
+}
+
+pkg_postinst() {
+ ewarn "It is required that you change the configuration files in /etc/${PN}"
+ ewarn "before you run \`yaala ...\`, otherwise it will refuse to execute because"
+ ewarn "Setup.pm checks whether the variable 'select' has been unquoted and set."
+ echo ""
+ elog "Example configuration files can be found in /usr/share/${PN}."
+}
diff --git a/app-admin/yaala/yaala-0.7.3-r2.ebuild b/app-admin/yaala/yaala-0.7.3-r2.ebuild
new file mode 100644
index 000000000000..9265cdda0f52
--- /dev/null
+++ b/app-admin/yaala/yaala-0.7.3-r2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit eutils perl-module
+
+DESCRIPTION="Yet Another Log Analyzer"
+HOMEPAGE="http://www.yaala.org/"
+SRC_URI="http://www.${PN}.org/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gd"
+
+RDEPEND="
+ dev-lang/perl
+ virtual/perl-Storable
+ gd? ( dev-perl/GDGraph )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.7.3-r1-correct-paths.patch
+
+ sed -i "s:/var/lib/${PN}:/usr/bin:g" packaging/${PN}.cron || die 'Failed to correct path in cron file.'
+}
+
+src_install() {
+ dobin ${PN}
+
+ # Switch to ^y when we switch to EAPI=6.
+ local mod="Y${PN:1}"
+
+ perl_set_version
+
+ insinto "${VENDOR_LIB}/${mod}/"
+ doins lib/${mod}/*.pm
+
+ insinto "${VENDOR_LIB}/${mod}/Data/"
+ doins lib/${mod}/Data/*.pm
+
+ insinto "${VENDOR_LIB}/${mod}/Parser/"
+ doins lib/${mod}/Parser/*.pm
+
+ insinto "${VENDOR_LIB}/${mod}/Report/"
+ doins lib/${mod}/Report/*.pm
+
+ dodoc AUTHORS CHANGELOG README{,.persistency,.selections}
+
+ insinto /usr/share/${PN}
+ doins -r reports
+ doins -r sample_configs
+
+ insinto /etc/${PN}
+ doins {,webserver.}config
+
+ insinto /etc/logrotate.d
+ doins packaging/${PN}.cron
+
+ keepdir /var/lib/${PN}
+ fperms 777 /var/lib/${PN}
+}
+
+pkg_postinst() {
+ ewarn "It is required that you change the configuration files in /etc/${PN}"
+ ewarn "before you run \`yaala ...\`, otherwise it will refuse to execute because"
+ ewarn "Setup.pm checks whether the variable 'select' has been unquoted and set."
+ echo ""
+ elog "Example configuration files can be found in /usr/share/${PN}."
+}