Summary: 3ware® Disk Manager Name: 3dm2 Version: 2.11.00.019 %define pkgversion 9.5.4 Release: 11%{?dist} License: 3ware Group: System Environment/Base URL: http://www.3ware.com/ Source0: http://www.lsi.com/downloads/Public/SATA/SATA%20Common%20Files/3DM2_CLI-linux_10.2.2.1_9.5.5.1.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description 3ware Disk Manager 2 (3DM 2) allows you to manage and view the status of 3ware RAID controllers and associated drives. 3DM runs as a service under Microsoft Windows, and as a daemon under Linux. When it is running, you can use your browser to view status and perform administrative tasks locally or remotely. 3DM can display information about 3ware RAID 7000-, 8000- and 9000-series RAID controllers. However, some version 2 features are only available for 9000-series controllers. Two levels of access are provided: user and administrator. Users have view-only access, and can check the status of drives and units. Administrators can view and make changes, using 3DM to configure RAID units and designate hot spares, and to perform maintenance tasks on RAID units. %prep %setup -q -c chmod +x install.sh sed -i -e's,id -u,echo 0,' install.sh sed -i -e's,\(/opt/3ware\),%{buildroot}\1,g' install.sh sed -i -e's,\(/etc/3dm2\),%{buildroot}\1,g' install.sh sed -i -e's,\(/etc/init.d\),%{buildroot}%{_initdir},g' install.sh sed -i -e's,\(/usr/share/man/man8\),%{buildroot}\1,g' install.sh sed -i -e's,\(ln .* \)%{buildroot}\(/opt/3ware.* \)\(/usr.*\),\1\2%{buildroot}\3,' install.sh sed -i -e's,\(/sbin/chkconfig\),echo \1,' install.sh sed -i -e's,\( ## Start 3dm2.\),return\n\1,' install.sh %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_initdir} mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_mandir}/man8 ./install.sh -i -fN0 %clean rm -rf %{buildroot} %post /sbin/chkconfig --add tdm2 %preun if [ $1 = 0 ]; then /sbin/service tdm2 stop > /dev/null 2>&1 /sbin/chkconfig --del tdm2 fi %files %defattr(-,root,root,-) %doc license.txt /opt/3ware %exclude /opt/3ware/install.sh %{_sbindir}/* %{_mandir}/man8/*.8* %{_initdir}/tdm2 %{_initdir}/tdm2 %dir %{_sysconfdir}/3dm2 %config(noreplace) %{_sysconfdir}/3dm2/3dm2.conf %{_sysconfdir}/3dm2/logo.gif %changelog * Sun Dec 23 2012 Axel Thimm - 2.11.00.019-11 - Update to 9.5.4/2.11.00.019. * Fri Feb 2 2007 Axel Thimm - 2.04.00.035-8 - Update to 9.4.0.1/2.04.00.035. * Thu Feb 9 2006 Axel Thimm - Initial build.