diff --git a/.cvsignore b/.cvsignore index e69de29..ac53abe 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cciss_vol_status-1.06.tar.gz diff --git a/cciss-fix-compile.patch b/cciss-fix-compile.patch new file mode 100644 index 0000000..b217ab0 --- /dev/null +++ b/cciss-fix-compile.patch @@ -0,0 +1,11 @@ +--- cciss_vol_status.c.bak 2009-12-14 09:56:06.000000000 -0500 ++++ cciss_vol_status.c 2009-12-14 09:59:20.000000000 -0500 +@@ -1004,7 +1004,7 @@ + if (status < 0) + return 0; + for (i = 0; prod[i] != NULL; i++) { +- if (strncmp(std_inq+8, prod[i], strnlen(prod[i])) == 0) ++ if (strncmp(std_inq+8, prod[i], strlen(prod[i])) == 0) + return 1; + } + return 0; diff --git a/cciss_vol_status.spec b/cciss_vol_status.spec new file mode 100644 index 0000000..e10d2c8 --- /dev/null +++ b/cciss_vol_status.spec @@ -0,0 +1,50 @@ +Name: cciss_vol_status +Version: 1.06 +Release: 2%{?dist} +Summary: Show status of logical drives attached to HP Smartarray controllers + +Group: Applications/System +License: GPLv2+ +URL: http://cciss.sourceforge.net/#cciss_utils +Source0: http://downloads.sourceforge.net/cciss/%{name}-%{version}.tar.gz +Patch0: cciss-fix-compile.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +A very lightweight program to report the status of logical drives on +Smart Array controllers and also fibre channel attached MSA1000. + + +%prep +%setup -q +%patch0 -b .fixcompile + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING +%attr(0755,root,root) %{_bindir}/%{name} +%{_mandir}/man8/%{name}* + + +%changelog +* Mon Dec 14 2009 Joshua Roys - 1.06-2 +- standardize sourceforge url +- remove INSTALL and README (it's two lines long) from %%doc + +* Mon Dec 14 2009 Joshua Roys - 1.06-1 +- initial packaging diff --git a/import.log b/import.log new file mode 100644 index 0000000..20da4b8 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +cciss_vol_status-1_06-2_fc11:HEAD:cciss_vol_status-1.06-2.fc11.src.rpm:1262615583 diff --git a/sources b/sources index e69de29..22ac5c9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +210b97af7adeb601a49ee0e743c4d2b7 cciss_vol_status-1.06.tar.gz