]>
Commit | Line | Data |
---|---|---|
10c44b22 | 1 | Summary: Device driver/utilities for Equinox SST SuperSerial family |
15307fcf | 2 | Summary(pl.UTF-8): Sterowniki do karty Equinox SST SuperSerial |
10c44b22 | 3 | Name: eqnx |
4 | Version: 4.04 | |
5 | Release: 1 | |
6 | License: GPL | |
5e8e97ae | 7 | Group: Applications/Communications |
10c44b22 | 8 | Source0: %{name}-%{version}-1.tar.gz |
26a0f284 | 9 | # Source0-md5: 3b335ac7f525036ad3147907adcd0ec8 |
10c44b22 | 10 | Patch0: %{name}-misc.patch |
5e8e97ae | 11 | URL: http://www.equinox.com/ |
8e1328f5 | 12 | BuildRequires: rpmbuild(macros) >= 1.268 |
5e8e97ae JB |
13 | ExclusiveOS: Linux |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
10c44b22 | 15 | |
16 | %description | |
17 | Provides device driver and diagnostic utilities for Equinox | |
18 | SuperSerial multiport and expandable host controller boards. This | |
19 | driver supports ISA, EISA and PCI versions of the 2, 4, 8 and 16 port | |
20 | boards as well as the expandable 64 and 128 port boards and the 4RJ | |
21 | and 8RJ boards. ISA and EISA are not available on Itanium systems. | |
22 | ||
b93781f4 JR |
23 | %description -l pl.UTF-8 |
24 | Ten pakiet zawiera sterownik i narzędzia diagnostyczne dla kart | |
25 | wieloportowych i rozszerzalnych kontrolerów Equinox SuperSerial. Ten | |
26 | sterownik obsługuje wersje ISA, EISA i PCI kart 2, 4, 8 i | |
27 | 16-portowych, a także rozszerzalne karty 64 i 128-portowe oraz karty | |
28 | 4RJ i 8RJ. ISA i EISA nie są dostępne w systemach Itanium. | |
5e8e97ae | 29 | |
10c44b22 | 30 | %prep |
31 | %setup -q -n %{name}-%{version}-1 | |
32 | %patch0 -p1 | |
33 | ||
34 | %build | |
35 | %{__make} build CC=%{kgcc} OPT="%{rpmcflags}" SMP=0 | |
36 | mv drv/eqnx.o drv/eqnx.o-up | |
37 | %{__make} clean | |
38 | %{__make} build CC=%{kgcc} OPT="%{rpmcflags}" SMP=1 | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | exit 1 | |
43 | %{__make} install OBJROOT=$RPM_BUILD_ROOT | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
8e1328f5 ER |
48 | %post |
49 | /sbin/chkconfig --add eqnx | |
50 | %service eqnx restart | |
10c44b22 | 51 | |
8e1328f5 ER |
52 | %preun |
53 | if [ "$1" = 0 ]; then | |
54 | # check driver usage. If ports in use, disallow the remove | |
55 | /sbin/service eqnx status > /dev/null 2>&1 | |
56 | if [ $? != 0 ]; then | |
10c44b22 | 57 | echo "eqnx driver in use, unable to unload" |
58 | echo "Please stop all processes running on SST ports" | |
59 | exit 1 | |
60 | fi | |
10c44b22 | 61 | |
8e1328f5 ER |
62 | # stop the driver + remove device files |
63 | %service eqnx stop | |
64 | /sbin/chkconfig --del eqnx | |
10c44b22 | 65 | |
8e1328f5 | 66 | # remove eqnx from startup scripts |
10c44b22 | 67 | /usr/sbin/eqnx-installrc -u |
68 | fi | |
69 | ||
10c44b22 | 70 | %files |
71 | %defattr(644,root,root,755) | |
72 | %doc inst/INSTALL.TXT | |
73 | %doc inst/RELEASE.TXT | |
74 | %doc utils/ssdiag/README.ssdiag | |
07da580b | 75 | %attr(754,root,root) /etc/rc.d/init.d/eqnx |
10c44b22 | 76 | /lib/modules/*/*/* |
77 | %attr(755,root,root) %{_bindir}/sscode | |
78 | %attr(755,root,root) %{_bindir}/ssdiag | |
79 | %attr(755,root,root) %{_bindir}/ssmkn | |
80 | %attr(755,root,root) %{_bindir}/ssrm | |
81 | %attr(755,root,root) %{_bindir}/sstty | |
82 | %attr(755,root,root) %{_sbindir}/rpmvar | |
83 | %attr(755,root,root) %{_sbindir}/eqnx-cfg | |
84 | %attr(755,root,root) %{_sbindir}/eqnx-installrc | |
85 | %{_libdir}/sst/ss.hlp |