public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtio-win/, app-emulation/virtio-win/files/
@ 2023-02-03 17:39 Ulrich Müller
  0 siblings, 0 replies; only message in thread
From: Ulrich Müller @ 2023-02-03 17:39 UTC (permalink / raw
  To: gentoo-commits

commit:     8a25b48cdf3d4bb58073091127f6e76a1ceaa545
Author:     Kai-Chun Ning <kaichun.ning <AT> gmail <DOT> com>
AuthorDate: Thu Feb  2 22:13:03 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Feb  3 17:39:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a25b48c

app-emulation/virtio-win: add README

Closes: https://bugs.gentoo.org/892197
Signed-off-by: Kai-Chun Ning <kaichun.ning <AT> gmail.com>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-emulation/virtio-win/files/README.gentoo         | 15 +++++++++++++++
 app-emulation/virtio-win/virtio-win-0.1.221.1.ebuild | 12 ++++++++++--
 app-emulation/virtio-win/virtio-win-0.1.225.2.ebuild | 12 ++++++++++--
 app-emulation/virtio-win/virtio-win-0.1.229.1.ebuild | 12 ++++++++++--
 4 files changed, 45 insertions(+), 6 deletions(-)

diff --git a/app-emulation/virtio-win/files/README.gentoo b/app-emulation/virtio-win/files/README.gentoo
new file mode 100644
index 000000000000..9c50feb9a1e8
--- /dev/null
+++ b/app-emulation/virtio-win/files/README.gentoo
@@ -0,0 +1,15 @@
+VirtIO drivers have been installed as a CD-ROM image to
+
+  /usr/share/drivers/windows/virtio-win.iso
+
+To install the drivers on a Windows guest machine, either during or after the
+installation of Windows, pass the iso file to the guest machine and mount it as
+a CD-ROM image. Then, in the Windows guest, open the Device Manager and start
+the driver update wizard. Locate the appropriate device and click to update its
+driver. In the pop-up window, click to browse in the guest machine to locate
+the iso image, and select the driver(s) from it to install.
+
+For an example, see: https://wiki.gentoo.org/wiki/QEMU/Windows_guest
+
+For information on using the Device Manager, refer to the Windows
+documentation.

diff --git a/app-emulation/virtio-win/virtio-win-0.1.221.1.ebuild b/app-emulation/virtio-win/virtio-win-0.1.221.1.ebuild
index d86ab2c1a639..057b187a0c4b 100644
--- a/app-emulation/virtio-win/virtio-win-0.1.221.1.ebuild
+++ b/app-emulation/virtio-win/virtio-win-0.1.221.1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit readme.gentoo-r1
+
 MY_PV=$(ver_cut 1-3)
 MY_DW=$(ver_rs 3 -)
 
@@ -14,9 +16,15 @@ LICENSE="BSD Apache-2.0 GPL-2 GPL-2+ GPL-3+ LGPL-2+ Ms-RL"
 SLOT="0"
 KEYWORDS="~amd64"
 S="${WORKDIR}"
+INSTALL_PATH=/usr/share/drivers/windows
 
 src_install() {
-	insinto /usr/share/drivers/windows
+	insinto "${INSTALL_PATH}"
 	doins "${DISTDIR}/${PN}-${MY_PV}.iso"
-	dosym "${PN}-${MY_PV}.iso" "/usr/share/drivers/windows/${PN}.iso"
+	dosym "${PN}-${MY_PV}.iso" "${INSTALL_PATH}/${PN}.iso"
+	readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+	readme.gentoo_print_elog
 }

diff --git a/app-emulation/virtio-win/virtio-win-0.1.225.2.ebuild b/app-emulation/virtio-win/virtio-win-0.1.225.2.ebuild
index d86ab2c1a639..057b187a0c4b 100644
--- a/app-emulation/virtio-win/virtio-win-0.1.225.2.ebuild
+++ b/app-emulation/virtio-win/virtio-win-0.1.225.2.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit readme.gentoo-r1
+
 MY_PV=$(ver_cut 1-3)
 MY_DW=$(ver_rs 3 -)
 
@@ -14,9 +16,15 @@ LICENSE="BSD Apache-2.0 GPL-2 GPL-2+ GPL-3+ LGPL-2+ Ms-RL"
 SLOT="0"
 KEYWORDS="~amd64"
 S="${WORKDIR}"
+INSTALL_PATH=/usr/share/drivers/windows
 
 src_install() {
-	insinto /usr/share/drivers/windows
+	insinto "${INSTALL_PATH}"
 	doins "${DISTDIR}/${PN}-${MY_PV}.iso"
-	dosym "${PN}-${MY_PV}.iso" "/usr/share/drivers/windows/${PN}.iso"
+	dosym "${PN}-${MY_PV}.iso" "${INSTALL_PATH}/${PN}.iso"
+	readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+	readme.gentoo_print_elog
 }

diff --git a/app-emulation/virtio-win/virtio-win-0.1.229.1.ebuild b/app-emulation/virtio-win/virtio-win-0.1.229.1.ebuild
index d86ab2c1a639..057b187a0c4b 100644
--- a/app-emulation/virtio-win/virtio-win-0.1.229.1.ebuild
+++ b/app-emulation/virtio-win/virtio-win-0.1.229.1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit readme.gentoo-r1
+
 MY_PV=$(ver_cut 1-3)
 MY_DW=$(ver_rs 3 -)
 
@@ -14,9 +16,15 @@ LICENSE="BSD Apache-2.0 GPL-2 GPL-2+ GPL-3+ LGPL-2+ Ms-RL"
 SLOT="0"
 KEYWORDS="~amd64"
 S="${WORKDIR}"
+INSTALL_PATH=/usr/share/drivers/windows
 
 src_install() {
-	insinto /usr/share/drivers/windows
+	insinto "${INSTALL_PATH}"
 	doins "${DISTDIR}/${PN}-${MY_PV}.iso"
-	dosym "${PN}-${MY_PV}.iso" "/usr/share/drivers/windows/${PN}.iso"
+	dosym "${PN}-${MY_PV}.iso" "${INSTALL_PATH}/${PN}.iso"
+	readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+	readme.gentoo_print_elog
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-03 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-03 17:39 [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtio-win/, app-emulation/virtio-win/files/ Ulrich Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox