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 via email to