diff options
author | Ed Warnicke <eaw@cisco.com> | 2016-09-12 20:40:24 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@gmail.com> | 2016-09-12 21:31:59 +0000 |
commit | 0d49712e05f4831eb0ccd7d04fc86b4fded71484 (patch) | |
tree | cb3406c04f935b2b81ad33679e5f6ca8773abe74 | |
parent | 861698f9f10166535f825de22ec5e80f6e557c5e (diff) |
VPP-402 Provide vpp-plugins rpm packaging
Change-Id: Ifbd99818ead5f38c5f8ad3ecdb36b24a9fa59798
Signed-off-by: Ed Warnicke <eaw@cisco.com>
-rw-r--r-- | build-root/rpm/vpp.spec | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec index c6ac4056f3a..96e6f0fd66a 100644 --- a/build-root/rpm/vpp.spec +++ b/build-root/rpm/vpp.spec @@ -49,6 +49,13 @@ allocator (mheap.c), extendable printf-like interface built on top of vectors time-based function calls (timer.c). TODO: reference and describe only the .h files +%package plugins +Summary: Vector Packet Processing--runtime plugins +Group: System Environment/Libraries +Requires: vpp = %{_version}-%{_release} +%description plugins +This package contains VPP plugins + %pre # Add the vpp group groupadd -f -r vpp @@ -115,6 +122,24 @@ do %{buildroot}/usr/share/doc/vpp/examples/sample-plugin/$file done + +# +# vpp-plugins +# +mkdir -p -m755 %{buildroot}%{_libdir}/vpp_plugins +mkdir -p -m755 %{buildroot}%{_libdir}/vpp_api_test_plugins +for file in $(cd %{_vpp_install_dir}/plugins/lib64/vpp_plugins && find -type f -print) +do + install -p -m 644 %{_vpp_install_dir}/plugins/lib64/vpp_plugins/$file \ + %{buildroot}%{_libdir}/vpp_plugins/$file +done + +for file in $(cd %{_vpp_install_dir}/plugins/lib64/vpp_api_test_plugins && find -type f -print) +do + install -p -m 644 %{_vpp_install_dir}/plugins/lib64/vpp_api_test_plugins/$file \ + %{buildroot}%{_libdir}/vpp_api_test_plugins/$file +done + %post sysctl --system %systemd_post vpp.service @@ -133,6 +158,8 @@ sysctl --system %files lib %defattr(-,bin,bin) +%exclude %{_libdir}/vpp_plugins +%exclude %{_libdir}/vpp_api_test_plugins %{_libdir}/* %files devel @@ -143,3 +170,7 @@ sysctl --system %{python2_sitelib}/jvppgen/* /usr/share/doc/vpp/examples/sample-plugin +%files plugins +%defattr(-,bin,bin) +%{_libdir}/vpp_plugins/* +%{_libdir}/vpp_api_test_plugins/* |