Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/yaala/
Date: Sun, 22 Nov 2015 22:36:21
Message-Id: 1448231750.7d1a41e3457fd915821d4121461dac92f03577a8.dilfridge@gentoo
1 commit: 7d1a41e3457fd915821d4121461dac92f03577a8
2 Author: Andreas K. Huettel (dilfridge) <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 22 22:35:50 2015 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 22 22:35:50 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d1a41e3
7
8 app-admin/yaala: Major QA cleanup, includes the fix for bug 565428
9
10 Package-Manager: portage-2.2.25
11
12 app-admin/yaala/yaala-0.7.3-r2.ebuild | 73 +++++++++++++++++++++++++++++++++++
13 1 file changed, 73 insertions(+)
14
15 diff --git a/app-admin/yaala/yaala-0.7.3-r2.ebuild b/app-admin/yaala/yaala-0.7.3-r2.ebuild
16 new file mode 100644
17 index 0000000..6028584
18 --- /dev/null
19 +++ b/app-admin/yaala/yaala-0.7.3-r2.ebuild
20 @@ -0,0 +1,73 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +PERL_EXPORT_PHASE_FUNCTIONS=no
28 +inherit eutils perl-module
29 +
30 +DESCRIPTION="Yet Another Log Analyzer"
31 +HOMEPAGE="http://www.yaala.org/"
32 +SRC_URI="http://www.${PN}.org/files/${P}.tar.bz2"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~ppc ~x86"
37 +IUSE="gd"
38 +
39 +RDEPEND="
40 + dev-lang/perl
41 + virtual/perl-Storable
42 + gd? ( dev-perl/GDGraph )
43 +"
44 +
45 +src_prepare() {
46 + epatch "${FILESDIR}"/${PN}-0.7.3-r1-correct-paths.patch
47 +
48 + sed -i "s:/var/lib/${PN}:/usr/bin:g" packaging/${PN}.cron || die 'Failed to correct path in cron file.'
49 +}
50 +
51 +src_install() {
52 + dobin ${PN}
53 +
54 + # Switch to ^y when we switch to EAPI=6.
55 + local mod="Y${PN:1}"
56 +
57 + perl_set_version
58 +
59 + insinto "${VENDOR_LIB}/${mod}/"
60 + doins lib/${mod}/*.pm
61 +
62 + insinto "${VENDOR_LIB}/${mod}/Data/"
63 + doins lib/${mod}/Data/*.pm
64 +
65 + insinto "${VENDOR_LIB}/${mod}/Parser/"
66 + doins lib/${mod}/Parser/*.pm
67 +
68 + insinto "${VENDOR_LIB}/${mod}/Report/"
69 + doins lib/${mod}/Report/*.pm
70 +
71 + dodoc AUTHORS CHANGELOG README{,.persistency,.selections}
72 +
73 + insinto /usr/share/${PN}
74 + doins -r reports
75 + doins -r sample_configs
76 +
77 + insinto /etc/${PN}
78 + doins {,webserver.}config
79 +
80 + insinto /etc/logrotate.d
81 + doins packaging/${PN}.cron
82 +
83 + keepdir /var/lib/${PN}
84 + fperms 777 /var/lib/${PN}
85 +}
86 +
87 +pkg_postinst() {
88 + ewarn "It is required that you change the configuration files in /etc/${PN}"
89 + ewarn "before you run \`yaala ...\`, otherwise it will refuse to execute because"
90 + ewarn "Setup.pm checks whether the variable 'select' has been unquoted and set."
91 + echo ""
92 + elog "Example configuration files can be found in /usr/share/${PN}."
93 +}