-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqaoed.spec
57 lines (44 loc) · 1.04 KB
/
qaoed.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
Summary: Mulithreaded ATA over Ethernet storage target
Name: qaoed
Version: 1
URL: http://pi.nxs.se/~wowie/qaoed.tgz
Release: 2
License: GPL
Group: Storage/Filesystems
Source0: %{name}.tgz
Source1: %{name}
Buildroot: /tmp/%{name}-%{version}-buildroot
Prefix: /usr
%define debug_package %{nil}
%description
Qaoed is a multithreaded ATA over Ethernet storage target that is easy to
use and yet higly configurable. Without any argument qaoed will try to
read the configuration file /etc/qaoed.conf.
%prep
%setup -n %{name}
%__make
%pre
%post
/sbin/chkconfig --add %{name}
%preun
if [ "$1" = 0 ]
then
/etc/init.d/%{name} stop
/sbin/chkconfig --del %{name}
fi
%postun
%install
%__rm -rf $RPM_BUILD_ROOT
%__mkdir -p $RPM_BUILD_ROOT/usr/sbin
%__install -m 750 qaoed $RPM_BUILD_ROOT/usr/sbin
%__mkdir -p $RPM_BUILD_ROOT/etc/init.d
%__install -m 750 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d
%files
%defattr(755,root,root)
%{_sbindir}/*
/etc/init.d/%{name}
%clean
%__rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Mar 07 2007 Bernard Li <bernard@vanhpc.org>
- Genesis