From 67ff493a5f3cee12d6591ed37c679fa3cd8e7356 Mon Sep 17 00:00:00 2001 From: Daniel Solano Gómez Date: Sat, 2 Jul 2022 09:36:06 -0500 Subject: Sync vmware-{modules,workstation} from stefantalpalaru-overlay Signed-off-by: Daniel Solano --- app-emulation/vmware-modules/Manifest | 4 +- .../vmware-modules/vmware-modules-16.2.3-r2.ebuild | 99 ++++++++++++++++++++++ .../vmware-modules/vmware-modules-16.2.3.ebuild | 99 ---------------------- 3 files changed, 101 insertions(+), 101 deletions(-) create mode 100644 app-emulation/vmware-modules/vmware-modules-16.2.3-r2.ebuild delete mode 100644 app-emulation/vmware-modules/vmware-modules-16.2.3.ebuild (limited to 'app-emulation') diff --git a/app-emulation/vmware-modules/Manifest b/app-emulation/vmware-modules/Manifest index bb6fab0..8c5c925 100644 --- a/app-emulation/vmware-modules/Manifest +++ b/app-emulation/vmware-modules/Manifest @@ -1,3 +1,3 @@ -DIST vmware-modules-16.2.3-5.16.zip 617955 BLAKE2B c186f8352f52ae09140a1c74ab03a587407ba1095bb71e6f9d95527fd39fc31809ef4e6f58fce1c017f98ef334d9160d49e671b6c5ca343622ba45d3ed626cf1 SHA512 d7f2daafed06da8530ccb6e492a0d369a55d1c416f74885aa4008424b4bde250489fc5f12d8e1644381f9410fe2eb97c1617c06ea2d22b79d7110c2ca1cf78a6 -EBUILD vmware-modules-16.2.3.ebuild 2627 BLAKE2B 9269bbf46befacb1334b389b776131ed0c3b7aa725a582e0031b0191da707ada09008e06d27a15acd3a6b7197611bfe74d33493d59ed7561f8fe8f0e6fbf7863 SHA512 37a189d1b7b628dd42306c41b506d5b24fb734258ad82d30e7af6a38615afede46d84704e0eb71055334837891b5801bb8eec3ebcb465d5d09e24369c2a86067 +DIST vmware-modules-16.2.3-5.18.zip 618095 BLAKE2B fdae903bd1c5f5ac3d5fa5cca0f7afeba28ed3fa8674701477e355083e995c3f98544051c884c5561f9e9b00faee406b913387bd910776a922835f51e806c420 SHA512 a8e6fd877012cb4fd0a0e00c2a1521cc83617683cbe8bae0cdb5ca45ef1da685bd1bbce5d7313bd4ab57ace95cfd5e29ba92969ff5e03b83812d23e95332e874 +EBUILD vmware-modules-16.2.3-r2.ebuild 2627 BLAKE2B 3cd1e991b73dd47d55c7cc8caf988e7226580042d56b55e19279458d24890b9c5b88dc18131ba6be37a3815b9156a9e1b7cae00cdf8168b786ff9e102ddcd597 SHA512 51f24b27b3d41a316aab5c42d8eb496a5dbfa2d36f85ff25b11608516c25f485e76955e3cec8bdefcc6214d129aee92397770c4286774f3b9920ea0eff7bfcba MISC metadata.xml 322 BLAKE2B 178d5a7e0f6a26281fdeb655994b728e1b2e831a9bd7e07d6ed7c5ad2edb04d30bb8543ee5a1440f06e3a9eb1af20810a3e93800291f5feda877a644aacad14a SHA512 8ed1935f376c38b57fdcd973dab5a8dd714b2fbb74108228f3aab19cec95340c93f6ecff03b10fcafd261896efa711f47ef8c301f35fa0fc4490a4fb45f2fd55 diff --git a/app-emulation/vmware-modules/vmware-modules-16.2.3-r2.ebuild b/app-emulation/vmware-modules/vmware-modules-16.2.3-r2.ebuild new file mode 100644 index 0000000..27d0929 --- /dev/null +++ b/app-emulation/vmware-modules/vmware-modules-16.2.3-r2.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils flag-o-matic linux-info linux-mod user udev + +DESCRIPTION="VMware kernel modules" +HOMEPAGE="https://github.com/mkubecek/vmware-host-modules" + +MY_KERNEL_VERSION="5.18" +SRC_URI="https://github.com/mkubecek/vmware-host-modules/archive/w${PV}-k${MY_KERNEL_VERSION}.zip -> ${P}-${MY_KERNEL_VERSION}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="" +DEPEND="" + +RESTRICT="mirror" + +S="${WORKDIR}/vmware-host-modules-w${PV}-k${MY_KERNEL_VERSION}" + +pkg_setup() { + CONFIG_CHECK="~HIGH_RES_TIMERS" + if kernel_is -ge 5 5; then + CONFIG_CHECK="${CONFIG_CHECK} X86_IOPL_IOPERM" + fi + if kernel_is -ge 2 6 37 && kernel_is -lt 2 6 39; then + CONFIG_CHECK="${CONFIG_CHECK} BKL" + fi + CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI VMWARE_VMCI_VSOCKETS" + + linux-info_pkg_setup + linux-mod_pkg_setup + + VMWARE_GROUP=${VMWARE_GROUP:-vmware} + + VMWARE_MODULE_LIST="vmmon vmnet" + + VMWARE_MOD_DIR="${PN}-${PVR}" + + BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}" + + enewgroup "${VMWARE_GROUP}" + + filter-flags -mfpmath=sse -mavx -mpclmul -maes + append-cflags -mno-sse # Found a problem similar to bug #492964 + + for mod in ${VMWARE_MODULE_LIST}; do + MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)" + done +} + +src_prepare() { + # decouple the kernel include dir from the running kernel version: https://github.com/stefantalpalaru/gentoo-overlay/issues/17 + sed -i \ + -e "s%HEADER_DIR = /lib/modules/\$(VM_UNAME)/build/include%HEADER_DIR = ${KERNEL_DIR}/include%" \ + -e "s%VM_UNAME = .*\$%VM_UNAME = ${KV_FULL}%" \ + */Makefile || die "sed failed" + + # Allow user patches so they can support RC kernels and whatever else + default +} + +src_install() { + linux-mod_src_install + local udevrules="${T}/60-vmware.rules" + cat > "${udevrules}" <<-EOF + KERNEL=="vmci", GROUP="vmware", MODE="660" + KERNEL=="vmw_vmci", GROUP="vmware", MODE="660" + KERNEL=="vmmon", GROUP="vmware", MODE="660" + KERNEL=="vsock", GROUP="vmware", MODE="660" + EOF + udev_dorules "${udevrules}" + + dodir /etc/modprobe.d/ + + cat > "${D}"/etc/modprobe.d/vmware.conf <<-EOF + # Support for vmware vmci in kernel module + alias vmci vmw_vmci + EOF + + export installed_modprobe_conf=1 + dodir /etc/modprobe.d/ + cat >> "${D}"/etc/modprobe.d/vmware.conf <<-EOF + # Support for vmware vsock in kernel module + alias vsock vmw_vsock_vmci_transport + EOF + + export installed_modprobe_conf=1 +} + +pkg_postinst() { + linux-mod_pkg_postinst + ewarn "Don't forget to run '/etc/init.d/vmware restart' to use the new kernel modules." +} diff --git a/app-emulation/vmware-modules/vmware-modules-16.2.3.ebuild b/app-emulation/vmware-modules/vmware-modules-16.2.3.ebuild deleted file mode 100644 index 40d3f0a..0000000 --- a/app-emulation/vmware-modules/vmware-modules-16.2.3.ebuild +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit eutils flag-o-matic linux-info linux-mod user udev - -DESCRIPTION="VMware kernel modules" -HOMEPAGE="https://github.com/mkubecek/vmware-host-modules" - -MY_KERNEL_VERSION="5.16" -SRC_URI="https://github.com/mkubecek/vmware-host-modules/archive/w${PV}-k${MY_KERNEL_VERSION}.zip -> ${P}-${MY_KERNEL_VERSION}.zip" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -RDEPEND="" -DEPEND="" - -RESTRICT="mirror" - -S="${WORKDIR}/vmware-host-modules-w${PV}-k${MY_KERNEL_VERSION}" - -pkg_setup() { - CONFIG_CHECK="~HIGH_RES_TIMERS" - if kernel_is -ge 5 5; then - CONFIG_CHECK="${CONFIG_CHECK} X86_IOPL_IOPERM" - fi - if kernel_is -ge 2 6 37 && kernel_is -lt 2 6 39; then - CONFIG_CHECK="${CONFIG_CHECK} BKL" - fi - CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI VMWARE_VMCI_VSOCKETS" - - linux-info_pkg_setup - linux-mod_pkg_setup - - VMWARE_GROUP=${VMWARE_GROUP:-vmware} - - VMWARE_MODULE_LIST="vmmon vmnet" - - VMWARE_MOD_DIR="${PN}-${PVR}" - - BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}" - - enewgroup "${VMWARE_GROUP}" - - filter-flags -mfpmath=sse -mavx -mpclmul -maes - append-cflags -mno-sse # Found a problem similar to bug #492964 - - for mod in ${VMWARE_MODULE_LIST}; do - MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)" - done -} - -src_prepare() { - # decouple the kernel include dir from the running kernel version: https://github.com/stefantalpalaru/gentoo-overlay/issues/17 - sed -i \ - -e "s%HEADER_DIR = /lib/modules/\$(VM_UNAME)/build/include%HEADER_DIR = ${KERNEL_DIR}/include%" \ - -e "s%VM_UNAME = .*\$%VM_UNAME = ${KV_FULL}%" \ - */Makefile || die "sed failed" - - # Allow user patches so they can support RC kernels and whatever else - default -} - -src_install() { - linux-mod_src_install - local udevrules="${T}/60-vmware.rules" - cat > "${udevrules}" <<-EOF - KERNEL=="vmci", GROUP="vmware", MODE="660" - KERNEL=="vmw_vmci", GROUP="vmware", MODE="660" - KERNEL=="vmmon", GROUP="vmware", MODE="660" - KERNEL=="vsock", GROUP="vmware", MODE="660" - EOF - udev_dorules "${udevrules}" - - dodir /etc/modprobe.d/ - - cat > "${D}"/etc/modprobe.d/vmware.conf <<-EOF - # Support for vmware vmci in kernel module - alias vmci vmw_vmci - EOF - - export installed_modprobe_conf=1 - dodir /etc/modprobe.d/ - cat >> "${D}"/etc/modprobe.d/vmware.conf <<-EOF - # Support for vmware vsock in kernel module - alias vsock vmw_vsock_vmci_transport - EOF - - export installed_modprobe_conf=1 -} - -pkg_postinst() { - linux-mod_pkg_postinst - ewarn "Don't forget to run '/etc/init.d/vmware restart' to use the new kernel modules." -} -- cgit v1.2.3-65-gdbad