diff options
Diffstat (limited to 'sys-apps/azure-nvme-utils/azure-nvme-utils-0.2.0.ebuild')
-rw-r--r-- | sys-apps/azure-nvme-utils/azure-nvme-utils-0.2.0.ebuild | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-apps/azure-nvme-utils/azure-nvme-utils-0.2.0.ebuild b/sys-apps/azure-nvme-utils/azure-nvme-utils-0.2.0.ebuild new file mode 100644 index 000000000000..5d3421905581 --- /dev/null +++ b/sys-apps/azure-nvme-utils/azure-nvme-utils-0.2.0.ebuild @@ -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 +} |