munin-vl.spec 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. Name: munin
  2. Version: 2.0.49
  3. Release: 1%{?_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 >= 2:5.26.2
  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)
  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,^PERLLIB = \(.*\),PERLLIB = $(DESTDIR)/%{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. # drop duplicated files
  298. rm -rf %{buildroot}%{perl_sitelib}/*
  299. %clean
  300. rm -rf $RPM_BUILD_ROOT
  301. #
  302. # node package scripts
  303. #
  304. %pre node
  305. getent group munin >/dev/null || groupadd -r munin
  306. getent passwd munin >/dev/null || \
  307. useradd -r -g munin -d /var/lib/munin -s /sbin/nologin \
  308. -c "Munin user" munin
  309. exit 0
  310. %post node
  311. /sbin/chkconfig --add munin-node
  312. # Only run configure on a new install, not an upgrade.
  313. if [ "$1" = "1" ]; then
  314. /usr/sbin/munin-node-configure --shell 2> /dev/null | sh >& /dev/null || :
  315. fi
  316. %preun node
  317. if [ "$1" = 0 ]; then
  318. service munin-node stop &>/dev/null || :
  319. /sbin/chkconfig --del munin-node
  320. fi
  321. %postun node
  322. if [ "$1" = "0" ]; then
  323. [ -d %{_sysconfdir}/munin/plugins ] && \
  324. find %{_sysconfdir}/munin/plugins/ -maxdepth 1 -type l -print0 | \
  325. xargs -0 rm || :
  326. fi
  327. %triggerun node -- munin-node < 1.4.7
  328. cp -a %{_sysconfdir}/munin/plugins %{_sysconfdir}/munin/plugins.bak || :
  329. %triggerpostun node -- munin-node < 1.4.7
  330. mv -f %{_sysconfdir}/munin/plugins.bak/* %{_sysconfdir}/munin/plugins/ || :
  331. #
  332. # async package scripts
  333. #
  334. %post async
  335. /sbin/chkconfig --add munin-asyncd
  336. %preun async
  337. if [ "$1" = 0 ]; then
  338. service munin-asyncd stop &>/dev/null || :
  339. /sbin/chkconfig --del munin-asyncd
  340. fi
  341. #
  342. # cgi package scripts
  343. #
  344. %post cgi
  345. for svc in cgi-html cgi-graph; do
  346. /sbin/chkconfig --add munin-${svc}
  347. done
  348. %preun cgi
  349. if [ "$1" = 0 ]; then
  350. for svc in cgi-html cgi-graph; do
  351. service munin-${svc} stop &>/dev/null || :
  352. /sbin/chkconfig --del munin-${svc}
  353. done
  354. fi
  355. #
  356. # main package scripts
  357. #
  358. %pre
  359. getent group munin >/dev/null || groupadd -r munin
  360. getent passwd munin >/dev/null || \
  361. useradd -r -g munin -d /var/lib/munin -s /sbin/nologin \
  362. -c "Munin user" munin
  363. exit 0
  364. %files
  365. %defattr(-, root, root)
  366. %{_bindir}/munin-cron
  367. %{_bindir}/munindoc
  368. %{_bindir}/munin-check
  369. #{_sbindir}/munin-sched
  370. %dir %{_datadir}/munin
  371. %{_datadir}/munin/munin-graph
  372. %{_datadir}/munin/munin-html
  373. %{_datadir}/munin/munin-limits
  374. %{_datadir}/munin/munin-update
  375. %{_datadir}/munin/munin-datafile2storable
  376. %{_datadir}/munin/munin-storable2datafile
  377. %{perl_vendorlib}/Munin/Master
  378. %dir /etc/munin/templates
  379. %dir /etc/munin
  380. %dir /etc/munin/conf.d
  381. %config(noreplace) /etc/munin/templates/*
  382. %config(noreplace) /etc/munin/static/*
  383. %config(noreplace) /etc/cron.d/munin
  384. %config(noreplace) /etc/munin/munin.conf
  385. %config(noreplace) /etc/logrotate.d/munin
  386. %config(noreplace) /etc/apache2/conf.d/munin.conf
  387. %attr(-, munin, munin) %dir /var/lib/munin
  388. %attr(-, munin, munin) %dir /var/lib/munin/plugin-state
  389. %attr(-, munin, munin) %dir /var/run/munin
  390. %attr(-, munin, munin) %dir /var/log/munin
  391. %attr(-, munin, munin) /var/www/html/munin
  392. %doc %{_mandir}/man1/munindoc*
  393. #%doc %{_mandir}/man1/munin-sched*
  394. %doc %{_mandir}/man3/Munin::Master*
  395. %doc %{_mandir}/man5/munin.conf*
  396. %doc %{_mandir}/man8/munin*
  397. %files node
  398. %defattr(-, root, root)
  399. %config(noreplace) /etc/munin/munin-node.conf
  400. %dir /etc/munin/plugin-conf.d
  401. %dir /etc/munin/node.d
  402. %config(noreplace) /etc/munin/plugin-conf.d/munin-node
  403. %config(noreplace) /etc/munin/plugin-conf.d/sendmail
  404. %config(noreplace) /etc/munin/plugin-conf.d/hddtemp_smartctl
  405. %config(noreplace) /etc/munin/plugin-conf.d/postfix
  406. %config(noreplace) /etc/munin/plugin-conf.d/df
  407. %config(noreplace) /etc/logrotate.d/munin-node
  408. /etc/rc.d/init.d/munin-node
  409. %{_sbindir}/munin-run
  410. %{_sbindir}/munin-node
  411. %{_sbindir}/munin-node-configure
  412. %attr(-, munin, munin) %dir /var/log/munin
  413. %dir %{_datadir}/munin
  414. %dir /etc/munin/plugins
  415. %dir /etc/munin
  416. %attr(-, munin, munin) %dir /var/lib/munin
  417. %dir %attr(-, munin, munin) /var/lib/munin/plugin-state
  418. %{_datadir}/munin/plugins/
  419. %doc %{_mandir}/man5/munin-node*
  420. %doc %{_mandir}/man3/Munin::Common*
  421. %doc %{_mandir}/man3/Munin::Node*
  422. %doc %{_mandir}/man3/Munin::Plugin*
  423. %doc %{_mandir}/man1/munin-node*
  424. %doc %{_mandir}/man1/munin-run*
  425. %{perl_vendorlib}/Munin/Node
  426. %{perl_vendorlib}/Munin/Plugin*
  427. %files async
  428. %defattr(-,root,root)
  429. %{_sbindir}/munin-async*
  430. %{_datadir}/munin/munin-async*
  431. %{_sysconfdir}/rc.d/init.d/munin-asyncd
  432. %files common
  433. %defattr(-, root, root)
  434. %doc Announce-2.0 ChangeLog COPYING HACKING.pod perltidyrc README RELEASE UPGRADING
  435. %dir %{perl_vendorlib}/Munin
  436. %{perl_vendorlib}/Munin/Common
  437. %config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
  438. %files cgi
  439. %defattr(-,root,root)
  440. %attr(0755,root,munin) /var/www/cgi-bin/munin-cgi-graph
  441. %attr(0755,root,munin) /var/www/cgi-bin/munin-cgi-html
  442. %attr(0755,www-data,www-data) %dir %{_localstatedir}/lib/%{name}/cgi-tmp
  443. %{_initdir}/munin-cgi-graph
  444. %{_initdir}/munin-cgi-html
  445. %config(noreplace) %{_sysconfdir}/sysconfig/munin-cgi-graph
  446. %config(noreplace) %{_sysconfdir}/sysconfig/munin-cgi-html
  447. %config(noreplace) %{_sysconfdir}/sysconfig/spawn-fcgi-munin
  448. %files cgi-apache2
  449. %defattr(-,root,root)
  450. %config(noreplace) %{_sysconfdir}/apache2/conf.d/munin-cgi.conf
  451. %files cgi-nginx
  452. %defattr(-,root,root)
  453. %config(noreplace) %{_sysconfdir}/nginx/munin_params
  454. %changelog
  455. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.49-1
  456. - new upstream release.
  457. - rebuilt with perl-5.26.
  458. * Tue Jul 29 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.0.21-2
  459. - fix VineLinux:0002793(http://mantis.vinelinux.org/view.php?id=2793)
  460. * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.21-1
  461. - new upstream release.
  462. * Sat Nov 23 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.17-1
  463. - new upstream release.
  464. - added sub packages "cgi-apache2" and "cgi-nginx".
  465. * Tue Dec 04 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1
  466. - update to munin-2.0.8
  467. - add async/cgi sub package
  468. * Thu Mar 22 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.6-1
  469. - Initial build for Vine Linux.
  470. * Wed Feb 22 2012 Kevin Fenzi <kevin@scrye.com> 1.4.6-8
  471. - Build against java-1.7.0 now. Fixes bug #796345
  472. * Tue Jan 31 2012 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-7
  473. - Create state file for yum-plugin. Fixes BZ #786030.
  474. * Fri Jan 20 2012 Kevin Fenzi <kevin@scrye.com> - 1.4.6-6
  475. - Add PrivateTmp=true to systemd unit file. Fixes bug #782512
  476. - Change logrotate to use munin user. Fixes bug #771017
  477. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-5.3
  478. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  479. * Mon Oct 17 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.6-4.3
  480. - Rebuild for java 1.6.0 downgrade (fesco ticket 663)
  481. * Sat Aug 27 2011 Kevin Fenzi <kevin@scrye.com> - 1.4.6-4.1
  482. - Add patch to run restorecon in the sysvinit script.
  483. - This doesn't matter on f16+
  484. * Sat Aug 20 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-4
  485. - fix tmpfiles.d file for f15 (BZ# 731181)
  486. * Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.4.6-3
  487. - Perl mass rebuild
  488. * Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.4.6-2
  489. - Perl mass rebuild
  490. * Fri Jul 8 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-1
  491. - update to 1.4.6
  492. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.5-13
  493. - Perl mass rebuild
  494. * Wed Jun 15 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-12
  495. - Use tmpfiles.d instead of ExecStartPre
  496. - Add patch for noSuchObject errors (BZ# 712245)
  497. * Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.5-11
  498. - Perl 5.14 mass rebuild
  499. * Wed Jun 1 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-10
  500. - Fixes http://munin-monitoring.org/ticket/887
  501. * Mon May 30 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-9
  502. - Native systemd service file for munin-node (BZ# 699275)
  503. * Tue Feb 08 2011 Kevin Fenzi <kevin@tummy.com> - 1.4.5-8
  504. - Fix issue with uppercase node names returning no data. Fixes #673263
  505. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-7
  506. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  507. * Sun Dec 05 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-6
  508. - Adjust the df fix to include all the right fses
  509. * Thu Nov 25 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-5
  510. - Exclude some fses from df plugin. fixes #601410
  511. * Wed Aug 11 2010 Todd Zullinger <tmz@pobox.com> - 1.4.5-4.1
  512. - Move jmx_ plugin to java-plugins package
  513. * Wed Jul 07 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-4
  514. - Move docs to common subpackage to make sure COPYING is installed.
  515. * Sat Jul 03 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-3
  516. - Add /etc/munin/node.d dir
  517. * Sat Jun 12 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-2
  518. - Add /etc/munin/conf.d/ dir
  519. * Sat Jun 05 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-1
  520. - Update to 1.4.5
  521. * Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.4.4-2
  522. - Mass rebuild with perl-5.12.0
  523. * Mon Mar 01 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.4-1
  524. - Update to 1.4.4
  525. - Add more doc files. Fixes bug #563824
  526. - fw_forwarded_local fixed upstream in 1.4.4. Fixes bug #568500
  527. * Sun Jan 17 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.3-2
  528. - Fix owner on state files.
  529. - Add some BuildRequires.
  530. - Make munin-node-configure only run on install, not upgrade. bug 540687
  531. * Thu Dec 31 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.3-1
  532. - Update to 1.4.3
  533. * Thu Dec 17 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.2-1
  534. - New upstream release
  535. - Removed upstream packaged fonts
  536. - Added a patch that makes rrdtool use the system bitstream vera fonts on
  537. rhel < 6 and fedora < 11
  538. * Fri Dec 11 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.1-3
  539. - More correct fedora and el versions for previous font path fix
  540. - Added a patch that fixes a quoting bug in GraphOld.pm, fixing fonts on el4
  541. * Wed Dec 09 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.1-2
  542. - Remove jmx plugins when not supported (like on el4 and older fedora)
  543. - Correct font path on older distros like el5, el4 and fedora<11
  544. * Fri Dec 04 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.1-1
  545. - Update to 1.4.1
  546. * Sat Nov 28 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-1
  547. - Update to final 1.4.0 version
  548. * Sat Nov 21 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-0.1.beta
  549. - Update to beta 1.4.0 version.
  550. - Add common subpackage for common files.
  551. * Sun Nov 08 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-0.1.alpha
  552. - Initial alpha version of 1.4.0
  553. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-10
  554. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  555. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-9
  556. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  557. * Sat Jan 24 2009 Andreas Thienemann <andreas@bawue.net> - 1.2.6-8
  558. - Updated dependencies to better reflect plugin requirements
  559. - Added hddtemp_smartctl patch to only scan for standby state on /dev/[sh]d? devices.
  560. * Sat Jan 17 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-7
  561. - Adjust font requires for new dejavu-sans-mono-fonts name (fixes #480463)
  562. * Mon Jan 12 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-6
  563. - Fix to require the correct font
  564. * Sun Jan 11 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-5
  565. - Switch to using dejavu-fonts instead of bitstream-vera
  566. * Sun Jan 04 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-4
  567. - Require bitstream-vera-fonts-sans-mono for Font (fixes #477428)
  568. * Mon Aug 11 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-3
  569. - Move Munin/Plugin.pm to the node subpackage (fixes #457403)
  570. * Sat Jul 12 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-2
  571. - Apply postfix patch (fixes #454159)
  572. - Add perl version dep and remove unneeded perl-HTML-Template (fixes #453923)
  573. * Fri Jun 20 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-1
  574. - Upgrade to 1.2.6
  575. * Tue May 20 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.5-5
  576. - Rebuild for new perl
  577. * Wed Dec 26 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-4
  578. - Add patch to fix ampersand and degrees in plugins (fixes #376441)
  579. * Fri Nov 30 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-3
  580. - Removed unnneeded plugins.conf file (fixes #288541)
  581. - Fix license tag.
  582. - Fix ip_conntrack monitoring (fixes #253192)
  583. - Switch to new useradd guidelines.
  584. * Tue Mar 27 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-2
  585. - Fix directory ownership (fixes #233886)
  586. * Tue Oct 17 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.5-1
  587. - Update to 1.2.5
  588. - Fix HD stats (fixes #205042)
  589. - Add in logrotate scripts that seem to have been dropped upstream
  590. * Sun Aug 27 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-10
  591. - Rebuild for fc6
  592. * Tue Jun 27 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-9
  593. - Re-enable snmp plugins now that perl-Net-SNMP is available (fixes 196588)
  594. - Thanks to Herbert Straub <herbert@linuxhacker.at> for patch.
  595. - Fix sendmail plugins to look in the right place for the queue
  596. * Sat Apr 22 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-8
  597. - add patch to remove unneeded munin-nagios in cron.
  598. - add patch to remove buildhostname in munin.conf (fixes #188928)
  599. - clean up prep section of spec.
  600. * Fri Feb 24 2006 Kevin Fenzi <kevin@scrye.com> - 1.2.4-7
  601. - Remove bogus Provides for perl RRDs (fixes #182702)
  602. * Thu Feb 16 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-6
  603. - Readded old changelog entries per request
  604. - Rebuilt for fc5
  605. * Sat Dec 24 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-5
  606. - Fixed ownership for /var/log/munin in node subpackage (fixes 176529)
  607. * Wed Dec 14 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-4
  608. - Fixed ownership for /var/lib/munin in node subpackage
  609. * Wed Dec 14 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-3
  610. - Fixed libdir messup to allow builds on x86_64
  611. * Mon Dec 12 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-2
  612. - Removed plugins that require Net-SNMP and Sybase
  613. * Tue Dec 6 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-1
  614. - Inital cleanup for fedora-extras
  615. * Thu Apr 21 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-4
  616. - Fixed a bug in the iostat plugin
  617. * Wed Apr 20 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-3
  618. - Added the missing /var/run/munin
  619. * Tue Apr 19 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-2
  620. - Removed a lot of unecessary perl dependencies
  621. * Mon Apr 18 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-1
  622. - Sync with svn
  623. * Tue Mar 22 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.2-5
  624. - Sync with release of 1.2.2
  625. - Add some nice text from the suse specfile
  626. - Minimal changes in the header
  627. - Som ecosmetic changes
  628. - Added logrotate scripts (stolen from debian package)
  629. * Sun Feb 01 2004 Ingvar Hagelund <ingvar@linpro.no>
  630. - Sync with CVS. Version 1.0.0pre2
  631. * Sun Jan 18 2004 Ingvar Hagelund <ingvar@linpro.no>
  632. - Sync with CVS. Change names to munin.
  633. * Fri Oct 31 2003 Ingvar Hagelund <ingvar@linpro.no>
  634. - Lot of small fixes. Now builds on more RPM distros
  635. * Wed May 21 2003 Ingvar Hagelund <ingvar@linpro.no>
  636. - Sync with CVS
  637. - 0.9.5-1
  638. * Tue Apr 1 2003 Ingvar Hagelund <ingvar@linpro.no>
  639. - Sync with CVS
  640. - Makefile-based install of core files
  641. - Build doc (only pod2man)
  642. * Thu Jan 9 2003 Ingvar Hagelund <ingvar@linpro.no>
  643. - Sync with CVS, auto rpmbuild
  644. * Thu Jan 2 2003 Ingvar Hagelund <ingvar@linpro.no>
  645. - Fix spec file for RedHat 8.0 and new version of lrrd
  646. * Wed Sep 4 2002 Ingvar Hagelund <ingvar@linpro.no>
  647. - Small bugfixes in the rpm package
  648. * Tue Jun 18 2002 Kjetil Torgrim Homme <kjetilho@linpro.no>
  649. - new package