summaryrefslogtreecommitdiffstats
path: root/build-root/rpm
diff options
context:
space:
mode:
authorEd Warnicke <eaw@cisco.com>2016-09-12 20:40:24 +0000
committerEd Warnicke <eaw@cisco.com>2016-09-12 20:40:37 +0000
commitf5a1436dc986eb386991f005d765c253005de755 (patch)
tree7c2485329af7a5c474c5896303f6d7b76086efdf /build-root/rpm
parent96eefd4874bf87ddc9f77611b961b4beab5b022c (diff)
Provide vpp-plugins rpm packaging
Change-Id: Ifbd99818ead5f38c5f8ad3ecdb36b24a9fa59798 Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'build-root/rpm')
-rw-r--r--build-root/rpm/vpp.spec31
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/*