summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Warnicke <eaw@cisco.com>2016-06-08 17:15:08 -0500
committerChris Luke <chris_luke@cable.comcast.com>2016-06-09 00:43:50 +0000
commit3c1f5321e5ae2810b4e6b64c0d75fb548a85a22f (patch)
tree87dc61b4592072fcaea5df4d563ed5614180cd94
parentcb74b6edd8fc302503cdc752cba2dbce5fd9c35f (diff)
VPP-127: Make rpm/deb provide vpp group to access vpp-api
Change-Id: I005f971ec5bfbffc5ddd392ff5ae829186b2bf18 Signed-off-by: Ed Warnicke <eaw@cisco.com> (cherry picked from commit 1f9933d9f0c4615334f4af168dc063a7f1f2d649) Signed-off-by: Ed Warnicke <eaw@cisco.com>
-rw-r--r--build-root/deb/debian/vpp.preinst4
-rw-r--r--build-root/rpm/vpp.spec4
-rw-r--r--vpp/conf/startup.conf4
-rw-r--r--vpp/conf/startup.uiopcigeneric.conf4
4 files changed, 16 insertions, 0 deletions
diff --git a/build-root/deb/debian/vpp.preinst b/build-root/deb/debian/vpp.preinst
new file mode 100644
index 00000000000..f80861c686e
--- /dev/null
+++ b/build-root/deb/debian/vpp.preinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+# Add the vpp group
+sudo groupadd -f -r vpp
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec
index 2513041bae9..a5b097aeec3 100644
--- a/build-root/rpm/vpp.spec
+++ b/build-root/rpm/vpp.spec
@@ -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
diff --git a/vpp/conf/startup.conf b/vpp/conf/startup.conf
index f96c57351ba..ea6d800910b 100644
--- a/vpp/conf/startup.conf
+++ b/vpp/conf/startup.conf
@@ -8,3 +8,7 @@ unix {
api-trace {
on
}
+
+api-segment {
+ gid vpp
+}
diff --git a/vpp/conf/startup.uiopcigeneric.conf b/vpp/conf/startup.uiopcigeneric.conf
index 69bdb716218..03a89dff70f 100644
--- a/vpp/conf/startup.uiopcigeneric.conf
+++ b/vpp/conf/startup.uiopcigeneric.conf
@@ -12,3 +12,7 @@ dpdk {
api-trace {
on
}
+
+api-segment {
+ gid vpp
+}