ubuntu 16.04 build support. Supporting systemd with vpp.service files.
Incorporating review comments : modified debian/control dependencies Change-Id: Ib2fe85d81eb7f1803ef8f54294c7c18cd07c61ba Signed-off-by: Srivatsa Sangli <srivrama@cisco.com>
This commit is contained in:

committed by
Ed Warnicke

parent
e5055d21a9
commit
0777915b2a
@ -2,7 +2,7 @@ Source: vpp
|
||||
Section: net
|
||||
Priority: extra
|
||||
Maintainer: Cisco OpenVPP Packaging Team <bogus.address@cisco.com>
|
||||
Build-Depends: debhelper (>= 9), dkms
|
||||
Build-Depends: debhelper (>= 9), dkms, dh-systemd
|
||||
Standards-Version: 3.9.4
|
||||
|
||||
Package: vpp
|
||||
|
@ -18,7 +18,7 @@ include /usr/share/dpkg/default.mk
|
||||
|
||||
# main packaging script based on dh7 syntax
|
||||
%:
|
||||
dh $@ --with dkms
|
||||
dh $@ --with dkms --with systemd
|
||||
|
||||
override_dh_install:
|
||||
dh_install --exclude .git
|
||||
|
14
build-root/deb/debian/vpp.service
Normal file
14
build-root/deb/debian/vpp.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=vector packet processing engine
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=-/bin/rm -f /dev/shm/*
|
||||
ExecStartPre=-/sbin/modprobe igb_uio
|
||||
ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf
|
||||
ExecStopPost=/bin/rm -f /dev/shm/*
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user