]> git.pld-linux.org Git - packages/3DM2-9650SE.git/blame - 3DM2-9650SE.spec
- fixed Group
[packages/3DM2-9650SE.git] / 3DM2-9650SE.spec
CommitLineData
03f71889 1Summary: 3DM2 Management Utility
c000d13b 2Summary(pl.UTF-8): Narzędzie do zarządzania kontrolerami 3DM2
03f71889 3Name: 3DM2-9650SE
4Version: 9.4.0.1
5Release: 1
6License: commercial
203f89af 7Group: Applications/System
03f71889 8Source0: http://www.3ware.com/download/Escalade9650SE-Series/%{version}/3DM2-Linux-%{version}.tgz
9# NoSource0-md5: 9505131021bafae54aa6d935202ce8e2
10NoSource: 0
03f71889 11# NoSource1-md5: a1f1cf93813592ea3499735ee598e673
c000d13b 12Source1: http://www.3ware.com/download/Escalade9650SE-Series/%{version}/%{version}_Release_Notes_Web.pdf
03f71889 13NoSource: 1
14Source2: 3dm2-9650SE.init
15URL: http://www.3ware.com/products/raid_management.asp
5f09817b 16BuildRequires: rpmbuild(macros) >= 1.268
03f71889 17Requires(post,preun): /sbin/chkconfig
18Requires: rc-scripts
19ExclusiveArch: %{ix86} %{x8664}
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
c000d13b 233DM2 Management Utility for 3ware RAID controllers. It supports AMCC
243ware 9650SE controlers.
03f71889 25
26%description -l pl.UTF-8
27Narzędzie 3DM2 do zarządzania kontrolerami RAID 3ware. Obsługuje
28kontrolery z serii AMCC 3ware 9650SE.
29
30%prep
31%setup -q -c -n 3DM2
32tar -xvzf 3dm-lnx.tgz
33tar -xvzf 3dm-help.tgz
34tar -xvzf 3dm-msg.tgz
35cp %{SOURCE1} .
36
37%install
38rm -rf $RPM_BUILD_ROOT
39install -d $RPM_BUILD_ROOT%{_sbindir}
40install -d $RPM_BUILD_ROOT%{_sysconfdir}/3dm2
41install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
42install -d $RPM_BUILD_ROOT%{_datadir}/3dm2/msg
43
44cp -a en $RPM_BUILD_ROOT%{_datadir}/3dm2
45install *_msg_en $RPM_BUILD_ROOT%{_datadir}/3dm2/msg
46%ifarch %{ix86}
47install 3dm2.x86 $RPM_BUILD_ROOT%{_sbindir}/3dm2
48%endif
49%ifarch %{x8664}
d3333d2c 50install 3dm2.x86_64 $RPM_BUILD_ROOT%{_sbindir}/3dm2
03f71889 51%endif
52install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/3dm2
53
54cat > $RPM_BUILD_ROOT%{_sysconfdir}/3dm2/3dm2.conf << EOF
55Port 888
56EmailEnable 0
57EmailSender [none]
58EmailServer [none]
59EmailRecipient [none]
60EmailSeverity 3
61ROpwd twOmwmsK8lKk2
62ADMINpwd twOmwmsK8lKk2
63RemoteAccess 0
64Language 0
65Logger 0
66Refresh 5
67BGRate 3333333333333333
c000d13b 68MsgPath %{_datadir}/3dm2/msg
69imgPath %{_datadir}/3dm2
70Help %{_datadir}/3dm2
03f71889 71OEM 0
72AutoLogout 0
73CommandLog 1
74EOF
75
76%clean
77rm -rf $RPM_BUILD_ROOT
78
79%post
80/sbin/chkconfig --add 3dm2
81%service 3dm2 restart "3DM2 Utility"
82
83%preun
84if [ "$1" = "0" ]; then
85 /sbin/chkconfig --del 3dm2
86 %service 3dm2 stop
c000d13b 87fi
03f71889 88
89%files
90%defattr(644,root,root,755)
91%doc version.3dm license.txt %{version}_Release_Notes_Web.pdf
5f09817b
ER
92%attr(755,root,root) %{_sbindir}/3dm2
93%attr(754,root,root) /etc/rc.d/init.d/3dm2
03f71889 94%dir %{_sysconfdir}/3dm2
95%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/3dm2/3dm2.conf
5f09817b 96%{_datadir}/3dm2
This page took 0.087825 seconds and 4 git commands to generate.