|
Lines 1-50
Link Here
|
| 1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2013 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mk-livestatus/mk-livestatus-1.2.0_p2.ebuild,v 1.2 2012/12/22 18:24:19 ago Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
| 5 |
EAPI=3 |
5 |
EAPI=5 |
| 6 |
|
6 |
|
| 7 |
GENTOO_DEPEND_ON_PERL=no |
|
|
| 8 |
PERL_EXPORT_PHASE_FUNCTIONS=no |
7 |
PERL_EXPORT_PHASE_FUNCTIONS=no |
|
|
8 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
| 9 |
|
| 10 |
inherit autotools perl-module python-r1 eutils |
| 9 |
|
11 |
|
| 10 |
MY_PV="${PV/_p/p}" |
12 |
MY_PV="${PV/_p/p}" |
| 11 |
MY_P="${PN}-${MY_PV}" |
13 |
MY_P="${PN}-${MY_PV}" |
| 12 |
|
14 |
|
| 13 |
inherit perl-module python eutils |
|
|
| 14 |
|
| 15 |
DESCRIPTION="Nagios/Icinga event broker module that allows quick/direct access to your status data" |
15 |
DESCRIPTION="Nagios/Icinga event broker module that allows quick/direct access to your status data" |
| 16 |
HOMEPAGE="http://mathias-kettner.de/checkmk_livestatus.html" |
16 |
HOMEPAGE="http://mathias-kettner.de/checkmk_livestatus.html" |
| 17 |
SRC_URI="http://mathias-kettner.de/download/${MY_P}.tar.gz" |
17 |
SRC_URI="http://mathias-kettner.de/download/${MY_P}.tar.gz" |
| 18 |
|
18 |
|
| 19 |
LICENSE="GPL-2" |
19 |
LICENSE="GPL-2" |
| 20 |
SLOT="0" |
20 |
SLOT="0" |
| 21 |
KEYWORDS="~amd64 ~ppc ~x86" |
21 |
KEYWORDS="~amd64" |
| 22 |
IUSE="examples perl python test" |
22 |
IUSE="examples perl python test" |
| 23 |
|
23 |
|
| 24 |
RDEPEND="perl? ( |
24 |
RDEPEND="perl? ( |
| 25 |
dev-lang/perl |
25 |
dev-lang/perl:0 |
| 26 |
virtual/perl-Digest-MD5 |
26 |
virtual/perl-Digest-MD5:0 |
| 27 |
virtual/perl-Thread-Queue |
27 |
virtual/perl-Scalar-List-Utils:0 |
| 28 |
virtual/perl-Time-HiRes |
28 |
>=virtual/perl-Thread-Queue-2.11:0 |
| 29 |
virtual/perl-Encode |
29 |
virtual/perl-Encode:0 |
| 30 |
dev-perl/JSON-XS |
30 |
dev-perl/JSON-XS:0 |
| 31 |
)" |
31 |
)" |
| 32 |
DEPEND="${RDEPEND} |
32 |
DEPEND="${RDEPEND} |
| 33 |
perl? ( |
33 |
perl? ( |
| 34 |
dev-perl/Module-Install |
34 |
dev-perl/Module-Install:0 |
| 35 |
virtual/perl-ExtUtils-MakeMaker |
35 |
virtual/perl-ExtUtils-MakeMaker:0 |
| 36 |
virtual/perl-File-Path |
36 |
virtual/perl-File-Path:0 |
| 37 |
virtual/perl-File-Spec |
37 |
virtual/perl-File-Spec:0 |
| 38 |
virtual/perl-File-Temp |
38 |
virtual/perl-File-Temp:0 |
| 39 |
test? ( |
39 |
test? ( |
| 40 |
dev-perl/File-Copy-Recursive |
40 |
dev-perl/File-Copy-Recursive:0 |
| 41 |
dev-perl/Test-Pod |
41 |
dev-perl/Test-Pod:0 |
| 42 |
dev-perl/Test-Perl-Critic |
42 |
dev-perl/Test-Perl-Critic:0 |
| 43 |
dev-perl/Test-Pod-Coverage |
43 |
dev-perl/Test-Pod-Coverage:0 |
| 44 |
dev-perl/Perl-Critic |
44 |
dev-perl/Perl-Critic:0 |
| 45 |
dev-perl/Perl-Critic-Policy-Dynamic-NoIndirect |
45 |
dev-perl/Perl-Critic-Policy-Dynamic-NoIndirect:0 |
| 46 |
dev-perl/Perl-Critic-Deprecated |
46 |
dev-perl/Perl-Critic-Deprecated:0 |
| 47 |
dev-perl/Perl-Critic-Nits |
47 |
dev-perl/Perl-Critic-Nits:0 |
| 48 |
) |
48 |
) |
| 49 |
)" |
49 |
)" |
| 50 |
|
50 |
|
|
Lines 62-68
Link Here
|
| 62 |
perl-module_src_prepare |
62 |
perl-module_src_prepare |
| 63 |
fi |
63 |
fi |
| 64 |
|
64 |
|
| 65 |
sed -i -e 's:$(LDFLAGS) -s:$(LDFLAGS):' src/Makefile.in || die |
65 |
epatch "${FILESDIR}/${P}-no-strip.diff" |
|
|
66 |
epatch "${FILESDIR}/${P}-test-RequireRcsKeywords.diff" |
| 67 |
|
| 68 |
eautoreconf |
| 66 |
} |
69 |
} |
| 67 |
|
70 |
|
| 68 |
src_configure() { |
71 |
src_configure() { |
|
Lines 75-81
Link Here
|
| 75 |
} |
78 |
} |
| 76 |
|
79 |
|
| 77 |
src_compile() { |
80 |
src_compile() { |
| 78 |
emake || die |
81 |
emake |
| 79 |
|
82 |
|
| 80 |
if use perl; then |
83 |
if use perl; then |
| 81 |
cd api/perl |
84 |
cd api/perl |
|
Lines 93-99
Link Here
|
| 93 |
} |
96 |
} |
| 94 |
|
97 |
|
| 95 |
src_install() { |
98 |
src_install() { |
| 96 |
emake -C src/ DESTDIR="${D}" install-binPROGRAMS install-data-local || die |
99 |
emake -C src/ DESTDIR="${ED}" install-binPROGRAMS install-data-local |
| 97 |
|
100 |
|
| 98 |
if use perl; then |
101 |
if use perl; then |
| 99 |
cd api/perl |
102 |
cd api/perl |
|
Lines 102-119
Link Here
|
| 102 |
|
105 |
|
| 103 |
if use examples; then |
106 |
if use examples; then |
| 104 |
docinto examples/ |
107 |
docinto examples/ |
| 105 |
dodoc api/perl/examples/dump.pl || die |
108 |
dodoc api/perl/examples/dump.pl |
| 106 |
fi |
109 |
fi |
| 107 |
fi |
110 |
fi |
|
|
111 |
|
| 108 |
if use python; then |
112 |
if use python; then |
| 109 |
insinto $(python_get_sitedir) |
113 |
python_foreach_impl python_domodule api/python/livestatus.py |
| 110 |
doins api/python/livestatus.py || die |
|
|
| 111 |
|
114 |
|
| 112 |
if use examples; then |
115 |
if use examples; then |
| 113 |
newdoc api/python/README README.python || die |
116 |
newdoc api/python/README |
| 114 |
|
117 |
|
| 115 |
docinto examples/ |
118 |
docinto examples/ |
| 116 |
dodoc api/python/{example,example_multisite,make_nagvis_map}.py || die |
119 |
dodoc api/python/{example,example_multisite,make_nagvis_map}.py |
| 117 |
fi |
120 |
fi |
| 118 |
fi |
121 |
fi |
| 119 |
} |
122 |
} |