blob: 22d252f61c3ccc2109769fdc83c837a24f6bdd36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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}
exeinto /usr/lib64/perl5/vendor_perl/${PN^}/
doexe lib/${PN^}/*.pm
exeinto /usr/lib64/perl5/vendor_perl/${PN^}/Data/
doexe lib/${PN^}/Data/*.pm
exeinto /usr/lib64/perl5/vendor_perl/${PN^}/Parser/
doexe lib/${PN^}/Parser/*.pm
exeinto /usr/lib64/perl5/vendor_perl/${PN^}/Report/
doexe lib/${PN^}/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}."
}
|