From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AE14D15800F for ; Thu, 26 Jan 2023 19:28:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2D62E077C; Thu, 26 Jan 2023 19:28:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B5A00E077C for ; Thu, 26 Jan 2023 19:28:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78EF333BDC5 for ; Thu, 26 Jan 2023 19:28:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3707D779 for ; Thu, 26 Jan 2023 19:28:26 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1674761297.54aa5d26b3232b8e35a05ca445398542229eec75.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/ndctl/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-block/ndctl/Manifest sys-block/ndctl/ndctl-75.ebuild X-VCS-Directories: sys-block/ndctl/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 54aa5d26b3232b8e35a05ca445398542229eec75 X-VCS-Branch: master Date: Thu, 26 Jan 2023 19:28:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 25e506e9-7115-44c8-b7c3-bd9068d735b5 X-Archives-Hash: bc7b8706df956adfcc9e313f325b1e63 commit: 54aa5d26b3232b8e35a05ca445398542229eec75 Author: Patrick McLean gentoo org> AuthorDate: Thu Jan 26 19:28:06 2023 +0000 Commit: Patrick McLean gentoo org> CommitDate: Thu Jan 26 19:28:17 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54aa5d26 sys-block/ndctl: add 75 Signed-off-by: Patrick McLean gentoo.org> sys-block/ndctl/Manifest | 1 + sys-block/ndctl/ndctl-75.ebuild | 74 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/sys-block/ndctl/Manifest b/sys-block/ndctl/Manifest index 29fe610e9bb0..f4f1e0773555 100644 --- a/sys-block/ndctl/Manifest +++ b/sys-block/ndctl/Manifest @@ -1,2 +1,3 @@ DIST ndctl-71.1.tar.gz 330512 BLAKE2B 582f29fb649f33a48b5412bfefc15de2b1f765b27251d1b8a472d8c7705d671acbd6bf646f737baf8556d8fda39db68242f44e11225d7305e95f5d2ec5931f31 SHA512 92fb06ca64455775ce0b89ba0846f70235e02fe3502e2a8a55a858f76f87cb90ae98f5bf01620e5884f667ea78ee2bee2cd9e7a85ffa8f8d9c456e9282ca9ebc DIST ndctl-72.1.tar.gz 365324 BLAKE2B 2e061bd1357c0b422f728e8624106d93e9eed2f5c7795428b0c61d041ab45569aa8bb6eb52544360ad538be85f3b7f84f8c9ab1037a8ca5498c2e1a13fa22186 SHA512 7304e23121c99457fa6e22a399fb636f6a66d6d07b090463ec41e424687b06e7e8a1a18623ab9dd5783aaccfa09ff964e3477b63aaa4614ac60f6e6050452f12 +DIST ndctl-75.tar.gz 415393 BLAKE2B f9081b09c2f4ad8a6bc9c53e792b8a49992c7089af09e39917efe0fceea800d81665a31bf14c8e2f6f83c57d1dccebb4513b9bb556a3e81c19c75fbc67e1d7e3 SHA512 0af960e43a363711fbdb5152bb670022bd9b2f6a269c153dd88dca4ad2dcc215679c354ebcc758e9376867462f82c21aebe62bc62ca27333dedf3a818f34b272 diff --git a/sys-block/ndctl/ndctl-75.ebuild b/sys-block/ndctl/ndctl-75.ebuild new file mode 100644 index 000000000000..6c45f09b498f --- /dev/null +++ b/sys-block/ndctl/ndctl-75.ebuild @@ -0,0 +1,74 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit udev meson bash-completion-r1 + +DESCRIPTION="Helper tools and libraries for managing non-volatile memory on Linux" +HOMEPAGE="https://github.com/pmem/ndctl" +SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1 MIT CC0-1.0" +SLOT="0/6" +KEYWORDS="~amd64 ~x86" +IUSE="doc systemd test" + +DEPEND=" + dev-libs/iniparser:0= + dev-libs/json-c:= + sys-apps/keyutils:= + sys-apps/kmod:= + sys-apps/util-linux:= + virtual/libudev:= + systemd? ( sys-apps/systemd:= ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + doc? ( + app-text/asciidoc + app-text/xmlto + ) + sys-devel/libtool + virtual/pkgconfig +" + +RESTRICT="!test? ( test )" + +# tests require root access +RESTRICT+=" test" + +DOCS=( + README.md + CONTRIBUTING.md +) + +src_configure() { + local -a emesonargs=( + $(meson_feature systemd) + $(meson_feature doc docs) + -Dasciidoctor=disabled + -Dbashcompletiondir="$(get_bashcompdir)" + -Drootprefix=/usr + -Drootlibdir="/usr/$(get_libdir)" + ) + meson_src_configure +} + +src_install() { + meson_src_install + + # upstream doesn't install udev rules unless using systemd + use systemd || udev_dorules daxctl/90-daxctl-device.rules + + bashcomp_alias ndctl daxctl + bashcomp_alias ndctl cxl +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}