From: | "Christian Ruppert (idl0r)" <idl0r@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/mk-livestatus: metadata.xml mk-livestatus-1.1.8.ebuild ChangeLog |
Date: | Sun, 30 Jan 2011 23:47:18 |
Message-Id: | 20110130234709.794B020054@flycatcher.gentoo.org |
1 | idl0r 11/01/30 23:47:09 |
2 | |
3 | Added: metadata.xml mk-livestatus-1.1.8.ebuild ChangeLog |
4 | Log: |
5 | Initial commit for net-analyzer/mk-livestatus |
6 | |
7 | (Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-analyzer/mk-livestatus/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/mk-livestatus/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/mk-livestatus/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>no-herd</herd> |
21 | <maintainer> |
22 | <email>idl0r@g.o</email> |
23 | <name>Christian Ruppert</name> |
24 | </maintainer> |
25 | </pkgmetadata> |
26 | |
27 | |
28 | |
29 | 1.1 net-analyzer/mk-livestatus/mk-livestatus-1.1.8.ebuild |
30 | |
31 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/mk-livestatus/mk-livestatus-1.1.8.ebuild?rev=1.1&view=markup |
32 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/mk-livestatus/mk-livestatus-1.1.8.ebuild?rev=1.1&content-type=text/plain |
33 | |
34 | Index: mk-livestatus-1.1.8.ebuild |
35 | =================================================================== |
36 | # Copyright 1999-2011 Gentoo Foundation |
37 | # Distributed under the terms of the GNU General Public License v2 |
38 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/mk-livestatus/mk-livestatus-1.1.8.ebuild,v 1.1 2011/01/30 23:47:09 idl0r Exp $ |
39 | |
40 | EAPI=3 |
41 | |
42 | GENTOO_DEPEND_ON_PERL=no |
43 | PERL_EXPORT_PHASE_FUNCTIONS=no |
44 | |
45 | inherit perl-module python |
46 | |
47 | DESCRIPTION="Nagios/Icinga event broker module that allows quick/direct access to your status data" |
48 | HOMEPAGE="http://mathias-kettner.de/checkmk_livestatus.html" |
49 | SRC_URI="http://mathias-kettner.de/download/${P}.tar.gz" |
50 | |
51 | LICENSE="GPL-2" |
52 | SLOT="0" |
53 | KEYWORDS="~amd64 ~x86" |
54 | IUSE="examples perl python test" |
55 | |
56 | RDEPEND="perl? ( |
57 | dev-lang/perl |
58 | virtual/perl-Digest-MD5 |
59 | dev-perl/Thread-Queue |
60 | )" |
61 | DEPEND="${RDEPEND} |
62 | perl? ( |
63 | dev-perl/Module-Install |
64 | test? ( |
65 | dev-perl/File-Copy-Recursive |
66 | dev-perl/Test-Pod |
67 | dev-perl/Test-Perl-Critic |
68 | dev-perl/Test-Pod-Coverage |
69 | dev-perl/Perl-Critic |
70 | dev-perl/Perl-Critic-Policy-Dynamic-NoIndirect |
71 | dev-perl/Perl-Critic-Deprecated |
72 | dev-perl/Perl-Critic-Nits |
73 | ) |
74 | )" |
75 | |
76 | # For perl test |
77 | SRC_TEST="parallel" |
78 | |
79 | src_prepare() { |
80 | # Use system Module::Install instead, it will be copied to $WORKDIR by |
81 | # Module::install itself. |
82 | rm -rf api/perl/inc |
83 | |
84 | if use perl; then |
85 | perl-module_src_prepare |
86 | fi |
87 | |
88 | sed -i -e 's:$(LDFLAGS) -s:$(LDFLAGS):' src/Makefile.in || die |
89 | } |
90 | |
91 | src_configure() { |
92 | econf |
93 | |
94 | if use perl; then |
95 | cd api/perl/ |
96 | perl-module_src_configure |
97 | fi |
98 | } |
99 | |
100 | src_compile() { |
101 | emake || die |
102 | |
103 | if use perl; then |
104 | cd api/perl |
105 | perl-module_src_compile |
106 | fi |
107 | } |
108 | |
109 | src_test() { |
110 | if use perl; then |
111 | cd api/perl |
112 | |
113 | export TEST_AUTHOR="Test Author" |
114 | perl-module_src_test |
115 | fi |
116 | } |
117 | |
118 | src_install() { |
119 | emake -C src/ DESTDIR="${D}" install-binPROGRAMS install-data-local || die |
120 | |
121 | if use perl; then |
122 | cd api/perl |
123 | perl-module_src_install |
124 | cd "${S}" |
125 | |
126 | if use examples; then |
127 | docinto examples/ |
128 | dodoc api/perl/examples/dump.pl || die |
129 | fi |
130 | fi |
131 | if use python; then |
132 | insinto $(python_get_sitedir) |
133 | doins api/python/livestatus.py || die |
134 | |
135 | if use examples; then |
136 | newdoc api/python/README README.python || die |
137 | |
138 | docinto examples/ |
139 | dodoc api/python/{example,example_multisite,make_nagvis_map}.py || die |
140 | fi |
141 | fi |
142 | } |
143 | |
144 | |
145 | |
146 | 1.1 net-analyzer/mk-livestatus/ChangeLog |
147 | |
148 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/mk-livestatus/ChangeLog?rev=1.1&view=markup |
149 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/mk-livestatus/ChangeLog?rev=1.1&content-type=text/plain |
150 | |
151 | Index: ChangeLog |
152 | =================================================================== |
153 | # ChangeLog for net-analyzer/mk-livestatus |
154 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
155 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/mk-livestatus/ChangeLog,v 1.1 2011/01/30 23:47:09 idl0r Exp $ |
156 | |
157 | *mk-livestatus-1.1.8 (30 Jan 2011) |
158 | |
159 | 30 Jan 2011; Christian Ruppert <idl0r@g.o> |
160 | +mk-livestatus-1.1.8.ebuild, +metadata.xml: |
161 | Initial commit for net-analyzer/mk-livestatus |