Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 332764 Details for
Bug 447920
net-analyzer/check_mk - Nagios / Icinga general purpose plugin to retrieve data
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
check_mk-1.2.0_p3.ebuild
check_mk-1.2.0_p3.ebuild (text/plain), 4.83 KB, created by
Timo Eissler
on 2012-12-20 09:27:51 UTC
(
hide
)
Description:
check_mk-1.2.0_p3.ebuild
Filename:
MIME Type:
Creator:
Timo Eissler
Created:
2012-12-20 09:27:51 UTC
Size:
4.83 KB
patch
obsolete
># Copyright 1999-2012 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header$ > >EAPI="4" >PYTHON_DEPEND="2" >MY_P="${P/_p/p}" >S="${WORKDIR}/${MY_P}" > >inherit eutils python toolchain-funcs > >DESCRIPTION="General purpose Nagios/Icinga plugin for retrieving data" >HOMEPAGE="http://mathias-kettner.de/check_mk.html" >SRC_URI="http://mathias-kettner.de/download/${MY_P}.tar.gz" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="agent-only logwatch smart mysql postgres apache_status livestatus >livecheck wato" >REQUIRED_USE="livestatus? ( !agent-only ) >livecheck? ( livestatus ) >wato? ( !agent-only )" > >RDEPEND="${DEPEND} > sys-apps/xinetd > !agent-only? ( www-servers/apache www-apache/mod_python )" > >doit() { > echo "$@" > $@ || die "compile failed!" >} > >pkg_setup() { > python_set_active_version 2 > python_pkg_setup >} > >src_prepare() { > # disable /etc/sudoers modification through setup.sh > epatch "${FILESDIR}"/${PN}-1.2.0p3-setup.sh.patch >} > >src_compile() { > DESTDIR=${S} ./setup.sh --yes > cd ${S}/usr/share/check_mk/agents > doit $(tc-getCC) ${CFLAGS} waitmax.c -o waitmax >} > >src_install() { > local mydaemon= > > if has_version net-analyzer/nagios-core; then > mydaemon=nagios > else > mydaemon=icinga > fi > > if ! use agent-only; then > # Apache configuration > insinto /etc/apache2/modules.d > doins etc/apache2/conf.d/zzz_check_mk.conf > > if use wato; then > # sudoers configuration > cat - > "${T}"/check_mk << EOF ># Needed for WATO - the Check_MK Web Administration Tool >Defaults:apache !requiretty >apache ALL = (root) NOPASSWD: /usr/bin/check_mk --automation * >EOF > insinto /etc/sudoers.d > doins "${T}"/check_mk > fi > > # check_mk configuration > insinto /etc/check_mk > doins etc/check_mk/main.mk > doins etc/check_mk/main.mk-1.2.0p3 > doins etc/check_mk/multisite.mk > doins etc/check_mk/multisite.mk-1.2.0p3 > insinto /etc/check_mk/conf.d > doins etc/check_mk/conf.d/README > keepdir /etc/check_mk/multisite.d > > # Nagios / Icinga check_mk templates > dosym /usr/share/check_mk/check_mk_templates.cfg /etc/${mydaemon}/objects/check_mk_templates.cfg > > dobin usr/bin/check_mk > dosym /usr/bin/check_mk /usr/bin/cmk > dobin usr/bin/unixcat > dobin usr/bin/mkp > > dodir /usr/share/check_mk > cp -R "${S}"/usr/share/check_mk/* "${D}"/usr/share/check_mk/ || die "copying files failed!" > > keepdir var/lib/check_mk/autochecks > keepdir var/lib/check_mk/cache > keepdir var/lib/check_mk/counters > keepdir var/lib/check_mk/logwatch > insinto var/lib/check_mk/packages > doins var/lib/check_mk/packages/check_mk > keepdir var/lib/check_mk/precompiled > keepdir var/lib/check_mk/wato > keepdir var/lib/check_mk/web > fi > > # Install agent related files > newbin usr/share/check_mk/agents/check_mk_agent.linux check_mk_agent > > insinto /etc/xinetd.d > newins usr/share/check_mk/agents/xinetd.conf check_mk > > exeinto /usr/lib/check_mk_agent > doexe usr/share/check_mk/agents/waitmax > > keepdir /usr/lib/check_mk_agent/local > keepdir /usr/lib/check_mk_agent/plugins > > # Install Livestatus > if use livestatus; then > if ! use livecheck; then > cat - > "${T}"/livestatus.cfg << EOF >define module{ > module_name mk-livestatus > module_type neb > path /usr/lib/check_mk/livestatus.o > args /var/lib/${mydaemon}/rw/live > } >EOF > else > cat - > "${T}"/livestatus.cfg << EOF >define module{ > module_name mk-livestatus > module_type neb > path /usr/lib/check_mk/livestatus.o > args /var/lib/${mydaemon}/rw/live livecheck=/usr/lib/check_mk/livecheck > } >EOF > fi > insinto /etc/${mydaemon}/modules > doins "${T}"/livestatus.cfg > > insinto /usr/lib/check_mk > doins usr/lib/check_mk/livestatus.o > > # Install livecheck > if use livecheck; then > insinto /usr/lib/check_mk > doins usr/lib/check_mk/livecheck > chown root:${mydaemon} ${D}/usr/lib/check_mk/livecheck > chmod 4750 ${D}/usr/lib/check_mk/livecheck > fi > fi > > # Documentation > if ! use agent-only; then > dodoc -r usr/share/doc/check_mk/* > else > dodoc usr/share/doc/AUTHORS usr/share/doc/COPYING usr/share/doc/ChangeLog > fi > > # Install the check_mk_agent logwatch plugin > if use logwatch; then > insinto /etc/check_mk > doins usr/share/check_mk/agents/logwatch.cfg > insinto /usr/lib/check_mk_agent/plugins > doins usr/share/check_mk/agents/plugins/mk_logwatch > fi > > # Install the check_mk_agent smart plugin > if use smart; then > insinto /usr/lib/check_mk_agent/plugins > doins usr/share/check_mk/agents/plugins/smart > fi > > # Install the check_mk_agent mysql plugin > if use mysql; then > insinto /usr/lib/check_mk_agent/plugins > doins usr/share/check_mk/agents/plugins/mk_mysql > fi > > # Install the check_mk_agent postgres plugin > if use postgres; then > insinto /usr/lib/check_mk_agent/plugins > doins usr/share/check_mk/agents/plugins/mk_postgres > dobin usr/bin/unixcat > fi > > # Install the check_mk_agent apache_status plugin > if use apache_status; then > insinto /usr/lib/check_mk_agent/plugins > doins usr/share/check_mk/agents/plugins/apache_status > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 447920
:
332764
|
332766
|
333036
|
333038
|
349080
|
349082
|
349974
|
352456
|
376622
|
379798
|
379800
|
380002
|
380006
|
380304
|
380474
|
380764