[pve-devel] [PATCH qemu v2 2/5] Install userspace utilities and UEFI roms via dh_install

Emmanuel Kasper e.kasper at proxmox.com
Wed Oct 11 11:06:06 CEST 2017


---
 debian/pve-qemu-kvm.install |  9 +++++++++
 debian/rules                | 12 +-----------
 2 files changed, 10 insertions(+), 11 deletions(-)
 create mode 100644 debian/pve-qemu-kvm.install

diff --git a/debian/pve-qemu-kvm.install b/debian/pve-qemu-kvm.install
new file mode 100644
index 0000000..0d9a3cb
--- /dev/null
+++ b/debian/pve-qemu-kvm.install
@@ -0,0 +1,9 @@
+# install the userspace utilities
+vma usr/bin/
+debian/kvm-ifup etc/kvm/
+debian/kvm-ifdown etc/kvm/
+
+#install ovmf uefi rom
+debian/OVMF_CODE-pure-efi.fd usr/share/kvm/
+debian/OVMF_VARS-pure-efi.fd usr/share/kvm/
+
diff --git a/debian/rules b/debian/rules
index 28723df..a6deceb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -89,16 +89,6 @@ install: build
 	mv $(destdir)/usr/bin/qemu-system-$(ARCH) $(destdir)/usr/bin/kvm
 	mv $(destdir)/usr/share/man/man1/qemu.1 $(destdir)/usr/share/man/man1/kvm.1
 
-	# Install the userspace utilities
-	install -s -m 0755 vma $(destdir)/usr/bin/
-
-	install -D -m 0755 $(CURDIR)/debian/kvm-ifup $(destdir)/etc/kvm/kvm-ifup
-	install -D -m 0755 $(CURDIR)/debian/kvm-ifdown $(destdir)/etc/kvm/kvm-ifdown
-
-	#install ovmf uefi rom
-	install -D -m 0644 $(CURDIR)/debian/OVMF_CODE-pure-efi.fd $(destdir)/usr/share/kvm/OVMF_CODE-pure-efi.fd
-	install -D -m 0644 $(CURDIR)/debian/OVMF_VARS-pure-efi.fd $(destdir)/usr/share/kvm/OVMF_VARS-pure-efi.fd
-
 	# we do not need openbios files (sparc/ppc)
 	rm -rf $(destdir)/usr/share/kvm/openbios-*
 	# remove ppc files
@@ -127,7 +117,7 @@ binary-arch: build install
 	dh_installchangelogs
 	dh_installdocs
 	dh_installexamples
-#	dh_install
+	dh_install
 #	dh_installmenu
 #	dh_installdebconf
 #	dh_installlogrotate
-- 
2.11.0




More information about the pve-devel mailing list