public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/bcache-tools/
Date: Thu, 21 Sep 2023 09:04:57 +0000 (UTC)	[thread overview]
Message-ID: <1695286945.8791b7b9d902fba6776ce1a4f1952377cd395d8e.flow@gentoo> (raw)

commit:     8791b7b9d902fba6776ce1a4f1952377cd395d8e
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 21 09:02:25 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Sep 21 09:02:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8791b7b9

sys-fs/bcache-tools: use upstream's 'install' target

This hopefully reduces the chances that new binaries and similar things
are not installed when bumping the package.

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 ...ebuild => bcache-tools-1.1_p20230217-r1.ebuild} | 32 ++++++++++++----------
 1 file changed, 18 insertions(+), 14 deletions(-)

diff --git a/sys-fs/bcache-tools/bcache-tools-1.1_p20230217.ebuild b/sys-fs/bcache-tools/bcache-tools-1.1_p20230217-r1.ebuild
similarity index 78%
rename from sys-fs/bcache-tools/bcache-tools-1.1_p20230217.ebuild
rename to sys-fs/bcache-tools/bcache-tools-1.1_p20230217-r1.ebuild
index 88fe95d15846..9577ad30f308 100644
--- a/sys-fs/bcache-tools/bcache-tools-1.1_p20230217.ebuild
+++ b/sys-fs/bcache-tools/bcache-tools-1.1_p20230217-r1.ebuild
@@ -37,29 +37,33 @@ src_prepare() {
 	sed \
 		-e '/^CFLAGS/s:-O2::' \
 		-e '/^CFLAGS/s:-g::' \
+		-e '/.*INSTALL.*share\/man/d' \
+		-e '/.*INSTALL.*bcache-status/d' \
 		-i Makefile || die
 
 	append-lfs-flags
 }
 
 src_install() {
-	into /
-	dosbin bcache make-bcache bcache-super-show
-
-	exeinto $(get_udevdir)
-	doexe bcache-register probe-bcache
+	local udevdir="$(get_udevdir)"
+
+	local mydirs=(
+		sbin
+		"${udevdir}/rules.d"
+		/usr/share/initramfs-tools/hooks/bcache
+		/usr/lib/initcpio/install/bcache
+	)
+	dodir "${mydirs[@]}"
+
+	emake \
+		DESTDIR="${D}" \
+		PREFIX="${EPREFIX}" \
+		UDEVLIBDIR="${udevdir}" \
+		DRACUTLIBDIR="/usr/lib/dracut" \
+		install
 
 	python_foreach_impl python_doscript bcache-status
 
-	udev_dorules 69-bcache.rules
-
-	insinto /etc/initramfs-tools/hooks/bcache
-	doins initramfs/hook
-
-	# that is what dracut does
-	insinto /usr/lib/dracut/modules.d/90bcache
-	doins dracut/module-setup.sh
-
 	doman *.8
 
 	dodoc README


             reply	other threads:[~2023-09-21  9:05 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21  9:04 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-26 22:39 [gentoo-commits] repo/gentoo:master commit in: sys-fs/bcache-tools/ Sam James
2023-10-23 14:05 Arthur Zamarin
2023-10-22 11:44 Sam James
2023-10-22 11:39 Sam James
2023-10-22 11:39 Sam James
2023-09-21  9:04 Florian Schmaus
2023-09-21  8:19 Florian Schmaus
2023-09-21  8:19 Florian Schmaus
2023-09-12 19:28 WANG Xuerui
2023-09-12 19:28 WANG Xuerui
2023-02-25 20:59 Florian Schmaus
2023-02-25 20:59 Florian Schmaus
2022-06-16 11:41 Florian Schmaus
2022-04-07 17:04 Jakov Smolić
2022-01-19 22:43 Sam James
2022-01-18 22:16 Sam James
2022-01-18 12:26 Sam James
2022-01-17  1:57 Georgy Yakovlev
2022-01-17  1:57 Georgy Yakovlev
2022-01-17  1:57 Georgy Yakovlev
2021-12-15 11:22 Florian Schmaus
2021-12-15 11:22 Florian Schmaus
2021-12-15 11:22 Florian Schmaus
2021-12-15 11:22 Florian Schmaus
2021-11-19 18:10 Jakov Smolić
2021-11-19 14:08 Florian Schmaus
2021-06-29 11:34 Florian Schmaus
2021-06-29 11:34 Florian Schmaus
2021-06-29 11:34 Florian Schmaus
2020-09-25 22:28 Sergei Trofimovich
2020-09-25 22:28 Sergei Trofimovich
2020-05-17 16:55 Aaron Bauman
2020-04-09  9:34 Michał Górny
2018-06-23 10:49 Pacho Ramos
2016-01-30 15:11 Justin Lecher
2015-12-07  8:22 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1695286945.8791b7b9d902fba6776ce1a4f1952377cd395d8e.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox