From: Elan Ruusamäe Date: Sat, 6 Sep 2014 19:12:53 +0000 (+0300) Subject: new, version 6.1.0 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=dc42e5288fd9405473efa8a51a9fb536754f4cc3;p=packages%2Fmonyog.git new, version 6.1.0 --- dc42e5288fd9405473efa8a51a9fb536754f4cc3 diff --git a/monyog.spec b/monyog.spec new file mode 100644 index 0000000..ac5bb7d --- /dev/null +++ b/monyog.spec @@ -0,0 +1,58 @@ +# TODO +# - pldize initscript +Summary: MONyog MySQL Monitoring Tool +Name: monyog +Version: 6.1.0 +Release: 0.1 +License: Webyog Inc. +Group: Applications/Databases +Source0: https://static.webyog.com/downloads/MONyog-%{version}-0.i386.tar.gz +# NoSource0-md5: adadfca45532b163d4f1f24f9cdff9c0 +NoSource: 0 +Source1: https://static.webyog.com/downloads/MONyog-%{version}-0.x86_64.tar.gz +# NoSource1-md5: 4cc3950bca955474b73baa57c4c4d9d7 +NoSource: 1 +URL: https://www.webyog.com/product/monyog +ExclusiveArch: %{ix86} %{x8664} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _appdir %{_datadir}/%{name} + +%description +MONyog is a monitoring and advisory tool for MySQL Community, MySQL +Enterprise and MariaDB. + +MONyog helps MySQL Database Administrators to manage more servers, +tune their MySQL servers and fix problems with MySQL database +applications. MONyog is agent-less, and does not require anything to +be installed on the MySQL servers. MONyog helps monitor enterprise +database environments and provides expert advice on how even those new +to MySQL can tighten security, optimize performance and reduce +downtime of their MySQL powered systems. + +%prep +%ifarch %{ix86} +%setup -qcT -a0 +%endif +%ifarch %{x8664} +%setup -qcT -a1 +%endif + +mv MONyog/* . + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_appdir},/etc/{rc.d/init.d,logrotate.d}} +cp -a MONyog.lua MONyog.mib res $RPM_BUILD_ROOT%{_appdir} +install -p bin/MONyog $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} +install -p bin/MONyog-bin $RPM_BUILD_ROOT%{_sbindir}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%attr(754,root,root) /etc/rc.d/init.d/monyog +%attr(755,root,root) %{_sbindir}/monyog +%{_appdir}