forked from xenserver/xen-api-libs-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxcp-networkd.spec
93 lines (79 loc) · 2.84 KB
/
xcp-networkd.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
Name: xcp-networkd
Version: 0.9.6
Release: 1%{?dist}
Summary: Simple host network management service for the xapi toolstack
License: LGPL
URL: https://github.com/xapi-project/xcp-networkd
Source0: https://github.com/xapi-project/xcp-networkd/archive/v%{version}/xcp-networkd-%{version}.tar.gz
Source1: xcp-networkd-init
Source2: xcp-networkd-conf
Source3: xcp-networkd-network-conf
#Source4: xcp-networkd-bridge-conf
BuildRequires: ocaml
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-obuild
BuildRequires: ocaml-rpc-devel
BuildRequires: ocaml-xcp-idl-devel
BuildRequires: forkexecd-devel
BuildRequires: ocaml-stdext-devel
BuildRequires: ocaml-xen-api-libs-transitional-devel
BuildRequires: ocaml-ounit-devel
BuildRequires: ocaml-xcp-inventory-devel
BuildRequires: ocaml-xen-api-client-devel
BuildRequires: ocaml-netlink-devel
BuildRequires: libffi-devel
Requires: ethtool
Requires: libnl3
#Requires: redhat-lsb-core
%description
Simple host networking management service for the xapi toolstack.
%prep
%setup -q
cp %{SOURCE1} xcp-networkd-init
cp %{SOURCE2} xcp-networkd-conf
cp %{SOURCE3} xcp-networkd-network-conf
#cp %{SOURCE4} xcp-networkd-bridge-conf
%build
make
%install
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_bindir}
make install DESTDIR=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/init.d
install -m 0755 xcp-networkd-init %{buildroot}%{_sysconfdir}/init.d/xcp-networkd
mkdir -p %{buildroot}/etc/xensource
install -m 0644 xcp-networkd-network-conf %{buildroot}/etc/xensource/network.conf
install -m 0644 xcp-networkd-conf %{buildroot}/etc/xcp-networkd.conf
mkdir -p %{buildroot}/etc/modprobe.d
#install -m 0644 xcp-networkd-bridge-conf %{buildroot}/etc/modprobe.d/bridge.conf
%files
%doc README.markdown LICENSE MAINTAINERS
%{_sbindir}/xcp-networkd
%{_bindir}/networkd_db
%{_sysconfdir}/init.d/xcp-networkd
%{_mandir}/man1/xcp-networkd.1.gz
#/etc/modprobe.d/bridge.conf
%config(noreplace) /etc/xensource/network.conf
%config(noreplace) /etc/xcp-networkd.conf
%post
/sbin/chkconfig --add xcp-networkd
%preun
if [ $1 -eq 0 ]; then
/sbin/service xcp-networkd stop > /dev/null 2>&1
/sbin/chkconfig --del xcp-networkd
fi
%changelog
* Wed Jun 4 2014 Jon Ludlam <[email protected]> - 0.9.4-1
- Update to 0.9.4
- Add networkd_db CLI
* Wed Sep 25 2013 David Scott <[email protected]> - 0.9.3-1
- Update to 0.9.3
* Wed Aug 28 2013 David Scott <[email protected]>
- When loading the bridge module, prevent guest traffic being
processed by the domain 0 firewall
* Sun Jun 9 2013 David Scott <[email protected]>
- Update to 0.9.2
* Fri Jun 7 2013 David Scott <[email protected]>
- Update to 0.9.1
* Wed Jun 5 2013 David Scott <[email protected]>
- Initial package