Logoj0ke.net Open Build Service > Projects > OFED > srptools > srptools.spec
Sign Up | Log In

File srptools.spec of Package srptools (Revision 4)

Currently displaying revision 4, show latest

 
1
2
Name: srptools
3
Version: 0.0.4
4
Release: 1.ofed1.3
5
Summary: Tools for SRP/IB
6
7
Group: Applications/System
8
License: GPL/BSD
9
Url: http://www.openfabrics.org/
10
Source: http://www.openfabrics.org/downloads/srptools-0.0.4.tar.gz
11
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
BuildRequires: libibcommon-devel libibumad-devel libibverbs-devel
13
14
%{!?IB_CONF_DIR: %define IB_CONF_DIR /etc/infiniband}
15
16
%description
17
In conjunction with the kernel ib_srp driver, srptools allows you to
18
discover and use SCSI devices via the SCSI RDMA Protocol over InfiniBand.
19
20
%prep
21
rm -rf $RPM_BUILD_ROOT
22
%setup -q -n %{name}-%{version}
23
24
%build
25
%configure
26
make %{?_smp_mflags}
27
28
%install
29
make DESTDIR=%{buildroot} install
30
31
%clean
32
rm -rf $RPM_BUILD_ROOT
33
34
%post
35
if [ $1 = 1 ]; then # 1 : This package is being installed for the first time
36
    if [ -e %{IB_CONF_DIR}/openib.conf ]; then
37
       echo >> %{IB_CONF_DIR}/openib.conf
38
       echo "# Enable SRP High Availability daemon" >> %{IB_CONF_DIR}/openib.conf
39
       echo "SRPHA_ENABLE=no" >> %{IB_CONF_DIR}/openib.conf
40
       echo "SRP_DAEMON_ENABLE=no" >> %{IB_CONF_DIR}/openib.conf
41
    fi
42
fi
43
44
%files
45
%defattr(-,root,root)
46
%config(noreplace) %{_sysconfdir}/srp_daemon.conf
47
%{_sbindir}/ibsrpdm
48
%{_sbindir}/srp_daemon
49
%{_sbindir}/srp_daemon.sh
50
%{_sbindir}/run_srp_daemon
51
%{_mandir}/man1/ibsrpdm.1*
52
%{_mandir}/man1/srp_daemon.1*
53
%doc README NEWS ChangeLog COPYING
54
55
%changelog
56
* Wed Aug 22 2007 Vladimir Sokolovsky <vlad@mellanox.co.il>
57
- Added srp_daemon.conf
58
* Tue Sep  5 2006 Vladimir Sokolovsky <vlad@mellanox.co.il>
59
- Added srp_daemon and scripts to execute this daemon
60
* Tue Mar 21 2006 Roland Dreier <rdreier@cisco.com> - 0.0.4-1
61
- Initial attempt at a working spec file
62