-
Notifications
You must be signed in to change notification settings - Fork 2
/
eqnx.spec
167 lines (142 loc) · 4.69 KB
/
eqnx.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
Summary: Device driver/utilities for Equinox SST SuperSerial family
Name: eqnx
Version: 4.12f
Release: 1
License: GPL
Group: Applications/Communications
URL: http://www.equinox.com
Vendor: Avocent, Connectivity and Control Division
Packager: Mike Straub <michael.straub@avocent.com>
ExclusiveOS: Linux
BuildRoot: /var/tmp/%{name}-build
Source: eqnx-4.12f-1.tar.gz
%description
Provides device driver and diagnostic utilities for Equinox SuperSerial
multiport and expandable host controller boards. This driver supports
ISA, EISA and PCI versions of the 2, 4, 8 and 16 port boards as well
as the expandable 64 and 128 port boards and the 4RJ and 8RJ boards.
ISA and EISA are not available on Itanium systems.
Brief description of installation (for more, see installation notes):
1) install the source RPM:
rpm -i eqnx-4.12f-1.src.rpm (wherever RPM is located)
2) build the binary RPM:
rpmbuild (or rpm) -bb <rpm directory>/SPECS/eqnx.spec
(note: the RPM directory will vary based on linux distribution)
3) install binary RPM:
rpm -i <rpm directory>/RPMS/<ARCH>/eqnx-4.12f-1.<ARCH>.rpm
4) load driver and configure device files:
/usr/sbin/rc.eqnx start
5) make driver restarted at boot time:
chkconfig --add eqnx (varies based on distribution)
-or-
a) copy /usr/sbin/rc.eqnx to /etc/rc.d/eqnx and
add links at /etc/rc.d/rcN.d/S90eqnx
b) copy /usr/sbin/rc.eqnx to /etc/init.d/eqnx and
add links at /etc/rcN.d/S90eqnx
c) invoke rc.eqnx from rc.local file
%prep
%setup -n %{name}-%{version}-%{release}
rm -rf $RPM_BUILD_ROOT/src
mkdir -m 755 -p $RPM_BUILD_ROOT/src
cp -R $RPM_BUILD_DIR/%{name}-%{version}-%{release}/* $RPM_BUILD_ROOT/src
%build
rm -rf $RPM_BUILD_ROOT/src
mkdir -m 755 -p $RPM_BUILD_ROOT/src
cp -R $RPM_BUILD_DIR/%{name}-%{version}-%{release}/* $RPM_BUILD_ROOT/src
make all OBJROOT=$RPM_BUILD_ROOT
%install
make install OBJROOT=$RPM_BUILD_ROOT
if [ -f $RPM_BUILD_ROOT/src/eqnx.spec ]
then
mv $RPM_BUILD_ROOT/src/eqnx.spec $RPM_BUILD_ROOT
fi
if [ -f ./eqnx.spec ]
then
mv ./eqnx.spec $RPM_BUILD_ROOT
fi
rm -rf $RPM_BUILD_ROOT/src
rm -f $RPM_BUILD_ROOT/README.ssdiag
%clean
make clobber OBJROOT=$RPM_BUILD_ROOT
%preun
# check driver usage. If ports in use, disallow the remove
if [ -e /sbin/chkconfig ]
then
/sbin/chkconfig eqnx
if [ $? != 0 ]
then
exit 0
fi
fi
if [ -f /usr/sbin/rc.eqnx ]
then
/usr/sbin/rc.eqnx status > /dev/null 2>&1
if [ $? != 0 ]
then
echo "eqnx driver in use, unable to unload"
echo "Please stop all processes running on SST ports"
exit 1
fi
fi
# stop the driver + remove device files
if [ -f /usr/sbin/rc.eqnx ]
then
/usr/sbin/rc.eqnx stop
fi
# remove eqnx from startup scripts
if [ -e /usr/sbin/eqnx-installrc ]
then
/usr/sbin/eqnx-installrc -u
fi
%post
echo "To complete installation of the Equinox SST product:"
echo " 1. /usr/sbin/rc.eqnx start"
echo " 2. ensure this script is invoked at boot-time"
echo " (such as chkconfig --add eqnx, for redhat, etc.)"
echo " Refer to installation notes for more information".
%files
%defattr(-,root,root)
%doc inst/INSTALL.TXT
%doc inst/RELEASE.TXT
%doc utils/ssdiag/README.ssdiag
/lib/modules/*/*/*
/usr/bin/sscode
/usr/bin/ssdiag
/usr/bin/ssmkn
/usr/bin/ssrm
/usr/bin/sstty
/usr/sbin/rc.eqnx
/usr/sbin/rpmvar
/usr/sbin/eqnx-cfg
/usr/sbin/eqnx-installrc
/usr/lib/sst/ss.hlp
/eqnx.spec
%changelog
* Sat Apr 06 2013 Greg Sidelinger (gate@ilive4code.net)
- Made changes to support kernel 3.7 and higher
* Thu Jun 06 2007 Mike Straub (michael.straub@avocent.com)
- changes for release 4.11.
* Tue Nov 22 2005 Mike Straub (michael.straub@avocent.com)
- changes for release 4.10.
* Sun May 31 2005 Mike Straub (michael.straub@avocent.com)
- changes for release 4.09: add redhat ES 4 support, add x86_64 support,
add 2.6.10+ fixes.
* Tue Oct 26 2004 Mike Straub (michael.straub@avocent.com)
- changes for release 4.08: modification to driver start-up procedure.
Thanks to Joel Soete (soete.joel@tiscali.be).
* Fri Dec 19 2003 Mike Straub (mstraub@avocent.com)
- changes for release 4.07: add support for linux 2.6 kernels
* Tue Jul 8 2003 Mike Straub (mstraub@equinox.com)
- changes for release 4.06: comply with redhat 9 (rpm version 4.2)
* Thu Oct 24 2002 Mike Straub (mstraub@equinox.com)
- changes for release 4.05: multithreading and device tables
- improved installation checks.
* Tue Oct 22 2002 Mike Straub (mstraub@equinox.com)
- changed to adhere to redhat 8.0 (rpm version 4.1)
* Thu Feb 07 2002 Mike Straub (mstraub@equinox.com)
- added SST-4P/ULP board; fixed driver oops
* Fri Dec 28 2001 Mike Straub (mstraub@equinox.com)
- compliance with rpmlint version 0.32
- additional fixes for release 4.03
* Mon Nov 19 2001 Mike Straub (mstraub@equinox.com)
- conversion of existing RPM to comply with "good practices".