]> git.pld-linux.org Git - packages/eqnx.git/blob - eqnx.spec
6e8469a332a5bcc0cfc695136de8f60f9a8d6282
[packages/eqnx.git] / eqnx.spec
1 Summary:        Device driver/utilities for Equinox SST SuperSerial family
2 Summary(pl):    Sterowniki do karty Equinox SST SuperSerial
3 Name:           eqnx
4 Version:        4.04
5 Release:        1
6 License:        GPL
7 Group:          Applications/Communications
8 Source0:        %{name}-%{version}-1.tar.gz
9 # Source0-md5:  3b335ac7f525036ad3147907adcd0ec8
10 Patch0:         %{name}-misc.patch
11 URL:            http://www.equinox.com/
12 ExclusiveOS:    Linux
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Provides device driver and diagnostic utilities for Equinox
17 SuperSerial multiport and expandable host controller boards. This
18 driver supports ISA, EISA and PCI versions of the 2, 4, 8 and 16 port
19 boards as well as the expandable 64 and 128 port boards and the 4RJ
20 and 8RJ boards. ISA and EISA are not available on Itanium systems.
21
22 %description -l pl
23 Ten pakiet zawiera sterownik i narzêdzia diagnostyczne dla kart
24 wieloportowych i rozszerzalnych kontrolerów Equinox SuperSerial. Ten
25 sterownik obs³uguje wersje ISA, EISA i PCI kart 2, 4, 8 i
26 16-portowych, a tak¿e rozszerzalne karty 64 i 128-portowe oraz karty
27 4RJ i 8RJ. ISA i EISA nie s± dostêpne w systemach Itanium.
28
29 %prep
30 %setup -q -n %{name}-%{version}-1
31 %patch0 -p1
32
33 %build
34 %{__make} build CC=%{kgcc} OPT="%{rpmcflags}" SMP=0
35 mv drv/eqnx.o drv/eqnx.o-up
36 %{__make} clean
37 %{__make} build CC=%{kgcc} OPT="%{rpmcflags}" SMP=1
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 exit 1
42 %{__make} install OBJROOT=$RPM_BUILD_ROOT
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %preun
48 # check driver usage.  If ports in use, disallow the remove
49 if [ -e /sbin/chkconfig ]
50 then
51         /sbin/chkconfig eqnx
52         if [ $? != 0 ]
53         then
54                 exit 0
55         fi
56 fi
57
58 if [ -f /etc/rc.d/init.d/eqnx ]
59 then
60         /etc/rc.d/init.d/eqnx status > /dev/null 2>&1
61         if [ $? != 0 ]
62         then
63                 echo "eqnx driver in use, unable to unload"
64                 echo "Please stop all processes running on SST ports"
65                 exit 1
66         fi
67 fi
68
69 # stop the driver + remove device files
70 if [ -f /etc/rc.d/init.d/eqnx ]
71 then
72         /etc/rc.d/init.d/eqnx stop
73 fi
74
75 # remove eqnx from startup scripts
76 if [ -e /usr/sbin/eqnx-installrc ]
77 then
78         /usr/sbin/eqnx-installrc -u
79 fi
80
81 %post
82 echo "To complete installation of the Equinox SST product:"
83 echo "   1. /etc/rc.d/init.d/eqnx start"
84 echo "   2. ensure this script is invoked at boot-time"
85 echo "      (such as chkconfig --add eqnx, for redhat, etc.)"
86 echo "   Refer to installation notes for more information".
87
88 %files
89 %defattr(644,root,root,755)
90 %doc inst/INSTALL.TXT
91 %doc inst/RELEASE.TXT
92 %doc utils/ssdiag/README.ssdiag
93 %attr(754,root,root) /etc/rc.d/init.d/eqnx
94 /lib/modules/*/*/*
95 %attr(755,root,root) %{_bindir}/sscode
96 %attr(755,root,root) %{_bindir}/ssdiag
97 %attr(755,root,root) %{_bindir}/ssmkn
98 %attr(755,root,root) %{_bindir}/ssrm
99 %attr(755,root,root) %{_bindir}/sstty
100 %attr(755,root,root) %{_sbindir}/rpmvar
101 %attr(755,root,root) %{_sbindir}/eqnx-cfg
102 %attr(755,root,root) %{_sbindir}/eqnx-installrc
103 %{_libdir}/sst/ss.hlp
This page took 0.288383 seconds and 2 git commands to generate.