X-Git-Url: http://git.sven.stormbind.net/?a=blobdiff_plain;f=mpt-status.spec;h=b9915077c6a2176a570fb120ddd65f9a1652b3b9;hb=1c91116ee14743415e1517d9675c5e01a12a6cb6;hp=16669795e070f8337bc9863c0b72211b0893b8a1;hpb=de7d7d771e2cea43044550bf92d342f9314623d4;p=sven%2Fmpt-status.git diff --git a/mpt-status.spec b/mpt-status.spec index 1666979..b991507 100644 --- a/mpt-status.spec +++ b/mpt-status.spec @@ -1,14 +1,18 @@ Summary: Get RAID status out of mpt (and other) HW RAID controllers Name: mpt-status Version: 1.2.0 -Release: 2%{?dist} +Release: 4%{?dist} License: GPLv2+ Group: Applications/System -URL: http://www.drugphish.ch/~ratz/mpt-status/ -Source:http://www.drugphish.ch/~ratz/mpt-status/%{name}-%{version}.tar.gz +Source: %{name}-%{version}.tar.gz +Source10: mpt-status.init Patch1: mpt-status.header_path.patch Patch2: mpt-status.includes.patch +Patch3: mpt-status.fsf_address.patch BuildRequires: pciutils-devel +Requires (preun): /sbin/chkconfig +Requires (preun): /sbin/service +Requires (post): /sbin/chkconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -21,13 +25,17 @@ you to monitor the health and status of your RAID setup. %setup -q -n %{name}-%{version} %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %{__make} %install %{__rm} -rf %{buildroot} +mkdir -p %{buildroot}%{_mandir}/man8 %{__install} -D -m0755 mpt-status %{buildroot}%{_sbindir}/mpt-status +%{__install} -D -m0755 %{SOURCE10} %{buildroot}/%{_sysconfdir}/rc.d/init.d/mpt-statusd +%{__install} -D -m0644 man/mpt-status.8 %{buildroot}%{_mandir}/man8/mpt-status.8 %clean %{__rm} -rf %{buildroot} @@ -36,8 +44,33 @@ you to monitor the health and status of your RAID setup. %defattr(-, root, root, 0755) %doc doc/* %{_sbindir}/mpt-status +%{_sysconfdir}/rc.d/init.d/mpt-statusd + +%post +/sbin/chkconfig --add mpt-statusd + +%preun +/sbin/service mpt-statusd stop > /dev/null 2>&1 +/sbin/chkconfig --del mpt-statusd %changelog +* Wed Aug 04 2014 Sven Hoexter - 1.2.0-4 +- Changed chkconfig and LSB header to not activate the init script + by default. +- Removed depedency on daemonize, if you would like to use + the init script monitoring facility you have to aquire a + daemonize by yourself. +- Remove URL and shorten Source - original author website is + no longer online. +- Add mpt-status.fsf_address.patch to update the FSF address. +- Install the mpt-status manpage. + +* Sun Oct 16 2011 Sven Hoexter - 1.2.0-3 +- Add mpt-status.init as Source10 and install it into the package. +- Require daemonize and chkconfig/service for post/preun. +- post and preun snippets to add/remove mpt-status from the + chkconfig service list. + * Thu Sep 22 2011 Sven Hoexter - 1.2.0-2 - Start summary with a capital letter (rpmlint). - Change License to GPLv2+ (rpmlint).