Merge pull request #2252 from flatcar/chewi/azure-nvme-utils

azure-nvme-utils: Migrate coreos-overlay to portage-stable, 0.2.0 bump
This commit is contained in:
James Le Cuirot 2024-08-27 13:32:02 +01:00 committed by GitHub
commit 35aa63d8db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 51 additions and 30 deletions

View File

@ -546,6 +546,7 @@ sec-policy/selinux-unconfined
sys-apps/acl
sys-apps/attr
sys-apps/azure-nvme-utils
sys-apps/bubblewrap
sys-apps/checkpolicy
sys-apps/config-site

View File

@ -0,0 +1 @@
- azure-nmve-utils ([0.2.0](https://github.com/Azure/azure-nvme-utils/releases/tag/v0.2.0))

View File

@ -1 +0,0 @@
DIST azure-nvme-utils-0.0.0-1a1167d1d7780068d0af5afc3ad18a2601e951fe.zip 15473 BLAKE2B c57bc01b53bb52b0d958e6eac0d7df5b08023024dbf197f236229174fed2e8d295a4d66f123a2914f8ff11a70df83db7e7cafa56242a80c925bff53032b38b4e SHA512 48739a5da9e7fdba9c26df803354925ff508f4bb872f9dfde7461b6fec70648e1daaa7c1468960467d19243c6b3c871dd4bf060fa85e22f5576083d2a19385ed

View File

@ -1,28 +0,0 @@
# Copyright 2024 Flatcar Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
GIT_COMMIT="1a1167d1d7780068d0af5afc3ad18a2601e951fe"
DESCRIPTION="Azure NVMe utilities"
HOMEPAGE="https://github.com/Azure/azure-nvme-utils"
SRC_URI="https://github.com/Azure/azure-nvme-utils/archive/${GIT_COMMIT}.zip -> ${P}-${GIT_COMMIT}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm64"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
S="${WORKDIR}/${PN}-${GIT_COMMIT}"
src_configure() {
local mycmakeargs=(
-DVERSION="${PVR}-${GIT_COMMIT}"
)
cmake_src_configure
}

View File

@ -81,7 +81,6 @@ RDEPEND="${RDEPEND}
# sys-devel/gettext: it embeds 'envsubst' binary which is useful for simple file templating.
RDEPEND="${RDEPEND}
app-admin/azure-nvme-utils
app-admin/etcd-wrapper
app-admin/flannel-wrapper
app-admin/locksmith
@ -154,6 +153,7 @@ RDEPEND="${RDEPEND}
sec-policy/selinux-unconfined
sys-apps/acl
sys-apps/attr
sys-apps/azure-nvme-utils
sys-apps/coreutils
sys-apps/checkpolicy
sys-apps/dbus

View File

@ -96,6 +96,9 @@ dev-util/catalyst ~amd64 ~arm64
# Needed to address CVE-2024-6197, CVE-2024-6874 and CVE-2024-7264.
=net-misc/curl-8.9.1-r1 ~amd64 ~arm64
# Package has not been stabilised yet.
=sys-apps/azure-nvme-utils-0.2.0 ~amd64 ~arm64
# Keep versions on both arches in sync.
=sys-apps/kexec-tools-2.0.28 ~arm64
=sys-apps/zram-generator-1.1.2 ~arm64

View File

@ -0,0 +1 @@
DIST azure-nvme-utils-0.2.0.tar.gz 13177 BLAKE2B 5c486d035422ea6547e2886324e0b6e2537d11089bc0b3dfd550130e82ab8de8cc9a5be8e3bfd0722cb71c17a66c261f0cfd021e4a48e5568de01dd0c052fbbc SHA512 4ef2de641839bfbcc2e1a084cec218d1105550366770d731bb7a3e5d4b4e45a47b21ccf9a3a8069f469389e1d27e485bfed235a55d398930bddc8829eebc2708

View File

@ -0,0 +1,30 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake udev
DESCRIPTION="Utility to help identify Azure NVMe devices"
HOMEPAGE="https://github.com/Azure/azure-nvme-utils"
SRC_URI="https://github.com/Azure/${PN}/archive/refs/tags/v${PV}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="+lun-fallback"
src_configure() {
local mycmakeargs=(
-DAZURE_LUN_CALCULATION_BY_NSID_ENABLED=$(usex lun-fallback)
-DUDEV_RULES_INSTALL_DIR="$(get_udevdir)/rules.d"
)
cmake_src_configure
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>chewi@gentoo.org</email>
<name>James Le Cuirot</name>
</maintainer>
<upstream>
<remote-id type="github">Azure/azure-nvme-utils</remote-id>
</upstream>
<use>
<flag name="lun-fallback">Enable fallback LUN calculation via NSID</flag>
</use>
</pkgmetadata>