mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-30 19:54:28 +01:00
git-subtree-dir: tools/packaging git-subtree-mainline:f818b46a41git-subtree-split:1f22d72d5dSigned-off-by: Peng Tao <bergwolf@hyper.sh>
27 lines
732 B
Makefile
27 lines
732 B
Makefile
#!/usr/bin/make -f
|
|
include /usr/share/dpkg/default.mk
|
|
export LANG=C
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
chmod a+x "../SOURCES/configure-hypervisor.sh"
|
|
eval "../SOURCES/configure-hypervisor.sh" "qemu-vanilla" | sed -e 's/--enable-libpmem//g' | xargs ./configure --prefix=/usr
|
|
override_dh_auto_build:
|
|
make
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install
|
|
for file in $(CURDIR)/debian/qemu-vanilla/usr/bin/* ; do \
|
|
dir=$$(dirname $$file) ;\
|
|
bin=$$(basename $$file) ;\
|
|
new=$$(echo $$bin | sed -e 's/qemu-/qemu-vanilla-/g' -e 's/ivshmem-/ivshmem-vanilla-/g' -e 's/virtfs-/virtfs-vanilla-/g') ;\
|
|
mv $$file "$$dir"/"$$new" ; \
|
|
done
|
|
|
|
override_dh_auto_test:
|
|
echo "Skip auto test"
|
|
|
|
override_dh_auto_clean:
|
|
echo "Skip auto clean"
|