VPP-127: Make rpm/deb provide vpp group to access vpp-api 61/1461/3
authorEd Warnicke <[email protected]>
Wed, 8 Jun 2016 22:15:08 +0000 (17:15 -0500)
committerChris Luke <[email protected]>
Thu, 9 Jun 2016 00:43:50 +0000 (00:43 +0000)
Change-Id: I005f971ec5bfbffc5ddd392ff5ae829186b2bf18
Signed-off-by: Ed Warnicke <[email protected]>
(cherry picked from commit 1f9933d9f0c4615334f4af168dc063a7f1f2d649)
Signed-off-by: Ed Warnicke <[email protected]>
build-root/deb/debian/vpp.preinst [new file with mode: 0644]
build-root/rpm/vpp.spec
vpp/conf/startup.conf
vpp/conf/startup.uiopcigeneric.conf

diff --git a/build-root/deb/debian/vpp.preinst b/build-root/deb/debian/vpp.preinst
new file mode 100644 (file)
index 0000000..f80861c
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+# Add the vpp group
+sudo groupadd -f -r vpp
index 2513041..a5b097a 100644 (file)
@@ -49,6 +49,10 @@ 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
 
+%pre
+# Add the vpp group
+sudo groupadd -f -r vpp
+
 %install
 #
 # binaries
index f96c573..ea6d800 100644 (file)
@@ -8,3 +8,7 @@ unix {
 api-trace {
   on
 }
+
+api-segment {
+  gid vpp
+}
index 69bdb71..03a89df 100644 (file)
@@ -12,3 +12,7 @@ dpdk {
 api-trace {
   on
 }
+
+api-segment {
+  gid vpp
+}