1 |
darkside 10/10/05 13:58:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: munin-1.4.5-r1.ebuild |
5 |
Removed: munin-1.4.4.ebuild |
6 |
Log: |
7 |
Revision bump to improve USE=minimal handling, bug 335708 by Brian De Wolf. Remove intermediate version |
8 |
|
9 |
(Portage version: 2.1.9.12/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.44 net-analyzer/munin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/ChangeLog?rev=1.44&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/ChangeLog?rev=1.44&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/ChangeLog?r1=1.43&r2=1.44 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/munin/ChangeLog,v |
21 |
retrieving revision 1.43 |
22 |
retrieving revision 1.44 |
23 |
diff -u -r1.43 -r1.44 |
24 |
--- ChangeLog 28 Aug 2010 06:19:23 -0000 1.43 |
25 |
+++ ChangeLog 5 Oct 2010 13:58:06 -0000 1.44 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for net-analyzer/munin |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/ChangeLog,v 1.43 2010/08/28 06:19:23 jer Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/ChangeLog,v 1.44 2010/10/05 13:58:06 darkside Exp $ |
31 |
+ |
32 |
+*munin-1.4.5-r1 (05 Oct 2010) |
33 |
+ |
34 |
+ 05 Oct 2010; Jeremy Olexa <darkside@g.o> -munin-1.4.4.ebuild, |
35 |
+ +munin-1.4.5-r1.ebuild: |
36 |
+ Revision bump to improve USE=minimal handling, bug 335708 by Brian De |
37 |
+ Wolf. Remove intermediate version |
38 |
|
39 |
28 Aug 2010; Jeroen Roovers <jer@g.o> munin-1.4.5.ebuild: |
40 |
Stable for PPC (bug #327501). |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-analyzer/munin/munin-1.4.5-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/munin-1.4.5-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/munin-1.4.5-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: munin-1.4.5-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2010 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/munin-1.4.5-r1.ebuild,v 1.1 2010/10/05 13:58:06 darkside Exp $ |
54 |
|
55 |
EAPI=2 |
56 |
|
57 |
inherit eutils |
58 |
|
59 |
DESCRIPTION="Munin Server Monitoring Tool" |
60 |
HOMEPAGE="http://munin.projects.linpro.no/" |
61 |
SRC_URI="mirror://sourceforge/munin/${P}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86" |
66 |
IUSE="doc irc java minimal mysql postgres ssl" |
67 |
|
68 |
# Upstream's listing of required modules is NOT correct! |
69 |
# Some of the postgres plugins use DBD::Pg, while others call psql directly. |
70 |
# The mysql plugins use mysqladmin directly. |
71 |
DEPEND_COM="dev-lang/perl |
72 |
sys-process/procps |
73 |
irc? ( dev-perl/Net-IRC ) |
74 |
java? ( >=virtual/jdk-1.5 ) |
75 |
mysql? ( virtual/mysql dev-perl/Cache-Cache ) |
76 |
ssl? ( dev-perl/Net-SSLeay ) |
77 |
postgres? ( dev-perl/DBD-Pg dev-db/postgresql-base ) |
78 |
dev-perl/DateManip |
79 |
dev-perl/Net-CIDR |
80 |
dev-perl/Net-Netmask |
81 |
dev-perl/Net-SNMP |
82 |
dev-perl/libwww-perl |
83 |
dev-perl/net-server |
84 |
dev-perl/DBI |
85 |
virtual/perl-Digest-MD5 |
86 |
virtual/perl-Getopt-Long |
87 |
virtual/perl-MIME-Base64 |
88 |
virtual/perl-Storable |
89 |
virtual/perl-Text-Balanced |
90 |
virtual/perl-Time-HiRes |
91 |
!minimal? ( dev-perl/HTML-Template |
92 |
net-analyzer/rrdtool[perl] |
93 |
dev-perl/Log-Log4perl )" |
94 |
# Sybase isn't supported in Gentoo |
95 |
#munin-sybase? ( dev-perl/DBD-Sybase ) |
96 |
|
97 |
# Keep this seperate, as previous versions have had other deps here |
98 |
DEPEND="${DEPEND_COM} |
99 |
virtual/perl-Module-Build" |
100 |
RDEPEND="${DEPEND_COM} |
101 |
!minimal? ( virtual/cron )" |
102 |
|
103 |
pkg_setup() { |
104 |
enewgroup munin |
105 |
enewuser munin 177 -1 /var/lib/munin munin |
106 |
} |
107 |
|
108 |
src_prepare() { |
109 |
# upstream needs a lot of DESTDIR loving |
110 |
# and Gentoo location support |
111 |
epatch "${FILESDIR}"/${PN}-1.4.4-Makefile.patch |
112 |
|
113 |
# Don't build java plugins if not requested via USE. |
114 |
if ! use java; then |
115 |
# sed is needed so the java plugins aren't automagically built. |
116 |
sed -i -e 's: build-plugins-java : :' \ |
117 |
-e 's: install-plugins-java : :' Makefile || die |
118 |
fi |
119 |
} |
120 |
|
121 |
src_compile() { |
122 |
emake -j 1 build build-man || die "build/build-man failed" |
123 |
if use doc; then |
124 |
emake -j 1 build-doc || die "build-doc failed" |
125 |
fi |
126 |
|
127 |
#Ensure TLS is disabled if built without SSL |
128 |
if ! use ssl; then |
129 |
echo "tls disabled" >> ${S}/build/node/munin-node.conf \ |
130 |
|| die "Fixing munin-node.conf Failed!" |
131 |
echo "tls disabled" >> ${S}/build/master/munin.conf \ |
132 |
|| die "Fixing munin.conf Failed!" |
133 |
fi |
134 |
|
135 |
} |
136 |
|
137 |
src_install() { |
138 |
local dirs |
139 |
dirs="/var/log/munin/ /var/lib/munin/" |
140 |
dirs="${dirs} /var/lib/munin/plugin-state/" |
141 |
dirs="${dirs} /var/run/munin/plugin-state/" |
142 |
dirs="${dirs} /var/run/munin/spool/" |
143 |
dirs="${dirs} /etc/munin/plugin-conf.d/" |
144 |
dirs="${dirs} /etc/munin/munin-conf.d/" |
145 |
dirs="${dirs} /etc/munin/plugins/" |
146 |
keepdir ${dirs} |
147 |
|
148 |
if use minimal; then |
149 |
emake -j 1 DESTDIR="${D}" install-common-prime install-node-prime \ |
150 |
install-plugins-prime || die "install failed" |
151 |
else |
152 |
emake -j 1 DESTDIR="${D}" install || die "install failed" |
153 |
fi |
154 |
fowners munin:munin ${dirs} || die |
155 |
|
156 |
insinto /etc/munin/plugin-conf.d/ |
157 |
newins "${FILESDIR}"/${PN}-1.3.2-plugins.conf munin-node || die |
158 |
|
159 |
# make sure we've got everything in the correct directory |
160 |
insinto /var/lib/munin |
161 |
newins "${FILESDIR}"/${PN}-1.3.3-crontab crontab || die |
162 |
newinitd "${FILESDIR}"/munin-node_init.d_1.3.3-r1 munin-node || die |
163 |
newconfd "${FILESDIR}"/munin-node_conf.d_1.3.3-r1 munin-node || die |
164 |
dodoc README ChangeLog INSTALL logo.eps logo.svg build/resources/apache* \ |
165 |
|| die |
166 |
|
167 |
# bug 254968 |
168 |
insinto /etc/logrotate.d/ |
169 |
newins "${FILESDIR}"/logrotate.d-munin munin || die |
170 |
} |
171 |
|
172 |
pkg_config() { |
173 |
einfo "Press enter to install the default crontab for the munin master" |
174 |
einfo "installation from /var/lib/munin/crontab" |
175 |
einfo "If you have a large site, you may wish to customize it." |
176 |
read |
177 |
# dcron is very fussy about syntax |
178 |
# the following is the only form that works in BOTH dcron and vixie-cron |
179 |
crontab - -u munin </var/lib/munin/crontab |
180 |
} |
181 |
|
182 |
pkg_postinst() { |
183 |
elog "Please follow the munin documentation to set up the plugins you" |
184 |
elog "need, afterwards start munin-node via /etc/init.d/munin-node." |
185 |
elog "To have munin's cronjob automatically configured for you if this is" |
186 |
elog "your munin master installation, please:" |
187 |
elog "emerge --config net-analyzer/munin" |
188 |
elog "" |
189 |
elog "Please note that the crontab has undergone some modifications" |
190 |
elog "since 1.3.2, and you should update to it!" |
191 |
} |