mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 15:41:04 +02:00
sys-apps/azure-vm-utils: Sync with Gentoo
It's from Gentoo commit d4a88d92495bb58ef463eb15cb2dfe423dbfe84a.
This commit is contained in:
parent
fb9b96a5d2
commit
1579da4a90
@ -1 +1,2 @@
|
||||
DIST azure-vm-utils-0.4.0.tar.gz 15688 BLAKE2B 4a8f5b28a01b3670d81cbc9ae43c24b6177d90ddc3bf6e78a3ccc7406361474d2aa7dce934709fdb73cc0930616475e79ef8484e05bf34354668909e5d8a1c96 SHA512 e97f6de49f0ee9281d17c2be0f4c0e0d86385d113fd514e28fc14f635669a1abdddd83961193941b6969b2b0d41a357e4211357f8c226d84f698166c2eb21b8e
|
||||
DIST azure-vm-utils-0.5.1.tar.gz 42064 BLAKE2B 3d5f2377f7791cf7c4ba9fbf5d1ef2d300c93b646162cb8f56cafa128a8a9c8eb333c02e61819e44b4063497886fa4426f8bb7d6d4639a02c94408a318798a43 SHA512 875d86536a128b4b5086d6ab3f76190002f29d9489bd31c742129c2e275f587d9b64de178634313fabb60a28ceee8a02307c4ebe9a9d5353c38096830512aa83
|
||||
|
45
sdk_container/src/third_party/portage-stable/sys-apps/azure-vm-utils/azure-vm-utils-0.5.1.ebuild
vendored
Normal file
45
sdk_container/src/third_party/portage-stable/sys-apps/azure-vm-utils/azure-vm-utils-0.5.1.ebuild
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake udev
|
||||
|
||||
DESCRIPTION="Utilities and udev rules to support Linux on Azure"
|
||||
HOMEPAGE="https://github.com/Azure/azure-vm-utils"
|
||||
SRC_URI="https://github.com/Azure/${PN}/archive/refs/tags/v${PV}/${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
test? ( dev-util/cmocka )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUDEV_RULES_INSTALL_DIR="$(get_udevdir)/rules.d"
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# Remove post-install test that only works on Azure.
|
||||
rm -v \
|
||||
"${ED}"/usr/sbin/azure-vm-utils-selftest \
|
||||
"${ED}"/usr/share/man/man*/azure-vm-utils-selftest.* \
|
||||
|| die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user