Initial deb packaging of vpp-python-api
Change-Id: I14d5180d6abd59b813906011718121a2bbc9bafd Signed-off-by: Ed Warnicke <hagbard@gmail.com>
This commit is contained in:
@ -43,6 +43,10 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
|
||||
./scripts/find-plugins-contents $(INSTALL_PREFIX)$(ARCH) \
|
||||
deb/debian/vpp-plugins.install ; \
|
||||
\
|
||||
: python-api package ; \
|
||||
./scripts/find-python-api-contents $(INSTALL_PREFIX)$(ARCH) \
|
||||
deb/debian/vpp-python-api.install ; \
|
||||
\
|
||||
: dpdk headers ; \
|
||||
./scripts/find-dpdk-contents $(INSTALL_PREFIX)$(ARCH) \
|
||||
deb/debian/vpp-dpdk-dev.install ; \
|
||||
|
1
build-root/deb/debian/.gitignore
vendored
1
build-root/deb/debian/.gitignore
vendored
@ -11,3 +11,4 @@ vpp-dpdk-dev/
|
||||
vpp-dpdk-dkms/
|
||||
vpp-dbg/
|
||||
vppctl/
|
||||
vpp-python-api/
|
||||
|
@ -59,3 +59,10 @@ Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: DPDK 2.1 igb_uio_driver
|
||||
This package contains Linux kernel modules distributed with DPDK.
|
||||
|
||||
Package: vpp-python-api
|
||||
Architecture: any
|
||||
Depends: ${python:Depends}, ${misc:Depends}, vpp (= ${source:Version})
|
||||
Description: VPP Python API bindings
|
||||
This package contains VPP python api bindings
|
||||
.
|
||||
|
@ -18,7 +18,7 @@ include /usr/share/dpkg/default.mk
|
||||
|
||||
# main packaging script based on dh7 syntax
|
||||
%:
|
||||
dh $@ --with dkms --with systemd
|
||||
dh $@ --with dkms --with systemd,python2
|
||||
|
||||
override_dh_install:
|
||||
dh_install --exclude .git
|
||||
|
8
build-root/scripts/find-python-api-contents
Executable file
8
build-root/scripts/find-python-api-contents
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f $2
|
||||
|
||||
for i in $(find ${1}/vpp-api/lib/python2.7/site-packages/ -type f -print); do
|
||||
echo ../${i} /usr/lib/python2.7/site-packages/vpp_papi >> ${2}
|
||||
done
|
||||
|
Reference in New Issue
Block a user