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/c_capnproto.spec | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 build/rpm_specs/c_capnproto.spec (limited to 'build/rpm_specs/c_capnproto.spec') diff --git a/build/rpm_specs/c_capnproto.spec b/build/rpm_specs/c_capnproto.spec new file mode 100644 index 00000000..2d95494c --- /dev/null +++ b/build/rpm_specs/c_capnproto.spec @@ -0,0 +1,45 @@ +Name: c-capnproto +Version: 0.1 +Release: 0 +Summary: C library/compiler for the Cap'n Proto serialization/RPC protocol + +Group: System Environment +License: Apache 2.0 +URL: https://gerrit.opnfv.org/gerrit/apex.git +Source0: %{name}-%{version}.tar.gz + +Provides: c_capnproto + +%description +C library/compiler for the Cap'n Proto serialization/RPC protocol + +%prep +%setup -q + +%build +%configure --without-gtest + +%install +rm -rf $RPM_BUILD_ROOT +%make_install +find %{buildroot} -name '*.la' -exec rm -f {} ';' +find %{buildroot} -name '*.a' -exec rm -f {} ';' +mkdir -p $RPM_BUILD_ROOT/%{_includedir}/c-capnproto/ +# These are the headers/libs quagga/zrpcd link against +install -m 700 $RPM_BUILD_ROOT/%{_includedir}/capn.h $RPM_BUILD_ROOT/%{_includedir}/c-capnproto/ +install -m 700 $RPM_BUILD_ROOT/%{_libdir}/libcapn.so $RPM_BUILD_ROOT/%{_libdir}/libcapn_c.so + +%files +%defattr(644,root,root) +%{_bindir}/capnpc-c +%{_includedir}/capn.h +%{_includedir}/c-capnproto/capn.h +%{_libdir}/libcapn.so* +%{_libdir}/libcapn_c.so + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%changelog +* Mon Jan 23 2017 Tim Rozet - 1.0-1 +- Initial version -- cgit 1.2.3-korg