munin-vl.spec 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. Name: munin
  2. Version: 2.0.21
  3. Release: 2%{?_dist_release}
  4. Summary: Network-wide graphing framework (grapher/gatherer)
  5. License: GPLv2 and Bitstream Vera
  6. Group: System Environment/Daemons
  7. URL: http://munin.projects.linpro.no/
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  9. Source0: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz
  10. Source10: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz.sha256sum
  11. Source1: munin-1.2.4-sendmail-config
  12. Source2: munin-1.2.5-hddtemp_smartctl-config
  13. Source3: munin-node.logrotate
  14. Source4: munin.logrotate
  15. Source6: munin-1.2.6-postfix-config
  16. Source7: munin-1.4.5-df-config
  17. Source9: munin.conf
  18. Source12: cpuspeed.in.rev1243
  19. Source13: linux-init.d_munin-asyncd.in
  20. Source17: munin.cron.d
  21. Source18: munin-node.rc
  22. Source19: httpd_munin-cgi.conf
  23. Source100: munin-cgi-graph.init
  24. Source101: munin-cgi-html.init
  25. Source102: munin-cgi-graph.sysconfig
  26. Source103: munin-cgi-html.sysconfig
  27. Source104: munin_params
  28. Patch4: munin-2.0.4-Utils-cluck.patch
  29. Patch5: acpi-2.0.5.patch
  30. Patch7: munin-2.0-defect-1213.patch
  31. Patch9: munin-2.0.8-cgitmp.patch
  32. Patch100: munin-cgi-taint.patch
  33. BuildArchitectures: noarch
  34. BuildRequires: net-tools
  35. BuildRequires: perl >= 5.8
  36. BuildRequires: perl(Module::Build)
  37. BuildRequires: perl(Net::Server)
  38. BuildRequires: perl(Net::SSLeay)
  39. BuildRequires: perl(Net::SNMP)
  40. BuildRequires: perl(Test::Exception)
  41. #BuildRequires: perl(Test::MockModule)
  42. #BuildRequires: perl(Test::MockObject)
  43. #BuildRequires: perl(Test::Perl::Critic) >= 1.096 ## Not packaged
  44. BuildRequires: perl(Test::Pod::Coverage)
  45. BuildRequires: perl(Time::HiRes)
  46. BuildRequires: perl(Net::SSLeay)
  47. BuildRequires: perl(HTML::Template)
  48. BuildRequires: perl(Log::Log4perl) >= 1.18
  49. Requires: %{name}-common = %{version}
  50. Requires: perl-Net-Server
  51. Requires: perl-Net-SNMP
  52. Requires: rrdtool
  53. Requires: logrotate
  54. Requires: /bin/mail
  55. Requires(pre): shadow-utils
  56. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  57. Requires: TrueType-bitstream-vera
  58. %description
  59. Munin is a highly flexible and powerful solution used to create graphs of
  60. virtually everything imaginable throughout your network, while still
  61. maintaining a rattling ease of installation and configuration.
  62. This package contains the grapher/gatherer. You will only need one instance of
  63. it in your network. It will periodically poll all the nodes in your network
  64. it's aware of for data, which it in turn will use to create graphs and HTML
  65. pages, suitable for viewing with your graphical web browser of choice.
  66. Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent
  67. RRDtool.
  68. %package node
  69. Group: System Environment/Daemons
  70. Summary: Network-wide graphing framework (node)
  71. BuildArchitectures: noarch
  72. Requires: %{name}-common = %{version}
  73. Requires: perl-Net-Server
  74. Requires: procps >= 2.0.7
  75. #Requires: sysstat, /usr/bin/which, hdparm
  76. Requires: /usr/bin/which, hdparm
  77. Requires(pre): shadow-utils
  78. Requires(post): /sbin/chkconfig
  79. Requires(preun): /sbin/chkconfig
  80. Requires(preun): /sbin/service
  81. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  82. %description node
  83. Munin is a highly flexible and powerful solution used to create graphs of
  84. virtually everything imaginable throughout your network, while still
  85. maintaining a rattling ease of installation and configuration.
  86. This package contains node software. You should install it on all the nodes
  87. in your network. It will know how to extract all sorts of data from the
  88. node it runs on, and will wait for the gatherer to request this data for
  89. further processing.
  90. It includes a range of plugins capable of extracting common values such as
  91. cpu usage, network usage, load average, and so on. Creating your own plugins
  92. which are capable of extracting other system-specific values is very easy,
  93. and is often done in a matter of minutes. You can also create plugins which
  94. relay information from other devices in your network that can't run Munin,
  95. such as a switch or a server running another operating system, by using
  96. SNMP or similar technology.
  97. Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent
  98. RRDtool.
  99. %package async
  100. Group: System Environment/Daemons
  101. Summary: Network-wide graphing framework (asynchronous client tools)
  102. BuildArch: noarch
  103. Requires: %{name}-node = %{version}
  104. %description async
  105. Munin is a highly flexible and powerful solution used to create graphs
  106. of virtually everything imaginable throughout your network, while still
  107. maintaining a rattling ease of installation and configuration.
  108. This package contains the tools necessary for setting up an asynchronous
  109. client / spooling system
  110. %package common
  111. Group: System Environment/Daemons
  112. Summary: Network-wide graphing framework (common files)
  113. BuildArchitectures: noarch
  114. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  115. %description common
  116. Munin is a highly flexible and powerful solution used to create graphs of
  117. virtually everything imaginable throughout your network, while still
  118. maintaining a rattling ease of installation and configuration.
  119. This package contains common files that are used by both the server (munin)
  120. and node (munin-node) packages.
  121. %package cgi
  122. Group: System Environment/Daemons
  123. Summary: Network-wide graphing framework (cgi files)
  124. BuildArch: noarch
  125. Requires: %{name}-common = %{version}
  126. Requires: spawn-fcgi
  127. Requires: perl-FCGI
  128. %description cgi
  129. Munin package uses cron by default. This package contains the CGI
  130. files that can generate HTML and graphs dynamically. This enables
  131. munin to scale better for a master with many nodes.
  132. See documentation for setup instructions:
  133. http://munin-monitoring.org/wiki/MuninConfigurationMasterCGI
  134. %package cgi-apache2
  135. Group: System Environment/Daemons
  136. Summary: Network-wide graphing framework (configuration for apache)
  137. BuildArch: noarch
  138. Requires: %{name}-cgi = %{version}
  139. Requires: mod_fcgid-apache2
  140. %description cgi-apache2
  141. This package contains a configuration file for apache2 to generate
  142. HTML and graph files dynamically.
  143. See documentation for setup instructions:
  144. http://munin-monitoring.org/wiki/MuninConfigurationMasterCGI
  145. QUICK-HOWTO:
  146. sed -i 's/\(.*\)_strategy.*/\1_strategy cgi/' /etc/munin/munin.conf
  147. cp --backup /etc/sysconfig/spawn-fcgi-munin /etc/sysconfig/spawn-fcgi
  148. for svc in apache2 munin-node spawn-fcgi; do
  149. chkconfig $svc on
  150. service $svc start
  151. done
  152. %package cgi-nginx
  153. Group: System Environment/Daemons
  154. Summary: Network-wide graphing framework (for nginx)
  155. BuildArch: noarch
  156. Requires: %{name}-cgi = %{version}
  157. Requires: nginx
  158. %description cgi-nginx
  159. This package contains a configuration file for nginx to generate
  160. HTML and graph files dynamically.
  161. See documentation for setup instructions:
  162. http://munin-monitoring.org/wiki/MuninConfigurationMasterCGI
  163. %prep
  164. %setup -q
  165. sed -i -e '
  166. s,^CGIDIR = \(.*\),CGIDIR = $(DESTDIR)/var/www/cgi-bin,;
  167. s,^CGITMPDIR = \(.*\),CGITMPDIR = /var/tmp,;
  168. s,^CHGRP := \(.*\),CHGRP := echo Not done: chgrp,;
  169. s,^CHMOD := \(.*\),CHMOD := echo Not done: chmod,;
  170. s,^CHOWN := \(.*\),CHOWN := echo Not done: chown,;
  171. s,^CONFDIR = \(.*\),CONFDIR = $(DESTDIR)/etc/munin,;
  172. s,^DBDIR = \(.*\),DBDIR = $(DESTDIR)/var/lib/munin,;
  173. s,^DBDIRNODE = \(.*\),DBDIRNODE = $(DESTDIR)/var/opt/munin-node,;
  174. s,^DOCDIR = \(.*\),DOCDIR = $(DESTDIR)%{_datadir}/doc/munin-$(VERSION),;
  175. s,^GROUP := \(.*\),GROUP := nobody,;
  176. s,^HOSTNAME = \(.*\),HOSTNAME = localhost.localdomain,;
  177. s,^HTMLDIR = \(.*\),HTMLDIR = $(DESTDIR)/var/www/html/munin,;
  178. s,^LIBDIR = \(.*\),LIBDIR = $(DESTDIR)%{_datadir}/munin,;
  179. s,^LOGDIR = \(.*\),LOGDIR = $(DESTDIR)/var/log/munin,;
  180. s,^PERL := \(.*\),PERL := /usr/bin/perl,;
  181. s,^PERLSITELIB := \(.*\),PERLSITELIB := %{perl_vendorlib},;
  182. s,^PLUGSTATE = \(.*\),PLUGSTATE = $(DBDIR)/plugin-state,;
  183. s,^PREFIX = \(.*\),PREFIX = $(DESTDIR)/usr,;
  184. s,^PYTHON := \(.*\),PYTHON := /usr/bin/python,;
  185. s,^RUBY := \(.*\),RUBY := /usr/bin/ruby,;
  186. s,^USER := \(.*\),USER := nobody,;
  187. ' Makefile.config
  188. install -c %{SOURCE12} ./plugins/node.d.linux/cpuspeed.in
  189. %patch4 -p0
  190. %patch5 -p0
  191. %patch7 -p1
  192. %patch9 -p1
  193. %patch100 -p1
  194. install -c %{SOURCE13} ./resources/
  195. %build
  196. make CONFIG=Makefile.config
  197. # Convert to utf-8
  198. for file in Announce-2.0 COPYING ChangeLog Checklist HACKING.pod README RELEASE UPGRADING UPGRADING-1.4; do
  199. iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
  200. touch -r $file $file.new && \
  201. mv $file.new $file
  202. done
  203. # Fix the wrong FSF address
  204. for FILE in plugins/node.d.linux/tcp.in COPYING plugins/node.d.linux/bonding_err_.in; do
  205. sed -i 's|59 Temple Place.*Suite 330, Boston, MA *02111-1307|51 Franklin St, Fifth Floor, Boston, MA 02110-1301|g' $FILE
  206. done
  207. %install
  208. ## Node
  209. make CONFIG=Makefile.config \
  210. PREFIX=%{buildroot}%{_prefix} \
  211. DOCDIR=%{buildroot}%{_docdir}/%{name}-%{version} \
  212. MANDIR=%{buildroot}%{_mandir} \
  213. DESTDIR=%{buildroot} \
  214. install
  215. # Remove fonts
  216. rm %{buildroot}%{_datadir}/munin/DejaVuSans*.ttf
  217. # install logrotate scripts
  218. mkdir -p %{buildroot}/etc/logrotate.d
  219. install -m 0644 %{SOURCE3} %{buildroot}/etc/logrotate.d/munin-node
  220. install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin
  221. # BZ#821912 - Move .htaccess to apache config to allow easier user-access changes.
  222. mkdir -p %{buildroot}%{_sysconfdir}/apache2/conf.d
  223. sed -e 's/# </</g' %{buildroot}/var/www/html/munin/.htaccess > %{buildroot}%{_sysconfdir}/apache2/conf.d/munin.conf
  224. rm %{buildroot}/var/www/html/munin/.htaccess
  225. # install cron script
  226. mkdir -p %{buildroot}/etc/cron.d
  227. install -m 0644 %{SOURCE17} %{buildroot}/etc/cron.d/munin
  228. #
  229. # don't enable munin-node by default.
  230. #
  231. mkdir -p %{buildroot}/etc/rc.d/init.d
  232. cat %{SOURCE18} | sed -e 's/2345/\-/' > %{buildroot}/etc/rc.d/init.d/munin-node
  233. chmod 755 %{buildroot}/etc/rc.d/init.d/munin-node
  234. install -m 0755 %{SOURCE13} %{buildroot}/etc/rc.d/init.d/munin-asyncd
  235. mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
  236. install -m 0644 %{SOURCE9} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
  237. # Fix default config file
  238. sed -i '
  239. s,/etc/munin/munin-conf.d,/etc/munin/conf.d,;
  240. s,#html_strategy.*,html_strategy cron,;
  241. s,#graph_strategy.*,graph_strategy cron,;
  242. ' %{buildroot}/etc/munin/munin.conf
  243. mkdir -p %{buildroot}/etc/munin/conf.d
  244. mkdir -p %{buildroot}/etc/munin/plugin-conf.d
  245. mkdir -p %{buildroot}/etc/munin/node.d
  246. mkdir -p %{buildroot}/etc/munin/plugin-node.d
  247. # install config for sendmail under fedora
  248. install -m 0644 %{SOURCE1} %{buildroot}/etc/munin/plugin-conf.d/sendmail
  249. # install config for hddtemp_smartctl
  250. install -m 0644 %{SOURCE2} %{buildroot}/etc/munin/plugin-conf.d/hddtemp_smartctl
  251. # install logrotate scripts
  252. install -m 0644 %{SOURCE3} %{buildroot}/etc/logrotate.d/munin-node
  253. install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin
  254. sed -i 's/su munin/#su munin/' %{buildroot}/etc/logrotate.d/munin-node
  255. sed -i 's/su munin/#su munin/' %{buildroot}/etc/logrotate.d/munin
  256. # install config for postfix
  257. install -m 0644 %{SOURCE6} %{buildroot}/etc/munin/plugin-conf.d/postfix
  258. # install df config to exclude fses we shouldn't try and monitor
  259. install -m 0644 %{SOURCE7} %{buildroot}/etc/munin/plugin-conf.d/df
  260. # Append for BZ# 746083
  261. cat - >> %{buildroot}/etc/munin/plugin-conf.d/munin-node <<EOT.node
  262. [diskstats]
  263. user munin
  264. [iostat_ios]
  265. user munin
  266. EOT.node
  267. # Preload static html files
  268. mkdir -p %{buildroot}/var/www/html/munin/
  269. cp -r %{buildroot}/etc/munin/static %{buildroot}/var/www/html/munin/
  270. # Remove plugins that are missing deps
  271. rm %{buildroot}/usr/share/munin/plugins/sybase_space
  272. # Create DBDIRNODE
  273. mkdir -p %{buildroot}/var/lib/munin-node/plugin-state
  274. # Fix config file so that it no longer references the build host
  275. sed -i 's/^\[.*/\[localhost\]/' %{buildroot}/etc/munin/munin.conf
  276. # Create sample fcgi config files
  277. mkdir -p %{buildroot}/etc/sysconfig %{buildroot}/etc/apache2/conf.d
  278. cp %{SOURCE19} %{buildroot}/etc/apache2/conf.d/munin-cgi.conf
  279. cat > %{buildroot}/etc/sysconfig/spawn-fcgi-munin <<EOT
  280. # SAMPLE: Rename this file to /etc/sysconfig/spawn-fcgi and edit to fit
  281. # (Without something like this, munin-cgi will not work properly via init script)
  282. SOCKET=/var/run/munin/fcgi-graph.sock
  283. OPTIONS="-U www-data -u www-data -g www-data -s $SOCKET -S -M 0600 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /var/www/cgi-bin/munin-cgi-graph"
  284. EOT
  285. # create symlinks to munin-asyncd in %%{_sbindir}
  286. for i in munin-async munin-asyncd
  287. do
  288. ln -sf %{_datadir}/munin/$i %{buildroot}%{_sbindir}/$i
  289. done
  290. install -m 755 %{SOURCE100} %{buildroot}%{_initdir}/munin-cgi-graph
  291. install -m 755 %{SOURCE101} %{buildroot}%{_initdir}/munin-cgi-html
  292. install -m 644 %{SOURCE102} %{buildroot}%{_sysconfdir}/sysconfig/munin-cgi-graph
  293. install -m 644 %{SOURCE103} %{buildroot}%{_sysconfdir}/sysconfig/munin-cgi-html
  294. install -d %{buildroot}%{_sysconfdir}/nginx
  295. install -m 644 %{SOURCE104} %{buildroot}%{_sysconfdir}/nginx/munin_params
  296. install -d %{buildroot}%{_localstatedir}/lib/%{name}/cgi-tmp
  297. %clean
  298. rm -rf $RPM_BUILD_ROOT
  299. #
  300. # node package scripts
  301. #
  302. %pre node
  303. getent group munin >/dev/null || groupadd -r munin
  304. getent passwd munin >/dev/null || \
  305. useradd -r -g munin -d /var/lib/munin -s /sbin/nologin \
  306. -c "Munin user" munin
  307. exit 0
  308. %post node
  309. /sbin/chkconfig --add munin-node
  310. # Only run configure on a new install, not an upgrade.
  311. if [ "$1" = "1" ]; then
  312. /usr/sbin/munin-node-configure --shell 2> /dev/null | sh >& /dev/null || :
  313. fi
  314. %preun node
  315. if [ "$1" = 0 ]; then
  316. service munin-node stop &>/dev/null || :
  317. /sbin/chkconfig --del munin-node
  318. fi
  319. %postun node
  320. if [ "$1" = "0" ]; then
  321. [ -d %{_sysconfdir}/munin/plugins ] && \
  322. find %{_sysconfdir}/munin/plugins/ -maxdepth 1 -type l -print0 | \
  323. xargs -0 rm || :
  324. fi
  325. %triggerun node -- munin-node < 1.4.7
  326. cp -a %{_sysconfdir}/munin/plugins %{_sysconfdir}/munin/plugins.bak || :
  327. %triggerpostun node -- munin-node < 1.4.7
  328. mv -f %{_sysconfdir}/munin/plugins.bak/* %{_sysconfdir}/munin/plugins/ || :
  329. #
  330. # async package scripts
  331. #
  332. %post async
  333. /sbin/chkconfig --add munin-asyncd
  334. %preun async
  335. if [ "$1" = 0 ]; then
  336. service munin-asyncd stop &>/dev/null || :
  337. /sbin/chkconfig --del munin-asyncd
  338. fi
  339. #
  340. # cgi package scripts
  341. #
  342. %post cgi
  343. for svc in cgi-html cgi-graph; do
  344. /sbin/chkconfig --add munin-${svc}
  345. done
  346. %preun cgi
  347. if [ "$1" = 0 ]; then
  348. for svc in cgi-html cgi-graph; do
  349. service munin-${svc} stop &>/dev/null || :
  350. /sbin/chkconfig --del munin-${svc}
  351. done
  352. fi
  353. #
  354. # main package scripts
  355. #
  356. %pre
  357. getent group munin >/dev/null || groupadd -r munin
  358. getent passwd munin >/dev/null || \
  359. useradd -r -g munin -d /var/lib/munin -s /sbin/nologin \
  360. -c "Munin user" munin
  361. exit 0
  362. %files
  363. %defattr(-, root, root)
  364. %{_bindir}/munin-cron
  365. %{_bindir}/munindoc
  366. %{_bindir}/munin-check
  367. %{_sbindir}/munin-sched
  368. %dir %{_datadir}/munin
  369. %{_datadir}/munin/munin-graph
  370. %{_datadir}/munin/munin-html
  371. %{_datadir}/munin/munin-limits
  372. %{_datadir}/munin/munin-update
  373. %{_datadir}/munin/munin-datafile2storable
  374. %{_datadir}/munin/munin-storable2datafile
  375. %{perl_vendorlib}/Munin/Master
  376. %dir /etc/munin/templates
  377. %dir /etc/munin
  378. %dir /etc/munin/conf.d
  379. %config(noreplace) /etc/munin/templates/*
  380. %config(noreplace) /etc/munin/static/*
  381. %config(noreplace) /etc/cron.d/munin
  382. %config(noreplace) /etc/munin/munin.conf
  383. %config(noreplace) /etc/logrotate.d/munin
  384. %config(noreplace) /etc/apache2/conf.d/munin.conf
  385. %attr(-, munin, munin) %dir /var/lib/munin
  386. %attr(-, munin, munin) %dir /var/lib/munin/plugin-state
  387. %attr(-, munin, munin) %dir /var/run/munin
  388. %attr(-, munin, munin) %dir /var/log/munin
  389. %attr(-, munin, munin) /var/www/html/munin
  390. %doc %{_mandir}/man1/munindoc*
  391. %doc %{_mandir}/man1/munin-sched*
  392. %doc %{_mandir}/man3/Munin::Master*
  393. %doc %{_mandir}/man5/munin.conf*
  394. %doc %{_mandir}/man8/munin*
  395. %files node
  396. %defattr(-, root, root)
  397. %config(noreplace) /etc/munin/munin-node.conf
  398. %dir /etc/munin/plugin-conf.d
  399. %dir /etc/munin/node.d
  400. %config(noreplace) /etc/munin/plugin-conf.d/munin-node
  401. %config(noreplace) /etc/munin/plugin-conf.d/sendmail
  402. %config(noreplace) /etc/munin/plugin-conf.d/hddtemp_smartctl
  403. %config(noreplace) /etc/munin/plugin-conf.d/postfix
  404. %config(noreplace) /etc/munin/plugin-conf.d/df
  405. %config(noreplace) /etc/logrotate.d/munin-node
  406. /etc/rc.d/init.d/munin-node
  407. %{_sbindir}/munin-run
  408. %{_sbindir}/munin-node
  409. %{_sbindir}/munin-node-configure
  410. %attr(-, munin, munin) %dir /var/log/munin
  411. %dir %{_datadir}/munin
  412. %dir /etc/munin/plugins
  413. %dir /etc/munin
  414. %attr(-, munin, munin) %dir /var/lib/munin
  415. %dir %attr(-, munin, munin) /var/lib/munin/plugin-state
  416. %{_datadir}/munin/plugins/
  417. %doc %{_mandir}/man5/munin-node*
  418. %doc %{_mandir}/man3/Munin::Common*
  419. %doc %{_mandir}/man3/Munin::Node*
  420. %doc %{_mandir}/man3/Munin::Plugin*
  421. %doc %{_mandir}/man1/munin-node*
  422. %doc %{_mandir}/man1/munin-run*
  423. %{perl_vendorlib}/Munin/Node
  424. %{perl_vendorlib}/Munin/Plugin*
  425. %files async
  426. %defattr(-,root,root)
  427. %{_sbindir}/munin-async*
  428. %{_datadir}/munin/munin-async*
  429. %{_sysconfdir}/rc.d/init.d/munin-asyncd
  430. %files common
  431. %defattr(-, root, root)
  432. %doc Announce-2.0 ChangeLog COPYING HACKING.pod perltidyrc README RELEASE UPGRADING
  433. %dir %{perl_vendorlib}/Munin
  434. %{perl_vendorlib}/Munin/Common
  435. %config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
  436. %files cgi
  437. %defattr(-,root,root)
  438. %attr(0755,root,munin) /var/www/cgi-bin/munin-cgi-graph
  439. %attr(0755,root,munin) /var/www/cgi-bin/munin-cgi-html
  440. %attr(0755,www-data,www-data) %dir %{_localstatedir}/lib/%{name}/cgi-tmp
  441. %{_initdir}/munin-cgi-graph
  442. %{_initdir}/munin-cgi-html
  443. %config(noreplace) %{_sysconfdir}/sysconfig/munin-cgi-graph
  444. %config(noreplace) %{_sysconfdir}/sysconfig/munin-cgi-html
  445. %config(noreplace) %{_sysconfdir}/sysconfig/spawn-fcgi-munin
  446. %files cgi-apache2
  447. %defattr(-,root,root)
  448. %config(noreplace) %{_sysconfdir}/apache2/conf.d/munin-cgi.conf
  449. %files cgi-nginx
  450. %defattr(-,root,root)
  451. %config(noreplace) %{_sysconfdir}/nginx/munin_params
  452. %changelog
  453. * Tue Jul 29 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.0.21-2
  454. - fix VineLinux:0002793(http://mantis.vinelinux.org/view.php?id=2793)
  455. * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.21-1
  456. - new upstream release.
  457. * Sat Nov 23 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.17-1
  458. - new upstream release.
  459. - added sub packages "cgi-apache2" and "cgi-nginx".
  460. * Tue Dec 04 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1
  461. - update to munin-2.0.8
  462. - add async/cgi sub package
  463. * Thu Mar 22 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.6-1
  464. - Initial build for Vine Linux.
  465. * Wed Feb 22 2012 Kevin Fenzi <kevin@scrye.com> 1.4.6-8
  466. - Build against java-1.7.0 now. Fixes bug #796345
  467. * Tue Jan 31 2012 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-7
  468. - Create state file for yum-plugin. Fixes BZ #786030.
  469. * Fri Jan 20 2012 Kevin Fenzi <kevin@scrye.com> - 1.4.6-6
  470. - Add PrivateTmp=true to systemd unit file. Fixes bug #782512
  471. - Change logrotate to use munin user. Fixes bug #771017
  472. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-5.3
  473. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  474. * Mon Oct 17 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.6-4.3
  475. - Rebuild for java 1.6.0 downgrade (fesco ticket 663)
  476. * Sat Aug 27 2011 Kevin Fenzi <kevin@scrye.com> - 1.4.6-4.1
  477. - Add patch to run restorecon in the sysvinit script.
  478. - This doesn't matter on f16+
  479. * Sat Aug 20 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-4
  480. - fix tmpfiles.d file for f15 (BZ# 731181)
  481. * Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.4.6-3
  482. - Perl mass rebuild
  483. * Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.4.6-2
  484. - Perl mass rebuild
  485. * Fri Jul 8 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-1
  486. - update to 1.4.6
  487. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.5-13
  488. - Perl mass rebuild
  489. * Wed Jun 15 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-12
  490. - Use tmpfiles.d instead of ExecStartPre
  491. - Add patch for noSuchObject errors (BZ# 712245)
  492. * Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.5-11
  493. - Perl 5.14 mass rebuild
  494. * Wed Jun 1 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-10
  495. - Fixes http://munin-monitoring.org/ticket/887
  496. * Mon May 30 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-9
  497. - Native systemd service file for munin-node (BZ# 699275)
  498. * Tue Feb 08 2011 Kevin Fenzi <kevin@tummy.com> - 1.4.5-8
  499. - Fix issue with uppercase node names returning no data. Fixes #673263
  500. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-7
  501. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  502. * Sun Dec 05 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-6
  503. - Adjust the df fix to include all the right fses
  504. * Thu Nov 25 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-5
  505. - Exclude some fses from df plugin. fixes #601410
  506. * Wed Aug 11 2010 Todd Zullinger <tmz@pobox.com> - 1.4.5-4.1
  507. - Move jmx_ plugin to java-plugins package
  508. * Wed Jul 07 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-4
  509. - Move docs to common subpackage to make sure COPYING is installed.
  510. * Sat Jul 03 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-3
  511. - Add /etc/munin/node.d dir
  512. * Sat Jun 12 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-2
  513. - Add /etc/munin/conf.d/ dir
  514. * Sat Jun 05 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-1
  515. - Update to 1.4.5
  516. * Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.4.4-2
  517. - Mass rebuild with perl-5.12.0
  518. * Mon Mar 01 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.4-1
  519. - Update to 1.4.4
  520. - Add more doc files. Fixes bug #563824
  521. - fw_forwarded_local fixed upstream in 1.4.4. Fixes bug #568500
  522. * Sun Jan 17 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.3-2
  523. - Fix owner on state files.
  524. - Add some BuildRequires.
  525. - Make munin-node-configure only run on install, not upgrade. bug 540687
  526. * Thu Dec 31 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.3-1
  527. - Update to 1.4.3
  528. * Thu Dec 17 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.2-1
  529. - New upstream release
  530. - Removed upstream packaged fonts
  531. - Added a patch that makes rrdtool use the system bitstream vera fonts on
  532. rhel < 6 and fedora < 11
  533. * Fri Dec 11 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.1-3
  534. - More correct fedora and el versions for previous font path fix
  535. - Added a patch that fixes a quoting bug in GraphOld.pm, fixing fonts on el4
  536. * Wed Dec 09 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.1-2
  537. - Remove jmx plugins when not supported (like on el4 and older fedora)
  538. - Correct font path on older distros like el5, el4 and fedora<11
  539. * Fri Dec 04 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.1-1
  540. - Update to 1.4.1
  541. * Sat Nov 28 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-1
  542. - Update to final 1.4.0 version
  543. * Sat Nov 21 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-0.1.beta
  544. - Update to beta 1.4.0 version.
  545. - Add common subpackage for common files.
  546. * Sun Nov 08 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-0.1.alpha
  547. - Initial alpha version of 1.4.0
  548. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-10
  549. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  550. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-9
  551. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  552. * Sat Jan 24 2009 Andreas Thienemann <andreas@bawue.net> - 1.2.6-8
  553. - Updated dependencies to better reflect plugin requirements
  554. - Added hddtemp_smartctl patch to only scan for standby state on /dev/[sh]d? devices.
  555. * Sat Jan 17 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-7
  556. - Adjust font requires for new dejavu-sans-mono-fonts name (fixes #480463)
  557. * Mon Jan 12 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-6
  558. - Fix to require the correct font
  559. * Sun Jan 11 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-5
  560. - Switch to using dejavu-fonts instead of bitstream-vera
  561. * Sun Jan 04 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-4
  562. - Require bitstream-vera-fonts-sans-mono for Font (fixes #477428)
  563. * Mon Aug 11 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-3
  564. - Move Munin/Plugin.pm to the node subpackage (fixes #457403)
  565. * Sat Jul 12 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-2
  566. - Apply postfix patch (fixes #454159)
  567. - Add perl version dep and remove unneeded perl-HTML-Template (fixes #453923)
  568. * Fri Jun 20 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-1
  569. - Upgrade to 1.2.6
  570. * Tue May 20 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.5-5
  571. - Rebuild for new perl
  572. * Wed Dec 26 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-4
  573. - Add patch to fix ampersand and degrees in plugins (fixes #376441)
  574. * Fri Nov 30 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-3
  575. - Removed unnneeded plugins.conf file (fixes #288541)
  576. - Fix license tag.
  577. - Fix ip_conntrack monitoring (fixes #253192)
  578. - Switch to new useradd guidelines.
  579. * Tue Mar 27 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-2
  580. - Fix directory ownership (fixes #233886)
  581. * Tue Oct 17 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.5-1
  582. - Update to 1.2.5
  583. - Fix HD stats (fixes #205042)
  584. - Add in logrotate scripts that seem to have been dropped upstream
  585. * Sun Aug 27 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-10
  586. - Rebuild for fc6
  587. * Tue Jun 27 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-9
  588. - Re-enable snmp plugins now that perl-Net-SNMP is available (fixes 196588)
  589. - Thanks to Herbert Straub <herbert@linuxhacker.at> for patch.
  590. - Fix sendmail plugins to look in the right place for the queue
  591. * Sat Apr 22 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-8
  592. - add patch to remove unneeded munin-nagios in cron.
  593. - add patch to remove buildhostname in munin.conf (fixes #188928)
  594. - clean up prep section of spec.
  595. * Fri Feb 24 2006 Kevin Fenzi <kevin@scrye.com> - 1.2.4-7
  596. - Remove bogus Provides for perl RRDs (fixes #182702)
  597. * Thu Feb 16 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-6
  598. - Readded old changelog entries per request
  599. - Rebuilt for fc5
  600. * Sat Dec 24 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-5
  601. - Fixed ownership for /var/log/munin in node subpackage (fixes 176529)
  602. * Wed Dec 14 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-4
  603. - Fixed ownership for /var/lib/munin in node subpackage
  604. * Wed Dec 14 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-3
  605. - Fixed libdir messup to allow builds on x86_64
  606. * Mon Dec 12 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-2
  607. - Removed plugins that require Net-SNMP and Sybase
  608. * Tue Dec 6 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-1
  609. - Inital cleanup for fedora-extras
  610. * Thu Apr 21 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-4
  611. - Fixed a bug in the iostat plugin
  612. * Wed Apr 20 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-3
  613. - Added the missing /var/run/munin
  614. * Tue Apr 19 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-2
  615. - Removed a lot of unecessary perl dependencies
  616. * Mon Apr 18 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-1
  617. - Sync with svn
  618. * Tue Mar 22 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.2-5
  619. - Sync with release of 1.2.2
  620. - Add some nice text from the suse specfile
  621. - Minimal changes in the header
  622. - Som ecosmetic changes
  623. - Added logrotate scripts (stolen from debian package)
  624. * Sun Feb 01 2004 Ingvar Hagelund <ingvar@linpro.no>
  625. - Sync with CVS. Version 1.0.0pre2
  626. * Sun Jan 18 2004 Ingvar Hagelund <ingvar@linpro.no>
  627. - Sync with CVS. Change names to munin.
  628. * Fri Oct 31 2003 Ingvar Hagelund <ingvar@linpro.no>
  629. - Lot of small fixes. Now builds on more RPM distros
  630. * Wed May 21 2003 Ingvar Hagelund <ingvar@linpro.no>
  631. - Sync with CVS
  632. - 0.9.5-1
  633. * Tue Apr 1 2003 Ingvar Hagelund <ingvar@linpro.no>
  634. - Sync with CVS
  635. - Makefile-based install of core files
  636. - Build doc (only pod2man)
  637. * Thu Jan 9 2003 Ingvar Hagelund <ingvar@linpro.no>
  638. - Sync with CVS, auto rpmbuild
  639. * Thu Jan 2 2003 Ingvar Hagelund <ingvar@linpro.no>
  640. - Fix spec file for RedHat 8.0 and new version of lrrd
  641. * Wed Sep 4 2002 Ingvar Hagelund <ingvar@linpro.no>
  642. - Small bugfixes in the rpm package
  643. * Tue Jun 18 2002 Kjetil Torgrim Homme <kjetilho@linpro.no>
  644. - new package