From a7155293dba7c21f060b671b15fc36a66b84de83 Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Fri, 20 Jan 2017 16:49:26 -0500 Subject: Adding Quagga to build Builds 6Wind ZRPC, Quagga, and dependencies required for OpenDaylight with BGPVPN scenario. Packages are built into RPMs, and left on the overcloud disk in /root/quagga. They are then installed at deploy time if VPN feature flag is enabled. Note, for proper upstream we should create a zrpc OOO service, but that can be a follow up patch. For that we would also need official packaging/build system upstream somewhere. JIRA: APEX-357 Changes Include: - Build thrift rpm - Build c-capnproto rpm - Build quagga rpm - Build zrpcd rpm - Configure bgpd - Detect deploy with VPN and install pkgs - Enable zrpcd with systemd Change-Id: I9825694f46aaab48a3d1cd5fc4d9a24c7370e8fa Signed-off-by: Tim Rozet Signed-off-by: Nikolas Hermanns Signed-off-by: Romanos Skiadas --- build/rpm_specs/zrpc.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 build/rpm_specs/zrpc.spec (limited to 'build/rpm_specs/zrpc.spec') diff --git a/build/rpm_specs/zrpc.spec b/build/rpm_specs/zrpc.spec new file mode 100644 index 00000000..a8dd3b75 --- /dev/null +++ b/build/rpm_specs/zrpc.spec @@ -0,0 +1,46 @@ +Name: zrpcd +Version: 0.2 +Release: 0 + +Summary: Zebra Remote Procedure Call +Group: Applications/Internet +License: GPL +Source0: %{name}-%{version}.tar.gz +Source1: zrpcd.service + +BuildRequires: systemd-units + +Requires: thrift zeromq glib2 c-capnproto capnproto quagga +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +%description +ZRPC provides a Thrift API and handles RPC to configure Quagga framework. + +%prep +%setup -q + +%build + +%configure + +%install +mkdir -p %{buildroot}%{_unitdir} +install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/zrpcd.service +%make_install + +%post +%systemd_post zrpcd.service + +%preun +%systemd_preun zrpcd.service + +%postun +%systemd_postun_with_restart zrpcd.service + +%files +%defattr(-,root,root) +%{_sbindir}/zrpcd +%{_includedir}/%name/zrpc_global.h +%{_includedir}/%name/zrpc_os_wrapper.h +%{_unitdir}/zrpcd.service -- cgit 1.2.3-korg