From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-plugins-flameeyes: metadata.xml nagios-plugins-flameeyes-9999.ebuild ChangeLog |
Date: | Fri, 23 Nov 2012 16:39:16 |
Message-Id: | 20121123163904.C48C920C65@flycatcher.gentoo.org |
1 | flameeyes 12/11/23 16:39:04 |
2 | |
3 | Added: metadata.xml nagios-plugins-flameeyes-9999.ebuild |
4 | ChangeLog |
5 | Log: |
6 | Initial import of a live ebuild for my own set of nagios plugins. This makes it much easier to deal with their dependencies, and two out of three at the time of adding are Gentoo-specific. An actual release will follow when I'll be done writing a few more. |
7 | |
8 | (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342) |
9 | |
10 | Revision Changes Path |
11 | 1.1 net-analyzer/nagios-plugins-flameeyes/metadata.xml |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/metadata.xml?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/metadata.xml?rev=1.1&content-type=text/plain |
15 | |
16 | Index: metadata.xml |
17 | =================================================================== |
18 | <?xml version="1.0" encoding="UTF-8"?> |
19 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
20 | <pkgmetadata> |
21 | <herd>sysadmin</herd> |
22 | <maintainer> |
23 | <email>flameeyes@g.o</email> |
24 | </maintainer> |
25 | <use> |
26 | <flag name='smart'> |
27 | Install <pkg>sys-apps/smartmontools</pkg> required for |
28 | S.M.A.R.T. disk monitoring. Disabling the flag removes the |
29 | plugin file. This plugin also requires the sudo flag to be |
30 | enable. |
31 | </flag> |
32 | </use> |
33 | </pkgmetadata> |
34 | |
35 | |
36 | |
37 | |
38 | 1.1 net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild |
39 | |
40 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild?rev=1.1&view=markup |
41 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild?rev=1.1&content-type=text/plain |
42 | |
43 | Index: nagios-plugins-flameeyes-9999.ebuild |
44 | =================================================================== |
45 | # Copyright 1999-2012 Gentoo Foundation |
46 | # Distributed under the terms of the GNU General Public License v2 |
47 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild,v 1.1 2012/11/23 16:39:04 flameeyes Exp $ |
48 | |
49 | EAPI=5 |
50 | |
51 | inherit git multilib |
52 | |
53 | EGIT_REPO_URI="git://github.com/Flameeyes/${PN}.git" |
54 | SRC_URI="" |
55 | KEYWORDS="" |
56 | |
57 | DESCRIPTION="Flameeyes's custom Nagios/Icinga plugins" |
58 | HOMEPAGE="https://github.com/Flameeyes/nagios-plugins-flameeyes" |
59 | |
60 | LICENSE="MIT" |
61 | SLOT="0" |
62 | IUSE="smart" |
63 | |
64 | RDEPEND=" |
65 | dev-perl/Nagios-Plugin |
66 | sys-apps/portage |
67 | dev-perl/Time-Duration |
68 | dev-perl/TimeDate |
69 | smart? ( |
70 | sys-apps/smartmontools |
71 | app-admin/sudo |
72 | )" |
73 | DEPEND="" |
74 | |
75 | src_compile() { |
76 | cat - > "${T}"/50${PN} <<EOF |
77 | Cmnd_Alias NAGIOS_PLUGINS_FLAMEEYES_CMDS = /usr/sbin/smartctl |
78 | User_Alias NAGIOS_PLUGINS_FLAMEEYES_USERS = nagios, icinga |
79 | |
80 | NAGIOS_PLUGINS_FLAMEEYES_USERS ALL=(root) NOPASSWD: NAGIOS_PLUGINS_FLAMEEYES_CMDS |
81 | EOF |
82 | } |
83 | |
84 | src_install() { |
85 | insinto /etc/sudoers.d |
86 | doins "${T}"/50${PN} |
87 | |
88 | dodir /usr/$(get_libdir)/nagios/plugins/flameeyes |
89 | cp -Rp $(find . -type d -mindepth 1 -maxdepth 1 -not -name .git) \ |
90 | "${D}/usr/$(get_libdir)/nagios/plugins/flameeyes" || die |
91 | |
92 | dodoc README.md |
93 | } |
94 | |
95 | |
96 | |
97 | 1.1 net-analyzer/nagios-plugins-flameeyes/ChangeLog |
98 | |
99 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/ChangeLog?rev=1.1&view=markup |
100 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/ChangeLog?rev=1.1&content-type=text/plain |
101 | |
102 | Index: ChangeLog |
103 | =================================================================== |
104 | # ChangeLog for net-analyzer/nagios-plugins-flameeyes |
105 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
106 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/ChangeLog,v 1.1 2012/11/23 16:39:04 flameeyes Exp $ |
107 | |
108 | *nagios-plugins-flameeyes-9999 (23 Nov 2012) |
109 | |
110 | 23 Nov 2012; Diego E. Pettenò <flameeyes@g.o> +metadata.xml, |
111 | +nagios-plugins-flameeyes-9999.ebuild: |
112 | Initial import of a live ebuild for my own set of nagios plugins. This makes |
113 | it much easier to deal with their dependencies, and two out of three at the |
114 | time of adding are Gentoo-specific. An actual release will follow when I'll be |
115 | done writing a few more. |