-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcgdcbxd.spec.in
67 lines (49 loc) · 1.23 KB
/
cgdcbxd.spec.in
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
Name: cgdcbxd
Version: @VERSION@
Release: 1%{?dist}
Summary: Control Group DCBX Daemon
Group: System Environment/Daemons
License: GPLv2
URL: https://github.com/jrfastab/Linux-cgdcbxd
Source0: https://github.com/jrfastab/Linux-cgdcbxd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# BuildRequires:
Requires(post): chkconfig
Requires(preun): chkconfig initscripts
Requires(postun): initscripts
%description
This package contains a Linux user space daemon to monitor DCB Netlink
application events and manage the net_prio control group.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add cgdcbxd
%preun
if [ $1 = 0 ]; then
/sbin/service cgdcbxd stop
/sbin/chkconfig --del cgdcbxd
fi
%postun
if [ $1 = 1 ]; then
/sbin/service cgdcbxd condrestart
fi
%files
%defattr(-,root,root,-)
%doc COPYING
%doc ChangeLog
%{_sbindir}/*
%{_mandir}/man8/*
%files devel
%defattr(-,root,root,-)
%doc COPYING
%changelog
* Mon Feb 24 2012 John Fastabend <[email protected]> - 1.0.0
- create cgdcbxd