summaryrefslogtreecommitdiff
path: root/app-admin/yaala
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-10-13 22:11:03 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-10-13 22:11:03 +0100
commit2929788def9a92c1eb237eed93fbdb0c02838bbf (patch)
tree166b01591366d3479084ea774c888bc84aaa8d4f /app-admin/yaala
parentab499d7cfb9ad23e83cf7a4f5052bdf1b4c42030 (diff)
Revert "gentoo resync : 13.10.2019"
This reverts commit ab499d7cfb9ad23e83cf7a4f5052bdf1b4c42030.
Diffstat (limited to 'app-admin/yaala')
-rw-r--r--app-admin/yaala/Manifest4
-rw-r--r--app-admin/yaala/files/yaala-0.7.3-r1-correct-paths.patch31
-rw-r--r--app-admin/yaala/metadata.xml8
-rw-r--r--app-admin/yaala/yaala-0.7.3-r2.ebuild72
4 files changed, 115 insertions, 0 deletions
diff --git a/app-admin/yaala/Manifest b/app-admin/yaala/Manifest
new file mode 100644
index 000000000000..ce711583c960
--- /dev/null
+++ b/app-admin/yaala/Manifest
@@ -0,0 +1,4 @@
+AUX yaala-0.7.3-r1-correct-paths.patch 1095 BLAKE2B 5c7a232836bd19ffa678db3c2d522f9d831535e3dc086e014fc45fe233ae9e20aa1a69359ccc2e913b1b2cd66ba29e053957ed32aabdb38948a57e55b485796e SHA512 c44bad33bf23ed089a4ddc2497cc5507c3c1927053c09ed64e39dad95400b0f0d1170da499c504240919262391f6424c5a830298e7c5a49542dd3424fabed8a7
+DIST yaala-0.7.3.tar.bz2 41528 BLAKE2B 527f691730cd50f60137bce014958423bea4bf007891ac0a6fa0888099da7678661612369d29b41683de81a25bc92163f0d9f413e5a11e9f86c273e0e866ca8e SHA512 30ad37c2c612f47472a840ea40aa924ffa59828455e7268dc29eb3d0276aab835b54396a29eabce88ef0e357523086b182ca1ec366b50851ecb8d2530f4eac01
+EBUILD yaala-0.7.3-r2.ebuild 1623 BLAKE2B 606c3b8b9e69c8b4e4d2887ebcc38ed3523bafd6e87bbe2d7ea52523fd02fecafc0da548dd7a8f0b62fa102e3d6e3d38f5f5cf2b3316fad6290ffbead848658a SHA512 63ccbeedf296fbbea7423dddf5ae04b38855dadb341b8483aae17df9932489fe0b940680c3a43861e8843e296e155817bfc46dd9837fa1317b240a6fd80a7eec
+MISC metadata.xml 238 BLAKE2B fbb26a50a5cd4f4478d909e0aa54bc63c07c072ad947198f61296cd359913b0d7e34fcc3ca64b64db0ac82ed4930d27d7ff934f5134e0a1fc4f2b1eac8c02651 SHA512 af9c2c7ac7e822d72151c5fd3ab45d2f6d88284a6d3e4a845df488c1a2938084ae7baf1fb3d907292d4e672e6c1d6e636a6ea554316bf53e971e2c81a11a3e1b
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..1f0914e3ecd6
--- /dev/null
+++ b/app-admin/yaala/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
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..e11eeb4dc61f
--- /dev/null
+++ b/app-admin/yaala/yaala-0.7.3-r2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2019 Gentoo Authors
+# 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}."
+}